/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.cpp | 42 #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 …]
|
D | HWComposer.h | 62 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/ |
D | MagnificationControllerTest.java | 161 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/ |
D | IWindowManager.aidl | 79 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 …]
|
D | WindowManagerImpl.java | 162 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/ |
D | Input.java | 97 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/services/core/java/com/android/server/wm/ |
D | WindowManagerShellCommand.java | 92 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 …]
|
D | WindowAnimator.java | 103 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 …]
|
D | WindowManagerInternal.java | 216 public abstract boolean setMagnificationCallbacks(int displayId, in setMagnificationCallbacks() argument 228 public abstract void setMagnificationSpec(int displayId, MagnificationSpec spec); in setMagnificationSpec() argument 237 public abstract void setForceShowMagnifiableBounds(int displayId, boolean show); in setForceShowMagnifiableBounds() argument 245 public abstract void getMagnificationRegion(int displayId, @NonNull Region magnificationRegion); in getMagnificationRegion() argument 321 public abstract void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument 328 public abstract void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument 337 public abstract void addWindowToken(android.os.IBinder token, int type, int displayId); in addWindowToken() argument 347 int displayId); in removeWindowToken() argument 364 public abstract int getInputMethodWindowVisibleHeight(int displayId); in getInputMethodWindowVisibleHeight() argument 461 public abstract boolean isInputMethodClientFocus(int uid, int pid, int displayId); in isInputMethodClientFocus() argument [all …]
|
D | WallpaperVisibilityListeners.java | 36 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()
|
D | KeyguardController.java | 94 boolean isKeyguardOrAodShowing(int displayId) { in isKeyguardOrAodShowing() argument 96 && !isDisplayOccluded(displayId); in isKeyguardOrAodShowing() 104 boolean isKeyguardUnoccludedOrAodShowing(int displayId) { in isKeyguardUnoccludedOrAodShowing() argument 105 if (displayId == DEFAULT_DISPLAY && mAodShowing) { in isKeyguardUnoccludedOrAodShowing() 108 return isKeyguardOrAodShowing(displayId); in isKeyguardUnoccludedOrAodShowing() 115 boolean isKeyguardShowing(int displayId) { in isKeyguardShowing() argument 116 return mKeyguardShowing && !mKeyguardGoingAway && !isDisplayOccluded(displayId); in isKeyguardShowing() 309 private void handleOccludedChanged(int displayId) { in handleOccludedChanged() argument 314 if (displayId != DEFAULT_DISPLAY) { in handleOccludedChanged() 315 updateKeyguardSleepToken(displayId); in handleOccludedChanged() [all …]
|
D | RootActivityContainer.java | 285 ActivityDisplay getActivityDisplay(int displayId) { in getActivityDisplay() argument 288 if (activityDisplay.mDisplayId == displayId) { in getActivityDisplay() 300 @Nullable ActivityDisplay getActivityDisplayOrCreate(int displayId) { in getActivityDisplayOrCreate() argument 301 ActivityDisplay activityDisplay = getActivityDisplay(displayId); in getActivityDisplayOrCreate() 309 final Display display = mDisplayManager.getDisplay(displayId); in getActivityDisplayOrCreate() 321 boolean isDisplayAdded(int displayId) { in isDisplayAdded() argument 322 return getActivityDisplayOrCreate(displayId) != null; in isDisplayAdded() 336 final int displayId = mActivityDisplays.get(i).mDisplayId; in startHomeOnAllDisplays() local 337 homeStarted |= startHomeOnDisplay(userId, reason, displayId); in startHomeOnAllDisplays() 351 boolean startHomeOnDisplay(int userId, String reason, int displayId) { in startHomeOnDisplay() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NavigationBarController.java | 80 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 …]
|
D | CommandQueue.java | 156 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/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardDisplayManager.java | 64 public void onDisplayAdded(int displayId) { 65 final Display display = mDisplayService.getDisplay(displayId); 67 updateNavigationBarVisibility(displayId, false /* navBarVisible */); 73 public void onDisplayChanged(int displayId) { 74 if (displayId == DEFAULT_DISPLAY) return; 75 final Display display = mDisplayService.getDisplay(displayId); 77 final Presentation presentation = mPresentations.get(displayId); 79 hidePresentation(displayId); 86 public void onDisplayRemoved(int displayId) { 87 hidePresentation(displayId); [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 114 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/ |
D | SizeCompatModeActivityController.java | 70 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/services/core/java/com/android/server/statusbar/ |
D | StatusBarManagerInternal.java | 47 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/native/services/inputflinger/dispatcher/ |
D | InputState.cpp | 29 bool InputState::isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const { in isHovering() 32 memento.displayId == displayId && memento.hovering) { in isHovering() 102 entry->deviceId, entry->source, entry->displayId, actionMasked); in trackMotion() 156 entry->deviceId, entry->source, entry->displayId, actionMasked); in trackMotion() 170 entry->deviceId, entry->source, entry->displayId); in trackMotion() 194 memento.displayId == entry->displayId && memento.keyCode == entry->keyCode && in findKeyMemento() 206 memento.displayId == entry->displayId && memento.hovering == hovering) { in findMotionMemento() 217 memento.displayId = entry->displayId; in addKeyMemento() 231 memento.displayId = entry->displayId; in addMotionMemento() 256 memento.deviceId, memento.source, memento.displayId, in synthesizeCancelationEvents() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerGlobal.java | 129 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 …]
|
D | DisplayManagerInternal.java | 73 public abstract SurfaceControl.ScreenshotGraphicBuffer screenshot(int displayId); in screenshot() argument 82 public abstract DisplayInfo getDisplayInfo(int displayId); in getDisplayInfo() argument 114 int displayId, DisplayInfo info); in setDisplayInfoOverrideFromWindowManager() argument 124 public abstract void getNonOverrideDisplayInfo(int displayId, DisplayInfo outInfo); in getNonOverrideDisplayInfo() argument 157 public abstract void setDisplayProperties(int displayId, boolean hasContent, in setDisplayProperties() argument 171 public abstract void setDisplayOffsets(int displayId, int x, int y); in setDisplayOffsets() argument 180 public abstract void setDisplayScalingDisabled(int displayId, boolean disableScaling); in setDisplayScalingDisabled() argument 207 int displayId); in getDisplayedContentSamplingAttributes() argument 221 int displayId, boolean enable, int componentMask, int maxFrames); in setDisplayedContentSamplingEnabled() argument 235 int displayId, long maxFrames, long timestamp); in getDisplayedContentSample() argument
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | MotionEventTest.java | 54 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/ |
D | IStatusBar.aidl | 32 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/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 144 public int[] getAllowedModes(int displayId) { in getAllowedModes() argument 146 SparseArray<Vote> votes = getVotesLocked(displayId); in getAllowedModes() 147 Display.Mode[] modes = mSupportedModesByDisplay.get(displayId); in getAllowedModes() 148 Display.Mode defaultMode = mDefaultModeByDisplay.get(displayId); in getAllowedModes() 151 + displayId + ")"); in getAllowedModes() 159 private SparseArray<Vote> getVotesLocked(int displayId) { in getVotesLocked() argument 160 SparseArray<Vote> displayVotes = mVotesByDisplay.get(displayId); in getVotesLocked() 352 private void updateVoteLocked(int displayId, int priority, Vote vote) { in updateVoteLocked() argument 354 Slog.i(TAG, "updateVoteLocked(displayId=" + displayId in updateVoteLocked() 364 final SparseArray<Vote> votes = getOrCreateVotesByDisplay(displayId); in updateVoteLocked() [all …]
|
D | DisplayManagerService.java | 486 int displayId, DisplayInfo info) { in setDisplayInfoOverrideFromWindowManagerInternal() argument 488 LogicalDisplay display = mLogicalDisplays.get(displayId); in setDisplayInfoOverrideFromWindowManagerInternal() 491 handleLogicalDisplayChanged(displayId, display); in setDisplayInfoOverrideFromWindowManagerInternal() 501 private void getNonOverrideDisplayInfoInternal(int displayId, DisplayInfo outInfo) { in getNonOverrideDisplayInfoInternal() argument 503 final LogicalDisplay display = mLogicalDisplays.get(displayId); in getNonOverrideDisplayInfoInternal() 572 private DisplayInfo getDisplayInfoInternal(int displayId, int callingUid) { in getDisplayInfoInternal() argument 574 LogicalDisplay display = mLogicalDisplays.get(displayId); in getDisplayInfoInternal() 578 || isUidPresentOnDisplayInternal(callingUid, displayId)) { in getDisplayInfoInternal() 737 private void requestColorModeInternal(int displayId, int colorMode) { in requestColorModeInternal() argument 739 LogicalDisplay display = mLogicalDisplays.get(displayId); in requestColorModeInternal() [all …]
|