/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/ |
D | AmbientLuxTest.java | 76 private Resources mResourcesSpy; field in AmbientLuxTest 103 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 104 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp() 108 when(mResourcesSpy.getString( in setUp() 111 when(mResourcesSpy.getInteger( in setUp() 114 when(mResourcesSpy.getInteger( in setUp() 125 when(mResourcesSpy.obtainTypedArray( in setUp() 128 when(mResourcesSpy.obtainTypedArray( in setUp() 131 when(mResourcesSpy.obtainTypedArray( in setUp() 134 when(mResourcesSpy.obtainTypedArray( in setUp() [all …]
|
D | AmbientSensorTest.java | 65 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/displayservicetests/src/com/android/server/display/utils/ |
D | AmbientFilterTest.java | 40 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/ |
D | TaskSnapshotPersisterTestBase.java | 69 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()
|
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/ |
D | DreamManagerServiceMockingTest.java | 58 private Resources mResourcesSpy; field in DreamManagerServiceMockingTest 80 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 81 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/ |
D | ColorDisplayServiceTest.java | 91 private Resources mResourcesSpy; field in ColorDisplayServiceTest 115 mResourcesSpy = res; in setUp() 1016 doReturn(true).when(mResourcesSpy).getBoolean( in ensureRbcDisabledWhenEvenDimmerEnabled() 1018 doReturn(true).when(mResourcesSpy).getBoolean( in ensureRbcDisabledWhenEvenDimmerEnabled() 1102 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_noResources() 1104 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_noResources() 1114 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_invalidResources() 1119 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_invalidResources() 1132 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorModes)) in compositionColorSpaces_validResources_validColorMode() 1136 when(mResourcesSpy.getIntArray(R.array.config_displayCompositionColorSpaces)) in compositionColorSpaces_validResources_validColorMode() [all …]
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | NotifierTest.java | 89 private Resources mResourcesSpy; field in NotifierTest 102 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 103 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp() 198 when(mResourcesSpy.getBoolean( in testWirelessAnimationEnabled() 215 when(mResourcesSpy.getBoolean( in testWirelessAnimationDisabled()
|
D | LowPowerStandbyControllerTest.java | 123 private Resources mResourcesSpy; field in LowPowerStandbyControllerTest 169 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 170 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp() 171 when(mResourcesSpy.getBoolean( in setUp() 174 when(mResourcesSpy.getInteger( in setUp() 177 when(mResourcesSpy.getBoolean( in setUp() 512 when(mResourcesSpy.getBoolean( in setLowPowerStandbySupportedConfig()
|
D | PowerManagerServiceTest.java | 194 private Resources mResourcesSpy; field in PowerManagerServiceTest 252 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 253 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp() 260 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_dreamsSupported)) in setUp() 262 when(mResourcesSpy.getBoolean(com.android.internal.R.bool.config_dreamsEnabledByDefault)) in setUp() 463 when(mResourcesSpy.getInteger( in setAttentiveWarningDuration() 469 when(mResourcesSpy.getInteger( in setMinimumScreenOffTimeoutConfig() 475 when(mResourcesSpy.getBoolean( in setDreamsDisabledByAmbientModeSuppressionConfig() 481 when(mResourcesSpy.getInteger( in setDreamsBatteryLevelDrainConfig() 492 when(mResourcesSpy.getBoolean( in setBatterySaverSupported() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | WindowWakeUpPolicyTests.java | 93 private Resources mResourcesSpy; field in WindowWakeUpPolicyTests 100 mResourcesSpy = spy(mContextSpy.getResources()); in setUp() 101 when(mContextSpy.getResources()).thenReturn(mResourcesSpy); in setUp() 357 when(mResourcesSpy.getBoolean(resId)).thenReturn(val); in setBooleanRes()
|