Home
last modified time | relevance | path

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

12

/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/Cluster/src/android/car/cluster/
DClusterDisplayProvider.java82 public void onDisplayAdded(int displayId) { in trackClusterDisplay()
86 mClusterDisplayId = displayId; in trackClusterDisplay()
89 Display display = mDisplayManager.getDisplay(displayId); in trackClusterDisplay()
91 mClusterDisplayId = displayId; in trackClusterDisplay()
97 mListener.onDisplayAdded(displayId); in trackClusterDisplay()
102 public void onDisplayRemoved(int displayId) { in trackClusterDisplay()
103 if (displayId == mClusterDisplayId) { in trackClusterDisplay()
105 mListener.onDisplayRemoved(displayId); in trackClusterDisplay()
110 public void onDisplayChanged(int displayId) { in trackClusterDisplay()
111 if (displayId == mClusterDisplayId) { in trackClusterDisplay()
[all …]
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()
169 Set<ActivityListener> listeners = mListeners.get(info.displayId); in notifyTopActivities()
172 listener.onTopActivityChanged(info.displayId, info.topActivity); in notifyTopActivities()
DClusterRenderingService.java105 public void onDisplayAdded(int displayId) {
106 Log.i(TAG, "Cluster display found, displayId: " + displayId);
107 mClusterDisplayId = displayId;
114 public void onDisplayRemoved(int displayId) {
119 public void onDisplayChanged(int displayId) {
124 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) {}
DMainClusterActivity.java129 public VirtualDisplay(int displayId, Rect unobscuredBounds) { in VirtualDisplay() argument
130 mDisplayId = displayId; in VirtualDisplay()
168 private ActivityMonitor.ActivityListener mNavigationActivityMonitor = (displayId, activity) -> {
169 if (displayId != mNavigationDisplay.mDisplayId) {
/packages/services/Car/service/src/com/android/car/
DSystemActivityMonitoringService.java61 public final int displayId; field in SystemActivityMonitoringService.TopTaskInfoContainer
66 int displayId, int position, StackInfo stackInfo) { in TopTaskInfoContainer() argument
69 this.displayId = displayId; in TopTaskInfoContainer()
78 && this.displayId == taskInfo.displayId in isMatching()
88 topActivity, taskId, stackInfo.stackId, stackInfo.userId, displayId, position); in toString()
150 int displayId = mTopTasks.keyAt(i); in dump() local
153 writer.println("display id " + displayId + ": " + info); in dump()
290 int displayId = info.displayId; in updateTasks() local
296 info.displayId, info.position, info); in updateTasks()
297 TopTaskInfoContainer currentTopTaskInfo = topTasks.get(displayId); in updateTasks()
[all …]
DCarUxRestrictionsManagerService.java333 ICarUxRestrictionsChangeListener listener, int displayId) { in registerUxRestrictionsChangeListener() argument
342 client = new UxRestrictionsClient(listener, displayId); in registerUxRestrictionsChangeListener()
401 public synchronized CarUxRestrictions getCurrentUxRestrictions(int displayId) { in getCurrentUxRestrictions() argument
402 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions()
406 displayId)); in getCurrentUxRestrictions()
659 UxRestrictionsClient(ICarUxRestrictionsChangeListener l, int displayId) { in UxRestrictionsClient() argument
662 mDisplayId = displayId; in UxRestrictionsClient()
975 private Byte getPhysicalPort(int displayId) { in getPhysicalPort() argument
976 if (!mPortLookup.containsKey(displayId)) { in getPhysicalPort()
977 Display display = mDisplayManager.getDisplay(displayId); in getPhysicalPort()
[all …]
DICarImpl.java774 int displayId;
776 displayId = Integer.parseInt(args[1]);
787 options.setLaunchDisplayId(displayId);
789 displayId, ActivityManager.getCurrentUser())) {
802 int displayId;
804 displayId = Integer.parseInt(args[1]);
809 mFixedActivityService.stopFixedActivityMode(displayId);
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java375 private boolean launchIfNecessary(int displayId) { in launchIfNecessary() argument
424 RunningActivityInfo activityInfo = mRunningActivities.get(stackInfo.displayId); in launchIfNecessary()
439 + " user:" + topUserId + " display:" + stackInfo.displayId); in launchIfNecessary()
502 RunningActivityInfo activityInfo = mRunningActivities.get(displayId); in launchIfNecessary()
559 private boolean isDisplayAllowedForFixedMode(int displayId) { in isDisplayAllowedForFixedMode() argument
560 if (displayId == Display.DEFAULT_DISPLAY || displayId == Display.INVALID_DISPLAY) { in isDisplayAllowedForFixedMode()
561 Log.w(TAG_AM, "Target display cannot be used for fixed mode, displayId:" + displayId, in isDisplayAllowedForFixedMode()
573 @NonNull ActivityOptions options, int displayId, @UserIdInt int userId) { in startFixedActivityModeForDisplayAndUser() argument
574 if (!isDisplayAllowedForFixedMode(displayId)) { in startFixedActivityModeForDisplayAndUser()
599 Presentation p = mBlockingPresentations.removeReturnOld(displayId); in startFixedActivityModeForDisplayAndUser()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskSystemShortcut.java118 protected abstract boolean isAvailable(BaseDraggingActivity activity, int displayId); in isAvailable() argument
127 final int displayId = task.key.displayId; in getOnClickListener() local
131 if (!isAvailable(activity, displayId)) { in getOnClickListener()
208 future, animStartedListener, mHandler, true /* scaleUp */, displayId); in getOnClickListener()
220 protected boolean isAvailable(BaseDraggingActivity activity, int displayId) {
226 && (displayId == -1 || displayId == DEFAULT_DISPLAY);
262 protected boolean isAvailable(BaseDraggingActivity activity, int displayId) {
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java101 public void onDisplayAdded(int displayId) {
106 public void onDisplayRemoved(int displayId) {
111 public void onDisplayChanged(int displayId) {
112 if (displayId == Display.DEFAULT_DISPLAY) {
257 int displayId = display.getDisplayId(); in reconfigureSecondaryDisplays() local
260 int windowingMode = wm.getWindowingMode(displayId); in reconfigureSecondaryDisplays()
261 wm.setWindowingMode(displayId, windowingMode); in reconfigureSecondaryDisplays()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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/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/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java309 if (!isUxRestrictedOnDisplay(info.displayId)) { in isActivityBackedBySafeActivity()
441 int displayId = physicalDisplay.getDisplayId(); in doHandleInit() local
443 mUxRestrictionsListeners.put(displayId, listener); in doHandleInit()
444 mCarUxRestrictionsService.registerUxRestrictionsChangeListener(listener, displayId); in doHandleInit()
917 int displayId = mUxRestrictionsListeners.keyAt(i); in dump() local
920 displayId, (listener.isRestricted() ? "restricted" : "unrestricted"))); in dump()
986 private boolean isUxRestrictedOnDisplay(int displayId) { in isUxRestrictedOnDisplay() argument
988 if (mUxRestrictionsListeners.indexOfKey(displayId) < 0) { in isUxRestrictedOnDisplay()
996 listenerForTopTaskDisplay = mUxRestrictionsListeners.get(displayId); in isUxRestrictedOnDisplay()
1014 if (isUxRestrictedOnDisplay(topTask.displayId)) { in blockTopActivityIfNecessary()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDefaultDisplay.java64 public final void onDisplayAdded(int displayId) { } in onDisplayAdded() argument
67 public final void onDisplayRemoved(int displayId) { } in onDisplayRemoved() argument
70 public final void onDisplayChanged(int displayId) { in onDisplayChanged() argument
71 if (displayId != mId) { in onDisplayChanged()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java109 public void registerListener(@NonNull OnUxRestrictionsChangedListener listener, int displayId) { in registerListener() argument
126 mUxRService.registerUxRestrictionsChangeListener(mListenerToService, displayId); in registerListener()
190 public CarUxRestrictions getCurrentCarUxRestrictions(int displayId) { in getCurrentCarUxRestrictions() argument
192 return mUxRService.getCurrentUxRestrictions(displayId); in getCurrentCarUxRestrictions()
DICarUxRestrictionsManager.aidl31 …isterUxRestrictionsChangeListener(in ICarUxRestrictionsChangeListener listener, int displayId) = 0; in registerUxRestrictionsChangeListener() argument
33 CarUxRestrictions getCurrentUxRestrictions(int displayId) = 2; in getCurrentUxRestrictions() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DLivePreviewFragment.java507 int displayId = root.getDisplay().getDisplayId(); in onServiceConnected() local
511 new Rect(0, 0, 0, 0), displayId); in onServiceConnected()
526 public void attachEngine(IWallpaperEngine engine, int displayId) { in attachEngine() argument
552 public void onWallpaperColorsChanged(WallpaperColors colors, int displayId) in onWallpaperColorsChanged() argument
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperPreview.java636 final int displayId = getWindow().getDecorView().getDisplay().getDisplayId(); in onServiceConnected() local
641 new Rect(0, 0, 0, 0), displayId); in onServiceConnected()
656 public void attachEngine(IWallpaperEngine engine, int displayId) { in attachEngine() argument
678 public void onWallpaperColorsChanged(WallpaperColors colors, int displayId) in onWallpaperColorsChanged() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java231 final int displayId = 1; in getProjectionOptions_nonDefaults() local
238 .thenReturn(displayId); in getProjectionOptions_nonDefaults()
245 assertThat(options.getActivityOptions().getLaunchDisplayId()).isEqualTo(displayId); in getProjectionOptions_nonDefaults()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java199 private static void startActivity(Context ctx, ComponentName name, int displayId) { in startActivity() argument
205 options.setLaunchDisplayId(displayId); in startActivity()

12