Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeTaskRepositoryTest.kt21 import android.view.Display.DEFAULT_DISPLAY
48 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in addActiveTask_listenerNotifiedAndTaskIsActive()
58 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in addActiveTask_sameTaskDoesNotNotify()
59 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in addActiveTask_sameTaskDoesNotNotify()
68 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in addActiveTask_multipleTasksAddedNotifiesForEach()
69 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 2) in addActiveTask_multipleTasksAddedNotifiesForEach()
78 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in addActiveTask_multipleDisplays_notifiesCorrectListener()
79 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 2) in addActiveTask_multipleDisplays_notifiesCorrectListener()
91 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in removeActiveTask_listenerNotifiedAndTaskNotActive()
110 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1) in remoteActiveTask_listenerForOtherDisplayNotNotified()
[all …]
DDesktopTestHelpers.kt26 import android.view.Display.DEFAULT_DISPLAY
36 displayId: Int = DEFAULT_DISPLAY, in createFreeformTask()
52 fun createFullscreenTask(displayId: Int = DEFAULT_DISPLAY): RunningTaskInfo { in createFullscreenTask()
65 fun createSplitScreenTask(displayId: Int = DEFAULT_DISPLAY): RunningTaskInfo { in createSplitScreenTask()
78 fun createHomeTask(displayId: Int = DEFAULT_DISPLAY): RunningTaskInfo { in createHomeTask()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserVisibilityMediatorMUPANDTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
58 BG_VISIBLE, DEFAULT_DISPLAY, false); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
64 expectUserIsVisibleOnDisplay(visibleBgUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
66 expectDisplayAssignedToUser(visibleBgUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
67 expectUserAssignedToDisplay(DEFAULT_DISPLAY, visibleBgUserId); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
71 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
79 DEFAULT_DISPLAY, false); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
102 BG_VISIBLE, DEFAULT_DISPLAY, false); in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
108 expectUserIsVisibleOnDisplay(visibleBgUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
110 expectDisplayAssignedToUser(visibleBgUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
[all …]
DUserVisibilityMediatorSUSDTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
58 DEFAULT_DISPLAY, false); in testStartFgUser_onDefaultDisplay()
60 expectUserCannotBeUnassignedFromDisplay(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
64 expectUserIsVisibleOnDisplay(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
68 expectDisplayAssignedToUser(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
69 expectUserAssignedToDisplay(DEFAULT_DISPLAY, USER_ID); in testStartFgUser_onDefaultDisplay()
90 DEFAULT_DISPLAY, false); in testSwitchFgUser_onDefaultDisplay()
92 expectUserCannotBeUnassignedFromDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
96 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
100 expectDisplayAssignedToUser(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
[all …]
DUserVisibilityMediatorVisibleBackgroundUserTestCase.java19 import static android.view.Display.DEFAULT_DISPLAY;
54 DEFAULT_DISPLAY, false); in testStartFgUser_onDefaultDisplay()
56 expectUserCannotBeUnassignedFromDisplay(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
59 expectUserIsVisibleOnDisplay(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
64 expectDisplayAssignedToUser(USER_ID, DEFAULT_DISPLAY); in testStartFgUser_onDefaultDisplay()
65 expectUserAssignedToDisplay(DEFAULT_DISPLAY, USER_ID); in testStartFgUser_onDefaultDisplay()
88 DEFAULT_DISPLAY, false); in testSwitchFgUser_onDefaultDisplay()
90 expectUserCannotBeUnassignedFromDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
93 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
98 expectDisplayAssignedToUser(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
[all …]
DUserVisibilityMediatorTestCase.java23 import static android.view.Display.DEFAULT_DISPLAY;
151 .assignUserToDisplayOnStart(USER_NULL, USER_ID, FG, DEFAULT_DISPLAY, false)); in testAssignUserToDisplayOnStart_invalidUserIds()
153 .assignUserToDisplayOnStart(USER_ALL, USER_ID, FG, DEFAULT_DISPLAY, false)); in testAssignUserToDisplayOnStart_invalidUserIds()
155 .assignUserToDisplayOnStart(USER_CURRENT, USER_ID, FG, DEFAULT_DISPLAY, false)); in testAssignUserToDisplayOnStart_invalidUserIds()
157 .assignUserToDisplayOnStart(USER_CURRENT_OR_SELF, USER_ID, FG, DEFAULT_DISPLAY, in testAssignUserToDisplayOnStart_invalidUserIds()
164 .assignUserToDisplayOnStart(USER_ID, USER_ID, 666, DEFAULT_DISPLAY, false)); in testAssignUserToDisplayOnStart_invalidUserStartMode()
177 expectInitialCurrentUserAssignedToDisplay(DEFAULT_DISPLAY); in testStartFgUser_onSecondaryDisplay()
186 int result = mMediator.assignUserToDisplayOnStart(USER_ID, USER_ID, BG, DEFAULT_DISPLAY, in testStartBgUser_onDefaultDisplay()
192 expectInitialCurrentUserAssignedToDisplay(DEFAULT_DISPLAY); in testStartBgUser_onDefaultDisplay()
204 DEFAULT_DISPLAY, false); in visibleBgUserCannotBeStartedOnDefaultDisplayTest()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerWithAccessibilityWindowTest.java104 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1;
134 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID));
190 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp()
207 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback()
209 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback()
211 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback()
216 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
219 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback()
220 assertFalse(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
222 eq(Display.DEFAULT_DISPLAY), isNull()); in stopTrackingWindows_shouldDisableWindowManagerCallback()
[all …]
DAccessibilityWindowManagerTest.java102 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1;
133 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID));
174 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp()
191 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback()
193 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback()
195 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback()
200 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
203 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback()
204 assertFalse(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback()
206 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/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 …]
/frameworks/base/core/tests/coretests/src/android/view/
DContentRecordingSessionTest.java22 import static android.view.Display.DEFAULT_DISPLAY;
85 DEFAULT_DISPLAY); in testDisplayConstructor()
95 DEFAULT_DISPLAY); in testIsValid_displaySession()
96 displaySession.setVirtualDisplayId(DEFAULT_DISPLAY); in testIsValid_displaySession()
101 DEFAULT_DISPLAY); in testIsValid_displaySession()
105 DEFAULT_DISPLAY); in testIsValid_displaySession()
112 displaySession2.setVirtualDisplayId(DEFAULT_DISPLAY); in testIsValid_displaySession()
115 displaySession2.setDisplayToRecord(DEFAULT_DISPLAY); in testIsValid_displaySession()
124 taskSession.setVirtualDisplayId(DEFAULT_DISPLAY); in testIsValid_taskSession()
139 taskSession3.setVirtualDisplayId(DEFAULT_DISPLAY); in testIsValid_taskSession()
[all …]
/frameworks/base/core/tests/coretests/src/android/window/
DWindowTokenClientControllerTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
73 mWindowContextInfo = new WindowContextInfo(mConfiguration, DEFAULT_DISPLAY); in setup()
82 DEFAULT_DISPLAY, null /* options */)); in testAttachToDisplayArea()
85 TYPE_APPLICATION_OVERLAY, DEFAULT_DISPLAY, null /* options */); in testAttachToDisplayArea() local
92 DEFAULT_DISPLAY, null /* options */)); in testAttachToDisplayArea()
93 verify(mWindowTokenClient).onConfigurationChanged(mConfiguration, DEFAULT_DISPLAY, in testAttachToDisplayArea()
106 DEFAULT_DISPLAY, null /* options */); in testAttachToDisplayArea_detachIfNeeded()
114 DEFAULT_DISPLAY, null /* options */); in testAttachToDisplayArea_detachIfNeeded()
125 assertFalse(mController.attachToDisplayContent(mWindowTokenClient, DEFAULT_DISPLAY)); in testAttachToDisplayContent()
128 DEFAULT_DISPLAY); in testAttachToDisplayContent() local
[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;
62 private static final int SECOND_DISPLAY = DEFAULT_DISPLAY + 10;
85 addDisplay(DEFAULT_DISPLAY); in setUp()
115 mController.addInsetsChangedListener(DEFAULT_DISPLAY, defaultListener); in testPerDisplayListenerCallback()
118 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).topFocusedWindowChanged(null, in testPerDisplayListenerCallback()
120 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).insetsChanged(null); in testPerDisplayListenerCallback()
121 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).insetsControlChanged(null, null); in testPerDisplayListenerCallback()
122 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).showInsets(0, false, in testPerDisplayListenerCallback()
124 mInsetsControllersByDisplayId.get(DEFAULT_DISPLAY).hideInsets(0, false, in testPerDisplayListenerCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/fragment/
DCollapsedStatusBarFragmentTest.java17 import static android.view.Display.DEFAULT_DISPLAY;
163 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testDisableNone()
173 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testDisableSystemInfo_systemAnimationIdle_doesHide()
177 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testDisableSystemInfo_systemAnimationIdle_doesHide()
181 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testDisableSystemInfo_systemAnimationIdle_doesHide()
190 fragment.disable(DEFAULT_DISPLAY, StatusBarManager.DISABLE_SYSTEM_INFO, 0, false); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
202 fragment.disable(DEFAULT_DISPLAY, 0, 0, false); in testSystemStatusAnimation_startedDisabled_finishedWithAnimator_showsSystemInfo()
219 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()
[all …]
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java19 import static android.view.Display.DEFAULT_DISPLAY;
134 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
159 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types()
172 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testConstructor_defaultDisplayAdjustments_matchesDisplayInfo()
184 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testConstructor_defaultResources_matchesDisplayInfo()
196 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRotation_defaultDisplayAdjustments_rotationNotAdjusted()
208 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRotation_resourcesWithOverrideDisplayAdjustments_rotationAdjusted()
218 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultResourcesPortrait_matchesLogicalSize()
228 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultResourcesLandscape_matchesRotatedLogicalSize()
238 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetRealSize_defaultDisplayAdjustmentsPortrait_matchesLogicalSize()
[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.java67 mModeSwitchesController.removeButton(Display.DEFAULT_DISPLAY); in tearDown()
72 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testShowButton()
80 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testRemoveButton()
83 mModeSwitchesController.removeButton(Display.DEFAULT_DISPLAY); in testRemoveButton()
90 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testControllerOnConfigurationChanged_notifyShowingButton()
99 mModeSwitchesController.showButton(Display.DEFAULT_DISPLAY, in testOnSwitchClick_showWindowModeButton_invokeListener()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DDisplayObserverTest.java20 import static android.view.Display.DEFAULT_DISPLAY;
167 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_notVotedUserPreferredMode()
174 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_notVotedUserPreferredMode()
181 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_notVotedUserPreferredMode()
200 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_voteUserPreferredMode()
207 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_voteUserPreferredMode()
218 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_voteUserPreferredMode()
225 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_voteUserPreferredMode()
251 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_doNotApplyLimitToUserPreferredMode()
258 assertThat(getVote(DEFAULT_DISPLAY, PRIORITY_USER_SETTING_DISPLAY_PREFERRED_SIZE)) in testExternalDisplay_doNotApplyLimitToUserPreferredMode()
[all …]
/frameworks/base/media/java/android/media/projection/
DMediaProjectionConfig.java19 import static android.view.Display.DEFAULT_DISPLAY;
78 @IntRange(from = DEFAULT_DISPLAY, to = DEFAULT_DISPLAY)
106 config.mDisplayToCapture = DEFAULT_DISPLAY; in createConfigForDefaultDisplay()
176 public @IntRange(from = DEFAULT_DISPLAY, to = DEFAULT_DISPLAY) int getDisplayToCapture() { in getDisplayToCapture()
246 "from", DEFAULT_DISPLAY, in MediaProjectionConfig()
247 "to", DEFAULT_DISPLAY); in MediaProjectionConfig()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java20 import static android.view.Display.DEFAULT_DISPLAY;
103 mCommandQueue.disable(DEFAULT_DISPLAY, state1, state2); in testDisable()
105 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable()
134 doTestOnSystemBarAttributesChanged(DEFAULT_DISPLAY, 1, in testOnSystemBarAttributesChanged()
164 mCommandQueue.showTransient(DEFAULT_DISPLAY, types, true /* isGestureOnSystemBar */); in testShowTransient()
166 verify(mCallbacks).showTransient(eq(DEFAULT_DISPLAY), eq(types), eq(true)); in testShowTransient()
180 mCommandQueue.abortTransient(DEFAULT_DISPLAY, types); in testAbortTransient()
182 verify(mCallbacks).abortTransient(eq(DEFAULT_DISPLAY), eq(types)); in testAbortTransient()
195 mCommandQueue.setImeWindowStatus(DEFAULT_DISPLAY, null, 1, 2, true); in testShowImeButton()
198 eq(DEFAULT_DISPLAY), eq(null), eq(1), eq(2), eq(true)); in testShowImeButton()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/appclips/
DAppClipsScreenshotHelperServiceTest.java48 private static final int DEFAULT_DISPLAY = Display.DEFAULT_DISPLAY; field in AppClipsScreenshotHelperServiceTest
75 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isNull(); in emptyBubbles_shouldReturnNull()
82 when(mBubbles.getScreenshotExcludingBubble(DEFAULT_DISPLAY)).thenReturn(mScreenshotSync); in bubblesPresent_screenshotFailed_shouldReturnNull()
85 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isNull(); in bubblesPresent_screenshotFailed_shouldReturnNull()
92 when(mBubbles.getScreenshotExcludingBubble(DEFAULT_DISPLAY)).thenReturn(mScreenshotSync); in bubblesPresent_screenshotSuccess_shouldReturnScreenshot()
97 assertThat(getInterface().takeScreenshot(DEFAULT_DISPLAY)).isEqualTo( in bubblesPresent_screenshotSuccess_shouldReturnScreenshot()
/frameworks/base/services/tests/InputMethodSystemServerTests/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/toast/
DToastUITest.java153 null, Display.DEFAULT_DISPLAY); in testShowToast_addsCorrectViewToWindowManager()
163 null, Display.DEFAULT_DISPLAY); in testShowToast_addsViewWithCorrectLayoutParamsToWindowManager()
179 null, Display.DEFAULT_DISPLAY); in testShowToast_forAndroidPackage_addsAllUserFlag()
192 Toast.LENGTH_LONG, null, Display.DEFAULT_DISPLAY); in testShowToast_forSystemUiPackage_addsAllUserFlag()
205 mCallback, Display.DEFAULT_DISPLAY); in testShowToast_callsCallback()
225 null, Display.DEFAULT_DISPLAY); in testShowToast_sendsAccessibilityEvent()
240 null, Display.DEFAULT_DISPLAY); in testShowToast_accessibilityManagerClientIsRemoved()
247 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_removesView()
263 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_finishesToken()
279 mCallback, Display.DEFAULT_DISPLAY); in testHideToast_callsCallback()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DWindowDecorationTests.java167 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_invisibleTask()
186 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_invisibleTask()
214 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_visibleFocusedTask()
226 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_visibleFocusedTask()
279 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
297 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
334 .getDisplay(Display.DEFAULT_DISPLAY); in testNotCrashWhenDisplayAppearsAfterTask()
336 final int displayId = Display.DEFAULT_DISPLAY + 1; in testNotCrashWhenDisplayAppearsAfterTask()
359 listener.onDisplayAdded(Display.DEFAULT_DISPLAY); in testNotCrashWhenDisplayAppearsAfterTask()
379 .getDisplay(Display.DEFAULT_DISPLAY); in testAddViewHostViewContainer()
[all …]

12345678910>>...15