/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenBrightnessTest.java | 58 DozeScreenBrightness mScreen; field in DozeScreenBrightnessTest 72 mScreen = new DozeScreenBrightness(mContext, mServiceFake, mSensorManager, in setUp() 80 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testInitialize_setsScreenBrightnessToValidValue() 88 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesLightSensor() 89 mScreen.transitionTo(INITIALIZED, DOZE_AOD); in testAod_usesLightSensor() 98 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesDebugValue() 99 mScreen.transitionTo(INITIALIZED, DOZE_AOD); in testAod_usesDebugValue() 103 mScreen.onReceive(mContext, intent); in testAod_usesDebugValue() 116 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesLightSensorRespectingUserSetting() 122 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testPausingAod_doesntPauseLightSensor() [all …]
|
D | DozeScreenStateTest.java | 57 DozeScreenState mScreen; field in DozeScreenStateTest 71 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeParameters, mWakeLock); in setUp() 76 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_offInDoze() 77 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_offInDoze() 84 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_onInAod() 85 mScreen.transitionTo(INITIALIZED, DOZE_AOD); in testScreen_onInAod() 92 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_onInPulse() 93 mScreen.transitionTo(INITIALIZED, DOZE); in testScreen_onInPulse() 95 mScreen.transitionTo(DOZE, DOZE_REQUEST_PULSE); in testScreen_onInPulse() 96 mScreen.transitionTo(DOZE_REQUEST_PULSE, DOZE_PULSING); in testScreen_onInPulse() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | ScreenLifecycleTest.java | 41 private ScreenLifecycle mScreen; field in ScreenLifecycleTest 46 mScreen = new ScreenLifecycle(); in setUp() 48 mScreen.addObserver(mScreenObserverMock); in setUp() 53 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in baseState() 59 mScreen.dispatchScreenTurningOn(); in screenTurningOn() 61 assertEquals(ScreenLifecycle.SCREEN_TURNING_ON, mScreen.getScreenState()); in screenTurningOn() 67 mScreen.dispatchScreenTurningOn(); in screenTurnedOn() 68 mScreen.dispatchScreenTurnedOn(); in screenTurnedOn() 70 assertEquals(ScreenLifecycle.SCREEN_ON, mScreen.getScreenState()); in screenTurnedOn() 76 mScreen.dispatchScreenTurningOn(); in screenTurningOff() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | FooterPreferenceMixinCompatTest.java | 48 private PreferenceScreen mScreen; field in FooterPreferenceMixinCompatTest 72 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in createFooter_screenAvailable_canAttachToScreen() 77 verify(mScreen).addPreference(preference); in createFooter_screenAvailable_canAttachToScreen() 84 mLifecycle.setPreferenceScreen(mScreen); in createFooter_screenAvailableDelayed_canAttachToScreen() 87 verify(mScreen).addPreference(preference); in createFooter_screenAvailableDelayed_canAttachToScreen() 92 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in createFooterTwice_screenAvailable_replaceOldFooter() 97 verify(mScreen).removePreference(any(FooterPreference.class)); in createFooterTwice_screenAvailable_replaceOldFooter() 98 verify(mScreen, times(2)).addPreference(any(FooterPreference.class)); in createFooterTwice_screenAvailable_replaceOldFooter()
|
D | FooterPreferenceMixinTest.java | 48 private PreferenceScreen mScreen; field in FooterPreferenceMixinTest 72 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in createFooter_screenAvailable_canAttachToScreen() 77 verify(mScreen).addPreference(preference); in createFooter_screenAvailable_canAttachToScreen() 84 mLifecycle.setPreferenceScreen(mScreen); in createFooter_screenAvailableDelayed_canAttachToScreen() 87 verify(mScreen).addPreference(preference); in createFooter_screenAvailableDelayed_canAttachToScreen() 92 when(mFragment.getPreferenceScreen()).thenReturn(mScreen); in createFooterTwice_screenAvailable_replaceOldFooter() 97 verify(mScreen).removePreference(any(FooterPreference.class)); in createFooterTwice_screenAvailable_replaceOldFooter() 98 verify(mScreen, times(2)).addPreference(any(FooterPreference.class)); in createFooterTwice_screenAvailable_replaceOldFooter()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/ |
D | AbstractPreferenceControllerTest.java | 41 private PreferenceScreen mScreen; field in AbstractPreferenceControllerTest 53 when(mScreen.findPreference(KEY_PREF)).thenReturn(mPreference); in setUp() 61 mTestPrefController.displayPreference(mScreen); in displayPref_ifAvailable() 70 mTestPrefController.displayPreference(mScreen); in displayPref_noKey_shouldDoNothing() 77 mTestPrefController.setVisible(mScreen, KEY_PREF, true /* visible */); in setVisible_prefIsVisible_shouldSetToVisible() 84 mTestPrefController.setVisible(mScreen, KEY_PREF, false /* visible */); in setVisible_prefNotVisible_shouldSetToInvisible() 93 mTestPrefController.displayPreference(mScreen); in doNotDisplayPref_ifNotAvailable()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/ |
D | EnableAdbPreferenceControllerTest.java | 47 private PreferenceScreen mScreen; field in EnableAdbPreferenceControllerTest 67 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp() 74 mController.displayPreference(mScreen); in displayPreference_isNotAdmin_shouldRemovePreference() 83 mController.displayPreference(mScreen); in displayPreference_isAdmin_shouldNotRemovePreference() 91 mController.displayPreference(mScreen); in resetPreference_shouldUncheck() 105 mController.displayPreference(mScreen); in handlePreferenceTreeClick_shouldUpdateSettings() 118 mController.displayPreference(mScreen); in handlePreferenceTreeClick_isMonkeyUser_shouldBeFalse() 131 mController.displayPreference(mScreen); in updateState_settingsOn_shouldCheck() 144 mController.displayPreference(mScreen); in updateState_settingsOff_shouldUncheck()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
D | SurfaceRenderFilter.java | 66 private GLFrame mScreen; field in SurfaceRenderFilter 124 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat, in prepare() 181 mProgram.process(gpuFrame, mScreen); in process() 203 if (mScreen != null) { in tearDown() 204 mScreen.release(); in tearDown() 220 if (mScreen != null) { in surfaceChanged() 223 mScreen.setViewport(0, 0, mScreenWidth, mScreenHeight); in surfaceChanged()
|
D | SurfaceTargetFilter.java | 73 private GLFrame mScreen; field in SurfaceTargetFilter 129 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat, in prepare() 173 mProgram.process(gpuFrame, mScreen); in process() 185 mScreen.setViewport(0, 0, mScreenWidth, mScreenHeight); in fieldPortValueUpdated() 196 if (mScreen != null) { in tearDown() 197 mScreen.release(); in tearDown()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | SerialNumberPreferenceControllerTest.java | 40 private PreferenceScreen mScreen; field in SerialNumberPreferenceControllerTest 52 when(mScreen.findPreference(mPreference.getKey())).thenReturn(mPreference); in setUp() 73 mController.displayPreference(mScreen); in testDisplay_noSerial_shouldHidePreference() 83 mController.displayPreference(mScreen); in testDisplay_hasSerial_shouldSetSummary()
|
D | UptimePreferenceControllerTest.java | 48 private PreferenceScreen mScreen; field in UptimePreferenceControllerTest 55 doReturn(mPreference).when(mScreen) in setUp() 64 uptimePreferenceController.displayPreference(mScreen); in testDisplayPreference() 76 uptimePreferenceController.displayPreference(mScreen); in testUptimeTick()
|
D | WifiMacAddressPreferenceControllerTest.java | 54 private PreferenceScreen mScreen; field in WifiMacAddressPreferenceControllerTest 73 doReturn(mPreference).when(mScreen) in setUp() 97 mController.displayPreference(mScreen); in updateConnectivity_null_setMacUnavailable() 106 mController.displayPreference(mScreen); in updateConnectivity_validMac_setValidMac()
|
D | IpAddressPreferenceControllerTest.java | 49 private PreferenceScreen mScreen; field in IpAddressPreferenceControllerTest 56 doReturn(mPreference).when(mScreen) in setUp()
|
D | BluetoothAddressPreferenceControllerTest.java | 48 private PreferenceScreen mScreen; field in BluetoothAddressPreferenceControllerTest 55 doReturn(mPreference).when(mScreen) in setUp()
|
D | ImsStatusPreferenceControllerTest.java | 49 private PreferenceScreen mScreen; field in ImsStatusPreferenceControllerTest 56 doReturn(mPreference).when(mScreen) in setUp()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
D | MediaEncoderFilter.java | 161 private GLFrame mScreen; field in MediaEncoderFilter 308 mScreen = (GLFrame)context.getFrameManager().newBoundFrame( in startRecording() 405 mProgram.process(input, mScreen); in process() 435 mScreen.release(); in stopRecording() 436 mScreen = null; in stopRecording() 459 if (mScreen != null) { in tearDown() 460 mScreen.release(); in tearDown()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | SurfaceTextureTarget.java | 89 private GLFrame mScreen; field in SurfaceTextureTarget 147 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat, in prepare() 241 mProgram.process(gpuFrame, mScreen); in process() 261 if (mScreen != null) { in tearDown() 262 mScreen.release(); in tearDown()
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
D | PowerProfile.java | 97 private final ScreenProfile mScreen = new ScreenProfile(); field in PowerProfile.Parser 153 mResult.mComponents.put(Component.SCREEN, mScreen); in parse() 167 mScreen.ambientMa = value; in onItem() 199 mScreen.onMa = value; in onItem() 201 mScreen.fullMa = value; in onItem()
|