Home
last modified time | relevance | path

Searched refs:mockResources (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java392 Resources mockResources = mock(Resources.class); in createResources() local
396 when(mockResources.getIntArray(com.android.internal.R.array.config_autoBrightnessLevels)) in createResources()
399 when(mockResources.getIntArray( in createResources()
404 when(mockResources.obtainTypedArray( in createResources()
409 when(mockResources.obtainTypedArray( in createResources()
413 when(mockResources.getIntArray( in createResources()
417 when(mockResources.getInteger( in createResources()
420 when(mockResources.getInteger( in createResources()
423 when(mockResources.getFraction( in createResources()
426 return mockResources; in createResources()
/frameworks/base/core/tests/coretests/src/android/os/
DVibrationEffectTest.java169 Resources mockResources = mock(Resources.class);
170 when(mockResources.getStringArray(R.array.config_ringtoneEffectUris))
172 return mockResources;
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityGestureDetectorTest.java58 Resources mockResources = mock(Resources.class); in setUp() local
59 when(mockResources.getDisplayMetrics()).thenReturn(displayMetricsMock); in setUp()
61 when(contextMock.getResources()).thenReturn(mockResources); in setUp()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DCrossProfileAppsTest.java81 public void mockResources() { in mockResources() method in CrossProfileAppsTest
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java1401 Resources mockResources = mContext.getResources(); in testSetPsNotifications() local
1402 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetPsNotifications()
1433 Resources mockResources = mContext.getResources(); in testSetCsNotifications() local
1434 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNotifications()
1466 Resources mockResources = mContext.getResources(); in testSetCsNormalNotifications() local
1467 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNormalNotifications()
1498 Resources mockResources = mContext.getResources(); in testSetCsEmergencyNotifications() local
1499 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsEmergencyNotifications()
1532 Resources mockResources = mContext.getResources(); in testSetNotificationsForGroupedSubs() local
1533 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetNotificationsForGroupedSubs()