Home
last modified time | relevance | path

Searched refs:displayId (Results 1 – 25 of 77) sorted by relevance

1234

/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java110 public void onDisplayAdded(int displayId) { in setupListeners()
111 Log.d(TAG, "Display #" + displayId + " added."); in setupListeners()
116 public void onDisplayChanged(int displayId) { in setupListeners()
117 Log.d(TAG, "Display #" + displayId + " changed."); in setupListeners()
122 public void onDisplayRemoved(int displayId) { in setupListeners()
123 Log.d(TAG, "Display #" + displayId + " removed."); in setupListeners()
132 int displayId = presentation.getDisplay().getDisplayId(); in setupListeners()
133 Log.d(TAG, "Presentation on display #" + displayId + " was dismissed."); in setupListeners()
134 mActivePresentations.delete(displayId); in setupListeners()
206 final int displayId = display.getDisplayId(); in showPresentation() local
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/wm/
DDisplaySystemBarsController.java69 public void onDisplayAdded(int displayId) { in onDisplayAdded() argument
70 PerDisplay pd = new PerDisplay(displayId); in onDisplayAdded()
83 mPerDisplaySparseArray.put(displayId, pd); in onDisplayAdded()
87 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
89 mWmService.setDisplayWindowInsetsController(displayId, null); in onDisplayRemoved()
91 Slog.w(TAG, "Unable to remove insets controller on display " + displayId); in onDisplayRemoved()
93 mPerDisplaySparseArray.remove(displayId); in onDisplayRemoved()
104 PerDisplay(int displayId) { in PerDisplay() argument
105 super(displayId, mDisplayController.getDisplayLayout(displayId).rotation()); in PerDisplay()
106 mDisplayId = displayId; in PerDisplay()
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java65 public final int displayId; field in SystemActivityMonitoringService.TopTaskInfoContainer
70 int displayId, int position, RootTaskInfo taskInfo) { in TopTaskInfoContainer() argument
73 this.displayId = displayId; in TopTaskInfoContainer()
82 && this.displayId == taskInfo.displayId in isMatching()
92 topActivity, taskId, taskInfo.taskId, taskInfo.userId, displayId, position); in toString()
163 int displayId = mTopTasks.keyAt(i); in dump() local
166 writer.println("display id " + displayId + ": " + info); in dump()
308 int displayId = info.displayId; in updateTasks() local
315 info.displayId, info.position, info); in updateTasks()
316 TopTaskInfoContainer currentTopTaskInfo = topTasks.get(displayId); in updateTasks()
[all …]
DCarUxRestrictionsManagerService.java384 ICarUxRestrictionsChangeListener listener, int displayId) { in registerUxRestrictionsChangeListener() argument
391 physicalPort = getPhysicalPortLocked(displayId); in registerUxRestrictionsChangeListener()
420 public CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions() argument
427 restrictions = mCurrentUxRestrictions.get(getPhysicalPortLocked(displayId)); in getCurrentUxRestrictions()
430 Slog.e(TAG, "Restrictions are null for displayId:" + displayId in getCurrentUxRestrictions()
1011 private Integer getPhysicalPortLocked(int displayId) { in getPhysicalPortLocked() argument
1012 if (!mPortLookup.containsKey(displayId)) { in getPhysicalPortLocked()
1013 Display display = mDisplayManager.getDisplay(displayId); in getPhysicalPortLocked()
1015 Slog.w(TAG, "Could not retrieve display for id: " + displayId); in getPhysicalPortLocked()
1019 mPortLookup.put(displayId, port); in getPhysicalPortLocked()
[all …]
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java404 private boolean launchIfNecessary(int displayId) { in launchIfNecessary() argument
462 RunningActivityInfo activityInfo = mRunningActivities.get(taskInfo.displayId); in launchIfNecessary()
478 + " user:" + topUserId + " display:" + taskInfo.displayId); in launchIfNecessary()
541 RunningActivityInfo activityInfo = mRunningActivities.get(displayId); in launchIfNecessary()
603 private boolean isDisplayAllowedForFixedMode(int displayId) { in isDisplayAllowedForFixedMode() argument
604 if (displayId == Display.DEFAULT_DISPLAY || displayId == Display.INVALID_DISPLAY) { in isDisplayAllowedForFixedMode()
605 Slog.w(TAG_AM, "Target display cannot be used for fixed mode, displayId:" + displayId, in isDisplayAllowedForFixedMode()
617 @NonNull ActivityOptions options, int displayId, @UserIdInt int userId) { in startFixedActivityModeForDisplayAndUser() argument
618 if (!isDisplayAllowedForFixedMode(displayId)) { in startFixedActivityModeForDisplayAndUser()
643 Presentation p = mBlockingPresentations.removeReturnOld(displayId); in startFixedActivityModeForDisplayAndUser()
[all …]
/packages/services/Car/cpp/evs/apps/default/
DConfigManager.h85 int setActiveDisplayId(int displayId) { in setActiveDisplayId() argument
86 if (displayId == -1) { in setActiveDisplayId()
92 } else if (displayId < 0) { in setActiveDisplayId()
93 printf("Display %d is invalid.", displayId); in setActiveDisplayId()
97 if (display.port == displayId) { in setActiveDisplayId()
98 mActiveDisplayId = displayId; in setActiveDisplayId()
103 printf("Display %d does not exist.", displayId); in setActiveDisplayId()
Devs_app.cpp136 int displayId = -1; in main() local
150 displayId = std::stoi(argv[++i]); in main()
236 displayId = config.setActiveDisplayId(displayId); in main()
237 if (displayId < 0) { in main()
242 pDisplay = pEvs->openDisplay_1_1(displayId); in main()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DActivityMonitor.java57 void onTopActivityChanged(int displayId, @Nullable ComponentName activity); in onTopActivityChanged() argument
101 public void addListener(int displayId, ActivityListener listener) { in addListener() argument
102 mListeners.computeIfAbsent(displayId, k -> new HashSet<>()).add(listener); in addListener()
108 public void removeListener(int displayId, ActivityListener listener) { in removeListener() argument
109 mListeners.computeIfAbsent(displayId, k -> new HashSet<>()).remove(listener); in removeListener()
172 Set<ActivityListener> listeners = mListeners.get(info.displayId); in notifyTopActivities()
175 listener.onTopActivityChanged(info.displayId, info.topActivity); in notifyTopActivities()
DClusterRenderingService.java106 public void onDisplayAdded(int displayId) {
107 Log.i(TAG, "Cluster display found, displayId: " + displayId);
108 mClusterDisplayId = displayId;
115 public void onDisplayRemoved(int displayId) {
120 public void onDisplayChanged(int displayId) {
125 public void setActivityLaunchOptions(int displayId, ClusterActivityState state) { in setActivityLaunchOptions() argument
126 ActivityOptions options = displayId != INVALID_DISPLAY in setActivityLaunchOptions()
127 ? ActivityOptions.makeBasic().setLaunchDisplayId(displayId) in setActivityLaunchOptions()
212 private Intent getNavigationActivityIntent(int displayId) { in getNavigationActivityIntent() argument
220 Display display = dm.getDisplay(displayId); in getNavigationActivityIntent()
DNavigationFragment.java66 public void onDisplayAdded(int displayId) {
68 Log.i(TAG, "onDisplayAdded, displayId: " + displayId
71 if (navDisplayId == displayId) {
72 mRegisteredNavDisplayId = displayId;
78 public void onDisplayRemoved(int displayId) {
79 if (mRegisteredNavDisplayId == displayId) {
86 public void onDisplayChanged(int displayId) {}
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java81 int displayId = 123; in onTaskCreated_safeTask_callsNoMethods() local
89 taskInfo2.displayId = displayId; in onTaskCreated_safeTask_callsNoMethods()
109 int displayId = 123; in onTaskCreated_unsafeTask_callsUnsafeTaskCreated() local
116 taskInfo2.displayId = displayId; in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
119 Display display = createDisplay(displayId); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
123 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperConnection.java162 int displayId = mContainerView.getDisplay().getDisplayId(); in onServiceConnected() local
167 new Rect(0, 0, 0, 0), displayId); in onServiceConnected()
175 WallpaperColors colors, int displayId) { in onLocalWallpaperColorsChanged() argument
191 public void attachEngine(IWallpaperEngine engine, int displayId) { in attachEngine() argument
232 public void onWallpaperColorsChanged(WallpaperColors colors, int displayId) { in onWallpaperColorsChanged() argument
235 mListener.onWallpaperColorsChanged(colors, displayId); in onWallpaperColorsChanged()
369 default void onWallpaperColorsChanged(WallpaperColors colors, int displayId) {} in onWallpaperColorsChanged() argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java59 public void onDisplayAdded(int displayId) { in onDisplayAdded() argument
60 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayAdded()
66 public void onDisplayChanged(int displayId) { in onDisplayChanged() argument
67 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
73 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
/packages/apps/Settings/src/com/android/settings/development/
DColorModePreference.java81 public void onDisplayAdded(int displayId) { in onDisplayAdded() argument
82 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayAdded()
88 public void onDisplayChanged(int displayId) { in onDisplayChanged() argument
89 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
95 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java111 public void registerListener(@NonNull OnUxRestrictionsChangedListener listener, int displayId) { in registerListener() argument
128 mUxRService.registerUxRestrictionsChangeListener(mListenerToService, displayId); in registerListener()
192 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions() argument
194 return mUxRService.getCurrentUxRestrictions(displayId); in getCurrentCarUxRestrictions()
421 public int getMappedPhysicalDisplayOfVirtualDisplay(int displayId) { in getMappedPhysicalDisplayOfVirtualDisplay() argument
423 return mUxRService.getMappedPhysicalDisplayOfVirtualDisplay(displayId); in getMappedPhysicalDisplayOfVirtualDisplay()
DICarUxRestrictionsManager.aidl32 …isterUxRestrictionsChangeListener(in ICarUxRestrictionsChangeListener listener, int displayId) = 0; in registerUxRestrictionsChangeListener() argument
34 CarUxRestrictions getCurrentUxRestrictions(int displayId) = 2; in getCurrentUxRestrictions() argument
41 int getMappedPhysicalDisplayOfVirtualDisplay(int displayId) = 9; in getMappedPhysicalDisplayOfVirtualDisplay() argument
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonSelectionStateController.java118 if (taskInfo.topActivity != null && taskInfo.displayId == validDisplay) { in taskChanged()
128 int displayId = validTaskInfo.displayId; in taskChanged() local
131 if (carSystemBarButton.getDisplayId() == displayId) { in taskChanged()
141 if (carSystemBarButton.getDisplayId() == displayId) { in taskChanged()
194 validTaskInfo.displayId); in findSelectedButtons()
DCarSystemBar.java408 public void setImeWindowStatus(int displayId, IBinder token, int vis, int backDisposition, in setImeWindowStatus() argument
410 if (mContext.getDisplayId() != displayId) { in setImeWindowStatus()
438 int displayId, in onSystemBarAttributesChanged() argument
444 if (displayId != mDisplayId) { in onSystemBarAttributesChanged()
497 public void showTransient(int displayId, int[] types) { in showTransient() argument
498 if (displayId != mDisplayId) { in showTransient()
516 public void abortTransient(int displayId, int[] types) { in abortTransient() argument
517 if (displayId != mDisplayId) { in abortTransient()
/packages/services/Car/tests/SampleRearViewCamera/src/com/google/android/car/rvc/
DRearViewCameraActivityBase.java44 public void onDisplayAdded(int displayId) {}
47 public void onDisplayRemoved(int displayId) {}
50 public void onDisplayChanged(int displayId) {
51 if (displayId != Display.DEFAULT_DISPLAY) {
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DSystemProximityWakeLock.java68 public void onDisplayAdded(int displayId) {} in onDisplayAdded() argument
71 public void onDisplayRemoved(int displayId) {} in onDisplayRemoved() argument
74 public void onDisplayChanged(int displayId) { in onDisplayChanged() argument
75 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskShortcutFactory.java80 protected abstract boolean isAvailable(BaseDraggingActivity activity, int displayId); in isAvailable() argument
90 if (!isAvailable(activity, task.key.displayId)) { in getShortcut()
215 taskKey.displayId); in onClick()
226 protected boolean isAvailable(BaseDraggingActivity activity, int displayId) {
232 && (displayId == -1 || displayId == DEFAULT_DISPLAY);
267 protected boolean isAvailable(BaseDraggingActivity activity, int displayId) {
/packages/apps/Dialer/java/com/android/incallui/
DProximitySensor.java288 public void onDisplayRemoved(int displayId) {} in onDisplayRemoved() argument
291 public void onDisplayChanged(int displayId) { in onDisplayChanged() argument
292 if (displayId == Display.DEFAULT_DISPLAY) { in onDisplayChanged()
293 final Display display = displayManager.getDisplay(displayId); in onDisplayChanged()
306 public void onDisplayAdded(int displayId) {} in onDisplayAdded() argument
/packages/apps/Car/SystemUI/src/com/android/systemui/car/cluster/
DClusterDisplayController.java92 if (mClusterState.displayId != Display.INVALID_DISPLAY) {
93 mRootTDAOrganizer.registerListener(mClusterState.displayId, mRootTDAListener);
104 if (state.displayId != Display.INVALID_DISPLAY) {
105 mRootTDAOrganizer.registerListener(state.displayId, mRootTDAListener);
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleApplication.java51 int displayId = findDisplay(displayPort); in onCreate() local
52 if (displayId == Display.INVALID_DISPLAY) { in onCreate()
61 ActivityOptions options = ActivityOptions.makeBasic().setLaunchDisplayId(displayId); in onCreate()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java121 public void onDisplayAdded(int displayId) {
126 public void onDisplayRemoved(int displayId) {
131 public void onDisplayChanged(int displayId) {
132 if (displayId == Display.DEFAULT_DISPLAY) {

1234