Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBroadcastReceiverTest.java49 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/
DAppManagementFragmentTest.java52 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()
DVpnSettingsTest.java94 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/
DBrandedAccountPreferenceControllerTest.java49 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/
DBatteryDefenderDetectorTest.java44 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/
DDashboardFragmentTest.java96 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/
DSearchIndexableResourcesTest.java48 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()
DSettingsSearchIndexablesProviderTest.java56 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/
DPanelFragmentTest.java73 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()
DSettingsPanelActivityTest.java69 private FakeFeatureFactory mFakeFeatureFactory; field in SettingsPanelActivityTest
84 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
88 mFakeFeatureFactory.panelFeatureProvider = mPanelFeatureProvider; in setUp()
DPanelSlicesAdapterTest.java82 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/
DWorkPolicyInfoPreferenceControllerTest.java48 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/
DNfcForegroundPreferenceControllerTest.java68 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/
DSliceDataConverterTest.java75 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()
DSliceControllerInXmlCodeInspector.java67 private final FakeFeatureFactory mFakeFeatureFactory; field in SliceControllerInXmlCodeInspector
73 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in SliceControllerInXmlCodeInspector()
74 mFakeFeatureFactory.searchFeatureProvider = mSearchProvider; in SliceControllerInXmlCodeInspector()
DSliceBroadcastReceiverTest.java64 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/
DContextualCardLoaderTest.java56 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/
DFaceEnrollEducationTest.java72 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()
DFaceEnrollIntroductionTest.java127 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/
DSliceControllerInXmlCodeInspector.java67 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/
DSetupChooseLockGenericTest.java76 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()
DSetupSkipDialogTest.java65 private FakeFeatureFactory mFakeFeatureFactory; field in SetupSkipDialogTest
71 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
74 when(mFakeFeatureFactory.mFaceFeatureProvider.isSetupWizardSupported(any())).thenReturn( in setUp()
DChooseLockGenericTest.java110 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/
DBluetoothDevicePreferenceTest.java93 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/
DAddAppNetworksFragmentTest.java92 private FakeFeatureFactory mFakeFeatureFactory; field in AddAppNetworksFragmentTest
118 mFakeFeatureFactory = FakeFeatureFactory.setupForTest(); in setUp()
552 when(mFakeFeatureFactory.wifiTrackerLibProvider.createWifiPickerTracker( in setupFragment()