Home
last modified time | relevance | path

Searched refs:DEFAULT_DISPLAY (Results 1 – 25 of 248) sorted by relevance

12345678910

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPossibleDisplayInfoMapperTests.java19 import static android.view.Display.DEFAULT_DISPLAY;
64 DEFAULT_DISPLAY).getDisplayInfo(); in setUp()
69 initializeDisplayInfo(mDefaultDisplayInfo, DEFAULT_DISPLAY, new Rect(0, 0, 500, 800)); in setUp()
74 initializeDisplayInfo(mSecondDisplayInfo, DEFAULT_DISPLAY, new Rect(0, 0, 600, 1600)); in setUp()
81 assertThat(mDisplayInfoMapper.getPossibleDisplayInfos(DEFAULT_DISPLAY)).isEmpty(); in testInitialization_isEmpty()
84 mDisplayInfoMapper.updatePossibleDisplayInfos(DEFAULT_DISPLAY); in testInitialization_isEmpty()
85 assertThat(mDisplayInfoMapper.getPossibleDisplayInfos(DEFAULT_DISPLAY)).isEmpty(); in testInitialization_isEmpty()
91 mDisplayInfoMapper.updatePossibleDisplayInfos(DEFAULT_DISPLAY); in testUpdatePossibleDisplayInfos_singleDisplay()
94 DEFAULT_DISPLAY); in testUpdatePossibleDisplayInfos_singleDisplay()
103 mDisplayInfoMapper.updatePossibleDisplayInfos(DEFAULT_DISPLAY); in testUpdatePossibleDisplayInfos_secondDisplayAdded_sameGroup()
[all …]
DContentRecordingControllerTests.java19 import static android.view.Display.DEFAULT_DISPLAY;
58 mDefaultSession.setDisplayId(DEFAULT_DISPLAY); in setup()
92 session.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_invalidToken_notAccepted()
105 session.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_newDisplaySession_accepted()
119 session.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_updateCurrentDisplaySession_notAccepted()
126 sessionUpdate.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_updateCurrentDisplaySession_notAccepted()
140 session.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_disableCurrentDisplaySession_accepted()
160 session.setDisplayId(DEFAULT_DISPLAY); in testSetContentRecordingSessionLocked_takeOverCurrentDisplaySession_accepted()
DDisplayAreaOrganizerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
139 organizer, DEFAULT_DISPLAY, FEATURE_ROOT, newTdaName); in testCreateTaskDisplayArea_topBelowRoot()
147 assertThat(tdaInfo.getDisplayAreaInfo().displayId).isEqualTo(DEFAULT_DISPLAY); in testCreateTaskDisplayArea_topBelowRoot()
165 organizer, DEFAULT_DISPLAY, FEATURE_DEFAULT_TASK_CONTAINER, newTdaName); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
171 assertThat(tdaInfo.getDisplayAreaInfo().displayId).isEqualTo(DEFAULT_DISPLAY); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
188 organizer, DEFAULT_DISPLAY, FEATURE_ROOT, newTdaName); in testCreateTaskDisplayArea_incrementalTdaFeatureId()
190 organizer, DEFAULT_DISPLAY, FEATURE_ROOT, newTdaName); in testCreateTaskDisplayArea_incrementalTdaFeatureId()
211 organizer, DEFAULT_DISPLAY, FEATURE_ROOT - 1, "testTda")); in testCreateTaskDisplayArea_invalidDisplayAndRoot()
216 organizer, DEFAULT_DISPLAY, FEATURE_ROOT, "testTda")); in testCreateTaskDisplayArea_invalidDisplayAndRoot()
224 organizer, DEFAULT_DISPLAY, FEATURE_ROOT, newTdaName); in testDeleteTaskDisplayArea()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerTest.java83 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1;
114 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID));
147 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp()
164 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback()
166 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback()
168 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback()
173 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
176 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback()
177 assertFalse(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
179 eq(Display.DEFAULT_DISPLAY), isNull()); in stopTrackingWindows_shouldDisableWindowManagerCallback()
[all …]
DAccessibilityInputFilterTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
77 private static int sNextDisplayId = DEFAULT_DISPLAY;
78 private static final int SECOND_DISPLAY = DEFAULT_DISPLAY + 1;
225 mEventHandler.get(DEFAULT_DISPLAY); in testEventHandler_shouldNoChangedInOtherDisplayAfterOnDisplayRemoved()
229 mEventHandler.get(DEFAULT_DISPLAY); in testEventHandler_shouldNoChangedInOtherDisplayAfterOnDisplayRemoved()
244 EventStreamTransformation next = mEventHandler.get(DEFAULT_DISPLAY); in testEventHandler_shouldHaveCorrectOrderForEventStreamTransformation()
269 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
273 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
288 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
290 send(downEvent(DEFAULT_DISPLAY, InputDevice.SOURCE_TOUCHSCREEN)); in testInputEvent_shouldClearEventsForDisplayEventHandlers()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DTabletopModeControllerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
114 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopMode_callbackFalse()
127 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_inTabletopMode_callbackTrue()
140 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
146 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
156 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in foldedRotation90_halfOpen_scheduleTabletopModeChange()
167 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in foldedRotation0_halfOpen_noScheduleTabletopModeChange()
178 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in foldedRotation90_halfOpenThenUnfold_cancelTabletopModeChange()
190 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in foldedRotation90_halfOpenThenFold_cancelTabletopModeChange()
202 mPipTabletopController.onDisplayConfigurationChanged(DEFAULT_DISPLAY, mConfiguration); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
[all …]
DDisplayInsetsControllerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
54 private static final int SECOND_DISPLAY = DEFAULT_DISPLAY + 10;
77 addDisplay(DEFAULT_DISPLAY); in setUp()
107 mController.addInsetsChangedListener(DEFAULT_DISPLAY, defaultListener); in testPerDisplayListenerCallback()
110 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).topFocusedWindowChanged(null, in testPerDisplayListenerCallback()
112 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).insetsChanged(null); in testPerDisplayListenerCallback()
113 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).insetsControlChanged(null, null); in testPerDisplayListenerCallback()
114 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).showInsets(0, false); in testPerDisplayListenerCallback()
115 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).hideInsets(0, false); in testPerDisplayListenerCallback()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
120 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testConstructor_defaultDisplayAdjustments_matchesDisplayInfo()
132 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testConstructor_defaultResources_matchesDisplayInfo()
144 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRotation_defaultDisplayAdjustments_rotationNotAdjusted()
156 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRotation_resourcesWithOverrideDisplayAdjustments_rotationAdjusted()
166 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultResourcesPortrait_matchesLogicalSize()
176 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultResourcesLandscape_matchesRotatedLogicalSize()
186 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultDisplayAdjustmentsPortrait_matchesLogicalSize()
196 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultDisplayAdjustmentsLandscape_matchesLogicalSize()
209 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_resourcesWithPortraitOverrideRotation_rotatedLogicalSize()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DDisplayIdIndexSupplierTest.java56 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_instanceIsNotNull()
62 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject()
63 mDisplayIdIndexSupplier.remove(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject()
65 Object newObject = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject()
72 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_clearAllObjects_newObject()
75 Object newObject = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_clearAllObjects_newObject()
DModeSwitchesControllerTest.java64 mModeSwitchesController.removeButton(Display.DEFAULT_DISPLAY); in tearDown()
69 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testShowButton()
77 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testRemoveButton()
80 mModeSwitchesController.removeButton(Display.DEFAULT_DISPLAY); in testRemoveButton()
87 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testControllerOnConfigurationChanged_notifyShowingButton()
96 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testOnSwitchClick_showWindowModeButton_invokeListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java20 import static android.view.Display.DEFAULT_DISPLAY;
101 mCommandQueue.disable(DEFAULT_DISPLAY, state1, state2); in testDisable()
103 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable()
132 doTestOnSystemBarAttributesChanged(DEFAULT_DISPLAY, 1, in testOnSystemBarAttributesChanged()
160 mCommandQueue.showTransient(DEFAULT_DISPLAY, types, true /* isGestureOnSystemBar */); in testShowTransient()
162 verify(mCallbacks).showTransient(eq(DEFAULT_DISPLAY), eq(types), eq(true)); in testShowTransient()
176 mCommandQueue.abortTransient(DEFAULT_DISPLAY, types); in testAbortTransient()
178 verify(mCallbacks).abortTransient(eq(DEFAULT_DISPLAY), eq(types)); in testAbortTransient()
191 mCommandQueue.setImeWindowStatus(DEFAULT_DISPLAY, null, 1, 2, true); in testShowImeButton()
194 eq(DEFAULT_DISPLAY), eq(null), eq(1), eq(2), eq(true)); in testShowImeButton()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodManagerServiceTests.java19 import static android.view.Display.DEFAULT_DISPLAY;
60 assertEquals(DEFAULT_DISPLAY, in testComputeImeDisplayId_defaultDisplayId()
62 DEFAULT_DISPLAY, sMustNotBeCalledChecker)); in testComputeImeDisplayId_defaultDisplayId()
68 assertEquals(DEFAULT_DISPLAY, in testComputeImeDisplayId_InvalidDisplayId()
77 assertEquals(DEFAULT_DISPLAY, in testComputeImeDisplayId_noSystemDecorationSupportDisplay()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/fragment/
DCollapsedStatusBarFragmentTest.java17 import static android.view.Display.DEFAULT_DISPLAY;
158 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testDisableNone()
169 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testDisableSystemInfo_systemAnimationIdle_doesHide()
173 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testDisableSystemInfo_systemAnimationIdle_doesHide()
183 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
188 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
210 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testSystemStatusAnimation_systemInfoDisabled_staysInvisible()
274 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_NOTIFICATION_ICONS, 0, false); in testDisableNotifications()
278 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testDisableNotifications()
287 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_CLOCK, 0, false); in testDisableClock()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/toast/
DToastUITest.java149 null, Display.DEFAULT_DISPLAY); in testShowToast_addsCorrectViewToWindowManager()
159 null, Display.DEFAULT_DISPLAY); in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager()
175 null, Display.DEFAULT_DISPLAY); in testShowToast_forAndroidPackage_addsAllUserFlag()
188 Toast.LENGTH_LONG, null, Display.DEFAULT_DISPLAY); in testShowToast_forSystemUiPackage_addsAllUserFlag()
201 mCallback, Display.DEFAULT_DISPLAY); in testShowToast_callsCallback()
221 null, Display.DEFAULT_DISPLAY); in testShowToast_sendsAccessibilityEvent()
236 null, Display.DEFAULT_DISPLAY); in testShowToast_accessibilityManagerClientIsRemoved()
243 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_removesView()
259 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_finishesToken()
275 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_callsCallback()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java69 mDisplayMetricsMap.put(Display.DEFAULT_DISPLAY, defaultDisplayMetrics); in setUp()
176 expectedConfig.densityDpi = mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).densityDpi; in testUpdateConfigurationUpdatesAllAssetManagers()
209 activity1, APP_ONE_RES_DIR, null, null, null, null, Display.DEFAULT_DISPLAY, null, in testThemesGetUpdatedWithNewImpl()
225 Display.DEFAULT_DISPLAY); in testThemesGetUpdatedWithNewImpl()
242 activity1, APP_ONE_RES_DIR, null, null, null, null, Display.DEFAULT_DISPLAY, in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
274 mResourcesManager.updateResourcesForActivity(activity1, config1, Display.DEFAULT_DISPLAY); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
289 activity, APP_ONE_RES_DIR, null, null, null,null, Display.DEFAULT_DISPLAY, null, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
294 activity, APP_ONE_RES_DIR, null, null, null, null, Display.DEFAULT_DISPLAY, null, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
297 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).widthPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
299 assertEquals(mDisplayMetricsMap.get(Display.DEFAULT_DISPLAY).heightPixels, in testChangingActivityDisplayDoesntOverrideDisplayRequestedByResources()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarControllerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
126 mDefaultNavBar.mDisplayId = DEFAULT_DISPLAY; in initializeNavigationBars()
128 .when(mNavigationBarController.mNavigationBars).get(DEFAULT_DISPLAY); in initializeNavigationBars()
153 argThat(display -> display.getDisplayId() == DEFAULT_DISPLAY), any(), any()); in testCreateNavigationBarsIncludeDefaultTrue()
163 argThat(display -> display.getDisplayId() == DEFAULT_DISPLAY), any(), any()); in testCreateNavigationBarsIncludeDefaultFalse()
176 mNavigationBarController.checkNavBarModes(DEFAULT_DISPLAY); in testCheckNavBarModesWithDefaultDisplay()
200 mNavigationBarController.finishBarAnimations(DEFAULT_DISPLAY); in testFinishBarAnimationsWithDefaultDisplay()
224 mNavigationBarController.touchAutoDim(DEFAULT_DISPLAY); in testTouchAutoDimWithDefaultDisplay()
248 mNavigationBarController.transitionTo(DEFAULT_DISPLAY, 3, true); in testTransitionToWithDefaultDisplay()
272 mNavigationBarController.disableAnimationsDuringHide(DEFAULT_DISPLAY, 500L); in testDisableAnimationsDuringHideWithDefaultDisplay()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DSimpleSwipeTest.java66 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleDownEvent_onGestureCanceledAfterTimeout()
82 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSwipeEvent_onGestureCompleted()
84 final MotionEvent moveEvent = TouchEventGenerator.moveEvent(Display.DEFAULT_DISPLAY, in sendSwipeEvent_onGestureCompleted()
98 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCanceled()
100 final MotionEvent upEvent = TouchEventGenerator.upEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCanceled()
DTwoFingersDownOrSwipeTest.java78 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleDownEvent_GestureCanceledAfterTimeout()
89 final List<MotionEvent> downEvents = twoPointersDownEvents(Display.DEFAULT_DISPLAY, in sendTwoFingerDownEvent_onGestureCompleted()
103 final MotionEvent downEvent = TouchEventGenerator.downEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCancelled()
105 final MotionEvent upEvent = TouchEventGenerator.upEvent(Display.DEFAULT_DISPLAY, in sendSingleTapEvent_onGestureCancelled()
117 final List<MotionEvent> downEvents = twoPointersDownEvents(Display.DEFAULT_DISPLAY, in firstPointerMove_twoPointersDown_onGestureCompleted()
133 final List<MotionEvent> downEvents = twoPointersDownEvents(Display.DEFAULT_DISPLAY, in secondPointerMove_twoPointersDown_onGestureCompleted()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DLogicalDisplayMapperTest.java20 import static android.view.Display.DEFAULT_DISPLAY;
165 assertEquals(DEFAULT_DISPLAY, id(displayAdded)); in testDisplayDeviceAddAndRemove_Internal()
172 assertEquals(DEFAULT_DISPLAY, id(displayRemoved)); in testDisplayDeviceAddAndRemove_Internal()
197 assertNotEquals(DEFAULT_DISPLAY, id(display1)); in testDisplayDeviceAdd_TwoInternalOneDefault()
201 assertEquals(DEFAULT_DISPLAY, id(display2)); in testDisplayDeviceAdd_TwoInternalOneDefault()
213 assertEquals(DEFAULT_DISPLAY, id(display1)); in testDisplayDeviceAdd_TwoInternalBothDefault()
218 assertNotEquals(DEFAULT_DISPLAY, id(display2)); in testDisplayDeviceAdd_TwoInternalBothDefault()
229 assertEquals(Display.DEFAULT_DISPLAY, id(displayAdded)); in testDisplayDeviceAddAndRemove_OneExternalDefault()
236 assertEquals(DEFAULT_DISPLAY, id(displayRemoved)); in testDisplayDeviceAddAndRemove_OneExternalDefault()
249 assertEquals(DEFAULT_DISPLAY, id(display1)); in testDisplayDeviceAddAndRemove_SwitchDefault()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DBrightnessSynchronizerTest.java137 eq(Display.DEFAULT_DISPLAY), eq(iToF(128))); in testSetSameIntValue_nothingUpdated()
157 eq(Display.DEFAULT_DISPLAY), eq(iToF(20))); in testUpdateDuringResponseIsNotOverwritten()
164 eq(Display.DEFAULT_DISPLAY), eq(iToF(20))); in testUpdateDuringResponseIsNotOverwritten()
187 eq(Display.DEFAULT_DISPLAY), eq(iToF(20))); in testSetFloat_outOfTimeForResponse()
200 eq(Display.DEFAULT_DISPLAY), eq(iToF(fToI(0.4f)))); in testSetFloat_outOfTimeForResponse()
229 when(mDisplayManagerMock.getBrightness(eq(Display.DEFAULT_DISPLAY))).thenReturn(brightness); in putFloatSetting()
231 mDisplayListener.onDisplayChanged(Display.DEFAULT_DISPLAY); in putFloatSetting()
240 verify(mDisplayManagerMock).setBrightness(eq(Display.DEFAULT_DISPLAY), eq(brightness)); in verifyFloatWasSetTo()
/frameworks/base/core/tests/coretests/src/android/view/
DContentRecordingSessionTest.java21 import static android.view.Display.DEFAULT_DISPLAY;
84 session.setDisplayId(DEFAULT_DISPLAY); in testIsValid()
96 session.setDisplayId(DEFAULT_DISPLAY); in testIsSameDisplay()
101 incomingSession.setDisplayId(DEFAULT_DISPLAY); in testIsSameDisplay()
104 incomingSession.setDisplayId(DEFAULT_DISPLAY + 1); in testIsSameDisplay()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowContextControllerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
71 mController.attachToDisplayArea(TYPE_APPLICATION_OVERLAY, DEFAULT_DISPLAY, in testAttachToDisplayAreaTwiceThrowException()
73 mController.attachToDisplayArea(TYPE_APPLICATION_OVERLAY, DEFAULT_DISPLAY, in testAttachToDisplayAreaTwiceThrowException()
86 mController.attachToDisplayArea(TYPE_APPLICATION_OVERLAY, DEFAULT_DISPLAY, in testAttachAndDetachDisplayArea()
/frameworks/base/services/core/java/com/android/server/display/layout/
DLayout.java19 import static android.view.Display.DEFAULT_DISPLAY;
37 private static int sNextNonDefaultDisplayId = DEFAULT_DISPLAY + 1;
45 return isDefault ? DEFAULT_DISPLAY : sNextNonDefaultDisplayId++; in assignDisplayIdLocked()
68 if (isDefault && getById(DEFAULT_DISPLAY) != null) { in createDisplayLocked()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputConsumerController.java19 import static android.view.Display.DEFAULT_DISPLAY;
142 mWindowManager.destroyInputConsumer(mName, DEFAULT_DISPLAY); in registerInputConsumer()
143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer()
161 mWindowManager.destroyInputConsumer(mName, DEFAULT_DISPLAY); in unregisterInputConsumer()
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardController.java22 import static android.view.Display.DEFAULT_DISPLAY;
122 if (displayId == DEFAULT_DISPLAY && state.mAodShowing) { in isKeyguardUnoccludedOrAodShowing()
206 mWindowManager.mTaskSnapshotController.snapshotForSleeping(DEFAULT_DISPLAY); in setKeyguardShown()
403 if (displayId != DEFAULT_DISPLAY) { in handleOccludedChanged()
409 mWindowManager.mPolicy.onKeyguardOccludedChangedLw(isDisplayOccluded(DEFAULT_DISPLAY), in handleOccludedChanged()
416 isDisplayOccluded(DEFAULT_DISPLAY) in handleOccludedChanged()
419 updateKeyguardSleepToken(DEFAULT_DISPLAY); in handleOccludedChanged()
488 return getDisplayState(DEFAULT_DISPLAY).mShowingDream; in isShowingDream()
494 if (!getDisplayState(displayId).mKeyguardShowing || !isDisplayOccluded(DEFAULT_DISPLAY)) { in dismissMultiWindowModeForTaskIfNeeded()
556 if (waiting && isAodShowing(DEFAULT_DISPLAY)) { in updateDeferTransitionForAod()
[all …]

12345678910