Lines Matching defs:displayMetrics
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);
546 DensityClass getDensityClass (const DisplayMetrics& displayMetrics)
548 if (isValidDensityClass(displayMetrics.densityDpi))
549 return (DensityClass)displayMetrics.densityDpi;
599 DisplayMetrics getDisplayMetrics (ANativeActivity* activity)
608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity);
609 const ScreenClass screenClass = getScreenClass(displayMetrics);
624 const DensityClass densityClass = getDensityClass(displayMetrics);