Home
last modified time | relevance | path

Searched refs:getDisplayMetrics (Results 1 – 25 of 27) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowViewConfigurationTest.java48 assertThat(context.getResources().getDisplayMetrics().density).isEqualTo(1f); in methodsShouldReturnAndroidConstants()
63 context.getResources().getDisplayMetrics().density = 1.5f; in methodsShouldReturnScaledAndroidConstantsDependingOnPixelDensity()
DShadowTextViewTest.java443 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/
DRuntimeEnvironment.java98 return getQualifiers(systemResources.getConfiguration(), systemResources.getDisplayMetrics()); in getQualifiers()
126 displayMetrics.setTo(Resources.getSystem().getDisplayMetrics()); in setQualifiers()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp432 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()
DtcuAndroidUtil.hpp82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DRecognitionScoreView.java41 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in RecognitionScoreView()
DClassifierActivity.java109 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
DDetectorActivity.java125 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DRecognitionScoreView.java39 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in RecognitionScoreView()
DClassifierActivity.java98 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, getResources().getDisplayMetrics()); in onPreviewSizeChosen()
DDetectorActivity.java100 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/
DPinView.java33 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
DCircleView.java28 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
DFreehandView.java42 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DTouchCatcherView.java55 float density = getResources().getDisplayMetrics().density; in initialisePaint()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DMemorySizeCalculator.java33 new DisplayMetricsScreenDimensions(context.getResources().getDisplayMetrics())); in MemorySizeCalculator()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowViewConfiguration.java73 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in setup()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPixelUtils.java48 metrics = ctx.getResources().getDisplayMetrics(); in init()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawable.java39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DIllustration.java80 baselineGridSize = getResources().getDisplayMetrics().density * 8; in init()
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/
DMain.java126 final float scale = getResources().getDisplayMetrics().density; in initializeViews()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java106 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/
DSubsamplingScaleImageView.java287 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/
DPartnerConfigHelper.java364 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in getDimensionFromTypedValue()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/tracking/
DMultiBoxTracker.java112 TypedValue.COMPLEX_UNIT_DIP, TEXT_SIZE_DIP, context.getResources().getDisplayMetrics()); in MultiBoxTracker()

12