Home
last modified time | relevance | path

Searched refs:mResourcesSpy (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientLuxTest.java68 private Resources mResourcesSpy; field in AmbientLuxTest
85 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
86 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
90 when(mResourcesSpy.getString( in setUp()
93 when(mResourcesSpy.getInteger( in setUp()
96 when(mResourcesSpy.getInteger( in setUp()
103 when(mResourcesSpy.obtainTypedArray( in setUp()
106 when(mResourcesSpy.obtainTypedArray( in setUp()
110 when(mResourcesSpy.obtainTypedArray( in setUp()
113 when(mResourcesSpy.obtainTypedArray( in setUp()
[all …]
DAmbientSensorTest.java65 private Resources mResourcesSpy; field in AmbientSensorTest
75 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
76 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
131 when(mResourcesSpy.getString( in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
136 mHandler, mSensorManagerMock, mResourcesSpy); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/utils/
DAmbientFilterTest.java40 private Resources mResourcesSpy; field in AmbientFilterTest
46 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
47 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
57 setMockValues(mResourcesSpy, horizon, intercept); in testBrightnessFilter_ZeroIntercept()
58 AmbientFilter filter = AmbientFilterFactory.createBrightnessFilter(TAG, mResourcesSpy); in testBrightnessFilter_ZeroIntercept()
88 setMockValues(mResourcesSpy, horizon, intercept); in testBrightnessFilter_WithIntercept()
89 AmbientFilter filter = AmbientFilterFactory.createBrightnessFilter(TAG, mResourcesSpy); in testBrightnessFilter_WithIntercept()
118 }).when(mResourcesSpy).getValue( in setMockValues()
122 when(mResourcesSpy.getInteger( in setMockValues()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java67 private Resources mResourcesSpy; field in TaskSnapshotPersisterTestBase
101 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
102 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
103 when(mResourcesSpy.getFloat( in setUp()
106 when(mResourcesSpy.getFloat( in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DNotifierTest.java79 private Resources mResourcesSpy; field in NotifierTest
91 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
92 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
180 when(mResourcesSpy.getBoolean( in testWirelessAnimationEnabled()
196 when(mResourcesSpy.getBoolean( in testWirelessAnimationDisabled()
DPowerManagerServiceTest.java146 private Resources mResourcesSpy; field in PowerManagerServiceTest
199 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
200 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
363 when(mResourcesSpy.getInteger( in setAttentiveWarningDuration()
369 when(mResourcesSpy.getInteger( in setMinimumScreenOffTimeoutConfig()
513 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_unplugTurnsOnScreen)) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
518 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_unplugTurnsOnScreen)) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
554 when(mResourcesSpy.getBoolean( in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
DColorDisplayServiceTest.java83 private Resources mResourcesSpy; field in ColorDisplayServiceTest
96 mResourcesSpy = Mockito.spy(mContext.getResources()); in setUp()
97 when(mContext.getResources()).thenReturn(mResourcesSpy); in setUp()
1070 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_noResources()
1072 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_noResources()
1085 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_invalidResources()
1090 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_invalidResources()
1106 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_validResources_validColorMode()
1110 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_validResources_validColorMode()
1125 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_validResources_invalidColorMode()
[all …]