/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowViewConfigurationTest.java | 48 assertThat(context.getResources().getDisplayMetrics().density).isEqualTo(1f); in methodsShouldReturnAndroidConstants() 63 context.getResources().getDisplayMetrics().density = 1.5f; in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
|
D | ShadowTextViewTest.java | 443 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().density = 1.5f; in setTextSize_shouldHandleDips() 455 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().scaledDensity = in setTextSize_shouldHandleSp() 464 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics().density = 1.5f; in setTextSize_shouldHandlePixels()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/ |
D | RuntimeEnvironment.java | 98 return getQualifiers(systemResources.getConfiguration(), systemResources.getDisplayMetrics()); in getQualifiers() 126 displayMetrics.setTo(Resources.getSystem().getDisplayMetrics()); in setQualifiers()
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidUtil.cpp | 432 DisplayMetrics getDisplayMetrics (JNIEnv* env, jobject activity) in getDisplayMetrics() function 599 DisplayMetrics getDisplayMetrics (ANativeActivity* activity) in getDisplayMetrics() function 603 return getDisplayMetrics(env.getEnv(), activity->clazz); in getDisplayMetrics() 608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory()
|
D | tcuAndroidUtil.hpp | 82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
D | RecognitionScoreView.java | 41 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in RecognitionScoreView()
|
D | ClassifierActivity.java | 109 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
|
D | DetectorActivity.java | 125 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
|
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ |
D | RecognitionScoreView.java | 39 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in RecognitionScoreView()
|
D | ClassifierActivity.java | 98 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
|
D | DetectorActivity.java | 100 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
|
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/ |
D | PinView.java | 33 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
|
D | CircleView.java | 28 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
|
D | FreehandView.java | 42 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
D | TouchCatcherView.java | 55 float density = getResources().getDisplayMetrics().density; in initialisePaint()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
D | MemorySizeCalculator.java | 33 new DisplayMetricsScreenDimensions(context.getResources().getDisplayMetrics())); in MemorySizeCalculator()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowViewConfiguration.java | 73 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in setup()
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
D | PixelUtils.java | 48 metrics = ctx.getResources().getDisplayMetrics(); in init()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | GlideBitmapDrawable.java | 39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()
|
/external/setupdesign/main/src/com/google/android/setupdesign/view/ |
D | Illustration.java | 80 baselineGridSize = getResources().getDisplayMetrics().density * 8; in init()
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/ |
D | Main.java | 126 final float scale = getResources().getDisplayMetrics().density; in initializeViews()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | BootstrapTest.java | 106 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics(); in shouldSetUpRealisticDisplay() 141 ApplicationProvider.getApplicationContext().getResources().getDisplayMetrics(); in shouldSetUpRealisticDisplay_landscapeHighDensity()
|
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/ |
D | SubsamplingScaleImageView.java | 287 density = getResources().getDisplayMetrics().density; in SubsamplingScaleImageView() 333 …dValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, context.getResources().getDisplayMetrics()); in SubsamplingScaleImageView() 1365 DisplayMetrics metrics = getResources().getDisplayMetrics(); in calculateInSampleSize() 2480 DisplayMetrics metrics = getResources().getDisplayMetrics(); in setMinimumDpi() 2491 DisplayMetrics metrics = getResources().getDisplayMetrics(); in setMaximumDpi() 2521 DisplayMetrics metrics = getResources().getDisplayMetrics(); in setMinimumTileDpi() 2752 DisplayMetrics metrics = getResources().getDisplayMetrics(); in setDoubleTapZoomDpi()
|
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/ |
D | PartnerConfigHelper.java | 364 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in getDimensionFromTypedValue()
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/tracking/ |
D | MultiBoxTracker.java | 112 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, context.getResources().getDisplayMetrics()); in MultiBoxTracker()
|