Home
last modified time | relevance | path

Searched refs:mScreen (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java58 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 …]
DDozeScreenStateTest.java57 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/
DScreenLifecycleTest.java41 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/
DFooterPreferenceMixinCompatTest.java48 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()
DFooterPreferenceMixinTest.java48 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/
DAbstractPreferenceControllerTest.java41 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/
DEnableAdbPreferenceControllerTest.java47 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/
DSurfaceRenderFilter.java66 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()
DSurfaceTargetFilter.java73 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/
DSerialNumberPreferenceControllerTest.java40 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()
DUptimePreferenceControllerTest.java48 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()
DWifiMacAddressPreferenceControllerTest.java54 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()
DIpAddressPreferenceControllerTest.java49 private PreferenceScreen mScreen; field in IpAddressPreferenceControllerTest
56 doReturn(mPreference).when(mScreen) in setUp()
DBluetoothAddressPreferenceControllerTest.java48 private PreferenceScreen mScreen; field in BluetoothAddressPreferenceControllerTest
55 doReturn(mPreference).when(mScreen) in setUp()
DImsStatusPreferenceControllerTest.java49 private PreferenceScreen mScreen; field in ImsStatusPreferenceControllerTest
56 doReturn(mPreference).when(mScreen) in setUp()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java161 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/
DSurfaceTextureTarget.java89 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/
DPowerProfile.java97 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()