/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/device/ |
DeviceInfoCollectorFuncTest.java | 69 displayMetrics(runMetrics); 81 displayMetrics(runMetrics); 85 private void displayMetrics(Map<String, String> runMetrics) {
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
MemorySizeCalculator.java | 7 import android.util.DisplayMetrics; 95 private final DisplayMetrics displayMetrics; 97 public DisplayMetricsScreenDimensions(DisplayMetrics displayMetrics) { 98 this.displayMetrics = displayMetrics; 103 return displayMetrics.widthPixels; 108 return displayMetrics.heightPixels;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
KeyboardShortcutKeysLayout.java | 21 import android.util.DisplayMetrics; 156 DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); 158 TypedValue.COMPLEX_UNIT_DIP, 4, displayMetrics);
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/ |
ImageDetailActivity.java | 29 import android.util.DisplayMetrics; 63 final DisplayMetrics displayMetrics = new DisplayMetrics(); 64 getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 65 final int height = displayMetrics.heightPixels; 66 final int width = displayMetrics.widthPixels;
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/ui/ |
ImageDetailActivity.java | 29 import android.util.DisplayMetrics; 63 final DisplayMetrics displayMetrics = new DisplayMetrics(); 64 getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 65 final int height = displayMetrics.heightPixels; 66 final int width = displayMetrics.widthPixels;
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/ |
ImageDetailActivity.java | 29 import android.util.DisplayMetrics; 63 final DisplayMetrics displayMetrics = new DisplayMetrics(); 64 getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 65 final int height = displayMetrics.heightPixels; 66 final int width = displayMetrics.widthPixels;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowResources.java | 12 import android.util.DisplayMetrics; 39 private DisplayMetrics displayMetrics; 135 displayMetrics = null; 139 public DisplayMetrics getDisplayMetrics() { 140 if (displayMetrics == null) { 145 displayMetrics = new DisplayMetrics(); 146 display.getMetrics(displayMetrics); 148 displayMetrics.density = this.density [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
HumanInteractionClassifier.java | 25 import android.util.DisplayMetrics; 65 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); 71 mDpi = (displayMetrics.xdpi + displayMetrics.ydpi) / 2.0f;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
CompactPhotoEditorView.java | 33 import android.util.DisplayMetrics; 174 final DisplayMetrics displayMetrics = new DisplayMetrics(); 175 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 176 return displayMetrics.widthPixels; 185 final DisplayMetrics displayMetrics = new DisplayMetrics(); 186 activity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
SnackBarManager.java | 23 import android.util.DisplayMetrics; 335 final DisplayMetrics displayMetrics = new DisplayMetrics(); 337 windowManager.getDefaultDisplay().getRealMetrics(displayMetrics); 339 windowManager.getDefaultDisplay().getMetrics(displayMetrics); 341 final int screenHeight = displayMetrics.heightPixels;
|
/frameworks/base/core/tests/coretests/src/android/print/ |
BasePrintTest.java | 46 import android.util.DisplayMetrics; 146 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 149 resources.updateConfiguration(newConfiguration, displayMetrics); 173 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 177 resources.updateConfiguration(newConfiguration, displayMetrics);
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
ResolutionUtil.java | 20 import android.util.DisplayMetrics; 408 public static DisplayMetrics getDisplayMetrics(Context context) { 409 DisplayMetrics displayMetrics = new DisplayMetrics(); 412 wm.getDefaultDisplay().getMetrics(displayMetrics); 414 return displayMetrics;
|
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/text/ |
SubtitleView.java | 33 import android.util.DisplayMetrics; 104 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 106 Math.round((2f * displayMetrics.densityDpi) / DisplayMetrics.DENSITY_DEFAULT);
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactDetailFragment.java | 38 import android.util.DisplayMetrics; 519 // Gets a DisplayMetrics object, which is used to retrieve the display's pixel height and 521 final DisplayMetrics displayMetrics = new DisplayMetrics(); 523 // Retrieves a displayMetrics object for the device's default display 524 getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); 525 final int height = displayMetrics.heightPixels; 526 final int width = displayMetrics.widthPixels;
|
/external/deqp/framework/platform/android/ |
tcuAndroidUtil.cpp | 426 const jclass displayMetricsCls = findClass(env, "android/util/DisplayMetrics"); 432 DisplayMetrics getDisplayMetrics (JNIEnv* env, jobject activity) 438 const jmethodID getMetricsID = getMethodID(env, displayCls, "getMetrics", "(Landroid/util/DisplayMetrics;)V"); 439 DisplayMetrics metrics; 488 ScreenClass getScreenClass (const DisplayMetrics& displayMetrics) 504 const float dpScale = float(displayMetrics.densityDpi) / 160.f; 507 const int widthP = de::max(displayMetrics.widthPixels, displayMetrics.heightPixels); 508 const int heightP = de::min(displayMetrics.widthPixels, displayMetrics.heightPixels) [all...] |
/cts/tests/tests/print/src/android/print/cts/ |
BasePrintTest.java | 58 import android.util.DisplayMetrics; 189 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 192 resources.updateConfiguration(newConfiguration, displayMetrics); 233 DisplayMetrics displayMetrics = resources.getDisplayMetrics(); 237 resources.updateConfiguration(newConfiguration, displayMetrics);
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
ConversationMessageView.java | 32 import android.util.DisplayMetrics; 548 final DisplayMetrics displayMetrics = new DisplayMetrics(); 549 windowManager.getDefaultDisplay().getMetrics(displayMetrics); 553 final int desiredWidth = displayMetrics.widthPixels - iconSize - iconSize; [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
CameraManager.java | 33 import android.util.DisplayMetrics; [all...] |
/frameworks/base/core/java/android/widget/ |
CalendarViewLegacyDelegate.java | 33 import android.util.DisplayMetrics; 302 DisplayMetrics displayMetrics = mDelegator.getResources().getDisplayMetrics(); 304 UNSCALED_WEEK_MIN_VISIBLE_HEIGHT, displayMetrics); 306 UNSCALED_LIST_SCROLL_TOP_OFFSET, displayMetrics); 308 UNSCALED_BOTTOM_BUFFER, displayMetrics); 310 UNSCALED_SELECTED_DATE_VERTICAL_BAR_WIDTH, displayMetrics); 312 UNSCALED_WEEK_SEPARATOR_LINE_WIDTH, displayMetrics); [all...] |
Editor.java | 73 import android.util.DisplayMetrics; [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
WindowState.java | 36 import android.util.DisplayMetrics; [all...] |
/frameworks/base/core/java/android/view/ |
ViewRootImpl.java | 67 import android.util.DisplayMetrics; [all...] |
/external/robolectric/v3/runtime/ |
shadows-core-3.1-SNAPSHOT-16.jar | |
shadows-core-3.1-SNAPSHOT-17.jar | |
shadows-core-3.1-SNAPSHOT-18.jar | |