Searched refs:spyContext (Results 1 – 4 of 4) sorted by relevance
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
H A D | ApplicationFeatureProviderImplTest.java | 273 Context spyContext = spy(RuntimeEnvironment.application); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() local 275 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() 277 ReflectionHelpers.setField(mProvider, "mContext", spyContext); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() 304 Context spyContext = spy(RuntimeEnvironment.application); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage() local 306 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage() 308 ReflectionHelpers.setField(mProvider, "mContext", spyContext); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage() 326 Context spyContext = spy(RuntimeEnvironment.application); in getKeepEnabledPackages_shouldContainSettingsIntelligence() local 328 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainSettingsIntelligence() 330 ReflectionHelpers.setField(mProvider, "mContext", spyContext); in getKeepEnabledPackages_shouldContainSettingsIntelligence() 348 Context spyContext = spy(RuntimeEnvironment.application); in getKeepEnabledPackages_shouldContainPackageInstaller() local [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PipControllerTest.java | 124 Context spyContext = spy(mContext); in createPip_notSupported_returnsNull() local 127 when(spyContext.getPackageManager()).thenReturn(mockPackageManager); in createPip_notSupported_returnsNull() 129 assertNull(PipController.create(spyContext, mMockDisplayController, in createPip_notSupported_returnsNull()
|
/aosp12/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/ |
H A D | DriverDistractionExperimentalFeatureServiceTest.java | 217 Context spyContext = spy(InstrumentationRegistry.getInstrumentation().getTargetContext()); in testInit_bindsToServicesInXmlConfig() local 220 Resources spyResources = spy(spyContext.getResources()); in testInit_bindsToServicesInXmlConfig() 221 doReturn(spyResources).when(spyContext).getResources(); in testInit_bindsToServicesInXmlConfig() 226 doReturn(mInputManager).when(spyContext).getSystemService(Context.INPUT_SERVICE); in testInit_bindsToServicesInXmlConfig() 235 ServiceLauncherContext serviceLauncherContext = new ServiceLauncherContext(spyContext); in testInit_bindsToServicesInXmlConfig() 238 spyContext.getMainLooper(), mHandler); in testInit_bindsToServicesInXmlConfig()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
H A D | AccessPointTest.java | 1395 Context spyContext = spy(new ContextWrapper(mContext)); in testOsuAccessPointSummary_showsProvisioningUpdates() local 1396 when(spyContext.getSystemService(Context.WIFI_SERVICE)).thenReturn(mMockWifiManager); in testOsuAccessPointSummary_showsProvisioningUpdates() 1401 AccessPoint osuAccessPoint = new AccessPoint(spyContext, provider, in testOsuAccessPointSummary_showsProvisioningUpdates()
|