/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDetectionJobServiceTest.java | 106 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 …]
|
D | BatteryManagerPreferenceControllerTest.java | 50 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/ |
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 82 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 …]
|
D | AlwaysOnVpnCurrentUserPreferenceControllerTest.java | 47 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()
|
D | EnterprisePrivacyPreferenceControllerTest.java | 48 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()
|
D | ImePreferenceControllerTest.java | 47 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()
|
D | EnterpriseSetDefaultAppsPreferenceControllerTest.java | 60 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()
|
D | AlwaysOnVpnManagedProfilePreferenceControllerTest.java | 44 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()
|
D | GlobalHttpProxyPreferenceControllerTest.java | 44 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()
|
D | ManageDeviceAdminPreferenceControllerTest.java | 48 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/ |
D | ContextualWifiSliceTest.java | 61 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/ |
D | PremiumSmsAccessTest.java | 37 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/ |
D | DarkThemeSliceTest.java | 57 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/ |
D | RestrictAppActionTest.java | 57 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/ |
D | VrListenerSettingsTest.java | 33 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/ |
D | NotificationAccessSettingsTest.java | 37 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/ |
D | WriteSettingsDetailsTest.java | 37 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()
|
D | DrawOverlayDetailsTest.java | 41 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/ |
D | TelephonyRcsServiceTest.java | 52 @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/ |
D | SupportPreferenceControllerTest.java | 44 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/ |
D | UsageAccessDetailsTest.java | 41 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/ |
D | PowerUsageSummaryTest.java | 139 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()
|
D | AutoRestrictionPreferenceControllerTest.java | 46 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/ |
D | PictureInPictureDetailsTest.java | 38 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/ |
D | ChangeWifiStateDetailsTest.java | 43 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()
|