Home
last modified time | relevance | path

Searched refs:dw (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
DStrictModeFlash.java63 final int dw = mLastDW; in drawIfNeeded() local
66 Rect dirty = new Rect(0, 0, dw, dh); in drawIfNeeded()
79 c.clipRect(new Rect(0, 0, dw, mThickness)); in drawIfNeeded()
89 c.clipRect(new Rect(dw - mThickness, 0, dw, dh)); in drawIfNeeded()
94 c.clipRect(new Rect(0, dh - mThickness, dw, dh)); in drawIfNeeded()
115 void positionSurface(int dw, int dh) { in positionSurface() argument
116 if (mLastDW == dw && mLastDH == dh) { in positionSurface()
119 mLastDW = dw; in positionSurface()
121 mSurfaceControl.setBufferSize(dw, dh); in positionSurface()
DWatermark.java131 void positionSurface(int dw, int dh) { in positionSurface() argument
132 if (mLastDW != dw || mLastDH != dh) { in positionSurface()
133 mLastDW = dw; in positionSurface()
135 mSurfaceControl.setBufferSize(dw, dh); in positionSurface()
142 final int dw = mLastDW; in drawIfNeeded() local
146 Rect dirty = new Rect(0, 0, dw, dh); in drawIfNeeded()
161 int div = (dw+mTextWidth)/deltaX; in drawIfNeeded()
162 int rem = (dw+mTextWidth) - (div*deltaX); in drawIfNeeded()
173 if (x >= dw) { in drawIfNeeded()
174 x -= (dw+mTextWidth); in drawIfNeeded()
DWallpaperWindowToken.java72 void updateWallpaperOffset(int dw, int dh, boolean sync) { in updateWallpaperOffset() argument
76 if (wallpaperController.updateWallpaperOffset(wallpaper, dw, dh, sync)) { in updateWallpaperOffset()
85 final int dw = displayInfo.logicalWidth; in updateWallpaperVisibility() local
99 wallpaperController.updateWallpaperOffset(wallpaper, dw, dh, false); in updateWallpaperVisibility()
127 final int dw = displayInfo.logicalWidth; in updateWallpaperWindows() local
134 wallpaperController.updateWallpaperOffset(wallpaper, dw, dh, false); in updateWallpaperWindows()
DEmulatorDisplayOverlay.java115 void positionSurface(int dw, int dh, int rotation) { in positionSurface() argument
116 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) { in positionSurface()
119 mLastDW = dw; in positionSurface()
DCircularDisplayMask.java147 void positionSurface(int dw, int dh, int rotation) { in positionSurface() argument
148 if (mLastDW == dw && mLastDH == dh && mRotation == rotation) { in positionSurface()
151 mLastDW = dw; in positionSurface()
DDockedStackDividerController.java276 final int dw = rotated in initSnapAlgorithmForRotations() local
285 displayPolicy.getStableInsetsLw(rotation, dw, dh, displayCutout, mTmpRect); in initSnapAlgorithmForRotations()
287 config.orientation = (dw <= dh) ? ORIENTATION_PORTRAIT : ORIENTATION_LANDSCAPE; in initSnapAlgorithmForRotations()
289 final int appWidth = displayPolicy.getNonDecorDisplayWidth(dw, dh, rotation, in initSnapAlgorithmForRotations()
291 final int appHeight = displayPolicy.getNonDecorDisplayHeight(dw, dh, rotation, in initSnapAlgorithmForRotations()
293 displayPolicy.getNonDecorInsetsLw(rotation, dw, dh, displayCutout, mTmpRect); in initSnapAlgorithmForRotations()
301 config.screenWidthDp = (int) (displayPolicy.getConfigDisplayWidth(dw, dh, rotation, in initSnapAlgorithmForRotations()
303 config.screenHeightDp = (int) (displayPolicy.getConfigDisplayHeight(dw, dh, rotation, in initSnapAlgorithmForRotations()
307 rotationContext.getResources(), dw, dh, getContentWidth(), in initSnapAlgorithmForRotations()
DDisplayContent.java1594 final int dw = rotated ? mBaseDisplayHeight : mBaseDisplayWidth; in updateDisplayAndOrientation() local
1601 final int appWidth = mDisplayPolicy.getNonDecorDisplayWidth(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation()
1603 final int appHeight = mDisplayPolicy.getNonDecorDisplayHeight(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation()
1606 mDisplayInfo.logicalWidth = dw; in updateDisplayAndOrientation()
1623 computeSizeRangesAndScreenLayout(mDisplayInfo, rotated, uiMode, dw, dh, in updateDisplayAndOrientation()
1635 mBaseDisplayRect.set(0, 0, dw, dh); in updateDisplayAndOrientation()
1678 final int dw = displayInfo.logicalWidth; in computeScreenConfiguration() local
1680 config.orientation = (dw <= dh) ? ORIENTATION_PORTRAIT : ORIENTATION_LANDSCAPE; in computeScreenConfiguration()
1687 (int)(mDisplayPolicy.getConfigDisplayWidth(dw, dh, displayInfo.rotation, in computeScreenConfiguration()
1690 (int)(mDisplayPolicy.getConfigDisplayHeight(dw, dh, displayInfo.rotation, in computeScreenConfiguration()
[all …]
DInputConsumerImpl.java118 void layout(SurfaceControl.Transaction t, int dw, int dh) { in layout() argument
119 mTmpRect.set(0, 0, dw, dh); in layout()
DWallpaperController.java285 boolean updateWallpaperOffset(WindowState wallpaperWin, int dw, int dh, boolean sync) { in updateWallpaperOffset() argument
294 int availw = wallpaperWin.getFrameLw().right - wallpaperWin.getFrameLw().left - dw; in updateWallpaperOffset()
402 final int dw = displayInfo.logicalWidth; in updateWallpaperOffsetLocked() local
440 mWallpaperTokens.get(curTokenNdx).updateWallpaperOffset(dw, dh, sync); in updateWallpaperOffsetLocked()
DInputMonitor.java194 void layoutInputConsumers(int dw, int dh) { in layoutInputConsumers() argument
198 mInputConsumers.valueAt(i).layout(mInputTransaction, dw, dh); in layoutInputConsumers()
DActivityRecord.java3892 final int dw = rotated ? mDisplayHeight : mDisplayWidth; in CompatDisplayInsets() local
3896 policy.getNonDecorInsetsLw(rotation, dw, dh, cutout, mNonDecorInsets[rotation]); in CompatDisplayInsets()
3904 final int dw = rotated ? mDisplayHeight : mDisplayWidth; in getDisplayBoundsByRotation() local
3906 outBounds.set(0, 0, dw, dh); in getDisplayBoundsByRotation()
/frameworks/base/tools/aapt/
DFileFinder.cpp43 DirectoryWalker* dw) in findFiles() argument
47 if (!dw->openDir(basePath)) { in findFiles()
55 while ((entry = dw->nextEntry()) != NULL) { in findFiles()
63 DirectoryWalker* copy = dw->clone(); in findFiles()
70 checkAndAddFile(fullPath,dw->entryStats(),extensions,fileStore); in findFiles()
75 dw->closeDir(); in findFiles()
DCrunchCache.cpp86 DirectoryWalker* dw = new SystemDirectoryWalker(); in loadFiles() local
89 mFileFinder->findFiles(mSourcePath, mExtensions, mSourceFiles,dw); in loadFiles()
92 mFileFinder->findFiles(mDestPath,mExtensions,mDestFiles,dw); in loadFiles()
94 delete dw; in loadFiles()
DFileFinder.h27 DirectoryWalker* dw) = 0;
58 DirectoryWalker* dw);
/frameworks/base/core/java/android/text/style/
DDrawableMarginSpan.java89 int dw = mDrawable.getIntrinsicWidth(); in drawLeadingMargin() local
93 mDrawable.setBounds(ix, itop, ix + dw, itop + dh); in drawLeadingMargin()
/frameworks/ml/nn/common/operations/
DHeatmapMaxKeypoint.cpp120 for (int32_t dw = -1; dw <= 1; dw++) { in heatmapMaxKeypointFloat32Nhwc() local
123 int32_t w = static_cast<int32_t>(maxIndexWidth) + dw; in heatmapMaxKeypointFloat32Nhwc()
132 localGrid[dh + 1][dw + 1] = heatmapBase[heatmapIndex]; in heatmapMaxKeypointFloat32Nhwc()
/frameworks/base/tools/aapt/tests/
DMockFileFinder.h37 DirectoryWalker* dw) in findFiles() argument
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp481 sp<DisconnectWaiter> dw(new DisconnectWaiter()); in TEST_F() local
482 mConsumer->consumerConnect(dw, false); in TEST_F()
489 dw->waitForFrame(); in TEST_F()
492 dw->waitForFrame(); in TEST_F()
497 dw->finishDisconnect(); in TEST_F()
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp381 uint32_t dw = currentWidth - newWidth; in scaleDownCrop() local
382 auto halfdw = dw / 2; in scaleDownCrop()
385 outCrop.right -= (dw - halfdw); in scaleDownCrop()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java302 final int dw = mIcon.getBounds().width(); in onMeasure() local
303 super.setPadding((w - dw) / 2, getPaddingTop(), getPaddingRight(), getPaddingBottom()); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java504 int dw = r.left + tw + r.right; in placeNumber() local
505 if (dw < mNumberBackground.getMinimumWidth()) { in placeNumber()
506 dw = mNumberBackground.getMinimumWidth(); in placeNumber()
508 mNumberX = w-r.right-((dw-r.right-r.left)/2); in placeNumber()
514 mNumberBackground.setBounds(w-dw, h-dh, w, h); in placeNumber()
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java855 int dw = 0;
858 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth()));
862 dw += mPaddingLeft + mPaddingRight;
865 setMeasuredDimension(resolveSizeAndState(dw, widthMeasureSpec, 0),
DProgressBar.java2107 int dw = 0; in onMeasure() local
2112 dw = Math.max(mMinWidth, Math.min(mMaxWidth, d.getIntrinsicWidth())); in onMeasure()
2118 dw += mPaddingLeft + mPaddingRight; in onMeasure()
2121 final int measuredWidth = resolveSizeAndState(dw, widthMeasureSpec, 0); in onMeasure()
/frameworks/native/libs/gui/
DGLConsumer.cpp767 uint32_t dw = currentWidth - newWidth; in scaleDownCrop() local
768 auto halfdw = dw / 2; in scaleDownCrop()
771 outCrop.right -= (dw - halfdw); in scaleDownCrop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java941 int dw = flipped ? lh : lw; in updateBoundingPath() local
944 mBoundingPath.set(DisplayCutout.pathFromResources(getResources(), dw, dh)); in updateBoundingPath() local
946 transformPhysicalToLogicalCoordinates(mInfo.rotation, dw, dh, m); in updateBoundingPath()

12