Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/util/
DDisplayMetrics.java146 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/
DContentFrameLayout.java81 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/
DNavigationBar.java142 float sw = metrics.widthPixels < metrics.heightPixels ? in getShortestWidth()
143 metrics.widthPixels : metrics.heightPixels; in getShortestWidth()
DFrameworkActionBar.java219 int popupMaxWidth = Math.max(mBridgeContext.getMetrics().widthPixels / 2, in measureContentWidth()
/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()
511 outDm.widthPixels = newWidth; in computeCompatibleScaling()
DResources.java2019 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/
DDisplay.java480 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/
DWindowManagerImpl.java35 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
DFloatingActionMode.java203 mContext.getResources().getDisplayMetrics().widthPixels, in isContentRectWithinBounds()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
DActionBarPolicy.java58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
/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/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java481 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/
DResourcesManager.java87 config.screenWidthDp = (int)(dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfigurationLocked()
90 if (dm.widthPixels > dm.heightPixels) { in applyNonDefaultDisplayMetricsToConfigurationLocked()
DMediaRouteButton.java223 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in performLongClick()
/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/app/
DPlatLogoActivity.java73 (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/
DActionMenuItemView.java247 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
DMenuPopupHelper.java103 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
DMenuPopupHelper.java98 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java117 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsConfiguration.java196 displayRect.set(0, 0, dm.widthPixels, dm.heightPixels); in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java144 return mSwipeDirection == X ? dm.widthPixels : dm.heightPixels; in getSize()

123