/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayWindowSettings.java | 173 private @Nullable Entry getEntry(DisplayInfo displayInfo) { in getEntry() argument 174 final String identifier = getIdentifier(displayInfo); in getEntry() 181 if ((entry = mEntries.get(displayInfo.name)) != null) { in getEntry() 183 return updateIdentifierForEntry(entry, displayInfo); in getEntry() 188 private Entry getOrCreateEntry(DisplayInfo displayInfo) { in getOrCreateEntry() argument 189 final Entry entry = getEntry(displayInfo); in getOrCreateEntry() 190 return entry != null ? entry : new Entry(getIdentifier(displayInfo)); in getOrCreateEntry() 198 private Entry updateIdentifierForEntry(Entry entry, DisplayInfo displayInfo) { in updateIdentifierForEntry() argument 199 final Entry newEntry = new Entry(getIdentifier(displayInfo), entry); in updateIdentifierForEntry() 200 removeEntry(displayInfo); in updateIdentifierForEntry() [all …]
|
D | RefreshRatePolicy.java | 33 RefreshRatePolicy(WindowManagerService wmService, DisplayInfo displayInfo, in RefreshRatePolicy() argument 35 mLowRefreshRateId = findLowRefreshRateModeId(displayInfo); in RefreshRatePolicy() 44 private int findLowRefreshRateModeId(DisplayInfo displayInfo) { in findLowRefreshRateModeId() argument 45 Mode mode = displayInfo.getDefaultMode(); in findLowRefreshRateModeId() 46 float[] refreshRates = displayInfo.getDefaultRefreshRates(); in findLowRefreshRateModeId() 53 return displayInfo.findDefaultModeByRefreshRate(bestRefreshRate); in findLowRefreshRateModeId()
|
D | WallpaperWindowToken.java | 84 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperVisibility() local 85 final int dw = displayInfo.logicalWidth; in updateWallpaperVisibility() 86 final int dh = displayInfo.logicalHeight; in updateWallpaperVisibility() 126 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperWindows() local 127 final int dw = displayInfo.logicalWidth; in updateWallpaperWindows() 128 final int dh = displayInfo.logicalHeight; in updateWallpaperWindows()
|
D | WindowChangeAnimationSpec.java | 58 public WindowChangeAnimationSpec(Rect startBounds, Rect endBounds, DisplayInfo displayInfo, in WindowChangeAnimationSpec() argument 64 createBoundsInterpolator((int) (ANIMATION_DURATION * durationScale), displayInfo); in WindowChangeAnimationSpec() local 93 private void createBoundsInterpolator(long duration, DisplayInfo displayInfo) { in createBoundsInterpolator() argument 139 displayInfo.appWidth, displayInfo.appHeight); in createBoundsInterpolator()
|
D | DisplayContent.java | 1680 final DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode, config); in computeScreenConfiguration() local 1681 calculateBounds(displayInfo, mTmpBounds); in computeScreenConfiguration() 1684 final int dw = displayInfo.logicalWidth; in computeScreenConfiguration() 1685 final int dh = displayInfo.logicalHeight; in computeScreenConfiguration() 1689 config.windowConfiguration.setRotation(displayInfo.rotation); in computeScreenConfiguration() 1693 (int)(mDisplayPolicy.getConfigDisplayWidth(dw, dh, displayInfo.rotation, in computeScreenConfiguration() 1694 config.uiMode, displayInfo.displayCutout) / density); in computeScreenConfiguration() 1696 (int)(mDisplayPolicy.getConfigDisplayHeight(dw, dh, displayInfo.rotation, in computeScreenConfiguration() 1697 config.uiMode, displayInfo.displayCutout) / density); in computeScreenConfiguration() 1699 mDisplayPolicy.getNonDecorInsetsLw(displayInfo.rotation, dw, dh, in computeScreenConfiguration() [all …]
|
D | PinnedStackController.java | 319 synchronized void onDisplayInfoChanged(DisplayInfo displayInfo) { in onDisplayInfoChanged() argument 320 mDisplayInfo.copyFrom(displayInfo); in onDisplayInfoChanged() 330 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in onTaskStackBoundsChanged() local 331 if (isSameDimensionAndRotation(mDisplayInfo, displayInfo)) { in onTaskStackBoundsChanged() 338 mDisplayInfo.copyFrom(displayInfo); in onTaskStackBoundsChanged() 348 mDisplayInfo.copyFrom(displayInfo); in onTaskStackBoundsChanged()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CacheManagerTests.cpp | 36 DisplayInfo displayInfo = DeviceInfo::get()->displayInfo(); in RENDERTHREAD_SKIA_PIPELINE_TEST() local 45 SkImageInfo info = SkImageInfo::MakeA8(displayInfo.w, displayInfo.h); in RENDERTHREAD_SKIA_PIPELINE_TEST() 56 Bitmap::allocateHeapBitmap(SkImageInfo::MakeA8(displayInfo.w, displayInfo.h)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarButtonTest.java | 71 final DisplayInfo displayInfo = new DisplayInfo(); in createVirtualDisplay() local 72 mContext.getDisplay().getDisplayInfo(displayInfo); in createVirtualDisplay() 76 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay() 77 displayInfo.logicalHeight, PixelFormat.RGBA_8888, 2); in createVirtualDisplay() 81 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay() 82 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, mReader.getSurface(), in createVirtualDisplay()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 368 final DisplayInfo displayInfo = getDisplayInfoLocked(); in configureDisplayLocked() local 374 mTempLayerStackRect.set(0, 0, displayInfo.logicalWidth, displayInfo.logicalHeight); in configureDisplayLocked() 381 orientation = displayInfo.rotation; in configureDisplayLocked() 411 if ((displayInfo.flags & Display.FLAG_SCALING_DISABLED) != 0 || mDisplayScalingDisabled) { in configureDisplayLocked() 412 displayRectWidth = displayInfo.logicalWidth; in configureDisplayLocked() 413 displayRectHeight = displayInfo.logicalHeight; in configureDisplayLocked() 414 } else if (physWidth * displayInfo.logicalHeight in configureDisplayLocked() 415 < physHeight * displayInfo.logicalWidth) { in configureDisplayLocked() 418 displayRectHeight = displayInfo.logicalHeight * physWidth / displayInfo.logicalWidth; in configureDisplayLocked() 421 displayRectWidth = displayInfo.logicalWidth * physHeight / displayInfo.logicalHeight; in configureDisplayLocked()
|
D | ColorFade.java | 153 DisplayInfo displayInfo = mDisplayManagerInternal.getDisplayInfo(mDisplayId); in prepare() local 154 mDisplayLayerStack = displayInfo.layerStack; in prepare() 155 mDisplayWidth = displayInfo.getNaturalWidth(); in prepare() 156 mDisplayHeight = displayInfo.getNaturalHeight(); in prepare() 766 DisplayInfo displayInfo = mDisplayManagerInternal.getDisplayInfo(mDisplayId); 767 switch (displayInfo.rotation) { 773 t.setPosition(mSurfaceControl, 0, displayInfo.logicalHeight); 777 t.setPosition(mSurfaceControl, displayInfo.logicalWidth, 778 displayInfo.logicalHeight); 782 t.setPosition(mSurfaceControl, displayInfo.logicalWidth, 0);
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTestsBase.java | 411 DisplayContent createNewDisplay(DisplayInfo displayInfo) { in createNewDisplay() argument 414 displayInfo, DEFAULT_DISPLAY_ADJUSTMENTS); in createNewDisplay() 428 DisplayInfo displayInfo = new DisplayInfo(); in createNewDisplay() local 429 displayInfo.copyFrom(mDisplayInfo); in createNewDisplay() 430 displayInfo.state = displayState; in createNewDisplay() 433 displayInfo, DEFAULT_DISPLAY_ADJUSTMENTS); in createNewDisplay() 452 DisplayInfo displayInfo = new DisplayInfo(); in createMockSimulatedDisplay() local 453 displayInfo.copyFrom(mDisplayInfo); in createMockSimulatedDisplay() 454 displayInfo.type = Display.TYPE_VIRTUAL; in createMockSimulatedDisplay() 455 displayInfo.ownerUid = SYSTEM_UID; in createMockSimulatedDisplay() [all …]
|
D | WindowFrameTests.java | 267 final DisplayInfo displayInfo = mWm.getDefaultDisplayContentLocked().getDisplayInfo(); in testLayoutNonfullscreenTask() local 268 final int logicalWidth = displayInfo.logicalWidth; in testLayoutNonfullscreenTask() 269 final int logicalHeight = displayInfo.logicalHeight; in testLayoutNonfullscreenTask() 332 final DisplayInfo displayInfo = w.getDisplayContent().getDisplayInfo(); in testCalculatePolicyCrop() local 333 final int logicalWidth = displayInfo.logicalWidth; in testCalculatePolicyCrop() 334 final int logicalHeight = displayInfo.logicalHeight; in testCalculatePolicyCrop() 340 cf.top += displayInfo.logicalWidth / 10; in testCalculatePolicyCrop() 341 cf.bottom -= displayInfo.logicalWidth / 5; in testCalculatePolicyCrop() 378 Math.min(pf.width(), displayInfo.logicalWidth), in testCalculatePolicyCrop() 379 Math.min(pf.height(), displayInfo.logicalHeight)); in testCalculatePolicyCrop() [all …]
|
D | ScreenDecorWindowTests.java | 341 final DisplayInfo displayInfo = new DisplayInfo(); in createDisplay() local 343 defaultDisplay.getDisplayInfo(displayInfo); in createDisplay() 348 displayInfo.logicalWidth, displayInfo.logicalHeight, PixelFormat.RGBA_8888, 2); in createDisplay() 350 final VirtualDisplay display = dm.createVirtualDisplay(name, displayInfo.logicalWidth, in createDisplay() 351 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, imageReader.getSurface(), in createDisplay()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 411 public Display(DisplayManagerGlobal global, int displayId, /*@NotNull*/ DisplayInfo displayInfo, in Display() argument 413 this(global, displayId, displayInfo, daj, null /*res*/); in Display() 423 public Display(DisplayManagerGlobal global, int displayId, /*@NotNull*/ DisplayInfo displayInfo, in Display() argument 425 this(global, displayId, displayInfo, null /*daj*/, res); in Display() 429 /*@NotNull*/ DisplayInfo displayInfo, DisplayAdjustments daj, Resources res) { in Display() argument 432 mDisplayInfo = displayInfo; in Display() 440 mLayerStack = displayInfo.layerStack; in Display() 441 mFlags = displayInfo.flags; in Display() 442 mType = displayInfo.type; in Display() 443 mAddress = displayInfo.address; in Display() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
D | ImageWallpaperRenderer.java | 71 DisplayInfo displayInfo = new DisplayInfo(); in ImageWallpaperRenderer() local 72 context.getDisplay().getDisplayInfo(displayInfo); in ImageWallpaperRenderer() 77 mScissor = new Rect(0, 0, displayInfo.logicalWidth, displayInfo.logicalHeight); in ImageWallpaperRenderer() 79 mScissor = new Rect(0, 0, displayInfo.logicalHeight, displayInfo.logicalWidth); in ImageWallpaperRenderer()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 169 public final SurfaceControl.PhysicalDisplayInfo displayInfo; field in LocalDisplayAdapterTest.DisplayConfig 171 private DisplayConfig(long displayId, SurfaceControl.PhysicalDisplayInfo displayInfo) { in DisplayConfig() argument 173 this.displayInfo = displayInfo; in DisplayConfig() 182 config.displayInfo in setUpDisplay()
|
/frameworks/base/libs/hwui/ |
D | DeviceInfo.cpp | 62 DisplayInfo displayInfo; in QueryDisplayInfo() local 63 status_t status = SurfaceComposerClient::getDisplayInfo(token, &displayInfo); in QueryDisplayInfo() 65 return displayInfo; in QueryDisplayInfo()
|
D | JankTracker.cpp | 82 JankTracker::JankTracker(ProfileDataContainer* globalData, const DisplayInfo& displayInfo) { in JankTracker() argument 84 nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1_s / displayInfo.fps); in JankTracker() 85 nsecs_t sfOffset = frameIntervalNanos - (displayInfo.presentationDeadline - 1_ms); in JankTracker() 86 nsecs_t offsetDelta = sfOffset - displayInfo.appVsyncOffset; in JankTracker()
|
D | DeviceInfo.h | 40 const DisplayInfo& displayInfo() const { return mDisplayInfo; } in displayInfo() function
|
D | JankTracker.h | 52 explicit JankTracker(ProfileDataContainer* globalData, const DisplayInfo& displayInfo);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyRegistryTest.java | 149 public void onDisplayInfoChanged(TelephonyDisplayInfo displayInfo) { in onDisplayInfoChanged() argument 150 mTelephonyDisplayInfo = displayInfo; in onDisplayInfoChanged() 443 TelephonyDisplayInfo displayInfo = new TelephonyDisplayInfo(0, 0); in testNotifyDisplayInfoChanged() local 444 mTelephonyRegistry.notifyDisplayInfoChanged(0, INVALID_SUBSCRIPTION_ID, displayInfo); in testNotifyDisplayInfoChanged() 449 mTelephonyRegistry.notifyDisplayInfoChanged(0, 2, displayInfo); in testNotifyDisplayInfoChanged() 451 assertEquals(displayInfo, mTelephonyDisplayInfo); in testNotifyDisplayInfoChanged()
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerGlobal.java | 213 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay() local 214 if (displayInfo == null) { in getCompatibleDisplay() 217 return new Display(this, displayId, displayInfo, daj); in getCompatibleDisplay() 231 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay() local 232 if (displayInfo == null) { in getCompatibleDisplay() 235 return new Display(this, displayId, displayInfo, resources); in getCompatibleDisplay()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderThread.cpp | 186 mCacheManager = new CacheManager(DeviceInfo::get()->displayInfo()); in initThreadLocals() 190 auto& displayInfo = DeviceInfo::get()->displayInfo(); in setupFrameInterval() local 191 nsecs_t frameIntervalNanos = static_cast<nsecs_t>(1000000000 / displayInfo.fps); in setupFrameInterval()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DividerSnapAlgorithm.java | 88 DisplayInfo displayInfo = new DisplayInfo(); in create() local 90 Display.DEFAULT_DISPLAY).getDisplayInfo(displayInfo); in create() 96 displayInfo.logicalWidth, displayInfo.logicalHeight, in create()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 248 private Display createStubDisplay(DisplayInfo displayInfo) { in createStubDisplay() argument 251 displayInfo, DEFAULT_DISPLAY_ADJUSTMENTS); in createStubDisplay()
|