/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 146 public int widthPixels; field in DisplayMetrics 236 widthPixels = o.widthPixels; in setTo() 253 widthPixels = 0; in setToDefaults() 260 noncompatWidthPixels = widthPixels; in setToDefaults() 297 && widthPixels == other.widthPixels in equalsPhysical() 313 return widthPixels * heightPixels * densityDpi; in hashCode() 318 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ContentFrameLayout.java | 81 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; in onMeasure() 94 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure() 138 min = (int) tv.getFraction(metrics.widthPixels, metrics.widthPixels); in onMeasure()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 142 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth() 143 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
|
D | FrameworkActionBar.java | 219 int popupMaxWidth = Math.max(mBridgeContext.getMetrics().widthPixels / 2, in measureContentWidth()
|
/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() 511 outDm.widthPixels = newWidth; in computeCompatibleScaling()
|
D | Resources.java | 2019 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration() 2020 width = mMetrics.widthPixels; in updateConfiguration() 2026 height = mMetrics.widthPixels; in updateConfiguration() 2140 if (DEBUG_CONFIG) Slog.v(TAG, "Returning DisplayMetrics: " + mMetrics.widthPixels in getDisplayMetrics()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 480 outSize.x = mTempMetrics.widthPixels; in getSize() 495 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); in getRectSize() 842 mCachedAppWidthCompat = mTempMetrics.widthPixels; in updateCachedAppSizeIfNeededLocked()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 35 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
D | FloatingActionMode.java | 203 mContext.getResources().getDisplayMetrics().widthPixels, in isContentRectWithinBounds()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
D | ActionBarPolicy.java | 58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/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/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | GlobalScreenshot.java | 481 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot() 491 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot() 541 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot() 563 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot() 581 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
|
/frameworks/base/core/java/android/app/ |
D | ResourcesManager.java | 87 config.screenWidthDp = (int)(dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfigurationLocked() 90 if (dm.widthPixels > dm.heightPixels) { in applyNonDefaultDisplayMetricsToConfigurationLocked()
|
D | MediaRouteButton.java | 223 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in performLongClick()
|
/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/app/ |
D | PlatLogoActivity.java | 73 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | ActionMenuItemView.java | 247 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
D | MenuPopupHelper.java | 103 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItemView.java | 270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
D | MenuPopupHelper.java | 98 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 117 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | RecentsConfiguration.java | 196 displayRect.set(0, 0, dm.widthPixels, dm.heightPixels); in update()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | SwipeHelper.java | 144 return mSwipeDirection == X ? dm.widthPixels : dm.heightPixels; in getSize()
|