Home
last modified time | relevance | path

Searched refs:mResource (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaskThumbnailCacheTest.java49 private Resources mResource; field in TaskThumbnailCacheTest
57 when(mContext.getResources()).thenReturn(mResource); in setup()
64 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(8); in increaseCacheSize()
77 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(3); in decreaseCacheSize()
88 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(3); in keepSameCacheSize()
DTaskViewTest.java54 private Resources mResource; field in TaskViewTest
64 when(mResource.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class)); in setup()
65 when(mResource.getConfiguration()).thenReturn(new Configuration()); in setup()
67 when(mContext.getResources()).thenReturn(mResource); in setup()
DRecentsModelTest.java76 private Resources mResource; field in RecentsModelTest
99 mResource = mock(Resources.class); in setup()
100 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(3); in setup()
101 when(mContext.getResources()).thenReturn(mResource); in setup()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DApplicationSelfCertifiedNetworkCapabilitiesTest.kt35 private val mResource = InstrumentationRegistry.getContext().getResources() constant in com.android.server.connectivity.ApplicationSelfCertifiedNetworkCapabilitiesTest
50 val parser = mResource.getXml( in parseXmlWithWrongTag_shouldIgnoreWrongTag()
60 val parser = mResource.getXml( in parseXmlWithWrongDeclaration_shouldThrowException()
71 val parser = mResource.getXml(R.xml.self_certified_capabilities_other) in checkIfSelfCertifiedNetworkCapabilitiesDeclared_shouldThrowExceptionWhenNoDeclaration()
89 val parser = mResource.getXml(R.xml.self_certified_capabilities_both) in checkIfSelfCertifiedNetworkCapabilitiesDeclared_shouldPassIfDeclarationExist()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DThroughputPredictorTest.java54 private MockResources mResource = new MockResources(); field in ThroughputPredictorTest
84 when(mResource.getBoolean( in setUp()
87 when(mResource.getInteger( in setUp()
90 when(mContext.getResources()).thenReturn(mResource); in setUp()
104 when(mResource.getBoolean(R.bool.config_wifiEnable6GhzBeaconRssiBoost)).thenReturn(false); in verify6GhzRssiBoost()
116 when(mResource.getBoolean(R.bool.config_wifiEnable6GhzBeaconRssiBoost)).thenReturn(true); in verify6GhzRssiBoost()
173 when(mResource.getBoolean( in verifyHighRssiMinChannelUtilizationAc5g80Mhz2ssOverriddenTo1ss()
176 when(mResource.getInteger( in verifyHighRssiMinChannelUtilizationAc5g80Mhz2ssOverriddenTo1ss()
204 when(mResource.getBoolean( in verifyHighRssiMinChannelUtilizationAx5g160Mhz4ssOverriddenTo2ss()
DWifiNetworkSelectorTest.java317 @Spy private MockResources mResource = new MockResources(); field in WifiNetworkSelectorTest
343 when(mContext.getResources()).thenReturn(mResource); in setupContext()
348 doReturn(value).when(mResource).getInteger(resourceName); in setupIntegerResource()
353 doReturn(true).when(mResource).getBoolean( in setupResources()
358 doReturn(false).when(mResource).getBoolean(R.bool.config_wifi11axSupportOverride); in setupResources()
2765 doReturn(false).when(mResource).getBoolean( in networkSelectionNotPerformedWhenAllCmmIsSufficient()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePairingDetailBaseTest.java73 private Resources mResource; field in BluetoothDevicePairingDetailBaseTest
99 doReturn(mResource).when(mFragment).getResources(); in setUp()
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecService.java213 private final T mResource; field in IpSecService.RefcountedResource
220 this.mResource = resource; in RefcountedResource()
255 return mResource; in getResource()
280 mResource.invalidate(); in userRelease()
308 mResource.freeUnderlyingResources(); in releaseReference()
325 .append(mResource) in toString()