Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/util/
DDisplayMetrics.java74 public int widthPixels; field in DisplayMetrics
158 widthPixels = o.widthPixels; in setTo()
174 widthPixels = 0; in setToDefaults()
187 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
/frameworks/base/core/java/android/view/
DDisplay.java110 outSize.x = mTmpMetrics.widthPixels; in getSizeInternal()
317 + outMetrics.widthPixels + "x" + outMetrics.heightPixels in getMetrics()
358 outMetrics.noncompatWidthPixels = outMetrics.widthPixels = width; in getMetricsWithSize()
DViewConfiguration.java287 mMaximumDrawingCacheSize = 4 * metrics.widthPixels * metrics.heightPixels; in ViewConfiguration()
DScaleGestureDetector.java211 mRightSlopEdge = metrics.widthPixels - mEdgeSlop; in onTouchEvent()
DSurfaceView.java268 mLayout.x = metrics.widthPixels * 3; in hideSurface()
DViewDebug.java1082 Bitmap.createBitmap(metrics.widthPixels, in profileViewAndChildren()
DViewRootImpl.java906 desiredWindowWidth = packageMetrics.widthPixels; in performTraversals()
992 desiredWindowWidth = packageMetrics.widthPixels; in performTraversals()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java435 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics()
446 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics()
507 outDm.widthPixels = newWidth; in computeCompatibleScaling()
DResources.java1466 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration()
1467 width = mMetrics.widthPixels; in updateConfiguration()
1473 height = mMetrics.widthPixels; in updateConfiguration()
1573 if (DEBUG_CONFIG) Slog.v(TAG, "Returning DisplayMetrics: " + mMetrics.widthPixels in getDisplayMetrics()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DDisplay_Delegate.java52 return RenderAction.getCurrentContext().getIWindowManager().getMetrics().widthPixels; in getRawWidthNative()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java59 final int screenWidth = metrics.widthPixels; in onMeasure()
DActionBarContextView.java121 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitActionBar()
232 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
DActionBarView.java404 getContext().getResources().getDisplayMetrics().widthPixels, true); in setMenu()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java319 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
357 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot()
371 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot()
394 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DHeightReceiver.java89 final int shortSide = Math.min(metrics.widthPixels, metrics.heightPixels); in updateHeight()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java130 mPosX = metrics.widthPixels/2; in TransformView()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java217 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
DMenuPopupHelper.java83 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
DActionMenuPresenter.java87 mWidthLimit = res.getDisplayMetrics().widthPixels / 2; in initForMenu()
/frameworks/base/core/java/android/webkit/
DViewManager.java104 int pixelArea = w.getResources().getDisplayMetrics().widthPixels * in ViewManager()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java110 metrics.widthPixels = metrics.noncompatWidthPixels = mParams.getScreenWidth(); in init()
/frameworks/base/core/java/android/widget/
DActivityChooserView.java248 mListPopupMaxWidth = Math.max(resources.getDisplayMetrics().widthPixels / 2, in ActivityChooserView()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java545 mDisplayWidth = dm.widthPixels; in Keyboard()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPhoneWindow.java2068 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels;
2086 min = (int)tv.getFraction(metrics.widthPixels, metrics.widthPixels);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java1456 if (x >= edgeBorder && x < mDisplayMetrics.widthPixels - edgeBorder) { in interceptTouchEvent()
2004 mExpandedParams.width = mDisplayMetrics.widthPixels;

12