Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
H A DAmbientLuxTest.java73 private Resources mResourcesSpy; field in AmbientLuxTest
98 when(mResourcesSpy.getString( in setUp()
101 when(mResourcesSpy.getInteger( in setUp()
104 when(mResourcesSpy.getInteger( in setUp()
111 when(mResourcesSpy.obtainTypedArray( in setUp()
114 when(mResourcesSpy.obtainTypedArray( in setUp()
117 when(mResourcesSpy.obtainTypedArray( in setUp()
120 when(mResourcesSpy.obtainTypedArray( in setUp()
462 when(mResourcesSpy.getInteger( in mockThrottler()
464 when(mResourcesSpy.getInteger( in mockThrottler()
[all …]
H A 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()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/utils/
H A 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()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotPersisterTestBase.java69 private Resources mResourcesSpy; field in TaskSnapshotPersisterTestBase
104 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
105 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
106 when(mResourcesSpy.getFloat( in setUp()
109 when(mResourcesSpy.getFloat( in setUp()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/dreams/
H A DDreamManagerServiceMockingTest.java56 private Resources mResourcesSpy; field in DreamManagerServiceMockingTest
79 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
80 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
H A DColorDisplayServiceTest.java86 private Resources mResourcesSpy; field in ColorDisplayServiceTest
103 mResourcesSpy = res; in setUp()
1083 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_noResources()
1085 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_noResources()
1095 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_invalidResources()
1100 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_invalidResources()
1113 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_validResources_validColorMode()
1117 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_validResources_validColorMode()
1129 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_validResources_invalidColorMode()
1133 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_validResources_invalidColorMode()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/
H A DNotifierTest.java87 private Resources mResourcesSpy; field in NotifierTest
100 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
101 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
194 when(mResourcesSpy.getBoolean( in testWirelessAnimationEnabled()
211 when(mResourcesSpy.getBoolean( in testWirelessAnimationDisabled()
H A DLowPowerStandbyControllerTest.java118 private Resources mResourcesSpy; field in LowPowerStandbyControllerTest
163 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
164 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
165 when(mResourcesSpy.getBoolean( in setUp()
168 when(mResourcesSpy.getInteger( in setUp()
171 when(mResourcesSpy.getBoolean( in setUp()
457 when(mResourcesSpy.getBoolean( in setLowPowerStandbySupportedConfig()
H A DPowerManagerServiceTest.java174 private Resources mResourcesSpy; field in PowerManagerServiceTest
227 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
228 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
234 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_dreamsSupported)) in setUp()
446 when(mResourcesSpy.getInteger( in setAttentiveWarningDuration()
452 when(mResourcesSpy.getInteger( in setMinimumScreenOffTimeoutConfig()
458 when(mResourcesSpy.getBoolean( in setDreamsDisabledByAmbientModeSuppressionConfig()
464 when(mResourcesSpy.getInteger( in setDreamsBatteryLevelDrainConfig()
761 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_unplugTurnsOnScreen)) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
766 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_unplugTurnsOnScreen)) in testWakefulnessAwake_ShouldWakeUpWhenPluggedIn()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/
H A DPowerManagerServiceMockingTest.java116 private Resources mResourcesSpy; field in PowerManagerServiceMockingTest
147 mResourcesSpy = spy(mContextSpy.getResources()); in setUp()
148 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()