/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 74 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/ |
D | Display.java | 110 outSize.x = mTmpMetrics.widthPixels; in getSizeInternal() 317 + outMetrics.widthPixels + "x" + outMetrics.heightPixels in getMetrics() 358 outMetrics.noncompatWidthPixels = outMetrics.widthPixels = width; in getMetricsWithSize()
|
D | ViewConfiguration.java | 287 mMaximumDrawingCacheSize = 4 * metrics.widthPixels * metrics.heightPixels; in ViewConfiguration()
|
D | ScaleGestureDetector.java | 211 mRightSlopEdge = metrics.widthPixels - mEdgeSlop; in onTouchEvent()
|
D | SurfaceView.java | 268 mLayout.x = metrics.widthPixels * 3; in hideSurface()
|
D | ViewDebug.java | 1082 Bitmap.createBitmap(metrics.widthPixels, in profileViewAndChildren()
|
D | ViewRootImpl.java | 906 desiredWindowWidth = packageMetrics.widthPixels; in performTraversals() 992 desiredWindowWidth = packageMetrics.widthPixels; in performTraversals()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 435 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; in applyToDisplayMetrics() 446 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); in applyToDisplayMetrics() 507 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
D | Resources.java | 1466 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/ |
D | Display_Delegate.java | 52 return RenderAction.getCurrentContext().getIWindowManager().getMetrics().widthPixels; in getRawWidthNative()
|
/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 setSplitActionBar() 232 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
|
D | ActionBarView.java | 404 getContext().getResources().getDisplayMetrics().widthPixels, true); in setMenu()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 319 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/ |
D | HeightReceiver.java | 89 final int shortSide = Math.min(metrics.widthPixels, metrics.heightPixels); in updateHeight()
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 130 mPosX = metrics.widthPixels/2; in TransformView()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItemView.java | 217 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
D | MenuPopupHelper.java | 83 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
|
D | ActionMenuPresenter.java | 87 mWidthLimit = res.getDisplayMetrics().widthPixels / 2; in initForMenu()
|
/frameworks/base/core/java/android/webkit/ |
D | ViewManager.java | 104 int pixelArea = w.getResources().getDisplayMetrics().widthPixels * in ViewManager()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 110 metrics.widthPixels = metrics.noncompatWidthPixels = mParams.getScreenWidth(); in init()
|
/frameworks/base/core/java/android/widget/ |
D | ActivityChooserView.java | 248 mListPopupMaxWidth = Math.max(resources.getDisplayMetrics().widthPixels / 2, in ActivityChooserView()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 545 mDisplayWidth = dm.widthPixels; in Keyboard()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | PhoneWindow.java | 2068 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/ |
D | PhoneStatusBar.java | 1456 if (x >= edgeBorder && x < mDisplayMetrics.widthPixels - edgeBorder) { in interceptTouchEvent() 2004 mExpandedParams.width = mDisplayMetrics.widthPixels;
|