Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp42 #define LOG_DISPLAY_ERROR(displayId, msg) \ argument
43 ALOGE("%s failed for display %s: %s", __FUNCTION__, to_string(displayId).c_str(), msg)
45 #define LOG_HWC_ERROR(what, error, displayId) \ argument
47 to_string(displayId).c_str(), to_string(error).c_str(), static_cast<int32_t>(error))
49 #define RETURN_IF_INVALID_DISPLAY(displayId, ...) \ argument
51 if (mDisplayData.count(displayId) == 0) { \
52 LOG_DISPLAY_ERROR(displayId, "Invalid display"); \
57 #define RETURN_IF_HWC_ERROR_FOR(what, error, displayId, ...) \ argument
60 LOG_HWC_ERROR(what, error, displayId); \
65 #define RETURN_IF_HWC_ERROR(error, displayId, ...) \ argument
[all …]
DHWComposer.h62 virtual bool hasDisplayCapability(const std::optional<DisplayId>& displayId,
70 virtual HWC2::Layer* createLayer(DisplayId displayId) = 0;
72 virtual void destroyLayer(DisplayId displayId, HWC2::Layer* layer) = 0;
75 virtual status_t prepare(DisplayId displayId, const compositionengine::Output&) = 0;
77 virtual status_t setClientTarget(DisplayId displayId, uint32_t slot,
82 virtual status_t presentAndGetReleaseFences(DisplayId displayId) = 0;
85 virtual status_t setPowerMode(DisplayId displayId, int mode) = 0;
88 virtual status_t setActiveConfig(DisplayId displayId, size_t configId) = 0;
91 virtual status_t setColorTransform(DisplayId displayId, const mat4& transform) = 0;
94 virtual void disconnectDisplay(DisplayId displayId) = 0;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationControllerTest.java161 int displayId) { in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() argument
162 register(displayId); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
167 assertEquals(expectedInitialSpec, getCurrentMagnificationSpec(displayId)); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
168 mMagnificationController.getMagnificationRegion(displayId, initialMagRegion); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
169 mMagnificationController.getMagnificationBounds(displayId, initialBounds); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
173 mMagnificationController.getCenterX(displayId), 0.0f); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
175 mMagnificationController.getCenterY(displayId), 0.0f); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager()
186 private void notRegistered_publicMethodsShouldBeBenign(int displayId) { in notRegistered_publicMethodsShouldBeBenign() argument
187 assertFalse(mMagnificationController.isMagnifying(displayId)); in notRegistered_publicMethodsShouldBeBenign()
188 assertFalse(mMagnificationController.magnificationRegionContains(displayId, 100, 100)); in notRegistered_publicMethodsShouldBeBenign()
[all …]
/frameworks/base/core/java/android/view/
DIWindowManager.aidl79 void getInitialDisplaySize(int displayId, out Point size); in getInitialDisplaySize() argument
81 void getBaseDisplaySize(int displayId, out Point size); in getBaseDisplaySize() argument
82 void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument
83 void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument
85 int getInitialDisplayDensity(int displayId); in getInitialDisplayDensity() argument
86 int getBaseDisplayDensity(int displayId); in getBaseDisplayDensity() argument
87 void setForcedDisplayDensityForUser(int displayId, int density, int userId); in setForcedDisplayDensityForUser() argument
88 void clearForcedDisplayDensityForUser(int displayId, int userId); in clearForcedDisplayDensityForUser() argument
89 void setForcedDisplayScalingMode(int displayId, int mode); // 0 = auto, 1 = disable in setForcedDisplayScalingMode() argument
91 void setOverscan(int displayId, int left, int top, int right, int bottom); in setOverscan() argument
[all …]
DWindowManagerImpl.java162 public void setShouldShowWithInsecureKeyguard(int displayId, boolean shouldShow) { in setShouldShowWithInsecureKeyguard() argument
165 .setShouldShowWithInsecureKeyguard(displayId, shouldShow); in setShouldShowWithInsecureKeyguard()
171 public void setShouldShowSystemDecors(int displayId, boolean shouldShow) { in setShouldShowSystemDecors() argument
174 .setShouldShowSystemDecors(displayId, shouldShow); in setShouldShowSystemDecors()
180 public boolean shouldShowSystemDecors(int displayId) { in shouldShowSystemDecors() argument
182 return WindowManagerGlobal.getWindowManagerService().shouldShowSystemDecors(displayId); in shouldShowSystemDecors()
189 public void setShouldShowIme(int displayId, boolean shouldShow) { in setShouldShowIme() argument
191 WindowManagerGlobal.getWindowManagerService().setShouldShowIme(displayId, shouldShow); in setShouldShowIme()
197 public boolean shouldShowIme(int displayId) { in shouldShowIme() argument
199 return WindowManagerGlobal.getWindowManagerService().shouldShowIme(displayId); in shouldShowIme()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java97 int displayId = INVALID_DISPLAY; in onRun() local
99 displayId = getDisplayId(); in onRun()
107 cmd.run(inputSource, displayId); in onRun()
125 final int displayId = Integer.parseInt(displayArg); in getDisplayId() local
126 if (displayId == INVALID_DISPLAY) { in getDisplayId()
129 return Math.max(displayId, 0); in getDisplayId()
138 public void run(int inputSource, int displayId) { in run() argument
140 sendText(inputSource, nextArgRequired(), displayId); in run()
149 private void sendText(int source, final String text, int displayId) { in sendText() argument
173 e.setDisplayId(displayId); in sendText()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNavigationBarController.java80 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
81 removeNavigationBar(displayId); in onDisplayRemoved()
85 public void onDisplayReady(int displayId) { in onDisplayReady() argument
86 Display display = mDisplayManager.getDisplay(displayId); in onDisplayReady()
119 final int displayId = display.getDisplayId(); in createNavigationBar() local
120 final boolean isOnDefaultDisplay = displayId == DEFAULT_DISPLAY; in createNavigationBar()
124 if (!wms.hasNavigationBar(displayId)) { in createNavigationBar()
157 mNavigationBars.append(displayId, navBar); in createNavigationBar()
167 private void removeNavigationBar(int displayId) { in removeNavigationBar() argument
168 NavigationBarFragment navBar = mNavigationBars.get(displayId); in removeNavigationBar()
[all …]
DCommandQueue.java156 default void disable(int displayId, @DisableFlags int state1, @Disable2Flags int state2, in disable() argument
180 default void setSystemUiVisibility(int displayId, int vis, int fullscreenStackVis, in setSystemUiVisibility() argument
194 default void setImeWindowStatus(int displayId, IBinder token, int vis, in setImeWindowStatus() argument
214 default void setWindowState(int displayId, @WindowType int window, in setWindowState() argument
225 default void appTransitionPending(int displayId, boolean forced) { } in appTransitionPending() argument
233 default void appTransitionCancelled(int displayId) { } in appTransitionCancelled() argument
245 int displayId, long startTime, long duration, boolean forced) { } in appTransitionStarting() argument
253 default void appTransitionFinished(int displayId) { } in appTransitionFinished() argument
284 default void onDisplayReady(int displayId) { } in onDisplayReady() argument
289 default void onDisplayRemoved(int displayId) { } in onDisplayRemoved() argument
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerShellCommand.java92 int displayId = Display.DEFAULT_DISPLAY; in getDisplayId() local
96 displayId = Integer.parseInt(getNextArgRequired()); in getDisplayId()
103 return displayId; in getDisplayId()
106 private void printInitialDisplaySize(PrintWriter pw , int displayId) { in printInitialDisplaySize() argument
111 mInterface.getInitialDisplaySize(displayId, initialSize); in printInitialDisplaySize()
112 mInterface.getBaseDisplaySize(displayId, baseSize); in printInitialDisplaySize()
127 final int displayId = getDisplayId(size); in runDisplaySize() local
129 printInitialDisplaySize(pw, displayId); in runDisplaySize()
132 printInitialDisplaySize(pw, displayId); in runDisplaySize()
145 w = parseDimension(wstr, displayId); in runDisplaySize()
[all …]
DWindowAnimator.java103 void addDisplayLocked(final int displayId) { in addDisplayLocked() argument
106 getDisplayContentsAnimatorLocked(displayId); in addDisplayLocked()
109 void removeDisplayLocked(final int displayId) { in removeDisplayLocked() argument
110 final DisplayContentsAnimator displayAnimator = mDisplayContentsAnimators.get(displayId); in removeDisplayLocked()
118 mDisplayContentsAnimators.delete(displayId); in removeDisplayLocked()
156 final int displayId = mDisplayContentsAnimators.keyAt(i); in animate() local
157 final DisplayContent dc = mService.mRoot.getDisplayContent(displayId); in animate()
187 final int displayId = mDisplayContentsAnimators.keyAt(i); in animate() local
188 final DisplayContent dc = mService.mRoot.getDisplayContent(displayId); in animate()
199 accessibilityController.drawMagnifiedRegionBorderIfNeededLocked(displayId); in animate()
[all …]
DWallpaperVisibilityListeners.java36 int displayId) { in registerWallpaperVisibilityListener() argument
38 mDisplayListeners.get(displayId); in registerWallpaperVisibilityListener()
41 mDisplayListeners.append(displayId, listeners); in registerWallpaperVisibilityListener()
47 int displayId) { in unregisterWallpaperVisibilityListener() argument
49 mDisplayListeners.get(displayId); in unregisterWallpaperVisibilityListener()
57 final int displayId = displayContent.getDisplayId(); in notifyWallpaperVisibilityChanged() local
60 mDisplayListeners.get(displayId); in notifyWallpaperVisibilityChanged()
72 listener.onWallpaperVisibilityChanged(visible, displayId); in notifyWallpaperVisibilityChanged()
DWindowManagerInternal.java217 public abstract boolean setMagnificationCallbacks(int displayId, in setMagnificationCallbacks() argument
229 public abstract void setMagnificationSpec(int displayId, MagnificationSpec spec); in setMagnificationSpec() argument
238 public abstract void setForceShowMagnifiableBounds(int displayId, boolean show); in setForceShowMagnifiableBounds() argument
246 public abstract void getMagnificationRegion(int displayId, @NonNull Region magnificationRegion); in getMagnificationRegion() argument
322 public abstract void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument
329 public abstract void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument
338 public abstract void addWindowToken(android.os.IBinder token, int type, int displayId); in addWindowToken() argument
348 int displayId); in removeWindowToken() argument
365 public abstract int getInputMethodWindowVisibleHeight(int displayId); in getInputMethodWindowVisibleHeight() argument
462 public abstract boolean isInputMethodClientFocus(int uid, int pid, int displayId); in isInputMethodClientFocus() argument
[all …]
DKeyguardController.java92 boolean isKeyguardOrAodShowing(int displayId) { in isKeyguardOrAodShowing() argument
94 && !isDisplayOccluded(displayId); in isKeyguardOrAodShowing()
102 boolean isKeyguardUnoccludedOrAodShowing(int displayId) { in isKeyguardUnoccludedOrAodShowing() argument
103 if (displayId == DEFAULT_DISPLAY && mAodShowing) { in isKeyguardUnoccludedOrAodShowing()
106 return isKeyguardOrAodShowing(displayId); in isKeyguardUnoccludedOrAodShowing()
113 boolean isKeyguardShowing(int displayId) { in isKeyguardShowing() argument
114 return mKeyguardShowing && !mKeyguardGoingAway && !isDisplayOccluded(displayId); in isKeyguardShowing()
304 private void handleOccludedChanged(int displayId) { in handleOccludedChanged() argument
309 if (displayId != DEFAULT_DISPLAY) { in handleOccludedChanged()
310 updateKeyguardSleepToken(displayId); in handleOccludedChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayModeDirector.java118 public int[] getAllowedModes(int displayId) { in getAllowedModes() argument
120 SparseArray<Vote> votes = getVotesLocked(displayId); in getAllowedModes()
121 Display.Mode[] modes = mSupportedModesByDisplay.get(displayId); in getAllowedModes()
122 Display.Mode defaultMode = mDefaultModeByDisplay.get(displayId); in getAllowedModes()
125 + displayId + ")"); in getAllowedModes()
133 private SparseArray<Vote> getVotesLocked(int displayId) { in getVotesLocked() argument
134 SparseArray<Vote> displayVotes = mVotesByDisplay.get(displayId); in getVotesLocked()
325 private void updateVoteLocked(int displayId, int priority, Vote vote) { in updateVoteLocked() argument
327 Slog.i(TAG, "updateVoteLocked(displayId=" + displayId in updateVoteLocked()
337 final SparseArray<Vote> votes = getOrCreateVotesByDisplay(displayId); in updateVoteLocked()
[all …]
DDisplayManagerService.java484 int displayId, DisplayInfo info) { in setDisplayInfoOverrideFromWindowManagerInternal() argument
486 LogicalDisplay display = mLogicalDisplays.get(displayId); in setDisplayInfoOverrideFromWindowManagerInternal()
489 handleLogicalDisplayChanged(displayId, display); in setDisplayInfoOverrideFromWindowManagerInternal()
499 private void getNonOverrideDisplayInfoInternal(int displayId, DisplayInfo outInfo) { in getNonOverrideDisplayInfoInternal() argument
501 final LogicalDisplay display = mLogicalDisplays.get(displayId); in getNonOverrideDisplayInfoInternal()
570 private DisplayInfo getDisplayInfoInternal(int displayId, int callingUid) { in getDisplayInfoInternal() argument
572 LogicalDisplay display = mLogicalDisplays.get(displayId); in getDisplayInfoInternal()
576 || isUidPresentOnDisplayInternal(callingUid, displayId)) { in getDisplayInfoInternal()
735 private void requestColorModeInternal(int displayId, int colorMode) { in requestColorModeInternal() argument
737 LogicalDisplay display = mLogicalDisplays.get(displayId); in requestColorModeInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardDisplayManager.java63 public void onDisplayAdded(int displayId) {
64 final Display display = mDisplayService.getDisplay(displayId);
66 updateNavigationBarVisibility(displayId, false /* navBarVisible */);
72 public void onDisplayChanged(int displayId) {
73 if (displayId == DEFAULT_DISPLAY) return;
74 final Display display = mDisplayService.getDisplay(displayId);
76 final Presentation presentation = mPresentations.get(displayId);
78 hidePresentation(displayId);
85 public void onDisplayRemoved(int displayId) {
86 hidePresentation(displayId);
[all …]
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerInternal.java47 void setWindowState(int displayId, int window, int state); in setWindowState() argument
55 void appTransitionPending(int displayId); in appTransitionPending() argument
62 void appTransitionCancelled(int displayId); in appTransitionCancelled() argument
73 void appTransitionStarting(int displayId, long statusBarAnimationsStartTime, in appTransitionStarting() argument
78 void topAppWindowChanged(int displayId, boolean menuVisible); in topAppWindowChanged() argument
79 void setSystemUiVisibility(int displayId, int vis, int fullscreenStackVis, int dockedStackVis, in setSystemUiVisibility() argument
83 void appTransitionFinished(int displayId); in appTransitionFinished() argument
110 void onDisplayReady(int displayId); in onDisplayReady() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java114 DisplayMagnification(int displayId) { in DisplayMagnification() argument
115 mDisplayId = displayId; in DisplayMagnification()
623 public void register(int displayId) { in register() argument
625 DisplayMagnification display = mDisplays.get(displayId); in register()
627 display = new DisplayMagnification(displayId); in register()
633 mDisplays.put(displayId, display); in register()
645 public void unregister(int displayId) { in unregister() argument
647 unregisterLocked(displayId, false); in unregister()
670 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
672 unregisterLocked(displayId, true); in onDisplayRemoved()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSizeCompatModeActivityController.java70 public void onSizeCompatModeActivityChanged(int displayId, IBinder activityToken) { in SizeCompatModeActivityController()
72 updateRestartButton(displayId, activityToken); in SizeCompatModeActivityController()
83 public void setImeWindowStatus(int displayId, IBinder token, int vis, int backDisposition, in setImeWindowStatus() argument
85 RestartActivityButton button = mActiveButtons.get(displayId); in setImeWindowStatus()
98 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument
99 mDisplayContextCache.remove(displayId); in onDisplayRemoved()
100 removeRestartButton(displayId); in onDisplayRemoved()
103 private void removeRestartButton(int displayId) { in removeRestartButton() argument
104 RestartActivityButton button = mActiveButtons.get(displayId); in removeRestartButton()
107 mActiveButtons.remove(displayId); in removeRestartButton()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java54 int displayId = 2; in testObtainWithDisplayId() local
57 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
62 0 /* deviceId */, 0 /* edgeFlags */, InputDevice.SOURCE_TOUCHSCREEN, displayId); in testObtainWithDisplayId()
64 assertEquals(displayId, motionEvent_Single.getDisplayId()); in testObtainWithDisplayId()
65 assertEquals(displayId, motionEvent.getDisplayId()); in testObtainWithDisplayId()
67 displayId = 5; in testObtainWithDisplayId()
68 motionEvent.setDisplayId(displayId); in testObtainWithDisplayId()
69 assertEquals(displayId, motionEvent.getDisplayId()); in testObtainWithDisplayId()
77 0, 0, 0, 0, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, displayId, 0); in testObtainWithDisplayId()
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBar.aidl32 void disable(int displayId, int state1, int state2); in disable() argument
55 void setSystemUiVisibility(int displayId, int vis, int fullscreenStackVis, int dockedStackVis, in setSystemUiVisibility() argument
59 void topAppWindowChanged(int displayId, boolean menuVisible); in topAppWindowChanged() argument
60 void setImeWindowStatus(int displayId, in IBinder token, int vis, int backDisposition, in setImeWindowStatus() argument
81 void appTransitionPending(int displayId); in appTransitionPending() argument
88 void appTransitionCancelled(int displayId); in appTransitionCancelled() argument
99 void appTransitionStarting(int displayId, long statusBarAnimationsStartTime, in appTransitionStarting() argument
107 void appTransitionFinished(int displayId); in appTransitionFinished() argument
169 void onDisplayReady(int displayId); in onDisplayReady() argument
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java129 public DisplayInfo getDisplayInfo(int displayId) { in getDisplayInfo() argument
134 info = mDisplayInfoCache.get(displayId); in getDisplayInfo()
140 info = mDm.getDisplayInfo(displayId); in getDisplayInfo()
146 mDisplayInfoCache.put(displayId, info); in getDisplayInfo()
151 Log.d(TAG, "getDisplayInfo: displayId=" + displayId + ", info=" + info); in getDisplayInfo()
194 public boolean isUidPresentOnDisplay(int uid, int displayId) { in isUidPresentOnDisplay() argument
196 return mDm.isUidPresentOnDisplay(uid, displayId); in isUidPresentOnDisplay()
212 public Display getCompatibleDisplay(int displayId, DisplayAdjustments daj) { in getCompatibleDisplay() argument
213 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay()
217 return new Display(this, displayId, displayInfo, daj); in getCompatibleDisplay()
[all …]
/frameworks/base/core/java/android/app/
DIWallpaperManager.aidl96 void setDimensionHints(in int width, in int height, in String callingPackage, int displayId); in setDimensionHints() argument
102 int getWidthHint(int displayId); in getWidthHint() argument
108 int getHeightHint(int displayId); in getHeightHint() argument
113 void setDisplayPadding(in Rect padding, in String callingPackage, int displayId); in setDisplayPadding() argument
154 WallpaperColors getWallpaperColors(int which, int userId, int displayId); in getWallpaperColors() argument
159 void registerWallpaperColorsCallback(IWallpaperManagerCallback cb, int userId, int displayId); in registerWallpaperColorsCallback() argument
164 void unregisterWallpaperColorsCallback(IWallpaperManagerCallback cb, int userId, int displayId); in unregisterWallpaperColorsCallback() argument
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
DAccessibilityServiceConnectionImpl.java91 public float getMagnificationScale(int displayId) { in getMagnificationScale() argument
95 public float getMagnificationCenterX(int displayId) { in getMagnificationCenterX() argument
99 public float getMagnificationCenterY(int displayId) { in getMagnificationCenterY() argument
103 public Region getMagnificationRegion(int displayId) { in getMagnificationRegion() argument
107 public boolean resetMagnification(int displayId, boolean animate) { in resetMagnification() argument
111 public boolean setMagnificationScaleAndCenter(int displayId, float scale, float centerX, in setMagnificationScaleAndCenter() argument
116 public void setMagnificationCallbackEnabled(int displayId, boolean enabled) {} in setMagnificationCallbackEnabled() argument
/frameworks/base/core/java/android/accessibilityservice/
DIAccessibilityServiceConnection.aidl73 float getMagnificationScale(int displayId); in getMagnificationScale() argument
75 float getMagnificationCenterX(int displayId); in getMagnificationCenterX() argument
77 float getMagnificationCenterY(int displayId); in getMagnificationCenterY() argument
79 Region getMagnificationRegion(int displayId); in getMagnificationRegion() argument
81 boolean resetMagnification(int displayId, boolean animate); in resetMagnification() argument
83 boolean setMagnificationScaleAndCenter(int displayId, float scale, float centerX, float centerY, in setMagnificationScaleAndCenter() argument
86 void setMagnificationCallbackEnabled(int displayId, boolean enabled); in setMagnificationCallbackEnabled() argument

12345678910>>...12