Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/util/
DDisplayMetrics.java130 public int widthPixels; field in DisplayMetrics
220 widthPixels = o.widthPixels; in setTo()
237 widthPixels = 0; in setToDefaults()
244 noncompatWidthPixels = widthPixels; in setToDefaults()
281 && widthPixels == other.widthPixels in equalsPhysical()
297 return widthPixels * heightPixels * densityDpi; in hashCode()
302 return "DisplayMetrics{density=" + density + ", width=" + widthPixels + in toString()
/frameworks/base/core/java/android/view/
DDisplay.java453 outSize.x = mTempMetrics.widthPixels; in getSize()
468 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); in getRectSize()
789 mCachedAppWidthCompat = mTempMetrics.widthPixels; in updateCachedAppSizeIfNeededLocked()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecents.java187 x = (int) ((dm.widthPixels - width) / 2f + appLabelLeftMargin + appLabelWidth in toggleRecents()
193 x = dm.widthPixels - x - res.getDimensionPixelSize( in toggleRecents()
228 x = (int) (dm.widthPixels - res in toggleRecents()
DRecentsHorizontalScrollView.java365 MeasureSpec.makeMeasureSpec(dm.widthPixels, MeasureSpec.AT_MOST); in setAdapter()
371 (int) FloatMath.ceil(dm.widthPixels / (float) child.getMeasuredWidth()); in setAdapter()
/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()
/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.java135 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar()
249 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java432 mBgPaddingScale = mBgPadding / mDisplayMetrics.widthPixels; in GlobalScreenshot()
442 panelWidth = mDisplayMetrics.widthPixels; in GlobalScreenshot()
492 float[] dims = {mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels}; in takeScreenshot()
514 Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels, in takeScreenshot()
532 startAnimation(finisher, mDisplayMetrics.widthPixels, mDisplayMetrics.heightPixels, in takeScreenshot()
/frameworks/base/core/java/android/app/
DResourcesManager.java116 config.screenWidthDp = (int)(dm.widthPixels / dm.density); in applyNonDefaultDisplayMetricsToConfigurationLocked()
119 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/support/v7/appcompat/src/android/support/v7/internal/widget/
DActionBarContextView.java128 getContext().getResources().getDisplayMetrics().widthPixels, true); in setSplitToolbar()
242 getContext().getResources().getDisplayMetrics().widthPixels, true); in initForMode()
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java88 (Math.min(Math.min(dm.widthPixels, dm.heightPixels), 600*dp) - 100*dp); in onAttachedToWindow()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java217 int popupMaxWidth = Math.max(mBridgeContext.getMetrics().widthPixels / 2, in measureContentWidth()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java115 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardTransportControlView.java278 final int dim = Math.max(dm.widthPixels, dm.heightPixels); in KeyguardTransportControlView()
366 final int dim = Math.max(dm.widthPixels, dm.heightPixels); in onConfigurationChanged()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
DMenuPopupHelper.java100 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuItemView.java253 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
DMenuPopupHelper.java103 mPopupMaxWidth = Math.max(res.getDisplayMetrics().widthPixels / 2, in MenuPopupHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java144 return mSwipeDirection == X ? dm.widthPixels : dm.heightPixels; in getSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsConfiguration.java198 displayRect.set(0, 0, dm.widthPixels, dm.heightPixels); in update()

123