OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getDisplayMetrics
(Results
1 - 25
of
292
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/packages/apps/Settings/src/com/android/settings/applications/
InterestingConfigChanges.java
29
boolean densityChanged = mLastDensity != res.
getDisplayMetrics
().densityDpi;
32
mLastDensity = res.
getDisplayMetrics
().densityDpi;
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ResourcesTest.java
127
assertThat(activity.getResources().
getDisplayMetrics
().density, equalTo(1f));
130
assertThat(activity.getResources().
getDisplayMetrics
().density, equalTo(1.5f));
133
assertThat(anotherActivity.getResources().
getDisplayMetrics
().density, equalTo(1.5f));
139
assertThat(activity.getResources().
getDisplayMetrics
().heightPixels, equalTo(800));
140
assertThat(activity.getResources().
getDisplayMetrics
().widthPixels, equalTo(480));
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
CaffeinatedScrollView.java
50
mBottomSlop = (int)(4 * getResources().
getDisplayMetrics
().density);
/external/chromium_org/ui/android/java/src/org/chromium/ui/
UiUtils.java
56
final float screenHeight = context.getResources().
getDisplayMetrics
().heightPixels;
58
final float density = context.getResources().
getDisplayMetrics
().density;
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTest.java
145
assertThat(new Activity().getResources().
getDisplayMetrics
().density, equalTo(1.0f));
147
assertThat(new Activity().getResources().
getDisplayMetrics
().density, equalTo(1.5f));
152
assertThat(new Activity().getResources().
getDisplayMetrics
().widthPixels, equalTo(480));
153
assertThat(new Activity().getResources().
getDisplayMetrics
().heightPixels, equalTo(800));
161
assertThat(new Activity().getResources().
getDisplayMetrics
().widthPixels, equalTo(100));
162
assertThat(new Activity().getResources().
getDisplayMetrics
().heightPixels, equalTo(200));
/frameworks/base/graphics/java/android/renderscript/
Font.java
164
int dpi = res.
getDisplayMetrics
().densityDpi;
188
int dpi = res.
getDisplayMetrics
().densityDpi;
212
int dpi = res.
getDisplayMetrics
().densityDpi;
/packages/apps/DeskClock/src/com/android/alarmclock/
WidgetUtils.java
59
float density = res.
getDisplayMetrics
().density;
89
float density = res.
getDisplayMetrics
().density;
126
float density = res.
getDisplayMetrics
().density;
/cts/tests/src/android/widget/cts/
WidgetTestUtils.java
103
Assert.assertEquals(expected * context.getResources().
getDisplayMetrics
().density,
109
float density = context.getResources().
getDisplayMetrics
().density;
/cts/tests/tests/holo/src/android/holo/cts/
DisplayInfoActivity.java
40
DisplayMetrics dm = getResources().
getDisplayMetrics
();
/external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
DeviceDisplayInfo.java
123
return mAppContext.getResources().
getDisplayMetrics
();
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
RotationActivity.java
39
return (int) (c.getResources().
getDisplayMetrics
().density * dip + 0.5f);
ViewLayersActivity3.java
57
final DisplayMetrics metrics = r.
getDisplayMetrics
();
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
ActionBarPolicy.java
53
return mContext.getResources().
getDisplayMetrics
().widthPixels / 2;
/packages/apps/Camera/src/com/android/camera/drawable/
TextDrawable.java
46
DEFAULT_TEXTSIZE, res.
getDisplayMetrics
());
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
CenteredLinearLayout.java
43
r.
getDisplayMetrics
());
/packages/apps/InCallUI/src/com/android/incallui/
SmallerHitTargetTouchListener.java
69
final float pixelDensity = v.getResources().
getDisplayMetrics
().density;
/packages/apps/Mms/src/com/android/mms/layout/
HVGALayoutParameters.java
48
float scale = context.getResources().
getDisplayMetrics
().density;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
InputSmoother.java
46
mDensity = context.getResources().
getDisplayMetrics
().density;
/packages/services/Telephony/src/com/android/phone/
SmallerHitTargetTouchListener.java
70
final float pixelDensity = v.getResources().
getDisplayMetrics
().density;
/packages/apps/Settings/src/com/android/settings/widget/
ChartGridView.java
142
paint.density = res.
getDisplayMetrics
().density;
146
TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, 10, res.
getDisplayMetrics
()));
/development/samples/ApiDemos/src/com/example/android/apis/view/
LayoutAnimation1.java
62
final int w = (int) (36 * getResources().
getDisplayMetrics
().density + 0.5f);
LayoutAnimation4.java
63
final int w = (int) (36 * getResources().
getDisplayMetrics
().density + 0.5f);
LayoutAnimation5.java
62
final int w = (int) (36 * getResources().
getDisplayMetrics
().density + 0.5f);
LayoutAnimation6.java
62
final int w = (int) (36 * getResources().
getDisplayMetrics
().density + 0.5f);
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
ContactPhotoBinder.java
59
mPhotoSize = (int) (PHOTO_SIZE_DIP * mResources.
getDisplayMetrics
().density + 0.5f);
Completed in 614 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>