/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageBroadcastReceiverTest.java | 49 private FakeFeatureFactory mFakeFeatureFactory; field in BatteryUsageBroadcastReceiverTest 57 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 82 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNotFullCharged_notFetchUsageData() 84 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNotFullCharged_notFetchUsageData() 99 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNearBooting_notFetchUsageData() 101 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNearBooting_notFetchUsageData() 120 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospWrongAction_notFetchUsageData() 122 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospWrongAction_notFetchUsageData() 140 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNormal_fetchUsageData() 142 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNormal_fetchUsageData() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | AppManagementFragmentTest.java | 52 private FakeFeatureFactory mFakeFeatureFactory; field in AppManagementFragmentTest 66 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 68 mFakeFeatureFactory.getAdvancedVpnFeatureProvider(), mPreferenceForget); in setUp() 69 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.getAdvancedVpnPackageName()) in setUp() 71 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnSupported(any())) in setUp() 77 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnRemovable()) in updateRestrictedViews_isAdvancedVpn_hidesForgetPreference() 85 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnRemovable()) in updateRestrictedViews_isNotAdvancedVpn_showsForgetPreference() 88 mFakeFeatureFactory.getAdvancedVpnFeatureProvider(), mPreferenceForget); in updateRestrictedViews_isNotAdvancedVpn_showsForgetPreference() 95 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnRemovable()) in updateRestrictedViews_isAdvancedVpnRemovable_showsForgetPreference() 98 mFakeFeatureFactory.getAdvancedVpnFeatureProvider(), mPreferenceForget); in updateRestrictedViews_isAdvancedVpnRemovable_showsForgetPreference()
|
D | VpnSettingsTest.java | 94 private FakeFeatureFactory mFakeFeatureFactory; field in VpnSettingsTest 113 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 114 mVpnSettings.init(mPreferenceScreen, mFakeFeatureFactory.getAdvancedVpnFeatureProvider()); in setUp() 117 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider in setUp() 119 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.getVpnPreferenceGroupTitle(mContext)) in setUp() 121 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.getAdvancedVpnPackageName()) in setUp() 123 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnSupported(any())) in setUp() 179 mFakeFeatureFactory.getAdvancedVpnFeatureProvider(), in getVpnApps_isAdvancedVpn_returnsOne() 192 when(mFakeFeatureFactory.mAdvancedVpnFeatureProvider.isAdvancedVpnSupported(any())) in getVpnApps_isNotAdvancedVpn_returnsEmpty() 196 mFakeFeatureFactory.getAdvancedVpnFeatureProvider(), in getVpnApps_isNotAdvancedVpn_returnsEmpty() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/ |
D | BrandedAccountPreferenceControllerTest.java | 49 private FakeFeatureFactory mFakeFeatureFactory; field in BrandedAccountPreferenceControllerTest 58 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 83 when(mFakeFeatureFactory.mAccountFeatureProvider.getAccounts(any(Context.class))) in isAvailable_accountIsAvailable_on() 99 when(mFakeFeatureFactory.mAccountFeatureProvider.getAccounts(any(Context.class))) in isAvailable_configOff_hasAccount_off() 113 when(mFakeFeatureFactory.mAccountFeatureProvider.getAccounts(any(Context.class))) in displayPreference_hasOneAccount_showAccount() 132 when(mFakeFeatureFactory.mAccountFeatureProvider.getAccounts(any(Context.class))) in displayPreference_hasTwoAccounts_showTwoAccountSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | BatteryDefenderDetectorTest.java | 44 private FakeFeatureFactory mFakeFeatureFactory; field in BatteryDefenderDetectorTest 51 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 56 when(mFakeFeatureFactory.powerUsageFeatureProvider.isBatteryDefend(mBatteryInfo)) in detect_notBatteryDefend_tipInvisible() 64 when(mFakeFeatureFactory.powerUsageFeatureProvider.isBatteryDefend(mBatteryInfo)) in detect_isBatteryDefend_tipNew()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFragmentTest.java | 96 private FakeFeatureFactory mFakeFeatureFactory; field in DashboardFragmentTest 112 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 128 when(mFakeFeatureFactory.dashboardFeatureProvider in setUp() 177 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_shouldAddTilesWithIntent() 180 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_shouldAddTilesWithIntent() 183 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_shouldAddTilesWithIntent() 214 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_withGroup_shouldAddTilesIntoGroup() 217 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_withGroup_shouldAddTilesIntoGroup() 246 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_shouldNotAddSuppressedTiles() 249 when(mFakeFeatureFactory.dashboardFeatureProvider in displayTilesAsPreference_shouldNotAddSuppressedTiles() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | SearchIndexableResourcesTest.java | 48 private FakeFeatureFactory mFakeFeatureFactory; field in SearchIndexableResourcesTest 53 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 54 mFakeFeatureFactory.searchFeatureProvider = mSearchProvider; in setUp() 59 mFakeFeatureFactory.searchFeatureProvider = mock(SearchFeatureProvider.class); in cleanUp()
|
D | SettingsSearchIndexablesProviderTest.java | 56 private FakeFeatureFactory mFakeFeatureFactory; field in SettingsSearchIndexablesProviderTest 74 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 75 mFakeFeatureFactory.searchFeatureProvider = featureProvider; in setUp() 83 when(mFakeFeatureFactory.dashboardFeatureProvider.getAllCategories()) in setUp() 92 mFakeFeatureFactory.searchFeatureProvider = mock(SearchFeatureProvider.class); in cleanUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | PanelFragmentTest.java | 73 private FakeFeatureFactory mFakeFeatureFactory; field in PanelFragmentTest 86 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 87 mFakeFeatureFactory.panelFeatureProvider = mPanelFeatureProvider; in setUp() 122 verify(mFakeFeatureFactory.metricsFeatureProvider).action( in onCreate_logsOpenEvent() 134 verify(mFakeFeatureFactory.metricsFeatureProvider).action( in onDestroy_logCloseEvent() 150 verify(mFakeFeatureFactory.metricsFeatureProvider).action( in panelSeeMoreClick_logsCloseEvent() 167 verify(mFakeFeatureFactory.metricsFeatureProvider).action( in panelDoneClick_logsCloseEvent()
|
D | SettingsPanelActivityTest.java | 69 private FakeFeatureFactory mFakeFeatureFactory; field in SettingsPanelActivityTest 84 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 88 mFakeFeatureFactory.panelFeatureProvider = mPanelFeatureProvider; in setUp()
|
D | PanelSlicesAdapterTest.java | 82 private FakeFeatureFactory mFakeFeatureFactory; field in PanelSlicesAdapterTest 91 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 92 mFakeFeatureFactory.panelFeatureProvider = mPanelFeatureProvider; in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | WorkPolicyInfoPreferenceControllerTest.java | 48 private FakeFeatureFactory mFakeFeatureFactory; field in WorkPolicyInfoPreferenceControllerTest 55 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 56 mEnterpriseProvider = mFakeFeatureFactory.getEnterprisePrivacyFeatureProvider(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcForegroundPreferenceControllerTest.java | 68 private FakeFeatureFactory mFakeFeatureFactory; field in NfcForegroundPreferenceControllerTest 75 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 180 verify(mFakeFeatureFactory.metricsFeatureProvider).action(mContext, in changeOptions_checkMetrics() 186 verify(mFakeFeatureFactory.metricsFeatureProvider).action(mContext, in changeOptions_checkMetrics()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceDataConverterTest.java | 75 private FakeFeatureFactory mFakeFeatureFactory; field in SliceDataConverterTest 82 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 83 mFakeFeatureFactory.searchFeatureProvider = mSearchFeatureProvider; in setUp() 88 mFakeFeatureFactory.searchFeatureProvider = mock(SearchFeatureProvider.class); in cleanUp()
|
D | SliceControllerInXmlCodeInspector.java | 67 private final FakeFeatureFactory mFakeFeatureFactory; field in SliceControllerInXmlCodeInspector 73 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in SliceControllerInXmlCodeInspector() 74 mFakeFeatureFactory.searchFeatureProvider = mSearchProvider; in SliceControllerInXmlCodeInspector()
|
D | SliceBroadcastReceiverTest.java | 64 private FakeFeatureFactory mFakeFeatureFactory; field in SliceBroadcastReceiverTest 74 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 75 mFakeFeatureFactory.searchFeatureProvider = mSearchFeatureProvider; in setUp() 106 verify(mFakeFeatureFactory.metricsFeatureProvider) in onReceive_toggleChanged() 195 verify(mFakeFeatureFactory.metricsFeatureProvider) in onReceive_sliderChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardLoaderTest.java | 56 private FakeFeatureFactory mFakeFeatureFactory; field in ContextualCardLoaderTest 62 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 126 verify(mFakeFeatureFactory.metricsFeatureProvider).action(any(), in getDisplayableCards_refreshCardUri_shouldLogContextualCard() 136 verify(mFakeFeatureFactory.metricsFeatureProvider, never()).action(any(), in getDisplayableCards_deleteCardUri_shouldNotLogContextualCard()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/ |
D | FaceEnrollEducationTest.java | 72 private FakeFeatureFactory mFakeFeatureFactory; field in FaceEnrollEducationTest 86 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 101 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())).thenReturn( in setupActivityForPosture() 116 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())).thenReturn( in setupActivity()
|
D | FaceEnrollIntroductionTest.java | 127 private FakeFeatureFactory mFakeFeatureFactory; field in FaceEnrollIntroductionTest 189 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 191 when(mFakeFeatureFactory.securityFeatureProvider.getLockPatternUtils(any(Context.class))) in setUp() 209 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())).thenReturn( in setupActivity() 235 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())).thenReturn( in setupActivityForPosture() 580 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())) in testFaceEnrollIntroduction_hasPostureCallback() 598 when(mFakeFeatureFactory.mFaceFeatureProvider.getPostureGuidanceIntent(any())) in testFaceEnrollIntroduction_maxFacesEnrolled_noPostureCallback()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/ |
D | SliceControllerInXmlCodeInspector.java | 67 private final FakeFeatureFactory mFakeFeatureFactory; field in SliceControllerInXmlCodeInspector 73 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in SliceControllerInXmlCodeInspector() 74 mFakeFeatureFactory.searchFeatureProvider = mSearchProvider; in SliceControllerInXmlCodeInspector()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetupChooseLockGenericTest.java | 76 private FakeFeatureFactory mFakeFeatureFactory; field in SetupChooseLockGenericTest 86 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 145 when(mFakeFeatureFactory.mFaceFeatureProvider.isSetupWizardSupported(any())).thenReturn( in updatePreferenceTextShowScreenLockAndShowFaceAndShowFingerprint() 171 when(mFakeFeatureFactory.mFaceFeatureProvider.isSetupWizardSupported(any())).thenReturn( in updatePreferenceTextShowScreenLockAndShowFingerprint()
|
D | SetupSkipDialogTest.java | 65 private FakeFeatureFactory mFakeFeatureFactory; field in SetupSkipDialogTest 71 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 74 when(mFakeFeatureFactory.mFaceFeatureProvider.isSetupWizardSupported(any())).thenReturn( in setUp()
|
D | ChooseLockGenericTest.java | 110 private FakeFeatureFactory mFakeFeatureFactory; field in ChooseLockGenericTest 120 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 134 when(mFakeFeatureFactory.mFaceFeatureProvider.isSetupWizardSupported(any())).thenReturn( in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 93 private FakeFeatureFactory mFakeFeatureFactory; field in BluetoothDevicePreferenceTest 103 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 104 mMetricsFeatureProvider = mFakeFeatureFactory.getMetricsFeatureProvider(); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/ |
D | AddAppNetworksFragmentTest.java | 92 private FakeFeatureFactory mFakeFeatureFactory; field in AddAppNetworksFragmentTest 118 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp() 552 when(mFakeFeatureFactory.wifiTrackerLibProvider.createWifiPickerTracker( in setupFragment()
|