/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.cpp | 47 #define LOG_DISPLAY_ERROR(displayId, msg) \ argument 48 ALOGE("%s failed for display %s: %s", __FUNCTION__, to_string(displayId).c_str(), msg) 50 #define LOG_HWC_ERROR(what, error, displayId) \ argument 52 to_string(displayId).c_str(), to_string(error).c_str(), static_cast<int32_t>(error)) 54 #define RETURN_IF_INVALID_DISPLAY(displayId, ...) \ argument 56 if (mDisplayData.count(displayId) == 0) { \ 57 LOG_DISPLAY_ERROR(displayId, "Invalid display"); \ 62 #define RETURN_IF_HWC_ERROR_FOR(what, error, displayId, ...) \ argument 65 LOG_HWC_ERROR(what, error, displayId); \ 70 #define RETURN_IF_HWC_ERROR(error, displayId, ...) \ argument [all …]
|
D | HWComposer.h | 89 virtual bool hasDisplayCapability(DisplayId displayId, 96 virtual void allocatePhysicalDisplay(hal::HWDisplayId hwcDisplayId, DisplayId displayId) = 0; 99 virtual HWC2::Layer* createLayer(DisplayId displayId) = 0; 101 virtual void destroyLayer(DisplayId displayId, HWC2::Layer* layer) = 0; 114 virtual status_t setClientTarget(DisplayId displayId, uint32_t slot, 119 virtual status_t presentAndGetReleaseFences(DisplayId displayId) = 0; 122 virtual status_t setPowerMode(DisplayId displayId, hal::PowerMode mode) = 0; 125 virtual status_t setColorTransform(DisplayId displayId, const mat4& transform) = 0; 128 virtual void disconnectDisplay(DisplayId displayId) = 0; 131 virtual sp<Fence> getPresentFence(DisplayId displayId) const = 0; [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 162 int displayId) { in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() argument 163 register(displayId); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 168 assertEquals(expectedInitialSpec, getCurrentMagnificationSpec(displayId)); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 169 mMagnificationController.getMagnificationRegion(displayId, initialMagRegion); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 170 mMagnificationController.getMagnificationBounds(displayId, initialBounds); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 174 mMagnificationController.getCenterX(displayId), 0.0f); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 176 mMagnificationController.getCenterY(displayId), 0.0f); in initialState_noMagnificationAndMagnificationRegionReadFromWindowManager() 187 private void notRegistered_publicMethodsShouldBeBenign(int displayId) { in notRegistered_publicMethodsShouldBeBenign() argument 188 assertFalse(mMagnificationController.isMagnifying(displayId)); in notRegistered_publicMethodsShouldBeBenign() 189 assertFalse(mMagnificationController.magnificationRegionContains(displayId, 100, 100)); in notRegistered_publicMethodsShouldBeBenign() [all …]
|
/frameworks/base/core/java/android/view/ |
D | IWindowManager.aidl | 104 void getInitialDisplaySize(int displayId, out Point size); in getInitialDisplaySize() argument 106 void getBaseDisplaySize(int displayId, out Point size); in getBaseDisplaySize() argument 107 void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument 108 void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument 110 int getInitialDisplayDensity(int displayId); in getInitialDisplayDensity() argument 111 int getBaseDisplayDensity(int displayId); in getBaseDisplayDensity() argument 112 void setForcedDisplayDensityForUser(int displayId, int density, int userId); in setForcedDisplayDensityForUser() argument 113 void clearForcedDisplayDensityForUser(int displayId, int userId); in clearForcedDisplayDensityForUser() argument 114 void setForcedDisplayScalingMode(int displayId, int mode); // 0 = auto, 1 = disable in setForcedDisplayScalingMode() argument 133 int addWindowTokenWithOptions(IBinder token, int type, int displayId, in Bundle options, in addWindowTokenWithOptions() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wm/ |
D | DisplayController.java | 60 public Display getDisplay(int displayId) { in getDisplay() argument 62 return displayManager.getDisplay(displayId); in getDisplay() 68 public void onDisplayAdded(int displayId) { 71 if (mDisplays.get(displayId) != null) { 74 Display display = getDisplay(displayId); 81 record.mDisplayId = displayId; 82 record.mContext = (displayId == Display.DEFAULT_DISPLAY) ? mContext 85 mDisplays.put(displayId, record); 87 mDisplayChangedListeners.get(i).onDisplayAdded(displayId); 94 public void onDisplayConfigurationChanged(int displayId, Configuration newConfig) { [all …]
|
/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 | WindowManagerInternal.java | 227 public abstract boolean setMagnificationCallbacks(int displayId, in setMagnificationCallbacks() argument 239 public abstract void setMagnificationSpec(int displayId, MagnificationSpec spec); in setMagnificationSpec() argument 248 public abstract void setForceShowMagnifiableBounds(int displayId, boolean show); in setForceShowMagnifiableBounds() argument 256 public abstract void getMagnificationRegion(int displayId, @NonNull Region magnificationRegion); in getMagnificationRegion() argument 281 public abstract boolean setWindowsForAccessibilityCallback(int displayId, in setWindowsForAccessibilityCallback() argument 330 public abstract void waitForAllWindowsDrawn(Runnable callback, long timeout, int displayId); in waitForAllWindowsDrawn() argument 339 public abstract void setForcedDisplaySize(int displayId, int width, int height); in setForcedDisplaySize() argument 346 public abstract void clearForcedDisplaySize(int displayId); in clearForcedDisplaySize() argument 355 public abstract void addWindowToken(android.os.IBinder token, int type, int displayId); in addWindowToken() argument 365 int displayId); in removeWindowToken() argument [all …]
|
D | WindowManagerShellCommand.java | 103 int displayId = Display.DEFAULT_DISPLAY; in getDisplayId() local 107 displayId = Integer.parseInt(getNextArgRequired()); in getDisplayId() 114 return displayId; in getDisplayId() 117 private void printInitialDisplaySize(PrintWriter pw , int displayId) { in printInitialDisplaySize() argument 122 mInterface.getInitialDisplaySize(displayId, initialSize); in printInitialDisplaySize() 123 mInterface.getBaseDisplaySize(displayId, baseSize); in printInitialDisplaySize() 138 final int displayId = getDisplayId(size); in runDisplaySize() local 140 printInitialDisplaySize(pw, displayId); in runDisplaySize() 143 printInitialDisplaySize(pw, displayId); in runDisplaySize() 156 w = parseDimension(wstr, displayId); in runDisplaySize() [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() 302 private void handleOccludedChanged(int displayId) { in handleOccludedChanged() argument 307 if (displayId != DEFAULT_DISPLAY) { in handleOccludedChanged() 308 updateKeyguardSleepToken(displayId); in handleOccludedChanged() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NavigationBarController.java | 78 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument 79 removeNavigationBar(displayId); in onDisplayRemoved() 83 public void onDisplayReady(int displayId) { in onDisplayReady() argument 84 Display display = mDisplayManager.getDisplay(displayId); in onDisplayReady() 117 final int displayId = display.getDisplayId(); in createNavigationBar() local 118 final boolean isOnDefaultDisplay = displayId == DEFAULT_DISPLAY; in createNavigationBar() 122 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 | 167 default void disable(int displayId, @DisableFlags int state1, @Disable2Flags int state2, in disable() argument 183 default void setImeWindowStatus(int displayId, IBinder token, int vis, in setImeWindowStatus() argument 203 default void setWindowState(int displayId, @WindowType int window, in setWindowState() argument 214 default void appTransitionPending(int displayId, boolean forced) { } in appTransitionPending() argument 222 default void appTransitionCancelled(int displayId) { } in appTransitionCancelled() argument 234 int displayId, long startTime, long duration, boolean forced) { } in appTransitionStarting() argument 242 default void appTransitionFinished(int displayId) { } in appTransitionFinished() argument 275 default void onDisplayReady(int displayId) { } in onDisplayReady() argument 280 default void onDisplayRemoved(int displayId) { } in onDisplayRemoved() argument 290 default void onSystemBarAppearanceChanged(int displayId, @Appearance int appearance, in onSystemBarAppearanceChanged() 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 Presentation presentation = mPresentations.get(displayId); 77 hidePresentation(displayId); 79 final Display display = mDisplayService.getDisplay(displayId); 87 public void onDisplayRemoved(int displayId) { 88 hidePresentation(displayId); [all …]
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | StatusBarManagerInternal.java | 52 void setWindowState(int displayId, int window, int state); in setWindowState() argument 60 void appTransitionPending(int displayId); in appTransitionPending() argument 67 void appTransitionCancelled(int displayId); in appTransitionCancelled() argument 78 void appTransitionStarting(int displayId, long statusBarAnimationsStartTime, in appTransitionStarting() argument 83 void topAppWindowChanged(int displayId, boolean isFullscreen, boolean isImmersive); in topAppWindowChanged() argument 84 void setDisableFlags(int displayId, int flags, String cause); in setDisableFlags() argument 86 void appTransitionFinished(int displayId); in appTransitionFinished() argument 113 void onDisplayReady(int displayId); in onDisplayReady() argument 121 void onSystemBarAppearanceChanged(int displayId, @Appearance int appearance, in onSystemBarAppearanceChanged() argument 125 void showTransient(int displayId, @InternalInsetsType int[] types); in showTransient() argument [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AbstractAccessibilityServiceConnection.java | 202 @Nullable MotionEventInjector getMotionEventInjectorForDisplayLocked(int displayId); in getMotionEventInjectorForDisplayLocked() argument 239 void setGestureDetectionPassthroughRegion(int displayId, Region region); in setGestureDetectionPassthroughRegion() argument 241 void setTouchExplorationPassthroughRegion(int displayId, Region region); in setTouchExplorationPassthroughRegion() argument 415 final int displayId = displayList.get(i); in getWindows() local 416 ensureWindowsAvailableTimedLocked(displayId); in getWindows() 419 displayId); in getWindows() 421 allWindows.put(displayId, windowList); in getWindows() 432 int displayId = Display.INVALID_DISPLAY; in getWindow() local 434 displayId = mA11yWindowManager.getDisplayIdByUserIdAndWindowIdLocked( in getWindow() 437 ensureWindowsAvailableTimedLocked(displayId); in getWindow() [all …]
|
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/core/tests/coretests/src/android/view/accessibility/ |
D | AccessibilityServiceConnectionImpl.java | 98 public float getMagnificationScale(int displayId) { in getMagnificationScale() argument 102 public float getMagnificationCenterX(int displayId) { in getMagnificationCenterX() argument 106 public float getMagnificationCenterY(int displayId) { in getMagnificationCenterY() argument 110 public Region getMagnificationRegion(int displayId) { in getMagnificationRegion() argument 114 public boolean resetMagnification(int displayId, boolean animate) { in resetMagnification() argument 118 public boolean setMagnificationScaleAndCenter(int displayId, float scale, float centerX, in setMagnificationScaleAndCenter() argument 123 public void setMagnificationCallbackEnabled(int displayId, boolean enabled) {} in setMagnificationCallbackEnabled() argument 145 public void dispatchGesture(int sequence, ParceledListSlice gestureSteps, int displayId) {} in dispatchGesture() argument 151 public IBinder getOverlayWindowToken(int displayId) { in getOverlayWindowToken() argument 159 public void takeScreenshot(int displayId, RemoteCallback callback) {} in takeScreenshot() argument [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerGlobal.java | 145 public DisplayInfo getDisplayInfo(int displayId) { in getDisplayInfo() argument 147 return getDisplayInfoLocked(displayId); in getDisplayInfo() 155 private @Nullable DisplayInfo getDisplayInfoLocked(int displayId) { in getDisplayInfoLocked() argument 158 info = mDisplayCache.query(displayId); in getDisplayInfoLocked() 161 info = mDm.getDisplayInfo(displayId); in getDisplayInfoLocked() 173 Log.d(TAG, "getDisplayInfo: displayId=" + displayId + ", info=" + info); in getDisplayInfoLocked() 212 public boolean isUidPresentOnDisplay(int uid, int displayId) { in isUidPresentOnDisplay() argument 214 return mDm.isUidPresentOnDisplay(uid, displayId); in isUidPresentOnDisplay() 230 public Display getCompatibleDisplay(int displayId, DisplayAdjustments daj) { in getCompatibleDisplay() argument 231 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SizeCompatModeActivityController.java | 75 public void onSizeCompatModeActivityChanged(int displayId, IBinder activityToken) { in SizeCompatModeActivityController() 77 updateRestartButton(displayId, activityToken); in SizeCompatModeActivityController() 88 public void setImeWindowStatus(int displayId, IBinder token, int vis, int backDisposition, in setImeWindowStatus() argument 90 RestartActivityButton button = mActiveButtons.get(displayId); in setImeWindowStatus() 103 public void onDisplayRemoved(int displayId) { in onDisplayRemoved() argument 104 mDisplayContextCache.remove(displayId); in onDisplayRemoved() 105 removeRestartButton(displayId); in onDisplayRemoved() 108 private void removeRestartButton(int displayId) { in removeRestartButton() argument 109 RestartActivityButton button = mActiveButtons.get(displayId); in removeRestartButton() 112 mActiveButtons.remove(displayId); in removeRestartButton() [all …]
|
/frameworks/opt/car/services/src/com/android/server/wm/ |
D | CarLaunchParamsModifier.java | 97 public void onDisplayAdded(int displayId) { 102 public void onDisplayRemoved(int displayId) { 104 mPassengerDisplays.remove(Integer.valueOf(displayId)); 105 updateProfileUserConfigForDisplayRemovalLocked(displayId); 110 public void onDisplayChanged(int displayId) { 115 private void updateProfileUserConfigForDisplayRemovalLocked(int displayId) { in updateProfileUserConfigForDisplayRemovalLocked() argument 116 mDisplayToProfileUserMapping.delete(displayId); in updateProfileUserConfigForDisplayRemovalLocked() 117 int i = mDefaultDisplayForProfileUser.indexOfValue(displayId); in updateProfileUserConfigForDisplayRemovalLocked() 203 for (int displayId : displayIds) { in setDisplayWhitelistForUser() 204 if (!mPassengerDisplays.contains(displayId)) { in setDisplayWhitelistForUser() [all …]
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | IAccessibilityServiceConnection.aidl | 78 float getMagnificationScale(int displayId); in getMagnificationScale() argument 80 float getMagnificationCenterX(int displayId); in getMagnificationCenterX() argument 82 float getMagnificationCenterY(int displayId); in getMagnificationCenterY() argument 84 Region getMagnificationRegion(int displayId); in getMagnificationRegion() argument 86 boolean resetMagnification(int displayId, boolean animate); in resetMagnification() argument 88 boolean setMagnificationScaleAndCenter(int displayId, float scale, float centerX, float centerY, in setMagnificationScaleAndCenter() argument 91 void setMagnificationCallbackEnabled(int displayId, boolean enabled); in setMagnificationCallbackEnabled() argument 105 void dispatchGesture(int sequence, in ParceledListSlice gestureSteps, int displayId); in dispatchGesture() argument 113 void takeScreenshot(int displayId, in RemoteCallback callback); in takeScreenshot() argument 115 void setGestureDetectionPassthroughRegion(int displayId, in Region region); in setGestureDetectionPassthroughRegion() argument [all …]
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | IStatusBar.aidl | 34 void disable(int displayId, int state1, int state2); in disable() argument 42 void topAppWindowChanged(int displayId, boolean isFullscreen, boolean isImmersive); in topAppWindowChanged() argument 43 void setImeWindowStatus(int displayId, in IBinder token, int vis, int backDisposition, in setImeWindowStatus() argument 64 void appTransitionPending(int displayId); in appTransitionPending() argument 71 void appTransitionCancelled(int displayId); in appTransitionCancelled() argument 82 void appTransitionStarting(int displayId, long statusBarAnimationsStartTime, in appTransitionStarting() argument 90 void appTransitionFinished(int displayId); in appTransitionFinished() argument 153 void onDisplayReady(int displayId); in onDisplayReady() argument 172 void onSystemBarAppearanceChanged(int displayId, int appearance, in onSystemBarAppearanceChanged() argument 182 void showTransient(int displayId, in int[] types); in showTransient() argument [all …]
|
/frameworks/base/core/java/android/window/ |
D | VirtualDisplayTaskEmbedder.java | 125 final int displayId = getDisplayId(); in onInitialize() local 128 mHost.getWindow(), mSurfaceControl, displayId); in onInitialize() local 129 wm.dontOverrideDisplayInfo(displayId); in onInitialize() 132 .setDisplayToSingleTaskInstance(displayId); in onInitialize() 214 final int displayId = mVirtualDisplay.getDisplay().getDisplayId(); in performBackPress() local 216 im.injectInputEvent(createKeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_BACK, displayId), in performBackPress() 218 im.injectInputEvent(createKeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_BACK, displayId), in performBackPress() 315 final int displayId = getDisplayId(); in reportLocation() local 317 .reportActivityView(displayId, screenToViewMatrix); in reportLocation() 320 positionInWindow.y, displayId); in reportLocation() local [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputState.cpp | 31 bool InputState::isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const { in isHovering() 34 memento.displayId == displayId && memento.hovering) { in isHovering() 104 entry.deviceId, entry.source, entry.displayId, actionMasked); in trackMotion() 161 entry.deviceId, entry.source, entry.displayId, actionMasked); in trackMotion() 175 entry.deviceId, entry.source, entry.displayId); in trackMotion() 199 memento.displayId == entry.displayId && memento.keyCode == entry.keyCode && in findKeyMemento() 211 memento.displayId == entry.displayId && memento.hovering == hovering) { in findMotionMemento() 222 memento.displayId = entry.displayId; in addKeyMemento() 236 memento.displayId = entry.displayId; in addMotionMemento() 274 memento.source, memento.displayId, memento.policyFlags, in synthesizeCancelationEvents() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayManagerService.java | 514 int displayId, DisplayInfo info) { in setDisplayInfoOverrideFromWindowManagerInternal() argument 516 LogicalDisplay display = mLogicalDisplays.get(displayId); in setDisplayInfoOverrideFromWindowManagerInternal() 519 handleLogicalDisplayChanged(displayId, display); in setDisplayInfoOverrideFromWindowManagerInternal() 529 private void getNonOverrideDisplayInfoInternal(int displayId, DisplayInfo outInfo) { in getNonOverrideDisplayInfoInternal() argument 531 final LogicalDisplay display = mLogicalDisplays.get(displayId); in getNonOverrideDisplayInfoInternal() 628 private DisplayInfo getDisplayInfoInternal(int displayId, int callingUid) { in getDisplayInfoInternal() argument 630 LogicalDisplay display = mLogicalDisplays.get(displayId); in getDisplayInfoInternal() 634 || isUidPresentOnDisplayInternal(callingUid, displayId)) { in getDisplayInfoInternal() 793 private void requestColorModeInternal(int displayId, int colorMode) { in requestColorModeInternal() argument 795 LogicalDisplay display = mLogicalDisplays.get(displayId); in requestColorModeInternal() [all …]
|