Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java106 private FakeFeatureFactory mFeatureFactory; field in AnomalyDetectionJobServiceTest
117 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
148 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemWhitelisted_doNotSave()
149 mFeatureFactory.metricsFeatureProvider, mBundle); in saveAnomalyToDatabase_systemWhitelisted_doNotSave()
169 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemApp_doNotSaveButLog()
170 mFeatureFactory.metricsFeatureProvider, mBundle); in saveAnomalyToDatabase_systemApp_doNotSaveButLog()
174 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in saveAnomalyToDatabase_systemApp_doNotSaveButLog()
189 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_systemUid_doNotSave()
204 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_uidNull_doNotSave()
224 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_normalAppWithAutoRestriction_save()
[all …]
DBatteryManagerPreferenceControllerTest.java50 private FakeFeatureFactory mFeatureFactory; field in BatteryManagerPreferenceControllerTest
60 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
74 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryOnWithoutRestriction_showSummary()
85 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryOff_showSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java82 private FakeFeatureFactory mFeatureFactory; field in EnterpriseSetDefaultAppsListPreferenceControllerTest
88 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
111 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in testMultipleAppsForOneTypeOfDefault()
113 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(false); in testMultipleAppsForOneTypeOfDefault()
114 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
117 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
121 when(mFeatureFactory.applicationFeatureProvider in testMultipleAppsForOneTypeOfDefault()
142 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in isAvailable()
144 when(mFeatureFactory.applicationFeatureProvider in isAvailable()
155 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in getPreferenceKey()
[all …]
DAlwaysOnVpnCurrentUserPreferenceControllerTest.java47 private FakeFeatureFactory mFeatureFactory; field in AlwaysOnVpnCurrentUserPreferenceControllerTest
54 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
66 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testUpdateState()
69 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(false); in testUpdateState()
73 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isInCompMode()).thenReturn(true); in testUpdateState()
80 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testIsAvailable()
84 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInCurrentUser()) in testIsAvailable()
DEnterprisePrivacyPreferenceControllerTest.java48 private FakeFeatureFactory mFeatureFactory; field in EnterprisePrivacyPreferenceControllerTest
55 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
65 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getDeviceOwnerOrganizationName()) in testUpdateState()
73 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getDeviceOwnerOrganizationName()) in testUpdateState()
81 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(false); in testIsAvailable()
84 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(true); in testIsAvailable()
DImePreferenceControllerTest.java47 private FakeFeatureFactory mFeatureFactory; field in ImePreferenceControllerTest
54 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
64 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testUpdateState()
72 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testIsAvailable()
76 when(mFeatureFactory.enterprisePrivacyFeatureProvider.getImeLabelIfOwnerSet()) in testIsAvailable()
DEnterpriseSetDefaultAppsPreferenceControllerTest.java60 private FakeFeatureFactory mFeatureFactory; field in EnterpriseSetDefaultAppsPreferenceControllerTest
67 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
77 when(mFeatureFactory.applicationFeatureProvider.findPersistentPreferredActivities(eq(i), in setEnterpriseSetDefaultApps()
87 when(mFeatureFactory.userFeatureProvider.getUserProfiles()).thenReturn(users); in configureUsers()
112 when(mFeatureFactory.applicationFeatureProvider.findPersistentPreferredActivities(anyInt(), in testIsAvailable()
DAlwaysOnVpnManagedProfilePreferenceControllerTest.java44 private FakeFeatureFactory mFeatureFactory; field in AlwaysOnVpnManagedProfilePreferenceControllerTest
51 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
57 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInManagedProfile()) in testIsAvailable()
61 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isAlwaysOnVpnSetInManagedProfile()) in testIsAvailable()
DGlobalHttpProxyPreferenceControllerTest.java44 private FakeFeatureFactory mFeatureFactory; field in GlobalHttpProxyPreferenceControllerTest
51 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
57 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isGlobalHttpProxySet()) in testIsAvailable()
61 when(mFeatureFactory.enterprisePrivacyFeatureProvider.isGlobalHttpProxySet()) in testIsAvailable()
DManageDeviceAdminPreferenceControllerTest.java48 private FakeFeatureFactory mFeatureFactory; field in ManageDeviceAdminPreferenceControllerTest
55 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
63 when(mFeatureFactory.enterprisePrivacyFeatureProvider in testUpdateState()
71 when(mFeatureFactory.enterprisePrivacyFeatureProvider in testUpdateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DContextualWifiSliceTest.java61 private FakeFeatureFactory mFeatureFactory; field in ContextualWifiSliceTest
67 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
68 mFeatureFactory.slicesFeatureProvider = new SlicesFeatureProviderImpl(); in setUp()
69 mFeatureFactory.slicesFeatureProvider.newUiSession(); in setUp()
96 mWifiSlice.sActiveUiSession = ~mFeatureFactory.slicesFeatureProvider.getUiSessionToken(); in getWifiSlice_newSession_hasActiveConnection_shouldReturnNull()
106 mWifiSlice.sActiveUiSession = mFeatureFactory.slicesFeatureProvider.getUiSessionToken(); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle()
145 mWifiSlice.sActiveUiSession = mFeatureFactory.slicesFeatureProvider.getUiSessionToken(); in getWifiSlice_contextualWifiSlice_shouldReturnContextualWifiSliceUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/premiumsms/
DPremiumSmsAccessTest.java37 private FakeFeatureFactory mFeatureFactory; field in PremiumSmsAccessTest
43 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
52 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
61 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
70 verify(mFeatureFactory.metricsFeatureProvider).action( in logSpecialPermissionChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java57 private FakeFeatureFactory mFeatureFactory; field in DarkThemeSliceTest
63 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
64 mFeatureFactory.slicesFeatureProvider = new SlicesFeatureProviderImpl(); in setUp()
65 mFeatureFactory.slicesFeatureProvider.newUiSession(); in setUp()
127 mFeatureFactory.slicesFeatureProvider.getUiSessionToken() + 1; in getSlice_newSession_notAvailable_returnErrorSlice()
139 mFeatureFactory.slicesFeatureProvider.getUiSessionToken(); in getSlice_previouslyDisplayed_isAvailable_returnSlice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DRestrictAppActionTest.java57 private FakeFeatureFactory mFeatureFactory; field in RestrictAppActionTest
74 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
94 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in testHandlePositiveAction()
96 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in testHandlePositiveAction()
99 verify(mFeatureFactory.metricsFeatureProvider).action(SettingsEnums.PAGE_UNKNOWN, in testHandlePositiveAction()
/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/notification/
DNotificationAccessSettingsTest.java37 private FakeFeatureFactory mFeatureFactory; field in NotificationAccessSettingsTest
43 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
50 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), in logSpecialPermissionChange()
55 verify(mFeatureFactory.metricsFeatureProvider).action(nullable(Context.class), 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/services/Telephony/tests/src/com/android/services/telephony/rcs/
DTelephonyRcsServiceTest.java52 @Mock TelephonyRcsService.FeatureFactory mFeatureFactory; field in TelephonyRcsServiceTest
69 doReturn(mFeatureControllerSlot0).when(mFeatureFactory).createController(any(), eq(0)); in setUp()
70 doReturn(mFeatureControllerSlot1).when(mFeatureFactory).createController(any(), eq(1)); in setUp()
71 doReturn(mMockUceSlot0).when(mFeatureFactory).createUserCapabilityExchange(any(), eq(0), in setUp()
73 doReturn(mMockUceSlot1).when(mFeatureFactory).createUserCapabilityExchange(any(), eq(1), in setUp()
235 service.setFeatureFactory(mFeatureFactory); in createRcsService()
/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/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/fuelgauge/
DPowerUsageSummaryTest.java139 private FakeFeatureFactory mFeatureFactory; field in PowerUsageSummaryTest
150 mFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
162 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp()
251 when(mFeatureFactory.powerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(any())) in showBothEstimates_summariesAreBothModified()
259 }).when(mFeatureFactory.powerUsageFeatureProvider).getOldEstimateDebugString(any()); in showBothEstimates_summariesAreBothModified()
266 }).when(mFeatureFactory.powerUsageFeatureProvider).getEnhancedEstimateDebugString(any()); in showBothEstimates_summariesAreBothModified()
278 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isEstimateDebugEnabled(); in debugMode()
296 when(mFeatureFactory.powerUsageFeatureProvider.isPowerAccountingToggleEnabled()) in optionsMenu_advancedPageEnabled()
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/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()
/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()

1234