Searched refs:mockResources (Results 1 – 5 of 5) sorted by relevance
392 Resources mockResources = mock(Resources.class); in createResources() local396 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()
169 Resources mockResources = mock(Resources.class);170 when(mockResources.getStringArray(R.array.config_ringtoneEffectUris))172 return mockResources;
58 Resources mockResources = mock(Resources.class); in setUp() local59 when(mockResources.getDisplayMetrics()).thenReturn(displayMetricsMock); in setUp()61 when(contextMock.getResources()).thenReturn(mockResources); in setUp()
81 public void mockResources() { in mockResources() method in CrossProfileAppsTest
1401 Resources mockResources = mContext.getResources(); in testSetPsNotifications() local1402 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetPsNotifications()1433 Resources mockResources = mContext.getResources(); in testSetCsNotifications() local1434 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNotifications()1466 Resources mockResources = mContext.getResources(); in testSetCsNormalNotifications() local1467 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsNormalNotifications()1498 Resources mockResources = mContext.getResources(); in testSetCsEmergencyNotifications() local1499 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetCsEmergencyNotifications()1532 Resources mockResources = mContext.getResources(); in testSetNotificationsForGroupedSubs() local1533 when(mockResources.getDrawable(anyInt(), any())).thenReturn(mockDrawable); in testSetNotificationsForGroupedSubs()