/frameworks/base/core/java/android/util/ |
DisplayMetrics.java | 146 public int widthPixels; 236 widthPixels = o.widthPixels; 253 widthPixels = 0; 260 noncompatWidthPixels = widthPixels; 297 && widthPixels == other.widthPixels 313 return widthPixels * heightPixels * densityDpi; 318 return "DisplayMetrics{density=" + density + ", width=" + widthPixels +
|
/packages/apps/Camera2/src/com/android/camera/filmstrip/ |
FilmstripDataAdapter.java | 112 * @param widthPixels Width in pixels of rendered view. 115 public void suggestViewSizeBound(int widthPixels, int heightPixels);
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
AspectRatioTest.java | 69 int max = Math.max(metrics.widthPixels, metrics.heightPixels); 70 int min = Math.min(metrics.widthPixels, metrics.heightPixels);
|
ConfigurationScreenLayoutTest.java | 102 int max = Math.max(metrics.widthPixels, metrics.heightPixels); 103 int min = Math.min(metrics.widthPixels, metrics.heightPixels);
|
ConfigurationTest.java | 41 double xInches = (double) metrics.widthPixels / metrics.xdpi;
|
/cts/tests/tests/util/src/android/util/cts/ |
DisplayMetricsTest.java | 37 assertEquals(0, outMetrics.widthPixels); 50 assertEquals(display.getWidth(), metrics.widthPixels);
|
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/ |
Utils.java | 91 int w = (int) (metrics.widthPixels * MediaDimensions.MEDIA_WIDTH); 93 int marginLeft = (int) (metrics.widthPixels * MediaDimensions.MEDIA_LEFT_MARGIN); 95 int marginRight = (int) (metrics.widthPixels * MediaDimensions.MEDIA_RIGHT_MARGIN);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ContentFrameLayout.java | 81 final boolean isPortrait = metrics.widthPixels < metrics.heightPixels; 94 w = (int) tvw.getFraction(metrics.widthPixels, metrics.widthPixels); 138 min = (int) tv.getFraction(metrics.widthPixels, metrics.widthPixels);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
WalkAroundWallpaper.java | 175 size.width == metrics.heightPixels && size.height == metrics.widthPixels) || 177 size.width == metrics.widthPixels && size.height == metrics.heightPixels)) { 186 if (size.width >= metrics.widthPixels && size.height >= metrics.heightPixels) {
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
DisplayInfoActivity.java | 44 int width = Math.round(dm.widthPixels / dm.density);
|
/development/apps/Development/src/com/android/development/ |
ConfigurationViewer.java | 60 + "widthPixels=" + m.widthPixels + "\n"
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
DisplayTest.java | 35 assertEquals(1024, metrics.widthPixels);
|
/frameworks/base/core/java/com/android/internal/view/ |
ActionBarPolicy.java | 50 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
WindowManagerImpl.java | 35 info.logicalWidth = mMetrics.widthPixels;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
NavigationBar.java | 142 float sw = metrics.widthPixels < metrics.heightPixels ? 143 metrics.widthPixels : metrics.heightPixels;
|
/packages/apps/Settings/src/com/android/settings/ |
Display.java | 73 mDisplayMetrics.widthPixels = metrics.widthPixels;
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowDisplay.java | 38 outMetrics.widthPixels = width;
|
/frameworks/base/core/java/com/android/internal/widget/ |
WeightedLinearLayout.java | 59 final int screenWidth = metrics.widthPixels;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
ActionBarPolicy.java | 58 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
|
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetConfigure.java | 56 int maxDimension = Math.max(display.heightPixels, display.widthPixels);
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/ |
PlaybackOverlayActivity.java | 180 int w = (int) (metrics.widthPixels * MEDIA_WIDTH); 182 int marginLeft = (int) (metrics.widthPixels * MEDIA_LEFT_MARGIN); 184 int marginRight = (int) (metrics.widthPixels * MEDIA_RIGHT_MARGIN);
|
/frameworks/base/core/java/android/view/ |
Display.java | 480 outSize.x = mTempMetrics.widthPixels; 495 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels); 842 mCachedAppWidthCompat = mTempMetrics.widthPixels; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ResourceUtils.java | 187 return dm.widthPixels; 217 R.fraction.config_min_keyboard_height, dm.widthPixels, dm.widthPixels);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
MemorySizeCalculator.java | 103 return displayMetrics.widthPixels;
|
/frameworks/base/core/java/android/content/res/ |
CompatibilityInfo.java | 435 inoutDm.widthPixels = inoutDm.noncompatWidthPixels; 446 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f); 511 outDm.widthPixels = newWidth;
|