Home
last modified time | relevance | path

Searched refs:mSettingsActivity (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtilsTest.java50 private SettingsActivity mSettingsActivity; field in BatteryTipUtilsTest
62 when(mSettingsActivity.getApplicationContext()).thenReturn(RuntimeEnvironment.application); in setUp()
76 assertThat(BatteryTipUtils.getActionForBatteryTip(mRestrictAppTip, mSettingsActivity, in testGetActionForBatteryTip_typeRestrictStateNew_returnActionRestrict()
84 assertThat(BatteryTipUtils.getActionForBatteryTip(mRestrictAppTip, mSettingsActivity, in testGetActionForBatteryTip_typeRestrictStateHandled_returnActionOpen()
92 assertThat(BatteryTipUtils.getActionForBatteryTip(mEarlyWarningTip, mSettingsActivity, in testGetActionForBatteryTip_typeEarlyWarningStateNew_returnActionBatterySaver()
100 assertThat(BatteryTipUtils.getActionForBatteryTip(mEarlyWarningTip, mSettingsActivity, in testGetActionForBatteryTip_typeEarlyWarningStateHandled_returnActionOpen()
108 assertThat(BatteryTipUtils.getActionForBatteryTip(mLowBatteryTip, mSettingsActivity, in testGetActionForBatteryTip_typeLowBatteryStateNew_returnActionBatterySaver()
116 assertThat(BatteryTipUtils.getActionForBatteryTip(mLowBatteryTip, mSettingsActivity, in testGetActionForBatteryTip_typeLowBatteryStateHandled_returnActionOpen()
DBatteryTipPreferenceControllerTest.java75 private SettingsActivity mSettingsActivity; field in BatteryTipPreferenceControllerTest
178 controller.setActivity(mSettingsActivity); in buildBatteryTipPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceControllerTest.java97 private SettingsActivity mSettingsActivity; field in AppButtonsPreferenceControllerTest
132 doReturn(mDpm).when(mSettingsActivity).getSystemService(Context.DEVICE_POLICY_SERVICE); in setUp()
133 doReturn(mUserManager).when(mSettingsActivity).getSystemService(Context.USER_SERVICE); in setUp()
134 doReturn(mPackageManger).when(mSettingsActivity).getPackageManager(); in setUp()
135 doReturn(mAm).when(mSettingsActivity).getSystemService(Context.ACTIVITY_SERVICE); in setUp()
136 doReturn(mOverlayManager).when(mSettingsActivity). in setUp()
139 doReturn(mContext).when(mSettingsActivity).getApplicationContext(); in setUp()
140 when(mSettingsActivity.getResources().getString(anyInt())).thenReturn(RESOURCE_STRING); in setUp()
142 mController = spy(new AppButtonsPreferenceController(mSettingsActivity, mFragment, in setUp()
177 new AppButtonsPreferenceController(mSettingsActivity, mFragment, in isAvailable_nullPackageName_isFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizationPreferenceController.java43 private SettingsActivity mSettingsActivity; field in BatteryOptimizationPreferenceController
50 mSettingsActivity = settingsActivity; in BatteryOptimizationPreferenceController()
52 mBackend = PowerWhitelistBackend.getInstance(mSettingsActivity); in BatteryOptimizationPreferenceController()
60 mSettingsActivity = settingsActivity; in BatteryOptimizationPreferenceController()
90 new SubSettingLauncher(mSettingsActivity) in handlePreferenceTreeClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryOptimizationPreferenceController.java43 private SettingsActivity mSettingsActivity; field in BatteryOptimizationPreferenceController
50 mSettingsActivity = settingsActivity; in BatteryOptimizationPreferenceController()
52 mBackend = PowerWhitelistBackend.getInstance(mSettingsActivity); in BatteryOptimizationPreferenceController()
60 mSettingsActivity = settingsActivity; in BatteryOptimizationPreferenceController()
90 new SubSettingLauncher(mSettingsActivity) in handlePreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizationPreferenceControllerTest.java54 private SettingsActivity mSettingsActivity; field in BatteryOptimizationPreferenceControllerTest
73 mController = spy(new BatteryOptimizationPreferenceController(mSettingsActivity, mFragment, in setUp()
84 verify(mSettingsActivity).startActivity(any(Intent.class)); in testHandlePreferenceTreeClick_OptimizationPreference_HandleClick()
94 verify(mSettingsActivity, never()).startActivity(any(Intent.class)); in testHandlePreferenceTreeClick_OtherPreference_NotHandleClick()
100 new BatteryOptimizationPreferenceController(mSettingsActivity, mFragment, in testUpdateState_appInWhitelist_showSummaryNotOptimized()
DBatteryAppListPreferenceControllerTest.java67 private SettingsActivity mSettingsActivity; field in BatteryAppListPreferenceControllerTest
102 mSettingsActivity, mFragment); in setUp()
DPowerUsageSummaryTest.java116 private SettingsActivity mSettingsActivity; field in PowerUsageSummaryTest
161 when(mFragment.getActivity()).thenReturn(mSettingsActivity); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DSmartBatteryAction.java30 private SettingsActivity mSettingsActivity; field in SmartBatteryAction
35 mSettingsActivity = settingsActivity; in SmartBatteryAction()
46 new SubSettingLauncher(mSettingsActivity) in handlePositiveAction()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/
DSmartBatteryAction.java30 private SettingsActivity mSettingsActivity; field in SmartBatteryAction
35 mSettingsActivity = settingsActivity; in SmartBatteryAction()
46 new SubSettingLauncher(mSettingsActivity) in handlePositiveAction()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPreferenceController.java55 private SettingsActivity mSettingsActivity; field in BatteryTipPreferenceController
72 mSettingsActivity = activity; in setActivity()
137 mSettingsActivity, mFragment); in handlePreferenceTreeClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipPreferenceController.java55 private SettingsActivity mSettingsActivity; field in BatteryTipPreferenceController
72 mSettingsActivity = activity; in setActivity()
137 mSettingsActivity, mFragment); in handlePreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceUpdaterTest.java75 private SettingsActivity mSettingsActivity; field in BluetoothDeviceUpdaterTest
175 doReturn(mSettingsActivity).when(mDashboardFragment).getContext(); in testDeviceProfilesListener_click_startBluetoothDeviceDetailPage()
180 verify(mSettingsActivity).startActivity(intentCaptor.capture()); in testDeviceProfilesListener_click_startBluetoothDeviceDetailPage()