OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:widthPixels
(Results
1 - 25
of
115
) sorted by null
1
2
3
4
5
/frameworks/base/core/java/android/util/
DisplayMetrics.java
117
public int
widthPixels
;
207
widthPixels
= o.
widthPixels
;
224
widthPixels
= 0;
231
noncompatWidthPixels =
widthPixels
;
268
&&
widthPixels
== other.
widthPixels
284
return
widthPixels
* heightPixels * densityDpi;
289
return "DisplayMetrics{density=" + density + ", width=" +
widthPixels
+
/cts/tests/tests/dpi/src/android/dpi/cts/
AspectRatioTest.java
62
int max = Math.max(metrics.
widthPixels
, metrics.heightPixels);
63
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;
/cts/tests/tests/util/src/android/util/cts/
DisplayMetricsTest.java
37
assertEquals(0, outMetrics.
widthPixels
);
50
assertEquals(display.getWidth(), 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/holo/app/src/android/holo/app/
DisplayInfoActivity.java
43
int width = Math.round(dm.
widthPixels
/ dm.density);
/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/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
ViewportTest.java
70
assertTrue(viewportWidth <= Math.max(981, metrics.
widthPixels
/ metrics.density + 1));
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DisplayTest.java
35
assertEquals(1024, metrics.
widthPixels
);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
WindowManagerImpl.java
35
info.logicalWidth = mMetrics.
widthPixels
;
/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
52
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/view/
Display.java
407
outSize.x = mTempMetrics.
widthPixels
;
422
outSize.set(0, 0, mTempMetrics.
widthPixels
, mTempMetrics.heightPixels);
683
mCachedAppWidthCompat = mTempMetrics.
widthPixels
;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
Recents.java
123
x = (int) ((dm.
widthPixels
- width) / 2f + appLabelLeftMargin + appLabelWidth
129
x = dm.
widthPixels
- x - res.getDimensionPixelSize(
164
x = (int) (dm.
widthPixels
- res
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
ResourceUtils.java
222
return dm.
widthPixels
;
242
R.fraction.minKeyboardHeight, dm.
widthPixels
, dm.
widthPixels
);
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
SnapScrollController.java
107
final double screenSize = Math.hypot((double) metrics.
widthPixels
/ metrics.densityDpi,
/external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
DeviceDisplayInfo.java
51
return getMetrics().
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;
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java
104
sMaxSize = Math.max(metrics.heightPixels, metrics.
widthPixels
);
Completed in 386 milliseconds
1
2
3
4
5