/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtilsTest.java | 50 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()
|
D | BatteryTipPreferenceControllerTest.java | 75 private SettingsActivity mSettingsActivity; field in BatteryTipPreferenceControllerTest 178 controller.setActivity(mSettingsActivity); in buildBatteryTipPreferenceController()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 97 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/ |
D | BatteryOptimizationPreferenceController.java | 43 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/ |
D | BatteryOptimizationPreferenceController.java | 43 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/ |
D | BatteryOptimizationPreferenceControllerTest.java | 54 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()
|
D | BatteryAppListPreferenceControllerTest.java | 67 private SettingsActivity mSettingsActivity; field in BatteryAppListPreferenceControllerTest 102 mSettingsActivity, mFragment); in setUp()
|
D | PowerUsageSummaryTest.java | 116 private SettingsActivity mSettingsActivity; field in PowerUsageSummaryTest 161 when(mFragment.getActivity()).thenReturn(mSettingsActivity); in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | SmartBatteryAction.java | 30 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/ |
D | SmartBatteryAction.java | 30 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/ |
D | BatteryTipPreferenceController.java | 55 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/ |
D | BatteryTipPreferenceController.java | 55 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/ |
D | BluetoothDeviceUpdaterTest.java | 75 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()
|