Lines Matching refs:activity
163 string getIntentStringExtra (JNIEnv* env, jobject activity, const char* name) in getIntentStringExtra() argument
167 const jclass activityCls = getObjectClass(env, activity); in getIntentStringExtra()
168 …const LocalRef intent (env, env->CallObjectMethod(activity, getMethodID(env, activityCls, "getIn… in getIntentStringExtra()
186 void setRequestedOrientation (JNIEnv* env, jobject activity, ScreenOrientation orientation) in setRequestedOrientation() argument
188 const jclass activityCls = getObjectClass(env, activity); in setRequestedOrientation()
191 env->CallVoidMethod(activity, setOrientationId, (int)orientation); in setRequestedOrientation()
377 bool supportsAny64BitABI (ANativeActivity* activity) in supportsAny64BitABI() argument
379 const ScopedJNIEnv env(activity->vm); in supportsAny64BitABI()
384 jobject getPackageManager (JNIEnv* env, jobject activity) in getPackageManager() argument
386 const jclass activityCls = getObjectClass(env, activity); in getPackageManager()
388 const jobject packageManager = env->CallObjectMethod(activity, getPMID); in getPackageManager()
393 bool hasSystemFeature (JNIEnv* env, jobject activity, const char* name) in hasSystemFeature() argument
395 const LocalRef packageManager (env, getPackageManager(env, activity)); in hasSystemFeature()
406 jobject getWindowManager (JNIEnv* env, jobject activity) in getWindowManager() argument
408 const jclass activityCls = getObjectClass(env, activity); in getWindowManager()
410 const jobject windowManager = env->CallObjectMethod(activity, getWMID); in getWindowManager()
432 DisplayMetrics getDisplayMetrics (JNIEnv* env, jobject activity) in getDisplayMetrics() argument
434 const LocalRef windowManager (env, getWindowManager(env, activity)); in getDisplayMetrics()
571 string getIntentStringExtra (ANativeActivity* activity, const char* name) in getIntentStringExtra() argument
573 const ScopedJNIEnv env(activity->vm); in getIntentStringExtra()
575 return getIntentStringExtra(env.getEnv(), activity->clazz, name); in getIntentStringExtra()
578 void setRequestedOrientation (ANativeActivity* activity, ScreenOrientation orientation) in setRequestedOrientation() argument
580 const ScopedJNIEnv env(activity->vm); in setRequestedOrientation()
582 setRequestedOrientation(env.getEnv(), activity->clazz, orientation); in setRequestedOrientation()
585 void describePlatform (ANativeActivity* activity, std::ostream& dst) in describePlatform() argument
587 const ScopedJNIEnv env(activity->vm); in describePlatform()
592 bool hasSystemFeature (ANativeActivity* activity, const char* name) in hasSystemFeature() argument
594 const ScopedJNIEnv env(activity->vm); in hasSystemFeature()
596 return hasSystemFeature(env.getEnv(), activity->clazz, name); in hasSystemFeature()
599 DisplayMetrics getDisplayMetrics (ANativeActivity* activity) in getDisplayMetrics() argument
601 const ScopedJNIEnv env(activity->vm); in getDisplayMetrics()
603 return getDisplayMetrics(env.getEnv(), activity->clazz); in getDisplayMetrics()
606 size_t getCDDRequiredSystemMemory (ANativeActivity* activity) in getCDDRequiredSystemMemory() argument
608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory()
610 const bool isWearDevice = hasSystemFeature(activity, "android.hardware.type.watch"); in getCDDRequiredSystemMemory()
611 const bool is64BitDevice = supportsAny64BitABI(activity); in getCDDRequiredSystemMemory()