/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 234 public int widthPixels; field in DisplayMetrics 331 widthPixels = o.widthPixels; in setTo() 348 widthPixels = 0; in setToDefaults() 355 noncompatWidthPixels = widthPixels; in setToDefaults() 392 && widthPixels == other.widthPixels in equalsPhysical() 408 return widthPixels * heightPixels * densityDpi; in hashCode() 413 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | CompactExtractEditLayout.java | 116 int widthPixels = dm.widthPixels; in onAttachedToWindow() local 130 if (cfg.isScreenRound() && heightPixels < widthPixels) { in onAttachedToWindow() 131 heightPixels = widthPixels; in onAttachedToWindow() 133 applyProportionalLayout(widthPixels, heightPixels); in onAttachedToWindow()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 37 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl() 39 new Mode(0, mMetrics.widthPixels, mMetrics.heightPixels, 60f) in WindowManagerImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 54 return dm.widthPixels; in getWidth() 76 return dm.widthPixels; in getHeight()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 134 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth() 135 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
|
D | FrameworkActionBar.java | 218 int popupMaxWidth = Math.max(mBridgeContext.getMetrics().widthPixels / 2, in measureContentWidth()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 467 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics() 478 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics() 544 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
D | ResourcesImpl.java | 204 if (DEBUG_CONFIG) Slog.v(TAG, "Returning DisplayMetrics: " + mMetrics.widthPixels in getDisplayMetrics() 446 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration() 447 width = mMetrics.widthPixels; in updateConfiguration() 453 height = mMetrics.widthPixels; in updateConfiguration()
|
D | Configuration.java | 1320 if (metrics.widthPixels >= metrics.heightPixels) { in writeResConfigToProto() 1321 width = metrics.widthPixels; in writeResConfigToProto() 1327 height = metrics.widthPixels; in writeResConfigToProto() 2436 if (metrics.widthPixels >= metrics.heightPixels) { in resourceQualifierString() 2437 width = metrics.widthPixels; in resourceQualifierString() 2443 height = metrics.widthPixels; in resourceQualifierString()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | ResizeHWLayerActivity.java | 37 int width = metrics.widthPixels; in onCreate()
|
D | BitmapUploadActivity.java | 59 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
|
D | SlowNestedRecyclerViewActivity.java | 53 innerItemWidth = (int) (resources.getDisplayMetrics().widthPixels / 3.3f); in SizeData()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScaleGestureDetectorTest.java | 62 final int displayWidth = dm.widthPixels; in testScaleGestureDetector()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels; in onMeasure()
|
D | ActionBarContextView.java | 121 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar() 235 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 77 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 44 displayMetrics.widthPixels = 1000; in setup()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 657 outSize.x = mTempMetrics.widthPixels; in getSize() 672 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); in getRectSize() 1152 mCachedAppWidthCompat = mTempMetrics.widthPixels; in updateCachedAppSizeIfNeededLocked()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | BitmapLoader.java | 63 int width = metrics.widthPixels; in getLruCache()
|
D | TestHelper.java | 231 int width = metrics.widthPixels; in initBackground()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | BitmapUploadActivity.java | 72 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 106 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in DisplayDensityUtils()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 130 mPosX = metrics.widthPixels/2; in TransformView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | FalsingDataProvider.java | 56 mWidthPixels = displayMetrics.widthPixels; in FalsingDataProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 675 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot() 685 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot() 736 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot() 743 new Rect(0, 0, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels)); in takeScreenshot()
|