/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/ |
D | RequestSurfacePackageTests.java | 149 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/ |
D | InputEventHelperTest.java | 35 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()
|
D | KeyEventHelperTest.java | 33 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/ |
D | DockEventSenderHelperTest.java | 80 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/ |
D | InjectKeyTestFragment.java | 127 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/ |
D | InjectMotionTestFragment.java | 175 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/ |
D | DisplayInputSinkController.java | 211 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/ |
D | UserPickerActivity.java | 157 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/ |
D | ActivityBlockingActivity.java | 150 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/ |
D | PresentTestFragment.java | 132 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/ |
D | SideLoadedAppListenerTest.java | 143 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/ |
D | ScreenOffHandler.java | 314 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/ |
D | CarOccupantZoneServiceTest.java | 217 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/ |
D | SimpleUserPickerFragment.java | 126 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/ |
D | CarSystemBarButton.java | 257 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/ |
D | HiddenApiAccess.java | 73 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/ |
D | QCLogoutButtonControllerTest.java | 160 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/ |
D | CarDisplayAreaController.java | 141 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/ |
D | ContextHelper.java | 42 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/ |
D | BlockingUiCommandListenerMediator.java | 113 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/ |
D | UserStartRequestTest.java | 44 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/ |
D | CarLauncher.java | 117 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/ |
D | DockEventSenderHelper.java | 19 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/ |
D | QCLogoutButtonController.java | 160 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/ |
D | CarUxRestrictionsManager.java | 114 registerListener(listener, getDisplayId()); in registerListener() 212 return getCurrentCarUxRestrictions(getDisplayId()); in getCurrentCarUxRestrictions() 407 private int getDisplayId() { in getDisplayId() method in CarUxRestrictionsManager
|