HomeSort by relevance Sort by last modified time
    Searched refs:widthPixels (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /frameworks/base/core/java/android/util/
DisplayMetrics.java 109 public int widthPixels;
199 widthPixels = o.widthPixels;
216 widthPixels = 0;
223 noncompatWidthPixels = widthPixels;
260 && widthPixels == other.widthPixels
276 return widthPixels * heightPixels * densityDpi;
281 return "DisplayMetrics{density=" + density + ", width=" + widthPixels +
  /cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java 37 assertEquals(0, outMetrics.widthPixels);
50 assertEquals(display.getWidth(), metrics.widthPixels);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
WindowManagerImpl.java 34 info.logicalWidth = mMetrics.widthPixels;
  /cts/tests/tests/dpi/src/android/dpi/cts/
AspectRatioTest.java 74 int max = Math.max(metrics.widthPixels, metrics.heightPixels);
75 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 40 double xInches = (double) metrics.widthPixels / metrics.xdpi;
  /frameworks/base/core/java/android/view/
Display.java 346 outSize.x = mTempMetrics.widthPixels;
361 outSize.set(0, 0, mTempMetrics.widthPixels, mTempMetrics.heightPixels);
595 mCachedAppWidthCompat = mTempMetrics.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) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
KeyboardLayoutSet.java 222 public Builder setScreenGeometry(final int widthPixels, final int heightPixels) {
224 params.mOrientation = (heightPixels > widthPixels)
226 setDefaultKeyboardSize(widthPixels, heightPixels);
230 private void setDefaultKeyboardSize(final int widthPixels, final int heightPixels) {
248 R.fraction.minKeyboardHeight, widthPixels, widthPixels);
254 mParams.mKeyboardWidth = widthPixels;
434 width = Math.max(dm.widthPixels, dm.heightPixels);
435 height = Math.min(dm.widthPixels, dm.heightPixels);
437 width = Math.min(dm.widthPixels, dm.heightPixels)
    [all...]
  /cts/tests/tests/holo/src/android/holo/cts/
DisplayInfoActivity.java 41 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);
ResourcesTest.java 140 assertThat(activity.getResources().getDisplayMetrics().widthPixels, equalTo(480));
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
ActionBarPolicy.java 53 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
  /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/view/
ActionBarPolicy.java 55 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
  /frameworks/base/core/java/com/android/internal/widget/
WeightedLinearLayout.java 59 final int screenWidth = metrics.widthPixels;
  /packages/apps/Gallery/src/com/android/camera/
PhotoAppWidgetConfigure.java 56 int maxDimension = Math.max(display.heightPixels, display.widthPixels);
  /frameworks/base/core/java/android/content/res/
CompatibilityInfo.java 435 inoutDm.widthPixels = inoutDm.noncompatWidthPixels;
446 inoutDm.widthPixels = (int) (inoutDm.widthPixels * invertedRatio + 0.5f);
512 outDm.widthPixels = newWidth;
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 104 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels);
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoThumbnailFragment.java 158 int widthScale = localDisplayMetrics.widthPixels / pixelSize;
161 mColumnWidth = (localDisplayMetrics.widthPixels / widthScale);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTest.java 152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480));
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100));
  /cts/tests/tests/display/src/android/display/cts/
DisplayTest.java 141 assertEquals(SECONDARY_DISPLAY_WIDTH, outMetrics.widthPixels);
  /frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
TransformTestActivity.java 130 mPosX = metrics.widthPixels/2;

Completed in 572 milliseconds

1 2 3 4 5