Home
last modified time | relevance | path

Searched refs:getDisplayId (Results 1 – 25 of 209) sorted by relevance

123456789

/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DRequestSurfacePackageTests.java142 getDisplayId(), in testRequestSurfacePackageSuccess()
199 getDisplayId(), in testRequestSurfacePackageThrowsIfSurfacePackageTokenMissing()
218 getDisplayId(), in testRequestSurfacePackageThrowsIfSurfaceViewHostTokenMissing()
256 getDisplayId(), in testRequestSurfacePackageThrowsIfInvalidWidth()
275 getDisplayId(), in testRequestSurfacePackageThrowsIfInvalidHeight()
294 getDisplayId(), in testRequestSurfacePackageThrowsIfExecutorMissing()
313 getDisplayId(), in testRequestSurfacePackageThrowsIfOutcomeReceiverMissing()
320 int getDisplayId() { in getDisplayId() method in RequestSurfacePackageTests
324 return windowContext.getDisplay().getDisplayId(); in getDisplayId()
/packages/services/Car/tests/CarBuiltinLibUnitTest/src/android/car/builtin/view/
DInputEventHelperTest.java35 assertThat(keyEvent.getDisplayId()).isEqualTo(Display.INVALID_DISPLAY); in testAssignDisplayId_toKeyEvent()
38 assertThat(keyEvent.getDisplayId()).isEqualTo(Display.DEFAULT_DISPLAY); in testAssignDisplayId_toKeyEvent()
54 assertThat(motionEvent.getDisplayId()).isEqualTo(Display.INVALID_DISPLAY); in testAssignDisplayId_toMotionEvent()
57 assertThat(motionEvent.getDisplayId()).isEqualTo(Display.DEFAULT_DISPLAY); in testAssignDisplayId_toMotionEvent()
DKeyEventHelperTest.java33 assertThat(keyEvent.getDisplayId()).isEqualTo(Display.INVALID_DISPLAY); in testAssignDisplayId()
36 assertThat(keyEvent.getDisplayId()).isEqualTo(Display.DEFAULT_DISPLAY); in testAssignDisplayId()
/packages/apps/Car/Launcher/docklib-util/tests/src/com/android/car/dockutil/events/
DDockEventSenderHelperTest.java76 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY + 1); in sendEventBroadcast_nonSupportedDisplay_broadcastNotSent()
85 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_noBastActivity_noBaseIntentComponent_broadcastNotSent()
97 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_broadcastSent_receiverPermissionSet()
109 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_launchEvent_broadcastSent()
124 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_pinEvent_broadcastSent()
140 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_unpinEvent_broadcastSent()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/key/
DInjectKeyTestFragment.java127 if (disp.getDisplayId() == displayId) { in getOccupantZoneForDisplayId()
157 mTargetDisplay.getDisplayId()); in injectKeyByShell()
167 Log.d(TAG, "Cannot access the display: displayId=" + disp.getDisplayId()); in getDisplays()
170 if (mCurrentDisplay != null && disp.getDisplayId() == mCurrentDisplay.getDisplayId()) { in getDisplays()
174 displayIds.add(disp.getDisplayId()); in getDisplays()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DInjectMotionTestFragment.java175 mTargetDisplay.getDisplayId()); in injectMotionByShell()
254 if (disp.getDisplayId() == displayId) { in getOccupantZoneForDisplayId()
300 final int displayId = display.getDisplayId(); in showTouchPointView()
333 Log.d(TAG, "Cannot access the display: displayId=" + disp.getDisplayId()); in getDisplays()
336 if (mCurrentDisplay != null && disp.getDisplayId() == mCurrentDisplay.getDisplayId()) { in getDisplays()
340 displayIds.add(disp.getDisplayId()); in getDisplays()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppStateController.java42 Log.d(TAG, "Unsafe task created on display " + display.getDisplayId() + "."); in onUnsafeTaskCreatedOnDisplay()
46 Log.d(TAG, "Safe task displayed on display " + display.getDisplayId() + "."); in onSafeTaskDisplayedOnDisplay()
50 Log.d(TAG, "Unsafe task displayed on display " + display.getDisplayId() + "."); in onUnsafeTaskDisplayedOnDisplay()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/input/
DDisplayInputSinkController.java222 mPassengerDisplays.put(display.getDisplayId(), display); in initPassengerDisplays()
313 return display.getDisplayId(); in findDisplayIdByUniqueId()
329 int displayId = display.getDisplayId(); in mayStartDisplayInputLock()
349 + event.getDisplayId()); in mayStartDisplayInputLock()
352 mCarPowerManager.notifyUserActivity(event.getDisplayId()); in mayStartDisplayInputLock()
374 int displayId = display.getDisplayId(); in mayStartDisplayInputMonitor()
385 + event.getDisplayId()); in mayStartDisplayInputMonitor()
388 mCarPowerManager.notifyUserActivity(event.getDisplayId()); in mayStartDisplayInputMonitor()
396 int displayId = display.getDisplayId(); in mayStopDisplayInputLock()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonSelectionStateController.java189 if (carSystemBarButton.getDisplayId() == displayId) { in taskChanged()
207 ComponentName.unflattenFromString(componentName), button.getDisplayId())) { in panelTaskChanged()
216 button.getDisplayId())) { in panelTaskChanged()
259 packages[i], button.getDisplayId())) { in selectForInitialPanelTaskState()
268 button.getDisplayId())) { in selectForInitialPanelTaskState()
303 if (!isPanelVisible(state, button.getDisplayId()) ^ invertVisibility) { in shouldSelectButtonForPanelStates()
314 return state.getDisplayId() == displayId in isPanelVisible()
336 if (carSystemBarButton.getDisplayId() == displayId) { in clearAllSelectedButtons()
DCarSystemBarButton.java301 protected int getDisplayId() { in getDisplayId() method in CarSystemBarButton
306 return display.getDisplayId(); in getDisplayId()
465 options.setLaunchDisplayId(mContext.getDisplayId()); in getButtonClickListener()
478 mContext.getDisplayId()); in getButtonClickListener()
502 options.setLaunchDisplayId(mContext.getDisplayId());
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserPickerActivity.java163 Slog.d(TAG, "onCreate: userId=" + getUserId() + " displayId=" + getDisplayId()); in onCreate()
189 String dumpableName = TAG + "#" + getDisplayId(); in init()
262 mController.init(mCallbacks, getDisplayId()); in initController()
277 return !isMUPANDSystemUI() && getDisplayId() == mDisplayTracker.getDefaultDisplayId(); in getIsDriver()
283 Slog.d(TAG, "onDestroy: displayId=" + getDisplayId()); in onDestroy()
292 mDumpManager.unregisterDumpable(TAG + "#" + getDisplayId()); in onDestroy()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java132 int displayId = presentation.getDisplay().getDisplayId(); in setupListeners()
148 R.string.presentation_alert_info_text, display.getDisplayId())) in setupListeners()
206 final int displayId = display.getDisplayId(); in showPresentation()
225 final int displayId = display.getDisplayId(); in hidePresentation()
265 final int displayId = display.getDisplayId(); in getView()
280 if (displayId == mCurrentDisplay.getDisplayId()) { in getView()
331 int displayId = display.getDisplayId(); in onCreate()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/
DActivityBlockingActivity.java156 mCarPackageManager.registerBlockingUiCommandListener(getDisplayId(), executor, in onCreate()
173 Slog.w(TAG, "Can't find user on display " + getDisplayId() in onCreate()
252 int displayId = getDisplayId(); in setupGLSurface()
266 getDisplayId(), screenshotRectRelativeToDisplay); in setupGLSurface()
380 if (taskInfo.displayId != getDisplayId()) { in isTopActivityBehindAbaDistractionOptimized()
533 getDisplayId(), driverDisplayId)); in handleCloseApplication()
563 Slog.w(TAG, "Can't find user on display " + getDisplayId() in startBlockingActivity()
583 int displayId = getDisplayId(); in getUserForCurrentDisplay()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java143 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId())) in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
167 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId())) in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed()
199 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display1.getDisplayId())) in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
201 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display2.getDisplayId())) in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
203 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display3.getDisplayId())) in onTaskStackChanged_multiDisplay_callsTasksDisplayed()
/packages/services/Car/service/src/com/android/car/power/
DScreenOffHandler.java296 int displayId = info.getDisplayId(); in updateDisplayPowerStateLocked()
316 mEventHandler.handleUserActivityTimeout(info.getDisplayId(), nextTimeout); in checkUserActivityTimeout()
403 && mOccupantZoneService.getDisplayType(info.getDisplayId()) in handleOccupantZoneConfigChangeLocked()
488 int displayId = getDisplayId(displayPort); in parseModeAssignmentSettingValue()
513 private int getDisplayId(int displayPort) { in getDisplayId() method in ScreenOffHandler
517 return display.getDisplayId(); in getDisplayId()
602 private int getDisplayId() { in getDisplayId() method in ScreenOffHandler.DisplayPowerInfo
700 proto.write(DisplayPowerInfoProto.DISPLAY_ID, displayInfo.getDisplayId()); in dumpProto()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java217 when(display.getDisplayId()).thenReturn(displayId); in mockDisplay()
224 when(display.getDisplayId()).thenReturn(displayId); in mockDisplay()
436 mDisplay2.getDisplayId()); in assertPassengerDisplaysFromDefaultConfig()
438 mDisplay4.getDisplayId()); in assertPassengerDisplaysFromDefaultConfig()
452 assertDisplayAllowlist(PROFILE_USER1, new int[]{mDisplay2.getDisplayId()}); in testAssignProfileUserOnce()
478 assertDisplayAllowlist(PROFILE_USER1, new int[]{mDisplay2.getDisplayId()}); in testAssignProfileUserSwitch()
485 assertDisplayAllowlist(PROFILE_USER2, new int[]{mDisplay2.getDisplayId()}); in testAssignProfileUserSwitch()
498 assertDisplayAllowlist(PROFILE_USER1, new int[]{mDisplay2.getDisplayId()}); in testAssignProfileFollowedByUserSwitch()
523 assertDisplayAllowlist(VISIBLE_USER, new int[]{mDisplay2.getDisplayId()}); in assertVisibleUserAssignment()
581 assertDisplayAllowlist(VISIBLE_USER, new int[]{mDisplay2.getDisplayId()}); in testKeepVisibleUserAfterUserSwitch()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DSimpleUserPickerFragment.java126 int displayId = mDisplayAttached.getDisplayId(); in onViewCreated()
216 int displayId = mDisplayAttached.getDisplayId(); in updateTextInfo()
251 zoneStateBuilder.append(display.getDisplayId()); in updateTextInfo()
277 int displayId = mDisplayAttached.getDisplayId(); in stopUser()
325 int displayId = mDisplayAttached.getDisplayId(); in switchUser()
405 if (displays.get(displayIndex).getDisplayId() == displayId) { in getOccupantZoneForDisplayId()
486 int displayId = disp.getDisplayId(); in getDisplays()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DQCLogoutButtonControllerTest.java160 when(mContext.getDisplayId()).thenReturn(displayId); in onLogout_notFoundOccupantZoneInfo_doesNotUnassignOccupantZone()
175 when(mContext.getDisplayId()).thenReturn(displayId); in onLogout_successToUnassignUser_logoutUser()
193 when(mContext.getDisplayId()).thenReturn(displayId); in onLogout_failToUnassignUser_logoutUser()
220 when(mDisplay.getDisplayId()).thenReturn(displayId); in setOccupantZoneForDisplay()
/packages/services/Car/service/src/com/android/car/pm/
DBlockingUiCommandListenerMediator.java113 int displayId = getDisplayId(taskInfo, lastKnownDisplayId); in finishBlockingUi()
137 private static int getDisplayId(TaskInfo taskInfo, int lastKnownDisplayId) { in getDisplayId() method in BlockingUiCommandListenerMediator
138 int displayId = TaskInfoHelper.getDisplayId(taskInfo); in getDisplayId()
/packages/apps/Car/Launcher/libs/hidden-apis-compat/hidden-apis-enabled/src/com/android/car/hidden/apis/
DHiddenApiAccess.java73 public static int getDisplayId(ActivityManager.RunningTaskInfo taskInfo) { in getDisplayId() method in HiddenApiAccess
74 return taskInfo.getDisplayId(); in getDisplayId()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/content/
DContextHelper.java42 public static int getDisplayId(@NonNull Context context) { in getDisplayId() method in ContextHelper
43 return context.getDisplayId(); in getDisplayId()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DNavHandleLongPressInputConsumer.java84 super(gestureState.getDisplayId(), delegate, inputMonitor); in NavHandleLongPressInputConsumer()
217 /* filterOnlyVisibleRecents */ true, getDisplayId()).getPackageName(); in handleMotionEvent()
236 /* filterOnlyVisibleRecents */ true, getDisplayId()).getPackageName(); in triggerLongPress()
242 getDisplayId()); in triggerLongPress()
DScreenPinnedInputConsumer.java44 mDisplayId = gestureState.getDisplayId(); in ScreenPinnedInputConsumer()
67 public int getDisplayId() { in getDisplayId() method in ScreenPinnedInputConsumer
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserStartRequestTest.java44 assertWithMessage("displayId").that(request.getDisplayId()).isEqualTo(TEST_DISPLAY_ID); in testUserStartRequest_withDisplayId()
52 assertWithMessage("displayId").that(request.getDisplayId()) in testUserStartRequest_withoutDisplayId()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DInputConsumer.java76 public int getDisplayId() { in createNoOpInputConsumer() method
84 int getDisplayId();

123456789