/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 181 public int widthPixels; field in DisplayMetrics 275 widthPixels = o.widthPixels; in setTo() 292 widthPixels = 0; in setToDefaults() 299 noncompatWidthPixels = widthPixels; in setToDefaults() 336 && widthPixels == other.widthPixels in equalsPhysical() 352 return widthPixels * heightPixels * densityDpi; in hashCode() 357 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/support/v7/appcompat/src/android/support/v7/widget/ |
D | ContentFrameLayout.java | 96 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; in onMeasure() 109 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure() 153 min = (int) tv.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure()
|
D | TooltipPopup.java | 155 mTmpDisplayFrame.set(0, statusBarHeight, metrics.widthPixels, metrics.heightPixels); in computePosition()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 36 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl() 38 new Mode(0, mMetrics.widthPixels, mMetrics.heightPixels, 60f) in WindowManagerImpl()
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteDialogHelper.java | 44 boolean isPortrait = metrics.widthPixels < metrics.heightPixels; in getDialogWidth() 52 return (int) value.getFraction(metrics.widthPixels, metrics.widthPixels); in getDialogWidth()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 128 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth() 129 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 449 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics() 460 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics() 525 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
D | ResourcesImpl.java | 163 if (DEBUG_CONFIG) Slog.v(TAG, "Returning DisplayMetrics: " + mMetrics.widthPixels in getDisplayMetrics() 397 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration() 398 width = mMetrics.widthPixels; in updateConfiguration() 404 height = mMetrics.widthPixels; in updateConfiguration()
|
/frameworks/support/wear/src/android/support/wear/internal/widget/ |
D | ResourcesUtil.java | 36 return context.getResources().getDisplayMetrics().widthPixels; in getScreenWidthPx()
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
D | BoxInsetLayoutTest.java | 71 int boxInset = (int) (FACTOR * Math.min(dm.widthPixels, dm.heightPixels)); in testCase1() 121 int boxInset = (int) (FACTOR * Math.min(dm.widthPixels, dm.heightPixels)); in testCase2() 231 int boxInset = (int) (FACTOR * Math.min(dm.widthPixels, dm.heightPixels)); in testCase3() 331 int boxInset = (int) (FACTOR * Math.min(dm.widthPixels, dm.heightPixels)); in testCase4() 357 right(equalTo(dm.widthPixels - desiredPadding))).check( in testCase4()
|
/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/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 496 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot() 506 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot() 557 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot() 580 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot() 593 if (width != mDisplayMetrics.widthPixels || height != mDisplayMetrics.heightPixels) { in takeScreenshot() 605 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot() 611 takeScreenshot(finisher, statusBarVisible, navBarVisible, 0, 0, mDisplayMetrics.widthPixels, in takeScreenshot()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels; in onMeasure()
|
D | ActionBarContextView.java | 120 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar() 234 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScaleGestureDetectorTest.java | 69 final int displayWidth = dm.widthPixels; in testScaleGestureDetector()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | OverlayDisplayWindow.java | 321 0 : mDefaultDisplayMetrics.widthPixels; in createWindow() 334 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams() 343 x = Math.max(0, Math.min(x, mDefaultDisplayMetrics.widthPixels - width)); in updateWindowParams()
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ActionBarPolicy.java | 85 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 70 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 595 outSize.x = mTempMetrics.widthPixels; in getSize() 610 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); in getRectSize() 1050 mCachedAppWidthCompat = mTempMetrics.widthPixels; in updateCachedAppSizeIfNeededLocked()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 130 mPosX = metrics.widthPixels/2; in TransformView()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 107 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in DisplayDensityUtils()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 77 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow()
|