Home
last modified time | relevance | path

Searched refs:widthPixels (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/core/java/android/util/
DDisplayMetrics.java181 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/
DCompactExtractEditLayout.java116 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/
DContentFrameLayout.java96 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()
DTooltipPopup.java155 mTmpDisplayFrame.set(0, statusBarHeight, metrics.widthPixels, metrics.heightPixels); in computePosition()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java36 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/
DMediaRouteDialogHelper.java44 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/
DNavigationBar.java128 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth()
129 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java449 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics()
460 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics()
525 outDm.widthPixels = newWidth; in computeCompatibleScaling()
DResourcesImpl.java163 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/
DResourcesUtil.java36 return context.getResources().getDisplayMetrics().widthPixels; in getScreenWidthPx()
/frameworks/support/wear/tests/src/android/support/wear/widget/
DBoxInsetLayoutTest.java71 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/
DResizeHWLayerActivity.java37 int width = metrics.widthPixels; in onCreate()
DBitmapUploadActivity.java59 int minDisplayDimen = Math.min(mMetrics.widthPixels, mMetrics.heightPixels); in onAttachedToWindow()
DSlowNestedRecyclerViewActivity.java53 innerItemWidth = (int) (resources.getDisplayMetrics().widthPixels / 3.3f); in SizeData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java496 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/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure()
DActionBarContextView.java120 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar()
234 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java69 final int displayWidth = dm.widthPixels; in testScaleGestureDetector()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DOverlayDisplayWindow.java321 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/
DActionBarPolicy.java85 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java70 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
/frameworks/base/core/java/android/view/
DDisplay.java595 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/
DTransformTestActivity.java130 mPosX = metrics.widthPixels/2; in TransformView()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java107 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in DisplayDensityUtils()
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java77 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow()

123