Android includes APIs and facilities to build "Virtual Reality" (VR) applications including high quality mobile VR experiences. Device implementations MUST properly implement these APIs and behaviors, as detailed in this section.
Android includes support for [VR Mode]( https://developer.android.com/reference/android/app/Activity.html#setVrModeEnabled%28boolean, android.content.ComponentName%29), a feature which handles stereoscopic rendering of notifications and disables monocular system UI components while a VR application has user focus.
If device implementations identify the support of high performance VR for longer user periods through the android.hardware.vr.high_performance
feature flag, they:
android.software.vr.mode feature
.EGL_KHR_mutable_render_buffer
, EGL_ANDROID_front_buffer_auto_refresh
, EGL_ANDROID_get_native_client_buffer
, EGL_KHR_fence_sync
, EGL_KHR_wait_sync
, EGL_IMG_context_priority
, EGL_EXT_protected_content
, and expose the extensions in the list of available EGL extensions.GL_EXT_multisampled_render_to_texture
, GL_OVR_multiview
, GL_OVR_multiview2
, GL_OVR_multiview_multisampled_render_to_texture
, GL_EXT_protected_textures
, GL_EXT_EGL_image_array
, GL_EXT_external_buffer
, and expose the extensions in the list of available GL extensions.AHardwareBuffer
flags AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER
and AHARDWAREBUFFER_USAGE_SENSOR_DIRECT_DATA
as described in the NDK.AHardwareBuffers
with more than one layer.HardwarePropertiesManager.getDeviceTemperatures
API and return accurate values for skin temperature.TYPE_ACCELEROMETER
TYPE_ACCELEROMETER_UNCALIBRATED
TYPE_GYROSCOPE
TYPE_GYROSCOPE_UNCALIBRATED
TYPE_MAGNETIC_FIELD
TYPE_MAGNETIC_FIELD_UNCALIBRATED
TYPE_HARDWARE_BUFFER
direct channel type for all Direct Channel Types listed above.android.hardware.sensor.hifi_sensors
feature and MUST meet the gyroscope, accelerometer, and magnetometer related requirements for android.hardware.hifi_sensors
.Process.getExclusiveCores
API to return the numbers of the cpu cores that are exclusive to the top foreground application.If exclusive core is supported, then the core: