Home
last modified time | relevance | path

Searched refs:mFeatureFactory (Results 1 – 25 of 126) sorted by relevance

123456

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryTipsCardPreferenceTest.java61 private FakeFeatureFactory mFeatureFactory; field in BatteryTipsCardPreferenceTest
76 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
110 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_mainBtnOfSettingsAnomalyLaunchPage_getAdaptiveBrightnessLauncher()
125 verify(mFeatureFactory.metricsFeatureProvider) in onClick_mainBtnOfSettingsAnomalyLaunchPage_getAdaptiveBrightnessLauncher()
132 verify(mFeatureFactory.metricsFeatureProvider) in onClick_mainBtnOfSettingsAnomalyLaunchPage_getAdaptiveBrightnessLauncher()
151 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_mainBtnOfSettingsAnomalyChangeSettings_settingsChanged()
166 verify(mFeatureFactory.metricsFeatureProvider) in onClick_mainBtnOfSettingsAnomalyChangeSettings_settingsChanged()
173 verify(mFeatureFactory.metricsFeatureProvider) in onClick_mainBtnOfSettingsAnomalyChangeSettings_settingsChanged()
187 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_dismissBtnOfSettingsAnomaly_cardDismissAndLogged()
198 verify(mFeatureFactory.metricsFeatureProvider) in onClick_dismissBtnOfSettingsAnomaly_cardDismissAndLogged()
[all …]
DBatteryTipsControllerTest.java48 private FakeFeatureFactory mFeatureFactory; field in BatteryTipsControllerTest
63 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
78 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
92 verify(mFeatureFactory.metricsFeatureProvider) in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
104 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
115 verify(mFeatureFactory.metricsFeatureProvider) in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
135 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
146 verify(mFeatureFactory.metricsFeatureProvider) in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
158 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_appAnomaly_showAnomaly()
172 verify(mFeatureFactory.metricsFeatureProvider) in handleBatteryTipsCardUpdated_appAnomaly_showAnomaly()
DPeriodicJobManagerTest.java48 private FakeFeatureFactory mFeatureFactory; field in PeriodicJobManagerTest
54 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
55 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in setUp()
106 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in getTriggerAtMillis_halfFullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
150 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in getTriggerAtMillis_fullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java89 private FakeFeatureFactory mFeatureFactory; field in EnterpriseSetDefaultAppsListPreferenceControllerTest
97 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
120 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in testMultipleAppsForOneTypeOfDefault()
122 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(false); in testMultipleAppsForOneTypeOfDefault()
123 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
126 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
130 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
152 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in isAvailable()
154 when(mFeatureFactory.applicationFeatureProvider in isAvailable()
165 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in getPreferenceKey()
[all …]
DAlwaysOnVpnCurrentUserPreferenceControllerTest.java49 private FakeFeatureFactory mFeatureFactory; field in AlwaysOnVpnCurrentUserPreferenceControllerTest
56 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
68 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testUpdateState()
71 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(false); in testUpdateState()
75 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(true); in testUpdateState()
82 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testIsAvailable()
86 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testIsAvailable()
DPrivacyPreferenceControllerHelperTest.java57 private FakeFeatureFactory mFeatureFactory; field in PrivacyPreferenceControllerHelperTest
63 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
82 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getDeviceOwnerOrganizationName()) in testUpdateState_noDeviceOwnerName_useGenericPreferenceSummary()
97 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getDeviceOwnerOrganizationName()) in testUpdateState_deviceOwnerName_usePreferenceSummaryWithDeviceOwnerName()
107 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(true); in hasDeviceOwner_deviceOwner_returnsTrue()
114 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(false); in hasDeviceOwner_noDeviceOwner_returnsFalse()
DImePreferenceControllerTest.java51 private FakeFeatureFactory mFeatureFactory; field in ImePreferenceControllerTest
60 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
71 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testUpdateState()
79 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testIsAvailable()
83 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testIsAvailable()
DAlwaysOnVpnManagedProfilePreferenceControllerTest.java47 private FakeFeatureFactory mFeatureFactory; field in AlwaysOnVpnManagedProfilePreferenceControllerTest
56 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
62 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInManagedProfile()) in testIsAvailable()
66 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInManagedProfile()) in testIsAvailable()
DManageDeviceAdminPreferenceControllerTest.java49 private FakeFeatureFactory mFeatureFactory; field in ManageDeviceAdminPreferenceControllerTest
56 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
64 when(mFeatureFactory.enterprisePrivacyFeatureProvider in testUpdateState()
72 when(mFeatureFactory.enterprisePrivacyFeatureProvider in testUpdateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DEuiccRacConnectivityDialogActivityTest.java36 private FakeFeatureFactory mFeatureFactory; field in EuiccRacConnectivityDialogActivityTest
41 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
51 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_continue_intentResetMobileNetwork_metricsLogged()
63 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_back_intentResetMobileNetwork_metricsLogged()
74 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_continue_intentSettingsEsimDelete_metricsLogged()
86 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_back_intentSettingsEsimDelete_metricsLogged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DUsbStylusBroadcastReceiverTest.java44 private FakeFeatureFactory mFeatureFactory; field in UsbStylusBroadcastReceiverTest
54 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
59 when(mFeatureFactory.mStylusFeatureProvider.isUsbFirmwareUpdateEnabled(any())) in onReceive_usbDeviceAttachedStylus_invokeCallback()
73 when(mFeatureFactory.mStylusFeatureProvider.isUsbFirmwareUpdateEnabled(any())) in onReceive_usbDeviceDetachedStylus_invokeCallback()
87 when(mFeatureFactory.mStylusFeatureProvider.isUsbFirmwareUpdateEnabled(any())) in onReceive_usbDeviceAttachedNotStylus_doesNotInvokeCallback()
101 when(mFeatureFactory.mStylusFeatureProvider.isUsbFirmwareUpdateEnabled(any())) in onReceive_usbDeviceStateStylus_invokeCallback()
115 when(mFeatureFactory.mStylusFeatureProvider.isUsbFirmwareUpdateEnabled(any())) in onReceive_usbDeviceStateNotStylus_doesNotInvokeCallback()
DStylusUsbFirmwareControllerTest.java55 private FakeFeatureFactory mFeatureFactory; field in StylusUsbFirmwareControllerTest
75 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
131 when(mFeatureFactory.getStylusFeatureProvider() in hasUsbStylusFirmwareUpdateFeature_featurePresent_true()
141 when(mFeatureFactory.getStylusFeatureProvider() in hasUsbStylusFirmwareUpdateFeature_featureNotPresent_false()
157 when(mFeatureFactory.getStylusFeatureProvider() in enableFullStylusFeature()
159 when(mFeatureFactory.getStylusFeatureProvider() in enableFullStylusFeature()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DEuiccRacConnectivityDialogFragmentTest.java41 private FakeFeatureFactory mFeatureFactory; field in EuiccRacConnectivityDialogFragmentTest
47 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
57 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_continue_intentResetESIMS_metricsLogged()
67 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_backCancel_intentResetESIMS_metricsLogged()
77 verify(mFeatureFactory.metricsFeatureProvider) in dialogAction_buttonCancel_intentResetESIMS_metricsLogged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsSpatialAudioControllerTest.java86 private FakeFeatureFactory mFeatureFactory; field in BluetoothDetailsSpatialAudioControllerTest
93 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
106 when(mFeatureFactory.getBluetoothFeatureProvider().getSpatializer(mContext)) in setUp()
190 verify(mFeatureFactory.metricsFeatureProvider) in refresh_spatialAudioOnHeadTrackingOff_recordMetrics()
195 verify(mFeatureFactory.metricsFeatureProvider) in refresh_spatialAudioOnHeadTrackingOff_recordMetrics()
213 verify(mFeatureFactory.metricsFeatureProvider) in refresh_spatialAudioOff_recordMetrics()
218 verify(mFeatureFactory.metricsFeatureProvider) in refresh_spatialAudioOff_recordMetrics()
266 verify(mFeatureFactory.metricsFeatureProvider) in refresh_headTrackingIsTurnedOn_checksHeadTrackingPreference()
287 verify(mFeatureFactory.metricsFeatureProvider) in refresh_headTrackingIsTurnedOff_unchecksHeadTrackingPreference()
346 verify(mFeatureFactory.metricsFeatureProvider) in turnedOnSpatialAudio_invokesAddCompatibleAudioDevice()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/vrlistener/
DVrListenerSettingsTest.java33 private FakeFeatureFactory mFeatureFactory; field in VrListenerSettingsTest
39 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
46 mFeatureFactory.metricsFeatureProvider.action( in logSpecialPermissionChange()
54 mFeatureFactory.metricsFeatureProvider.action( in logSpecialPermissionChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DWriteSettingsDetailsTest.java37 private FakeFeatureFactory mFeatureFactory; field in WriteSettingsDetailsTest
44 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
51 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), in logSpecialPermissionChange()
56 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), in logSpecialPermissionChange()
DDrawOverlayDetailsTest.java41 private FakeFeatureFactory mFeatureFactory; field in DrawOverlayDetailsTest
50 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
59 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in logSpecialPermissionChange()
64 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in logSpecialPermissionChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DRestrictAppActionTest.java57 private FakeFeatureFactory mFeatureFactory; field in RestrictAppActionTest
72 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
93 verify(mFeatureFactory.metricsFeatureProvider) in testHandlePositiveAction()
100 verify(mFeatureFactory.metricsFeatureProvider) in testHandlePositiveAction()
107 verify(mFeatureFactory.metricsFeatureProvider) in testHandlePositiveAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/support/
DSupportPreferenceControllerTest.java44 private FakeFeatureFactory mFeatureFactory; field in SupportPreferenceControllerTest
50 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
57 ReflectionHelpers.setField(mFeatureFactory, "supportFeatureProvider", null); in getAvailability_noSupport_unavailable()
75 verify(mFeatureFactory.supportFeatureProvider).startSupport(mActivity); in handlePreferenceTreeClick_shouldLaunchSupport()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java107 private FakeFeatureFactory mFeatureFactory; field in BatteryInfoTest
116 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
122 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in setUp()
312 .when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo_chargingWithDefender_updateChargeLabel()
369 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in getBatteryInfo_dockDefenderActive_updateChargeString()
371 .when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo_dockDefenderActive_updateChargeString()
421 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in getBatteryInfo_dockDefenderFutureBypass_updateChargeLabel()
655 when(mFeatureFactory.batterySettingsFeatureProvider.getWirelessChargingRemainingLabel( in getBatteryInfo_customizedWLCLabel_updateRemainingLabelAndStatusLabel()
680 when(mFeatureFactory.batterySettingsFeatureProvider.getWirelessChargingRemainingLabel( in getBatteryInfo_noCustomizedWLCLabel_updateRemainingLabelAndStatusLabel()
704 when(mFeatureFactory.batterySettingsFeatureProvider.getWirelessChargingRemainingLabel( in getBatteryInfo_noCustomWirelessChargingLabelWithV1_updateRemainingAndStatusLabel()
[all …]
DAutoRestrictionPreferenceControllerTest.java46 private FakeFeatureFactory mFeatureFactory; field in AutoRestrictionPreferenceControllerTest
52 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
92 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnDisabled()
100 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DUsageAccessDetailsTest.java41 private FakeFeatureFactory mFeatureFactory; field in UsageAccessDetailsTest
47 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
55 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
63 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/zenaccess/
DZenAccessControllerTest.java46 private FakeFeatureFactory mFeatureFactory; field in ZenAccessControllerTest
53 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
65 verify(mFeatureFactory.metricsFeatureProvider).action(any(Context.class), in logSpecialPermissionChange()
70 verify(mFeatureFactory.metricsFeatureProvider).action(any(Context.class), in logSpecialPermissionChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DChangeWifiStateDetailsTest.java43 private FakeFeatureFactory mFeatureFactory; field in ChangeWifiStateDetailsTest
55 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
62 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), in testLogSpecialPermissionChange_setTrue_returnAllow()
70 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), in testLogSpecialPermissionChange_setFalse_returnDeny()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureDetailsTest.java38 private FakeFeatureFactory mFeatureFactory; field in PictureInPictureDetailsTest
44 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
76 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
84 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()

123456