Home
last modified time | relevance | path

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

1234567

/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DRequestSurfacePackageTests.java149 getDisplayId(), in testRequestSurfacePackageSuccess()
200 getDisplayId(), in testRequestSurfacePackageThrowsIfSurfacePackageTokenMissing()
219 getDisplayId(), in testRequestSurfacePackageThrowsIfSurfaceViewHostTokenMissing()
257 getDisplayId(), in testRequestSurfacePackageThrowsIfInvalidWidth()
276 getDisplayId(), in testRequestSurfacePackageThrowsIfInvalidHeight()
295 getDisplayId(), in testRequestSurfacePackageThrowsIfExecutorMissing()
314 getDisplayId(), in testRequestSurfacePackageThrowsIfOutcomeReceiverMissing()
321 int getDisplayId() { in getDisplayId() method in RequestSurfacePackageTests
325 return windowContext.getDisplay().getDisplayId(); in getDisplayId()
/packages/services/Car/tests/carservice_unit_test/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.java80 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY + 1); in sendEventBroadcast_nonDefaultDisplay_broadcastNotSent()
89 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_noBastActivity_noBaseIntentComponent_broadcastNotSent()
101 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_broadcastSent_receiverPermissionSet()
113 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_launchEvent_broadcastSent()
128 when(mRunningTaskInfo.getDisplayId()).thenReturn(DEFAULT_DISPLAY); in sendEventBroadcast_pinEvent_broadcastSent()
144 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/input/
DDisplayInputSinkController.java211 mPassengerDisplays.put(display.getDisplayId(), display); in initPassengerDisplays()
298 return display.getDisplayId(); in findDisplayIdByUniqueId()
314 int displayId = display.getDisplayId(); in mayStartDisplayInputLock()
334 + event.getDisplayId()); in mayStartDisplayInputLock()
337 mCarPowerManager.notifyUserActivity(event.getDisplayId()); in mayStartDisplayInputLock()
360 int displayId = display.getDisplayId(); in mayStartDisplayInputMonitor()
371 + event.getDisplayId()); in mayStartDisplayInputMonitor()
374 mCarPowerManager.notifyUserActivity(event.getDisplayId()); in mayStartDisplayInputMonitor()
382 int displayId = display.getDisplayId(); in mayStopDisplayInputLock()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserPickerActivity.java157 Slog.d(TAG, "onCreate: userId=" + getUserId() + " displayId=" + getDisplayId()); in onCreate()
183 String dumpableName = TAG + "#" + getDisplayId(); in init()
243 mController.init(mCallbacks, getDisplayId()); in initController()
258 return !isMUPANDSystemUI() && getDisplayId() == mDisplayTracker.getDefaultDisplayId(); in getIsDriver()
274 Slog.d(TAG, "onDestroy: displayId=" + getDisplayId()); in onDestroy()
283 mDumpManager.unregisterDumpable(TAG + "#" + getDisplayId()); in onDestroy()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/
DActivityBlockingActivity.java150 mCarPackageManager.registerBlockingUiCommandListener(getDisplayId(), executor, in onCreate()
165 Slog.w(TAG, "Can't find user on display " + getDisplayId() in onCreate()
244 int displayId = getDisplayId(); in setupGLSurface()
249 mSurfaceRenderer = new BlurredSurfaceRenderer(this, windowRect, getDisplayId()); in setupGLSurface()
324 if (taskInfo.displayId != getDisplayId()) { in isTopActivityBehindAbaDistractionOptimized()
465 getDisplayId(), driverDisplayId)); in handleCloseApplication()
491 Slog.w(TAG, "Can't find user on display " + getDisplayId() in startBlockingActivity()
510 int displayId = getDisplayId(); in getUserForCurrentDisplay()
/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/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.java314 int displayId = info.getDisplayId(); in updateDisplayPowerStateLocked()
333 mEventHandler.handleUserActivityTimeout(info.getDisplayId(), nextTimeout); in checkUserActivityTimeout()
413 && mOccupantZoneService.getDisplayType(info.getDisplayId()) in handleOccupantZoneConfigChangeLocked()
467 int displayId = getDisplayId(displayPort); in parseModeAssignmentSettingValue()
492 private int getDisplayId(int displayPort) { in getDisplayId() method in ScreenOffHandler
496 return display.getDisplayId(); in getDisplayId()
581 private int getDisplayId() { in getDisplayId() method in ScreenOffHandler.DisplayPowerInfo
679 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/src/com/android/systemui/car/systembar/
DCarSystemBarButton.java257 protected int getDisplayId() { in getDisplayId() method in CarSystemBarButton
262 return display.getDisplayId(); in getDisplayId()
353 options.setLaunchDisplayId(mContext.getDisplayId()); in getButtonClickListener()
366 mContext.getDisplayId()); in getButtonClickListener()
390 options.setLaunchDisplayId(mContext.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/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/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/displayarea/
DCarDisplayAreaController.java141 mApplicationContext.getDisplayId(), mUserSetupInProgress); in updateImmersiveModeInternal()
204 mCarUiDisplaySystemBarsController.registerCallback(mApplicationContext.getDisplayId(), in CarDisplayAreaController()
242 mApplicationContext.getDisplayId(), WindowInsets.Type.navigationBars()); in register()
261 mApplicationContext.getDisplayId(), insetsType); in register()
/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/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/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/Car/Launcher/app/src/com/android/car/carlauncher/
DCarLauncher.java117 options.setLaunchDisplayId(getDisplay().getDisplayId());
128 Log.d(TAG, "onCreate(" + getUserId() + ") displayId=" + getDisplayId()); in onCreate()
139 boolean isPassengerDisplay = getDisplayId() != Display.DEFAULT_DISPLAY in onCreate()
162 .setLaunchDisplayId(getDisplayId()); in onCreate()
/packages/apps/Car/Launcher/docklib-util/src/com/android/car/dockutil/events/
DDockEventSenderHelper.java19 import static com.android.car.hidden.apis.HiddenApiAccess.getDisplayId;
84 if (getDisplayId(taskInfo) != Display.DEFAULT_DISPLAY) { in sendEventBroadcast()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DQCLogoutButtonController.java160 int displayId = getContext().getDisplayId(); in logoutUser()
202 if (displays.get(displayIndex).getDisplayId() == displayId) { in getOccupantZoneForDisplayId()
212 mCarActivityManager.startUserPickerOnDisplay(getContext().getDisplayId()); in openUserPicker()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java114 registerListener(listener, getDisplayId()); in registerListener()
212 return getCurrentCarUxRestrictions(getDisplayId()); in getCurrentCarUxRestrictions()
407 private int getDisplayId() { in getDisplayId() method in CarUxRestrictionsManager

1234567