├── MODULE_LICENSE_APACHE2 ├── NOTICE ├── aidl ├── binder │ └── android │ │ └── os │ │ └── PersistableBundle.aidl └── gui │ └── android │ └── view │ └── Surface.aidl ├── build ├── phone-hdpi-2048-dalvik-heap.mk ├── phone-hdpi-512-dalvik-heap.mk ├── phone-hdpi-dalvik-heap.mk ├── phone-xhdpi-1024-dalvik-heap.mk ├── phone-xhdpi-2048-dalvik-heap.mk ├── phone-xxhdpi-2048-dalvik-heap.mk ├── phone-xxhdpi-2048-hwui-memory.mk ├── phone-xxhdpi-3072-dalvik-heap.mk ├── phone-xxhdpi-3072-hwui-memory.mk ├── phone-xxxhdpi-3072-dalvik-heap.mk ├── phone-xxxhdpi-3072-hwui-memory.mk ├── phone-xxxhdpi-4096-dalvik-heap.mk ├── phone-xxxhdpi-4096-hwui-memory.mk ├── tablet-10in-xhdpi-2048-dalvik-heap.mk ├── tablet-7in-hdpi-1024-dalvik-heap.mk ├── tablet-7in-xhdpi-2048-dalvik-heap.mk └── tablet-dalvik-heap.mk ├── cmds ├── atrace │ ├── Android.mk │ ├── MODULE_LICENSE_APACHE2 │ ├── NOTICE │ ├── atrace.cpp │ └── atrace.rc ├── bugreport │ ├── Android.mk │ └── bugreport.cpp ├── bugreportz │ ├── .clang-format │ ├── Android.mk │ ├── bugreportz.cpp │ ├── bugreportz.h │ ├── bugreportz_test.cpp │ ├── main.cpp │ └── readme.md ├── cmd │ ├── Android.mk │ ├── MODULE_LICENSE_APACHE2 │ ├── NOTICE │ └── cmd.cpp ├── dumpstate │ ├── Android.mk │ ├── bugreport-format.md │ ├── dumpstate.cpp │ ├── dumpstate.h │ ├── dumpstate.rc │ ├── libdumpstate_default.cpp │ └── utils.cpp ├── dumpsys │ ├── Android.mk │ ├── MODULE_LICENSE_APACHE2 │ ├── NOTICE │ └── dumpsys.cpp ├── flatland │ ├── Android.mk │ ├── Composers.cpp │ ├── Flatland.h │ ├── GLHelper.cpp │ ├── GLHelper.h │ ├── Main.cpp │ ├── README.txt │ └── Renderers.cpp ├── installd │ ├── Android.mk │ ├── commands.cpp │ ├── commands.h │ ├── file_parsing.h │ ├── globals.cpp │ ├── globals.h │ ├── installd.cpp │ ├── installd.rc │ ├── installd_constants.h │ ├── installd_deps.h │ ├── otapreopt.cpp │ ├── otapreopt.rc │ ├── otapreopt_chroot.cpp │ ├── otapreopt_script.sh │ ├── otapreopt_slot.sh │ ├── otapreopt_utils.h │ ├── system_properties.h │ ├── tests │ │ ├── Android.mk │ │ └── installd_utils_test.cpp │ ├── utils.cpp │ └── utils.h ├── ip-up-vpn │ ├── Android.mk │ └── ip-up-vpn.c ├── rawbu │ ├── Android.mk │ ├── NOTICE │ └── backup.cpp ├── service │ ├── Android.mk │ ├── MODULE_LICENSE_APACHE2 │ ├── NOTICE │ └── service.cpp └── servicemanager │ ├── Android.mk │ ├── bctest.c │ ├── binder.c │ ├── binder.h │ ├── service_manager.c │ └── servicemanager.rc ├── data └── etc │ ├── android.hardware.audio.low_latency.xml │ ├── android.hardware.audio.output.xml │ ├── android.hardware.audio.pro.xml │ ├── android.hardware.bluetooth.xml │ ├── android.hardware.bluetooth_le.xml │ ├── android.hardware.camera.autofocus.xml │ ├── android.hardware.camera.external.xml │ ├── android.hardware.camera.flash-autofocus.xml │ ├── android.hardware.camera.front.xml │ ├── android.hardware.camera.full.xml │ ├── android.hardware.camera.manual_postprocessing.xml │ ├── android.hardware.camera.manual_sensor.xml │ ├── android.hardware.camera.raw.xml │ ├── android.hardware.camera.xml │ ├── android.hardware.consumerir.xml │ ├── android.hardware.ethernet.xml │ ├── android.hardware.faketouch.multitouch.distinct.xml │ ├── android.hardware.faketouch.multitouch.jazzhand.xml │ ├── android.hardware.faketouch.xml │ ├── android.hardware.fingerprint.xml │ ├── android.hardware.gamepad.xml │ ├── android.hardware.hdmi.cec.xml │ ├── android.hardware.location.gps.xml │ ├── android.hardware.location.xml │ ├── android.hardware.nfc.hce.xml │ ├── android.hardware.nfc.hcef.xml │ ├── android.hardware.nfc.xml │ ├── android.hardware.opengles.aep.xml │ ├── android.hardware.screen.landscape.xml │ ├── android.hardware.screen.portrait.xml │ ├── android.hardware.sensor.accelerometer.xml │ ├── android.hardware.sensor.ambient_temperature.xml │ ├── android.hardware.sensor.barometer.xml │ ├── android.hardware.sensor.compass.xml │ ├── android.hardware.sensor.gyroscope.xml │ ├── android.hardware.sensor.heartrate.ecg.xml │ ├── android.hardware.sensor.heartrate.xml │ ├── android.hardware.sensor.hifi_sensors.xml │ ├── android.hardware.sensor.light.xml │ ├── android.hardware.sensor.proximity.xml │ ├── android.hardware.sensor.relative_humidity.xml │ ├── android.hardware.sensor.stepcounter.xml │ ├── android.hardware.sensor.stepdetector.xml │ ├── android.hardware.telephony.cdma.xml │ ├── android.hardware.telephony.gsm.xml │ ├── android.hardware.touchscreen.multitouch.distinct.xml │ ├── android.hardware.touchscreen.multitouch.jazzhand.xml │ ├── android.hardware.touchscreen.multitouch.xml │ ├── android.hardware.touchscreen.xml │ ├── android.hardware.type.automotive.xml │ ├── android.hardware.usb.accessory.xml │ ├── android.hardware.usb.host.xml │ ├── android.hardware.vr.high_performance.xml │ ├── android.hardware.vulkan.level-0.xml │ ├── android.hardware.vulkan.level-1.xml │ ├── android.hardware.vulkan.version-1_0_3.xml │ ├── android.hardware.wifi.direct.xml │ ├── android.hardware.wifi.nan.xml │ ├── android.hardware.wifi.xml │ ├── android.software.app_widgets.xml │ ├── android.software.backup.xml │ ├── android.software.connectionservice.xml │ ├── android.software.device_admin.xml │ ├── android.software.freeform_window_management.xml │ ├── android.software.live_tv.xml │ ├── android.software.managed_users.xml │ ├── android.software.midi.xml │ ├── android.software.picture_in_picture.xml │ ├── android.software.print.xml │ ├── android.software.securely_removes_users.xml │ ├── android.software.sip.voip.xml │ ├── android.software.sip.xml │ ├── android.software.verified_boot.xml │ ├── android.software.voice_recognizers.xml │ ├── android.software.vr.xml │ ├── android.software.webview.xml │ ├── car_core_hardware.xml │ ├── com.android.nfc_extras.xml │ ├── com.nxp.mifare.xml │ ├── handheld_core_hardware.xml │ ├── tablet_core_hardware.xml │ └── wearable_core_hardware.xml ├── docs ├── Doxyfile ├── Makefile ├── footer.html ├── header.html └── images │ └── camera2 │ └── metadata │ ├── android.colorCorrection.mode │ └── processing_pipeline.png │ ├── android.statistics.lensShadingMap │ ├── blue_shading.png │ ├── green_e_shading.png │ ├── green_o_shading.png │ ├── inv_shading.png │ └── red_shading.png │ └── android.tonemap.curveRed │ ├── gamma_tonemap.png │ ├── inverse_tonemap.png │ ├── linear_tonemap.png │ ├── rec709_tonemap.png │ └── srgb_tonemap.png ├── include ├── android │ ├── asset_manager.h │ ├── asset_manager_jni.h │ ├── bitmap.h │ ├── choreographer.h │ ├── configuration.h │ ├── input.h │ ├── keycodes.h │ ├── looper.h │ ├── multinetwork.h │ ├── native_activity.h │ ├── native_window.h │ ├── native_window_jni.h │ ├── obb.h │ ├── rect.h │ ├── sensor.h │ ├── storage_manager.h │ ├── trace.h │ └── window.h ├── batteryservice │ ├── BatteryService.h │ ├── IBatteryPropertiesListener.h │ └── IBatteryPropertiesRegistrar.h ├── binder │ ├── AppOpsManager.h │ ├── Binder.h │ ├── BinderService.h │ ├── BpBinder.h │ ├── BufferedTextOutput.h │ ├── Debug.h │ ├── IAppOpsCallback.h │ ├── IAppOpsService.h │ ├── IBatteryStats.h │ ├── IBinder.h │ ├── IInterface.h │ ├── IMediaResourceMonitor.h │ ├── IMemory.h │ ├── IPCThreadState.h │ ├── IPermissionController.h │ ├── IProcessInfoService.h │ ├── IResultReceiver.h │ ├── IServiceManager.h │ ├── MemoryBase.h │ ├── MemoryDealer.h │ ├── MemoryHeapBase.h │ ├── MemoryHeapIon.h │ ├── Parcel.h │ ├── Parcelable.h │ ├── PermissionCache.h │ ├── PersistableBundle.h │ ├── ProcessInfoService.h │ ├── ProcessState.h │ ├── Status.h │ └── TextOutput.h ├── diskusage │ └── dirsize.h ├── gui │ ├── BitTube.h │ ├── BufferItem.h │ ├── BufferItemConsumer.h │ ├── BufferQueue.h │ ├── BufferQueueConsumer.h │ ├── BufferQueueCore.h │ ├── BufferQueueDefs.h │ ├── BufferQueueProducer.h │ ├── BufferSlot.h │ ├── ConsumerBase.h │ ├── CpuConsumer.h │ ├── DisplayEventReceiver.h │ ├── FrameTimestamps.h │ ├── GLConsumer.h │ ├── GraphicBufferAlloc.h │ ├── GuiConfig.h │ ├── IConsumerListener.h │ ├── IDisplayEventConnection.h │ ├── IGraphicBufferAlloc.h │ ├── IGraphicBufferConsumer.h │ ├── IGraphicBufferProducer.h │ ├── IProducerListener.h │ ├── ISensorEventConnection.h │ ├── ISensorServer.h │ ├── ISurfaceComposer.h │ ├── ISurfaceComposerClient.h │ ├── OccupancyTracker.h │ ├── Sensor.h │ ├── SensorEventQueue.h │ ├── SensorManager.h │ ├── StreamSplitter.h │ ├── Surface.h │ ├── SurfaceComposerClient.h │ └── SurfaceControl.h ├── input │ ├── IInputFlinger.h │ ├── Input.h │ ├── InputDevice.h │ ├── InputEventLabels.h │ ├── InputTransport.h │ ├── KeyCharacterMap.h │ ├── KeyLayoutMap.h │ ├── Keyboard.h │ ├── VelocityControl.h │ ├── VelocityTracker.h │ └── VirtualKeyMap.h ├── media │ ├── drm │ │ └── DrmAPI.h │ ├── editor │ │ └── II420ColorConverter.h │ ├── hardware │ │ ├── CryptoAPI.h │ │ ├── HDCPAPI.h │ │ ├── HardwareAPI.h │ │ ├── MetadataBufferType.h │ │ ├── OMXPluginBase.h │ │ └── VideoAPI.h │ └── openmax │ │ ├── OMX_AsString.h │ │ ├── OMX_Audio.h │ │ ├── OMX_AudioExt.h │ │ ├── OMX_Component.h │ │ ├── OMX_ContentPipe.h │ │ ├── OMX_Core.h │ │ ├── OMX_IVCommon.h │ │ ├── OMX_Image.h │ │ ├── OMX_Index.h │ │ ├── OMX_IndexExt.h │ │ ├── OMX_Other.h │ │ ├── OMX_Types.h │ │ ├── OMX_Video.h │ │ └── OMX_VideoExt.h ├── powermanager │ ├── IPowerManager.h │ └── PowerManager.h ├── private │ ├── binder │ │ ├── Static.h │ │ └── binder_module.h │ ├── gui │ │ ├── ComposerService.h │ │ ├── LayerState.h │ │ └── SyncFeatures.h │ └── ui │ │ └── RegionHelper.h └── ui │ ├── ANativeObjectBase.h │ ├── DisplayInfo.h │ ├── DisplayStatInfo.h │ ├── Fence.h │ ├── FrameStats.h │ ├── Gralloc1.h │ ├── Gralloc1On0Adapter.h │ ├── GraphicBuffer.h │ ├── GraphicBufferAllocator.h │ ├── GraphicBufferMapper.h │ ├── HdrCapabilities.h │ ├── PixelFormat.h │ ├── Point.h │ ├── Rect.h │ ├── Region.h │ ├── TMatHelpers.h │ ├── TVecHelpers.h │ ├── UiConfig.h │ ├── mat4.h │ ├── vec2.h │ ├── vec3.h │ └── vec4.h ├── libs ├── binder │ ├── Android.mk │ ├── AppOpsManager.cpp │ ├── Binder.cpp │ ├── BpBinder.cpp │ ├── BufferedTextOutput.cpp │ ├── Debug.cpp │ ├── IAppOpsCallback.cpp │ ├── IAppOpsService.cpp │ ├── IBatteryStats.cpp │ ├── IInterface.cpp │ ├── IMediaResourceMonitor.cpp │ ├── IMemory.cpp │ ├── IPCThreadState.cpp │ ├── IPermissionController.cpp │ ├── IProcessInfoService.cpp │ ├── IResultReceiver.cpp │ ├── IServiceManager.cpp │ ├── MemoryBase.cpp │ ├── MemoryDealer.cpp │ ├── MemoryHeapBase.cpp │ ├── MemoryHeapIon.cpp │ ├── Parcel.cpp │ ├── PermissionCache.cpp │ ├── PersistableBundle.cpp │ ├── ProcessInfoService.cpp │ ├── ProcessState.cpp │ ├── Static.cpp │ ├── Status.cpp │ ├── TextOutput.cpp │ └── tests │ │ ├── Android.mk │ │ ├── binderDriverInterfaceTest.cpp │ │ ├── binderLibTest.cpp │ │ └── binderThroughputTest.cpp ├── diskusage │ ├── Android.mk │ ├── MODULE_LICENSE_APACHE2 │ └── dirsize.c ├── gui │ ├── Android.mk │ ├── BitTube.cpp │ ├── BufferItem.cpp │ ├── BufferItemConsumer.cpp │ ├── BufferQueue.cpp │ ├── BufferQueueConsumer.cpp │ ├── BufferQueueCore.cpp │ ├── BufferQueueProducer.cpp │ ├── BufferSlot.cpp │ ├── CleanSpec.mk │ ├── ConsumerBase.cpp │ ├── CpuConsumer.cpp │ ├── DisplayEventReceiver.cpp │ ├── GLConsumer.cpp │ ├── GraphicBufferAlloc.cpp │ ├── GuiConfig.cpp │ ├── IConsumerListener.cpp │ ├── IDisplayEventConnection.cpp │ ├── IGraphicBufferAlloc.cpp │ ├── IGraphicBufferConsumer.cpp │ ├── IGraphicBufferProducer.cpp │ ├── IProducerListener.cpp │ ├── ISensorEventConnection.cpp │ ├── ISensorServer.cpp │ ├── ISurfaceComposer.cpp │ ├── ISurfaceComposerClient.cpp │ ├── LayerState.cpp │ ├── OccupancyTracker.cpp │ ├── Sensor.cpp │ ├── SensorEventQueue.cpp │ ├── SensorManager.cpp │ ├── StreamSplitter.cpp │ ├── Surface.cpp │ ├── SurfaceComposerClient.cpp │ ├── SurfaceControl.cpp │ ├── SyncFeatures.cpp │ └── tests │ │ ├── Android.mk │ │ ├── BufferQueue_test.cpp │ │ ├── CpuConsumer_test.cpp │ │ ├── DisconnectWaiter.h │ │ ├── DummyConsumer.h │ │ ├── FillBuffer.cpp │ │ ├── FillBuffer.h │ │ ├── FrameWaiter.h │ │ ├── GLTest.cpp │ │ ├── GLTest.h │ │ ├── IGraphicBufferProducer_test.cpp │ │ ├── MultiTextureConsumer_test.cpp │ │ ├── SRGB_test.cpp │ │ ├── StreamSplitter_test.cpp │ │ ├── SurfaceTextureClient_test.cpp │ │ ├── SurfaceTextureFBO.h │ │ ├── SurfaceTextureFBO_test.cpp │ │ ├── SurfaceTextureGL.h │ │ ├── SurfaceTextureGLThreadToGL.h │ │ ├── SurfaceTextureGLThreadToGL_test.cpp │ │ ├── SurfaceTextureGLToGL.h │ │ ├── SurfaceTextureGLToGL_test.cpp │ │ ├── SurfaceTextureGL_test.cpp │ │ ├── SurfaceTextureMultiContextGL.h │ │ ├── SurfaceTextureMultiContextGL_test.cpp │ │ ├── Surface_test.cpp │ │ ├── TextureRenderer.cpp │ │ └── TextureRenderer.h ├── input │ ├── Android.mk │ ├── IInputFlinger.cpp │ ├── Input.cpp │ ├── InputDevice.cpp │ ├── InputTransport.cpp │ ├── KeyCharacterMap.cpp │ ├── KeyLayoutMap.cpp │ ├── Keyboard.cpp │ ├── VelocityControl.cpp │ ├── VelocityTracker.cpp │ ├── VirtualKeyMap.cpp │ └── tests │ │ ├── Android.mk │ │ ├── InputChannel_test.cpp │ │ ├── InputEvent_test.cpp │ │ ├── InputPublisherAndConsumer_test.cpp │ │ ├── StructLayout_test.cpp │ │ └── TestHelpers.h └── ui │ ├── Android.mk │ ├── Fence.cpp │ ├── FrameStats.cpp │ ├── Gralloc1.cpp │ ├── Gralloc1On0Adapter.cpp │ ├── GraphicBuffer.cpp │ ├── GraphicBufferAllocator.cpp │ ├── GraphicBufferMapper.cpp │ ├── HdrCapabilities.cpp │ ├── MODULE_LICENSE_APACHE2 │ ├── NOTICE │ ├── PixelFormat.cpp │ ├── Rect.cpp │ ├── Region.cpp │ ├── UiConfig.cpp │ └── tests │ ├── Android.mk │ ├── Region_test.cpp │ ├── mat_test.cpp │ └── vec_test.cpp ├── opengl ├── include │ ├── EGL │ │ ├── egl.h │ │ ├── eglext.h │ │ └── eglplatform.h │ ├── ETC1 │ │ └── etc1.h │ ├── GLES │ │ ├── egl.h │ │ ├── gl.h │ │ ├── glext.h │ │ └── glplatform.h │ ├── GLES2 │ │ ├── gl2.h │ │ ├── gl2ext.h │ │ └── gl2platform.h │ ├── GLES3 │ │ ├── gl3.h │ │ ├── gl31.h │ │ ├── gl32.h │ │ ├── gl3ext.h │ │ └── gl3platform.h │ ├── KHR │ │ └── khrplatform.h │ └── MODULE_LICENSE_MIT ├── libagl │ ├── Android.mk │ ├── BufferObjectManager.cpp │ ├── BufferObjectManager.h │ ├── TextureObjectManager.cpp │ ├── TextureObjectManager.h │ ├── TokenManager.cpp │ ├── TokenManager.h │ ├── Tokenizer.cpp │ ├── Tokenizer.h │ ├── arch-mips │ │ └── fixed_asm.S │ ├── array.cpp │ ├── array.h │ ├── context.h │ ├── dxt.cpp │ ├── dxt.h │ ├── egl.cpp │ ├── fixed_asm.S │ ├── fp.cpp │ ├── fp.h │ ├── iterators.S │ ├── light.cpp │ ├── light.h │ ├── matrix.cpp │ ├── matrix.h │ ├── mipmap.cpp │ ├── primitives.cpp │ ├── primitives.h │ ├── state.cpp │ ├── state.h │ ├── texture.cpp │ ├── texture.h │ ├── vertex.cpp │ └── vertex.h ├── libs │ ├── Android.mk │ ├── EGL │ │ ├── Loader.cpp │ │ ├── Loader.h │ │ ├── egl.cpp │ │ ├── eglApi.cpp │ │ ├── egl_cache.cpp │ │ ├── egl_cache.h │ │ ├── egl_display.cpp │ │ ├── egl_display.h │ │ ├── egl_entries.in │ │ ├── egl_object.cpp │ │ ├── egl_object.h │ │ ├── egl_tls.cpp │ │ ├── egl_tls.h │ │ ├── egldefs.h │ │ └── getProcAddress.cpp │ ├── ETC1 │ │ └── etc1.cpp │ ├── GLES2 │ │ ├── gl2.cpp │ │ ├── gl2_api.in │ │ └── gl2ext_api.in │ ├── GLES_CM │ │ ├── gl.cpp │ │ ├── gl_api.in │ │ └── glext_api.in │ ├── egl_impl.h │ ├── entries.in │ ├── enums.in │ ├── hooks.h │ └── tools │ │ ├── genfiles │ │ ├── glapigen │ │ ├── glentrygen │ │ └── glenumsgen ├── specs │ ├── EGL_ANDROID_blob_cache.txt │ ├── EGL_ANDROID_create_native_client_buffer.txt │ ├── EGL_ANDROID_framebuffer_target.txt │ ├── EGL_ANDROID_front_buffer_auto_refresh.txt │ ├── EGL_ANDROID_get_frame_timestamps.txt │ ├── EGL_ANDROID_image_native_buffer.txt │ ├── EGL_ANDROID_native_fence_sync.txt │ ├── EGL_ANDROID_presentation_time.txt │ ├── EGL_ANDROID_recordable.txt │ └── README ├── tests │ ├── Android.mk │ ├── EGLTest │ │ ├── Android.mk │ │ ├── EGL_test.cpp │ │ └── egl_cache_test.cpp │ ├── angeles │ │ ├── Android.mk │ │ ├── MODULE_LICENSE_BSD_OR_LGPL │ │ ├── README.txt │ │ ├── app-linux.cpp │ │ ├── app.h │ │ ├── cams.h │ │ ├── demo.c │ │ ├── include │ │ │ └── GLES │ │ │ │ ├── egl.h │ │ │ │ ├── egltypes.h │ │ │ │ └── gl.h │ │ ├── license-BSD.txt │ │ ├── license-LGPL.txt │ │ ├── license.txt │ │ └── shapes.h │ ├── configdump │ │ ├── Android.mk │ │ └── configdump.cpp │ ├── fillrate │ │ ├── Android.mk │ │ └── fillrate.cpp │ ├── filter │ │ ├── Android.mk │ │ └── filter.cpp │ ├── finish │ │ ├── Android.mk │ │ └── finish.cpp │ ├── gl2_basic │ │ ├── Android.mk │ │ └── gl2_basic.cpp │ ├── gl2_cameraeye │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── gl2cameraeye │ │ │ └── GL2CameraEye.java │ ├── gl2_copyTexImage │ │ ├── Android.mk │ │ └── gl2_copyTexImage.cpp │ ├── gl2_java │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── gl2java │ │ │ ├── GL2JavaActivity.java │ │ │ └── GL2JavaView.java │ ├── gl2_jni │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── jni │ │ │ └── gl_code.cpp │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── gl2jni │ │ │ ├── GL2JNIActivity.java │ │ │ ├── GL2JNILib.java │ │ │ └── GL2JNIView.java │ ├── gl2_yuvtex │ │ ├── Android.mk │ │ └── gl2_yuvtex.cpp │ ├── gl_basic │ │ ├── Android.mk │ │ └── gl_basic.cpp │ ├── gl_jni │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── jni │ │ │ └── gl_code.cpp │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── gljni │ │ │ ├── GLJNIActivity.java │ │ │ ├── GLJNILib.java │ │ │ └── GLJNIView.java │ ├── gl_perf │ │ ├── Android.mk │ │ ├── fill_common.cpp │ │ ├── filltest.cpp │ │ ├── fragment_shaders.cpp │ │ └── gl2_perf.cpp │ ├── gl_perfapp │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── jni │ │ │ └── gl_code.cpp │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── glperf │ │ │ ├── GLPerfActivity.java │ │ │ ├── GLPerfLib.java │ │ │ └── GLPerfView.java │ ├── gl_yuvtex │ │ ├── Android.mk │ │ └── gl_yuvtex.cpp │ ├── gldual │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── jni │ │ │ └── gl_code.cpp │ │ ├── res │ │ │ ├── layout │ │ │ │ └── gldual_activity.xml │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── gldual │ │ │ ├── GLDualActivity.java │ │ │ ├── GLDualGL2View.java │ │ │ ├── GLDualLib.java │ │ │ └── TriangleRenderer.java │ ├── gralloc │ │ ├── Android.mk │ │ └── gralloc.cpp │ ├── hwc │ │ ├── Android.mk │ │ ├── hwcColorEquiv.cpp │ │ ├── hwcCommit.cpp │ │ ├── hwcRects.cpp │ │ ├── hwcStress.cpp │ │ ├── hwcTestLib.cpp │ │ └── hwcTestLib.h │ ├── include │ │ ├── EGLUtils.h │ │ ├── WindowSurface.h │ │ └── glTestLib.h │ ├── lib │ │ ├── Android.mk │ │ ├── WindowSurface.cpp │ │ └── glTestLib.cpp │ ├── lighting1709 │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── lightingtest │ │ │ └── ClearActivity.java │ ├── linetex │ │ ├── Android.mk │ │ └── linetex.cpp │ ├── swapinterval │ │ ├── Android.mk │ │ └── swapinterval.cpp │ ├── testFramerate │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── testframerate │ │ │ ├── TestFramerateActivity.java │ │ │ └── TestFramerateView.java │ ├── testLatency │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── testlatency │ │ │ ├── TestLatencyActivity.java │ │ │ └── TestLatencyView.java │ ├── testPauseResume │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── README │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── test │ │ │ ├── TestActivity.java │ │ │ └── TestView.java │ ├── testViewport │ │ ├── Android.mk │ │ ├── AndroidManifest.xml │ │ ├── README │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── src │ │ │ └── com │ │ │ └── android │ │ │ └── test │ │ │ ├── TestActivity.java │ │ │ └── TestView.java │ ├── textures │ │ ├── Android.mk │ │ └── textures.cpp │ └── tritex │ │ ├── Android.mk │ │ └── tritex.cpp └── tools │ ├── glgen │ ├── .gitignore │ ├── convert_to_java.py │ ├── gen │ ├── specs │ │ ├── egl │ │ │ ├── EGL14.spec │ │ │ ├── EGLExt.spec │ │ │ └── checks.spec │ │ ├── gles11 │ │ │ ├── GLES10.spec │ │ │ ├── GLES10Ext.spec │ │ │ ├── GLES11.spec │ │ │ ├── GLES11Ext.spec │ │ │ ├── GLES20.spec │ │ │ ├── GLES30.spec │ │ │ ├── GLES31.spec │ │ │ ├── GLES31Ext.spec │ │ │ ├── GLES32.spec │ │ │ └── checks.spec │ │ └── jsr239 │ │ │ ├── glspec-1.0 │ │ │ ├── glspec-1.0ext │ │ │ ├── glspec-1.1 │ │ │ ├── glspec-1.1ext │ │ │ ├── glspec-1.1extpack │ │ │ └── glspec-checks │ ├── src │ │ ├── .gitignore │ │ ├── CFunc.java │ │ ├── CType.java │ │ ├── CodeEmitter.java │ │ ├── EGLCodeEmitter.java │ │ ├── GLESCodeEmitter.java │ │ ├── GenerateEGL.java │ │ ├── GenerateGL.java │ │ ├── GenerateGLES.java │ │ ├── JFunc.java │ │ ├── JType.java │ │ ├── JniCodeEmitter.java │ │ ├── Jsr239CodeEmitter.java │ │ └── ParameterChecker.java │ ├── static │ │ └── egl │ │ │ ├── EGLConfig.java │ │ │ ├── EGLContext.java │ │ │ ├── EGLDisplay.java │ │ │ ├── EGLObjectHandle.java │ │ │ └── EGLSurface.java │ └── stubs │ │ ├── egl │ │ ├── EGL14Header.java-if │ │ ├── EGL14cHeader.cpp │ │ ├── EGLExtHeader.java-if │ │ ├── EGLExtcHeader.cpp │ │ ├── eglCreatePbufferFromClientBuffer.cpp │ │ ├── eglCreatePbufferFromClientBuffer.java │ │ ├── eglCreatePbufferFromClientBuffer.nativeReg │ │ ├── eglCreateWindowSurface.cpp │ │ ├── eglCreateWindowSurface.java │ │ ├── eglCreateWindowSurface.nativeReg │ │ ├── eglGetDisplay.cpp │ │ ├── eglGetDisplay.java │ │ ├── eglGetDisplay.nativeReg │ │ ├── eglQueryString.cpp │ │ ├── eglQueryString.java │ │ └── eglQueryString.nativeReg │ │ ├── gles11 │ │ ├── GLES10ExtHeader.java-if │ │ ├── GLES10ExtcHeader.cpp │ │ ├── GLES10Header.java-if │ │ ├── GLES10cHeader.cpp │ │ ├── GLES11ExtHeader.java-if │ │ ├── GLES11ExtcHeader.cpp │ │ ├── GLES11Header.java-if │ │ ├── GLES11cHeader.cpp │ │ ├── GLES20Header.java-if │ │ ├── GLES20cHeader.cpp │ │ ├── GLES30Header.java-if │ │ ├── GLES30cHeader.cpp │ │ ├── GLES31ExtHeader.java-if │ │ ├── GLES31ExtcHeader.cpp │ │ ├── GLES31Header.java-if │ │ ├── GLES31cHeader.cpp │ │ ├── GLES32Header.java-if │ │ ├── GLES32cHeader.cpp │ │ ├── common.cpp │ │ ├── glBindVertexBuffer.cpp │ │ ├── glBindVertexBuffer.java │ │ ├── glBindVertexBuffer.nativeReg │ │ ├── glCreateShaderProgramv.cpp │ │ ├── glCreateShaderProgramv.java │ │ ├── glCreateShaderProgramv.nativeReg │ │ ├── glDebugMessageCallback.cpp │ │ ├── glDebugMessageCallback.java │ │ ├── glDebugMessageCallback.nativeReg │ │ ├── glDebugMessageCallbackKHR.cpp │ │ ├── glDebugMessageCallbackKHR.java │ │ ├── glDebugMessageCallbackKHR.nativeReg │ │ ├── glDebugMessageInsertKHR.cpp │ │ ├── glDebugMessageInsertKHR.java │ │ ├── glDebugMessageInsertKHR.nativeReg │ │ ├── glDispatchComputeIndirect.cpp │ │ ├── glDispatchComputeIndirect.java │ │ ├── glDispatchComputeIndirect.nativeReg │ │ ├── glDrawArraysIndirect.cpp │ │ ├── glDrawArraysIndirect.java │ │ ├── glDrawArraysIndirect.nativeReg │ │ ├── glDrawElementsIndirect.cpp │ │ ├── glDrawElementsIndirect.java │ │ ├── glDrawElementsIndirect.nativeReg │ │ ├── glDrawElementsInstanced.cpp │ │ ├── glDrawElementsInstanced.java │ │ ├── glDrawElementsInstanced.nativeReg │ │ ├── glDrawElementsInstancedBaseVertex.cpp │ │ ├── glDrawElementsInstancedBaseVertex.java │ │ ├── glDrawElementsInstancedBaseVertex.nativeReg │ │ ├── glGetActiveAttrib.cpp │ │ ├── glGetActiveAttrib.java │ │ ├── glGetActiveAttrib.nativeReg │ │ ├── glGetActiveUniform.cpp │ │ ├── glGetActiveUniform.java │ │ ├── glGetActiveUniform.nativeReg │ │ ├── glGetActiveUniformBlockName.cpp │ │ ├── glGetActiveUniformBlockName.java │ │ ├── glGetActiveUniformBlockName.nativeReg │ │ ├── glGetBooleanv.cpp │ │ ├── glGetBooleanv.java │ │ ├── glGetBooleanv.nativeReg │ │ ├── glGetBufferPointerv.cpp │ │ ├── glGetBufferPointerv.java │ │ ├── glGetBufferPointerv.nativeReg │ │ ├── glGetDebugMessageLog.cpp │ │ ├── glGetDebugMessageLog.java │ │ ├── glGetDebugMessageLog.nativeReg │ │ ├── glGetDebugMessageLogKHR.cpp │ │ ├── glGetDebugMessageLogKHR.java │ │ ├── glGetDebugMessageLogKHR.nativeReg │ │ ├── glGetFloatv.cpp │ │ ├── glGetFloatv.java │ │ ├── glGetFloatv.nativeReg │ │ ├── glGetIntegerv.cpp │ │ ├── glGetIntegerv.java │ │ ├── glGetIntegerv.nativeReg │ │ ├── glGetObjectLabel.cpp │ │ ├── glGetObjectLabel.java │ │ ├── glGetObjectLabel.nativeReg │ │ ├── glGetObjectLabelKHR.cpp │ │ ├── glGetObjectLabelKHR.java │ │ ├── glGetObjectLabelKHR.nativeReg │ │ ├── glGetObjectPtrLabel.cpp │ │ ├── glGetObjectPtrLabel.java │ │ ├── glGetObjectPtrLabel.nativeReg │ │ ├── glGetObjectPtrLabelKHR.cpp │ │ ├── glGetObjectPtrLabelKHR.java │ │ ├── glGetObjectPtrLabelKHR.nativeReg │ │ ├── glGetPointerv.cpp │ │ ├── glGetPointerv.java │ │ ├── glGetPointerv.nativeReg │ │ ├── glGetPointervKHR.cpp │ │ ├── glGetPointervKHR.java │ │ ├── glGetPointervKHR.nativeReg │ │ ├── glGetProgramInfoLog.cpp │ │ ├── glGetProgramInfoLog.java │ │ ├── glGetProgramInfoLog.nativeReg │ │ ├── glGetProgramPipelineInfoLog.cpp │ │ ├── glGetProgramPipelineInfoLog.java │ │ ├── glGetProgramPipelineInfoLog.nativeReg │ │ ├── glGetProgramResourceName.cpp │ │ ├── glGetProgramResourceName.java │ │ ├── glGetProgramResourceName.nativeReg │ │ ├── glGetShaderInfoLog.cpp │ │ ├── glGetShaderInfoLog.java │ │ ├── glGetShaderInfoLog.nativeReg │ │ ├── glGetShaderSource.cpp │ │ ├── glGetShaderSource.java │ │ ├── glGetShaderSource.nativeReg │ │ ├── glGetString.cpp │ │ ├── glGetString.java │ │ ├── glGetString.nativeReg │ │ ├── glGetStringi.cpp │ │ ├── glGetStringi.java │ │ ├── glGetStringi.nativeReg │ │ ├── glGetTransformFeedbackVarying.cpp │ │ ├── glGetTransformFeedbackVarying.java │ │ ├── glGetTransformFeedbackVarying.nativeReg │ │ ├── glGetUniformIndices.cpp │ │ ├── glGetUniformIndices.java │ │ ├── glGetUniformIndices.nativeReg │ │ ├── glMapBufferRange.cpp │ │ ├── glMapBufferRange.java │ │ ├── glMapBufferRange.nativeReg │ │ ├── glObjectPtrLabel.cpp │ │ ├── glObjectPtrLabel.java │ │ ├── glObjectPtrLabel.nativeReg │ │ ├── glObjectPtrLabelKHR.cpp │ │ ├── glObjectPtrLabelKHR.java │ │ ├── glObjectPtrLabelKHR.nativeReg │ │ ├── glShaderSource.cpp │ │ ├── glShaderSource.java │ │ ├── glShaderSource.nativeReg │ │ ├── glTransformFeedbackVaryings.cpp │ │ ├── glTransformFeedbackVaryings.java │ │ └── glTransformFeedbackVaryings.nativeReg │ │ └── jsr239 │ │ ├── GL10ExtHeader.java-if │ │ ├── GL10Header.java-if │ │ ├── GL11ExtHeader.java-if │ │ ├── GL11ExtensionPackHeader.java-if │ │ ├── GL11Header.java-if │ │ ├── GL11ImplHeader.java-impl │ │ ├── GLCHeader.cpp │ │ ├── GLHeader.java-if │ │ ├── GLImplHeader.java-impl │ │ ├── glGetString.cpp │ │ ├── glGetString.java-10-if │ │ ├── glGetString.java-if │ │ ├── glGetString.java-impl │ │ └── glGetString.nativeReg │ └── glgen2 │ ├── .gitignore │ ├── glgen.py │ └── registry │ ├── egl.xml │ ├── genheaders.py │ ├── gl.xml │ └── reg.py ├── services ├── batteryservice │ ├── Android.mk │ ├── BatteryProperties.cpp │ ├── BatteryProperty.cpp │ ├── IBatteryPropertiesListener.cpp │ └── IBatteryPropertiesRegistrar.cpp ├── inputflinger │ ├── Android.mk │ ├── EventHub.cpp │ ├── EventHub.h │ ├── InputApplication.cpp │ ├── InputApplication.h │ ├── InputDispatcher.cpp │ ├── InputDispatcher.h │ ├── InputListener.cpp │ ├── InputListener.h │ ├── InputManager.cpp │ ├── InputManager.h │ ├── InputReader.cpp │ ├── InputReader.h │ ├── InputWindow.cpp │ ├── InputWindow.h │ ├── PointerControllerInterface.h │ ├── host │ │ ├── Android.mk │ │ ├── InputDriver.cpp │ │ ├── InputDriver.h │ │ ├── InputFlinger.cpp │ │ ├── InputFlinger.h │ │ ├── InputHost.cpp │ │ ├── InputHost.h │ │ ├── inputflinger.rc │ │ └── main.cpp │ └── tests │ │ ├── Android.mk │ │ ├── InputDispatcher_test.cpp │ │ └── InputReader_test.cpp ├── powermanager │ ├── Android.mk │ └── IPowerManager.cpp ├── sensorservice │ ├── Android.mk │ ├── BatteryService.cpp │ ├── BatteryService.h │ ├── CorrectedGyroSensor.cpp │ ├── CorrectedGyroSensor.h │ ├── Fusion.cpp │ ├── Fusion.h │ ├── GravitySensor.cpp │ ├── GravitySensor.h │ ├── LinearAccelerationSensor.cpp │ ├── LinearAccelerationSensor.h │ ├── OrientationSensor.cpp │ ├── OrientationSensor.h │ ├── RecentEventLogger.cpp │ ├── RecentEventLogger.h │ ├── RingBuffer.h │ ├── RotationVectorSensor.cpp │ ├── RotationVectorSensor.h │ ├── SensorDevice.cpp │ ├── SensorDevice.h │ ├── SensorEventAckReceiver.h │ ├── SensorEventConnection.cpp │ ├── SensorEventConnection.h │ ├── SensorFusion.cpp │ ├── SensorFusion.h │ ├── SensorInterface.cpp │ ├── SensorInterface.h │ ├── SensorList.cpp │ ├── SensorList.h │ ├── SensorRecord.cpp │ ├── SensorRecord.h │ ├── SensorRegistrationInfo.h │ ├── SensorService.cpp │ ├── SensorService.h │ ├── SensorServiceUtils.cpp │ ├── SensorServiceUtils.h │ ├── main_sensorservice.cpp │ ├── mat.h │ ├── quat.h │ ├── tests │ │ ├── Android.mk │ │ └── sensorservicetest.cpp │ ├── traits.h │ └── vec.h └── surfaceflinger │ ├── Android.mk │ ├── Barrier.h │ ├── Client.cpp │ ├── Client.h │ ├── Colorizer.h │ ├── DdmConnection.cpp │ ├── DdmConnection.h │ ├── DispSync.cpp │ ├── DispSync.h │ ├── DisplayDevice.cpp │ ├── DisplayDevice.h │ ├── DisplayHardware │ ├── DisplaySurface.h │ ├── FloatRect.h │ ├── FramebufferSurface.cpp │ ├── FramebufferSurface.h │ ├── HWC2.cpp │ ├── HWC2.h │ ├── HWC2On1Adapter.cpp │ ├── HWC2On1Adapter.h │ ├── HWComposer.cpp │ ├── HWComposer.h │ ├── HWComposer_hwc1.cpp │ ├── HWComposer_hwc1.h │ ├── PowerHAL.cpp │ ├── PowerHAL.h │ ├── VirtualDisplaySurface.cpp │ └── VirtualDisplaySurface.h │ ├── DisplayUtils.cpp │ ├── DisplayUtils.h │ ├── Effects │ ├── Daltonizer.cpp │ └── Daltonizer.h │ ├── EventControlThread.cpp │ ├── EventControlThread.h │ ├── EventLog │ ├── EventLog.cpp │ ├── EventLog.h │ └── EventLogTags.logtags │ ├── EventThread.cpp │ ├── EventThread.h │ ├── ExSurfaceFlinger │ ├── ExHWComposer.cpp │ ├── ExHWComposer.h │ ├── ExLayer.cpp │ ├── ExLayer.h │ ├── ExSurfaceFlinger.cpp │ ├── ExSurfaceFlinger.h │ ├── ExVirtualDisplaySurface.cpp │ └── ExVirtualDisplaySurface.h │ ├── FenceTracker.cpp │ ├── FenceTracker.h │ ├── FrameRateHelper.h │ ├── FrameTracker.cpp │ ├── FrameTracker.h │ ├── GpuService.cpp │ ├── GpuService.h │ ├── Layer.cpp │ ├── Layer.h │ ├── LayerBlur.cpp │ ├── LayerBlur.h │ ├── LayerDim.cpp │ ├── LayerDim.h │ ├── MODULE_LICENSE_APACHE2 │ ├── MessageQueue.cpp │ ├── MessageQueue.h │ ├── MonitoredProducer.cpp │ ├── MonitoredProducer.h │ ├── RenderEngine │ ├── Description.cpp │ ├── Description.h │ ├── GLES10RenderEngine.cpp │ ├── GLES10RenderEngine.h │ ├── GLES11RenderEngine.cpp │ ├── GLES11RenderEngine.h │ ├── GLES20RenderEngine.cpp │ ├── GLES20RenderEngine.h │ ├── GLExtensions.cpp │ ├── GLExtensions.h │ ├── Mesh.cpp │ ├── Mesh.h │ ├── Program.cpp │ ├── Program.h │ ├── ProgramCache.cpp │ ├── ProgramCache.h │ ├── RenderEngine.cpp │ ├── RenderEngine.h │ ├── Texture.cpp │ └── Texture.h │ ├── SurfaceFlinger.cpp │ ├── SurfaceFlinger.h │ ├── SurfaceFlingerConsumer.cpp │ ├── SurfaceFlingerConsumer.h │ ├── SurfaceFlinger_hwc1.cpp │ ├── Transform.cpp │ ├── Transform.h │ ├── clz.h │ ├── main_surfaceflinger.cpp │ ├── surfaceflinger.rc │ └── tests │ ├── Android.mk │ ├── Transaction_test.cpp │ ├── vsync │ ├── Android.mk │ └── vsync.cpp │ └── waitforvsync │ ├── Android.mk │ └── waitforvsync.cpp └── vulkan ├── .clang-format ├── Android.mk ├── README.md ├── api ├── platform.api ├── templates │ ├── asciidoc.tmpl │ ├── vk_xml.tmpl │ ├── vulkan_common.tmpl │ └── vulkan_h.tmpl └── vulkan.api ├── doc └── implementors_guide │ ├── implementors_guide-docinfo.adoc │ ├── implementors_guide.adoc │ ├── implementors_guide.conf │ └── implementors_guide.html ├── include ├── hardware │ └── hwvulkan.h └── vulkan │ ├── vk_android_native_buffer.h │ ├── vk_layer_interface.h │ ├── vk_platform.h │ ├── vulkan.h │ └── vulkan_loader_data.h ├── libvulkan ├── Android.mk ├── api.cpp ├── api.h ├── api_gen.cpp ├── api_gen.h ├── code-generator.tmpl ├── debug_report.cpp ├── debug_report.h ├── driver.cpp ├── driver.h ├── driver_gen.cpp ├── driver_gen.h ├── layers_extensions.cpp ├── layers_extensions.h ├── stubhal.cpp ├── stubhal.h ├── swapchain.cpp ├── swapchain.h └── vulkan_loader_data.cpp ├── nulldrv ├── Android.mk ├── null_driver.cpp ├── null_driver.tmpl ├── null_driver_gen.cpp └── null_driver_gen.h └── tools ├── Android.mk └── vkinfo.cpp /MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /aidl/binder/android/os/PersistableBundle.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2014, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | package android.os; 19 | 20 | parcelable PersistableBundle cpp_header "binder/PersistableBundle.h"; 21 | -------------------------------------------------------------------------------- /aidl/gui/android/view/Surface.aidl: -------------------------------------------------------------------------------- 1 | /* //device/java/android/android/view/Surface.aidl 2 | ** 3 | ** Copyright 2007, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | package android.view; 19 | 20 | parcelable Surface cpp_header "gui/Surface.h"; 21 | -------------------------------------------------------------------------------- /build/phone-hdpi-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2010 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a standard high density phone. 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=5m \ 21 | dalvik.vm.heapsize=32m \ 22 | dalvik.vm.heaptargetutilization=0.75 \ 23 | dalvik.vm.heapminfree=512k \ 24 | dalvik.vm.heapmaxfree=2m 25 | -------------------------------------------------------------------------------- /build/phone-xhdpi-1024-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a xhdpi phone 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=8m \ 21 | dalvik.vm.heapgrowthlimit=96m \ 22 | dalvik.vm.heapsize=256m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=2m \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/phone-xxhdpi-3072-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a 3G phone 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=8m \ 21 | dalvik.vm.heapgrowthlimit=288m \ 22 | dalvik.vm.heapsize=768m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=512k \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/phone-xxxhdpi-3072-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2015 The CyanogenMod Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a 3G phone 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=8m \ 21 | dalvik.vm.heapgrowthlimit=288m \ 22 | dalvik.vm.heapsize=768m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=2m \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/phone-xxxhdpi-4096-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a 4G phone 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=8m \ 21 | dalvik.vm.heapgrowthlimit=384m \ 22 | dalvik.vm.heapsize=1024m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=4m \ 25 | dalvik.vm.heapmaxfree=16m 26 | -------------------------------------------------------------------------------- /build/tablet-10in-xhdpi-2048-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a standard tablet device. 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=16m \ 21 | dalvik.vm.heapgrowthlimit=192m \ 22 | dalvik.vm.heapsize=512m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=512k \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/tablet-7in-hdpi-1024-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2010 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a standard tablet device. 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=8m \ 21 | dalvik.vm.heapgrowthlimit=80m \ 22 | dalvik.vm.heapsize=384m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=512k \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/tablet-7in-xhdpi-2048-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2013 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a 320dpi 7" tablet device. 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=16m \ 21 | dalvik.vm.heapgrowthlimit=192m \ 22 | dalvik.vm.heapsize=512m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=512k \ 25 | dalvik.vm.heapmaxfree=8m 26 | -------------------------------------------------------------------------------- /build/tablet-dalvik-heap.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2010 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Provides overrides to configure the Dalvik heap for a standard tablet device. 18 | 19 | PRODUCT_PROPERTY_OVERRIDES += \ 20 | dalvik.vm.heapstartsize=5m \ 21 | dalvik.vm.heapgrowthlimit=48m \ 22 | dalvik.vm.heapsize=256m \ 23 | dalvik.vm.heaptargetutilization=0.75 \ 24 | dalvik.vm.heapminfree=512k \ 25 | dalvik.vm.heapmaxfree=2m 26 | -------------------------------------------------------------------------------- /cmds/atrace/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2012 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES:= atrace.cpp 7 | 8 | LOCAL_C_INCLUDES += external/zlib 9 | 10 | LOCAL_MODULE:= atrace 11 | 12 | LOCAL_MODULE_TAGS:= optional 13 | 14 | LOCAL_SHARED_LIBRARIES := \ 15 | libbinder \ 16 | libcutils \ 17 | libutils \ 18 | libz \ 19 | 20 | LOCAL_INIT_RC := atrace.rc 21 | 22 | include $(BUILD_EXECUTABLE) 23 | -------------------------------------------------------------------------------- /cmds/atrace/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/cmds/atrace/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /cmds/bugreport/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= bugreport.cpp 5 | 6 | LOCAL_MODULE:= bugreport 7 | 8 | LOCAL_CFLAGS := -Wall 9 | 10 | LOCAL_SHARED_LIBRARIES := libcutils 11 | 12 | include $(BUILD_EXECUTABLE) 13 | -------------------------------------------------------------------------------- /cmds/bugreportz/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | AllowShortBlocksOnASingleLine: false 3 | AllowShortFunctionsOnASingleLine: false 4 | 5 | AccessModifierOffset: -2 6 | ColumnLimit: 100 7 | CommentPragmas: NOLINT:.* 8 | DerivePointerAlignment: false 9 | IndentWidth: 4 10 | PointerAlignment: Left 11 | TabWidth: 4 12 | UseTab: Never 13 | PenaltyExcessCharacter: 32 14 | -------------------------------------------------------------------------------- /cmds/bugreportz/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | # bugreportz 4 | # ========== 5 | 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_SRC_FILES:= \ 9 | bugreportz.cpp \ 10 | main.cpp \ 11 | 12 | LOCAL_MODULE:= bugreportz 13 | 14 | LOCAL_CFLAGS := -Werror -Wall 15 | 16 | LOCAL_SHARED_LIBRARIES := \ 17 | libbase \ 18 | libcutils \ 19 | 20 | include $(BUILD_EXECUTABLE) 21 | 22 | # bugreportz_test 23 | # =============== 24 | 25 | include $(CLEAR_VARS) 26 | 27 | LOCAL_MODULE := bugreportz_test 28 | LOCAL_MODULE_TAGS := tests 29 | 30 | LOCAL_CFLAGS := -Werror -Wall 31 | 32 | LOCAL_SRC_FILES := \ 33 | bugreportz.cpp \ 34 | bugreportz_test.cpp \ 35 | 36 | LOCAL_STATIC_LIBRARIES := \ 37 | libgmock \ 38 | 39 | LOCAL_SHARED_LIBRARIES := \ 40 | libbase \ 41 | libutils \ 42 | 43 | include $(BUILD_NATIVE_TEST) 44 | -------------------------------------------------------------------------------- /cmds/bugreportz/bugreportz.h: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All Rights Reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | #ifndef BUGREPORTZ_H 16 | #define BUGREPORTZ_H 17 | 18 | // Calls dumpstate using the given socket and output its result to stdout. 19 | int bugreportz(int s, bool show_progress); 20 | 21 | #endif // BUGREPORTZ_H 22 | -------------------------------------------------------------------------------- /cmds/bugreportz/readme.md: -------------------------------------------------------------------------------- 1 | # bugreportz protocol 2 | 3 | `bugreportz` is used to generate a zippped bugreport whose path is passed back to `adb`, using 4 | the simple protocol defined below. 5 | 6 | # Version 1.1 7 | On version 1.1, in addition to the `OK` and `FAILURE` lines, when `bugreportz` is invoked with 8 | `-p`, it outputs the following lines: 9 | 10 | - `BEGIN:` right away. 11 | - `PROGRESS:/` as `dumpstate` progresses (where `` is the current 12 | progress units out of a max of ``). 13 | 14 | ## Version 1.0 15 | On version 1.0, `bugreportz` does not generate any output on `stdout` until the bugreport is 16 | finished, when it then prints one line with the result: 17 | 18 | - `OK:` in case of success. 19 | - `FAIL:` in case of failure. 20 | -------------------------------------------------------------------------------- /cmds/cmd/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | cmd.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libutils \ 9 | liblog \ 10 | libbinder 11 | 12 | 13 | ifeq ($(TARGET_OS),linux) 14 | LOCAL_CFLAGS += -DXP_UNIX 15 | #LOCAL_SHARED_LIBRARIES += librt 16 | endif 17 | 18 | LOCAL_MODULE:= cmd 19 | 20 | include $(BUILD_EXECUTABLE) 21 | -------------------------------------------------------------------------------- /cmds/cmd/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/cmds/cmd/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /cmds/dumpstate/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | LOCAL_SRC_FILES := libdumpstate_default.cpp 4 | LOCAL_MODULE := libdumpstate.default 5 | include $(BUILD_STATIC_LIBRARY) 6 | 7 | include $(CLEAR_VARS) 8 | 9 | ifdef BOARD_WLAN_DEVICE 10 | LOCAL_CFLAGS := -DFWDUMP_$(BOARD_WLAN_DEVICE) 11 | endif 12 | 13 | LOCAL_SRC_FILES := dumpstate.cpp utils.cpp 14 | 15 | LOCAL_MODULE := dumpstate 16 | 17 | LOCAL_SHARED_LIBRARIES := libcutils liblog libselinux libbase 18 | # ZipArchive support, the order matters here to get all symbols. 19 | LOCAL_STATIC_LIBRARIES := libziparchive libz libmincrypt 20 | LOCAL_HAL_STATIC_LIBRARIES := libdumpstate 21 | LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter 22 | LOCAL_INIT_RC := dumpstate.rc 23 | 24 | include $(BUILD_EXECUTABLE) 25 | -------------------------------------------------------------------------------- /cmds/dumpstate/libdumpstate_default.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include "dumpstate.h" 18 | 19 | void dumpstate_board(void) 20 | { 21 | } 22 | 23 | -------------------------------------------------------------------------------- /cmds/dumpsys/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | dumpsys.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libbase \ 9 | libutils \ 10 | liblog \ 11 | libbinder 12 | 13 | 14 | ifeq ($(TARGET_OS),linux) 15 | LOCAL_CFLAGS += -DXP_UNIX 16 | #LOCAL_SHARED_LIBRARIES += librt 17 | endif 18 | 19 | LOCAL_MODULE:= dumpsys 20 | 21 | include $(BUILD_EXECUTABLE) 22 | -------------------------------------------------------------------------------- /cmds/dumpsys/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/cmds/dumpsys/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /cmds/flatland/Android.mk: -------------------------------------------------------------------------------- 1 | local_target_dir := $(TARGET_OUT_DATA)/local/tmp 2 | LOCAL_PATH:= $(call my-dir) 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES:= \ 6 | Composers.cpp \ 7 | GLHelper.cpp \ 8 | Renderers.cpp \ 9 | Main.cpp \ 10 | 11 | LOCAL_MODULE:= flatland 12 | 13 | LOCAL_MODULE_TAGS := tests 14 | 15 | LOCAL_MODULE_PATH := $(local_target_dir) 16 | LOCAL_MULTILIB := both 17 | LOCAL_MODULE_STEM_32 := flatland 18 | LOCAL_MODULE_STEM_64 := flatland64 19 | LOCAL_SHARED_LIBRARIES := \ 20 | libEGL \ 21 | libGLESv2 \ 22 | libcutils \ 23 | libgui \ 24 | libui \ 25 | libutils \ 26 | 27 | include $(BUILD_EXECUTABLE) 28 | -------------------------------------------------------------------------------- /cmds/installd/installd.rc: -------------------------------------------------------------------------------- 1 | service installd /system/bin/installd 2 | class main 3 | socket installd stream 600 system system 4 | -------------------------------------------------------------------------------- /cmds/installd/otapreopt.rc: -------------------------------------------------------------------------------- 1 | # When /data is available, look for A/B artifacts for the current slot and move them 2 | # into the dalvik-cache (relabeling them). 3 | on post-fs-data 4 | exec - root -- /system/bin/otapreopt_slot 5 | # The dalvik-cache was not moved itself, so as to restrict the rights of otapreopt_slot. 6 | # But now the relabeling is annoying as there is no force option available here. So 7 | # explicitly list all the ISAs we know. 8 | restorecon_recursive /data/dalvik-cache/arm /data/dalvik-cache/arm64 /data/dalvik-cache/mips /data/dalvik-cache/mips64 /data/dalvik-cache/x86 /data/dalvik-cache/x86_64 9 | -------------------------------------------------------------------------------- /cmds/installd/tests/Android.mk: -------------------------------------------------------------------------------- 1 | # Build the unit tests for installd 2 | LOCAL_PATH := $(call my-dir) 3 | include $(CLEAR_VARS) 4 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 5 | 6 | # Build the unit tests. 7 | test_src_files := \ 8 | installd_utils_test.cpp 9 | 10 | shared_libraries := \ 11 | libbase \ 12 | libutils \ 13 | libcutils \ 14 | 15 | static_libraries := \ 16 | libinstalld \ 17 | libdiskusage \ 18 | 19 | c_includes := \ 20 | frameworks/native/cmds/installd 21 | 22 | $(foreach file,$(test_src_files), \ 23 | $(eval include $(CLEAR_VARS)) \ 24 | $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 25 | $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 26 | $(eval LOCAL_SRC_FILES := $(file)) \ 27 | $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 28 | $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 29 | $(eval LOCAL_CLANG := true) \ 30 | $(eval include $(BUILD_NATIVE_TEST)) \ 31 | ) 32 | -------------------------------------------------------------------------------- /cmds/ip-up-vpn/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | LOCAL_PATH := $(call my-dir) 18 | include $(CLEAR_VARS) 19 | 20 | LOCAL_SRC_FILES := ip-up-vpn.c 21 | LOCAL_SHARED_LIBRARIES := libcutils liblog 22 | LOCAL_MODULE := ip-up-vpn 23 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/ppp 24 | LOCAL_MODULE_TAGS := optional 25 | 26 | include $(BUILD_EXECUTABLE) 27 | -------------------------------------------------------------------------------- /cmds/rawbu/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2009 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES:= backup.cpp 7 | 8 | LOCAL_SHARED_LIBRARIES := libcutils libc 9 | 10 | LOCAL_MODULE:= rawbu 11 | 12 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 13 | LOCAL_MODULE_TAGS := debug 14 | 15 | include $(BUILD_EXECUTABLE) 16 | -------------------------------------------------------------------------------- /cmds/service/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | service.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := libutils libbinder 8 | 9 | ifeq ($(TARGET_OS),linux) 10 | LOCAL_CFLAGS += -DXP_UNIX 11 | #LOCAL_SHARED_LIBRARIES += librt 12 | endif 13 | 14 | LOCAL_MODULE:= service 15 | 16 | include $(BUILD_EXECUTABLE) 17 | -------------------------------------------------------------------------------- /cmds/service/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/cmds/service/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /cmds/servicemanager/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | svc_c_flags = \ 4 | -Wall -Wextra -Werror \ 5 | 6 | ifneq ($(TARGET_USES_64_BIT_BINDER),true) 7 | ifneq ($(TARGET_IS_64_BIT),true) 8 | svc_c_flags += -DBINDER_IPC_32BIT=1 9 | endif 10 | endif 11 | 12 | include $(CLEAR_VARS) 13 | LOCAL_SHARED_LIBRARIES := liblog 14 | LOCAL_SRC_FILES := bctest.c binder.c 15 | LOCAL_CFLAGS += $(svc_c_flags) 16 | LOCAL_MODULE := bctest 17 | LOCAL_MODULE_TAGS := optional 18 | include $(BUILD_EXECUTABLE) 19 | 20 | include $(CLEAR_VARS) 21 | LOCAL_SHARED_LIBRARIES := liblog libcutils libselinux 22 | LOCAL_SRC_FILES := service_manager.c binder.c 23 | LOCAL_CFLAGS += $(svc_c_flags) 24 | LOCAL_MODULE := servicemanager 25 | LOCAL_INIT_RC := servicemanager.rc 26 | include $(BUILD_EXECUTABLE) 27 | -------------------------------------------------------------------------------- /cmds/servicemanager/servicemanager.rc: -------------------------------------------------------------------------------- 1 | service servicemanager /system/bin/servicemanager 2 | class core 3 | user system 4 | group system readproc 5 | critical 6 | onrestart restart healthd 7 | onrestart restart zygote 8 | onrestart restart audioserver 9 | onrestart restart media 10 | onrestart restart surfaceflinger 11 | onrestart restart inputflinger 12 | onrestart restart drm 13 | onrestart restart cameraserver 14 | writepid /dev/cpuset/system-background/tasks 15 | 16 | -------------------------------------------------------------------------------- /data/etc/android.hardware.audio.low_latency.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.audio.output.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.audio.pro.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.bluetooth.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.hardware.bluetooth_le.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.autofocus.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.external.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.front.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.manual_sensor.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.raw.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.camera.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.consumerir.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.ethernet.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.faketouch.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.fingerprint.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.gamepad.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.hdmi.cec.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.location.gps.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.nfc.hce.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.nfc.hcef.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.nfc.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.opengles.aep.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.screen.landscape.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.screen.portrait.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.accelerometer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.ambient_temperature.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.barometer.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.compass.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.gyroscope.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.heartrate.ecg.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.heartrate.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.hifi_sensors.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.light.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.proximity.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.relative_humidity.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.stepcounter.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.sensor.stepdetector.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.telephony.cdma.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.telephony.gsm.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.touchscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /data/etc/android.hardware.type.automotive.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.usb.host.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.vr.high_performance.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.vulkan.level-0.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.vulkan.level-1.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.vulkan.version-1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.hardware.wifi.direct.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.wifi.nan.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.hardware.wifi.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.software.app_widgets.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.backup.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.connectionservice.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.software.device_admin.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.freeform_window_management.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.live_tv.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.managed_users.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.software.midi.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.picture_in_picture.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.print.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.securely_removes_users.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /data/etc/android.software.sip.voip.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /data/etc/android.software.sip.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.software.verified_boot.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /data/etc/android.software.voice_recognizers.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/android.software.vr.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/android.software.webview.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /data/etc/com.android.nfc_extras.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 20 | 21 | -------------------------------------------------------------------------------- /data/etc/com.nxp.mifare.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | HEADERS := $(wildcard ../include/android/*.h) 2 | 3 | all: html website 4 | 5 | html: $(HEADERS) Doxyfile 6 | mkdir -p html 7 | doxygen 8 | 9 | website: $(HEADERS) Doxyfile header.html 10 | mkdir -p website 11 | HTML_HEADER=header.html HTML_FOOTER=footer.html HTML_OUTPUT=website doxygen 12 | rm -f website/index.html 13 | -------------------------------------------------------------------------------- /docs/footer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $title 7 | 8 | 9 | 10 |
11 | -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.colorCorrection.mode/processing_pipeline.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.statistics.lensShadingMap/blue_shading.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.statistics.lensShadingMap/green_e_shading.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.statistics.lensShadingMap/green_o_shading.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.statistics.lensShadingMap/inv_shading.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.statistics.lensShadingMap/red_shading.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.tonemap.curveRed/gamma_tonemap.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.tonemap.curveRed/inverse_tonemap.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.tonemap.curveRed/linear_tonemap.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.tonemap.curveRed/rec709_tonemap.png -------------------------------------------------------------------------------- /docs/images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/docs/images/camera2/metadata/android.tonemap.curveRed/srgb_tonemap.png -------------------------------------------------------------------------------- /include/diskusage/dirsize.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Copyright (C) 2010 The Android Open Source Project 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #ifndef __LIBDISKUSAGE_DIRSIZE_H 19 | #define __LIBDISKUSAGE_DIRSIZE_H 20 | 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | int64_t stat_size(struct stat *s); 26 | int64_t calculate_dir_size(int dfd); 27 | 28 | __END_DECLS 29 | 30 | #endif /* __LIBDISKUSAGE_DIRSIZE_H */ 31 | -------------------------------------------------------------------------------- /include/gui/GuiConfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_GUI_CONFIG_H 18 | #define ANDROID_GUI_CONFIG_H 19 | 20 | #include 21 | 22 | namespace android { 23 | 24 | // Append the libgui configuration details to configStr. 25 | void appendGuiConfigString(String8& configStr); 26 | 27 | }; // namespace android 28 | 29 | #endif /*ANDROID_GUI_CONFIG_H*/ 30 | -------------------------------------------------------------------------------- /include/ui/DisplayStatInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_UI_DISPLAY_STAT_INFO_H 18 | #define ANDROID_UI_DISPLAY_STAT_INFO_H 19 | 20 | #include 21 | 22 | namespace android { 23 | 24 | struct DisplayStatInfo { 25 | nsecs_t vsyncTime; 26 | nsecs_t vsyncPeriod; 27 | }; 28 | 29 | }; // namespace android 30 | 31 | #endif // ANDROID_COMPOSER_DISPLAY_STAT_INFO_H 32 | -------------------------------------------------------------------------------- /include/ui/UiConfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_UI_CONFIG_H 18 | #define ANDROID_UI_CONFIG_H 19 | 20 | #include 21 | 22 | namespace android { 23 | 24 | // Append the libui configuration details to configStr. 25 | void appendUiConfigString(String8& configStr); 26 | 27 | }; // namespace android 28 | 29 | #endif /*ANDROID_UI_CONFIG_H*/ 30 | -------------------------------------------------------------------------------- /libs/diskusage/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_MODULE := libdiskusage 19 | 20 | LOCAL_MODULE_TAGS := optional 21 | 22 | LOCAL_SRC_FILES := dirsize.c 23 | 24 | include $(BUILD_STATIC_LIBRARY) -------------------------------------------------------------------------------- /libs/diskusage/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/libs/diskusage/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /libs/gui/tests/DummyConsumer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | namespace android { 20 | 21 | struct DummyConsumer : public BnConsumerListener { 22 | virtual void onFrameAvailable(const BufferItem& /* item */) {} 23 | virtual void onBuffersReleased() {} 24 | virtual void onSidebandStreamChanged() {} 25 | }; 26 | 27 | } // namespace android 28 | -------------------------------------------------------------------------------- /libs/ui/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/libs/ui/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /opengl/include/GLES/egl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton egl.h to provide compatibility for early GLES 1.0 3 | * applications. Several early implementations included gl.h 4 | * in egl.h leading applications to include only egl.h 5 | * 6 | * $Revision: 6252 $ on $Date:: 2008-08-06 16:35:08 -0700 #$ 7 | */ 8 | 9 | #ifndef __legacy_egl_h_ 10 | #define __legacy_egl_h_ 11 | 12 | #include 13 | #include 14 | 15 | #endif /* __legacy_egl_h_ */ 16 | -------------------------------------------------------------------------------- /opengl/include/GLES/glplatform.h: -------------------------------------------------------------------------------- 1 | #ifndef __glplatform_h_ 2 | #define __glplatform_h_ 3 | 4 | /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 1.X gl.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_API 23 | #define GL_API KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __glplatform_h_ */ 31 | -------------------------------------------------------------------------------- /opengl/include/GLES3/gl3ext.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl3ext_h_ 2 | #define __gl3ext_h_ 3 | 4 | /* $Revision: 17809 $ on $Date:: 2012-05-14 08:03:36 -0700 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* OpenGL ES 3 Extensions 12 | * 13 | * After an OES extension's interactions with OpenGl ES 3.0 have been documented, 14 | * its tokens and function definitions should be added to this file in a manner 15 | * that does not conflict with gl2ext.h or gl3.h. 16 | * 17 | * Tokens and function definitions for extensions that have become standard 18 | * features in OpenGL ES 3.0 will not be added to this file. 19 | * 20 | * Applications using OpenGL-ES-2-only extensions should include gl2ext.h 21 | */ 22 | 23 | #endif /* __gl3ext_h_ */ 24 | 25 | -------------------------------------------------------------------------------- /opengl/include/MODULE_LICENSE_MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/opengl/include/MODULE_LICENSE_MIT -------------------------------------------------------------------------------- /opengl/tests/Android.mk: -------------------------------------------------------------------------------- 1 | dirs := \ 2 | angeles \ 3 | configdump \ 4 | EGLTest \ 5 | fillrate \ 6 | filter \ 7 | finish \ 8 | gl2_basic \ 9 | gl2_copyTexImage \ 10 | gl2_yuvtex \ 11 | gl_basic \ 12 | gl_perf \ 13 | gl_yuvtex \ 14 | gralloc \ 15 | hwc \ 16 | include \ 17 | lib \ 18 | linetex \ 19 | swapinterval \ 20 | textures \ 21 | tritex \ 22 | 23 | ifneq (,$(TARGET_BUILD_JAVA_SUPPORT_LEVEL)) 24 | dirs += \ 25 | gl2_cameraeye \ 26 | gl2_java \ 27 | gl2_jni \ 28 | gldual \ 29 | gl_jni \ 30 | gl_perfapp \ 31 | lighting1709 \ 32 | testLatency \ 33 | testPauseResume \ 34 | testViewport \ 35 | 36 | endif # JAVA_SUPPORT 37 | 38 | ifeq (platform,$(TARGET_BUILD_JAVA_SUPPORT_LEVEL)) 39 | dirs += \ 40 | testFramerate 41 | 42 | endif # JAVA_SUPPORT platform 43 | 44 | include $(call all-named-subdir-makefiles, $(dirs)) 45 | -------------------------------------------------------------------------------- /opengl/tests/angeles/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2006 The Android Open Source Project 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | include $(CLEAR_VARS) 5 | LOCAL_SRC_FILES:= app-linux.cpp demo.c.arm 6 | LOCAL_SHARED_LIBRARIES := libEGL libGLESv1_CM libui libgui libutils 7 | LOCAL_STATIC_LIBRARIES += libglTest 8 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 9 | LOCAL_MODULE:= angeles 10 | LOCAL_MODULE_TAGS := optional 11 | include $(BUILD_EXECUTABLE) 12 | -------------------------------------------------------------------------------- /opengl/tests/angeles/MODULE_LICENSE_BSD_OR_LGPL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/opengl/tests/angeles/MODULE_LICENSE_BSD_OR_LGPL -------------------------------------------------------------------------------- /opengl/tests/angeles/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/opengl/tests/angeles/README.txt -------------------------------------------------------------------------------- /opengl/tests/angeles/include/GLES/egltypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Types and resources 3 | */ 4 | typedef int EGLBoolean; 5 | typedef long EGLint; 6 | typedef void *EGLDisplay; 7 | typedef void *EGLConfig; 8 | typedef void *EGLSurface; 9 | typedef void *EGLContext; 10 | typedef void *NativeDisplayType; 11 | typedef void *NativeWindowType; 12 | typedef void *NativePixmapType; 13 | 14 | /* 15 | ** EGL and native handle values 16 | */ 17 | #define EGL_DEFAULT_DISPLAY ((NativeDisplayType)0) 18 | #define EGL_NO_CONTEXT ((EGLContext)0) 19 | #define EGL_NO_DISPLAY ((EGLDisplay)0) 20 | #define EGL_NO_SURFACE ((EGLSurface)0) 21 | -------------------------------------------------------------------------------- /opengl/tests/angeles/license.txt: -------------------------------------------------------------------------------- 1 | San Angeles Observation OpenGL ES version example 2 | Copyright 2004-2005 Jetro Lauha 3 | All rights reserved. 4 | Web: http://iki.fi/jetro/ 5 | 6 | This source is free software; you can redistribute it and/or 7 | modify it under the terms of EITHER: 8 | (1) The GNU Lesser General Public License as published by the Free 9 | Software Foundation; either version 2.1 of the License, or (at 10 | your option) any later version. The text of the GNU Lesser 11 | General Public License is included with this source in the 12 | file LICENSE-LGPL.txt. 13 | (2) The BSD-style license that is included with this source in 14 | the file LICENSE-BSD.txt. 15 | 16 | This source is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files 19 | LICENSE-LGPL.txt and LICENSE-BSD.txt for more details. 20 | -------------------------------------------------------------------------------- /opengl/tests/configdump/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | configdump.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM 11 | 12 | LOCAL_MODULE:= test-opengl-configdump 13 | 14 | LOCAL_MODULE_TAGS := optional 15 | 16 | include $(BUILD_EXECUTABLE) 17 | -------------------------------------------------------------------------------- /opengl/tests/fillrate/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | fillrate.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libutils \ 10 | libEGL \ 11 | libGLESv1_CM \ 12 | libui \ 13 | libgui 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-fillrate 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | include $(BUILD_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /opengl/tests/filter/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | filter.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-filter 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/finish/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | finish.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libutils \ 10 | libEGL \ 11 | libGLESv1_CM \ 12 | libui \ 13 | libgui 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-finish 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/gl2_basic/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl2_basic.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv2 \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-gl2_basic 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/gl2_cameraeye/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_MODULE_TAGS := optional 5 | 6 | # Only compile source java files in this apk. 7 | LOCAL_SRC_FILES := $(call all-java-files-under, src) 8 | 9 | LOCAL_PACKAGE_NAME := GL2CameraEye 10 | 11 | LOCAL_SDK_VERSION := current 12 | 13 | include $(BUILD_PACKAGE) 14 | 15 | # Use the following include to make our test apk. 16 | include $(call all-makefiles-under,$(LOCAL_PATH)) 17 | -------------------------------------------------------------------------------- /opengl/tests/gl2_cameraeye/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | GL2CameraEye 20 | 21 | 22 | -------------------------------------------------------------------------------- /opengl/tests/gl2_copyTexImage/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl2_copyTexImage.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv2 \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-gl2_copyTexImage 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/gl2_java/Android.mk: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | # OpenGL ES 2.0 Java sample 3 | ######################################################################### 4 | 5 | TOP_LOCAL_PATH:= $(call my-dir) 6 | 7 | # Build activity 8 | 9 | LOCAL_PATH:= $(call my-dir) 10 | include $(CLEAR_VARS) 11 | 12 | LOCAL_MODULE_TAGS := optional 13 | 14 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 15 | 16 | LOCAL_PACKAGE_NAME := GL2Java 17 | 18 | include $(BUILD_PACKAGE) 19 | -------------------------------------------------------------------------------- /opengl/tests/gl2_java/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | GL2Java 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /opengl/tests/gl2_jni/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | GL2JNI 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /opengl/tests/gl2_yuvtex/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl2_yuvtex.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv2 \ 11 | libutils \ 12 | libui \ 13 | libgui \ 14 | libutils 15 | 16 | LOCAL_STATIC_LIBRARIES += libglTest 17 | 18 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 19 | 20 | LOCAL_MODULE:= test-opengl-gl2_yuvtex 21 | 22 | LOCAL_MODULE_TAGS := optional 23 | 24 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES 25 | 26 | include $(BUILD_EXECUTABLE) 27 | -------------------------------------------------------------------------------- /opengl/tests/gl_basic/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl_basic.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-gl_basic 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | include $(BUILD_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /opengl/tests/gl_jni/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | GLJNI 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /opengl/tests/gl_perf/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl2_perf.cpp \ 6 | filltest.cpp 7 | 8 | LOCAL_SHARED_LIBRARIES := \ 9 | libcutils \ 10 | liblog \ 11 | libEGL \ 12 | libGLESv2 \ 13 | libui \ 14 | libgui \ 15 | libutils 16 | 17 | LOCAL_STATIC_LIBRARIES += libglTest 18 | 19 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 20 | 21 | LOCAL_MODULE:= test-opengl-gl2_perf 22 | 23 | LOCAL_MODULE_TAGS := optional 24 | 25 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 26 | 27 | include $(BUILD_EXECUTABLE) 28 | -------------------------------------------------------------------------------- /opengl/tests/gl_perfapp/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | GLPerf 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /opengl/tests/gl_yuvtex/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gl_yuvtex.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libutils \ 12 | libui \ 13 | libgui 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-gl_yuvtex 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/gldual/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | 22 | GLDual 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /opengl/tests/gralloc/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | gralloc.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libutils \ 10 | libui 11 | 12 | LOCAL_MODULE:= test-opengl-gralloc 13 | 14 | LOCAL_MODULE_TAGS := optional 15 | 16 | include $(BUILD_EXECUTABLE) 17 | -------------------------------------------------------------------------------- /opengl/tests/lighting1709/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_MODULE_TAGS := tests 5 | 6 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 7 | 8 | LOCAL_PACKAGE_NAME := LightingTest 9 | LOCAL_CERTIFICATE := platform 10 | 11 | include $(BUILD_PACKAGE) 12 | -------------------------------------------------------------------------------- /opengl/tests/lighting1709/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /opengl/tests/linetex/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | linetex.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-linetex 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | include $(BUILD_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /opengl/tests/swapinterval/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | swapinterval.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libutils \ 10 | libEGL \ 11 | libGLESv1_CM \ 12 | libui \ 13 | libgui 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-swapinterval 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | include $(BUILD_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /opengl/tests/testFramerate/Android.mk: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | # Test framerate and look for hiccups 3 | ######################################################################### 4 | 5 | TOP_LOCAL_PATH:= $(call my-dir) 6 | 7 | # Build activity 8 | 9 | 10 | LOCAL_PATH:= $(call my-dir) 11 | include $(CLEAR_VARS) 12 | 13 | LOCAL_MODULE_TAGS := optional 14 | 15 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 16 | 17 | LOCAL_PACKAGE_NAME := TestFramerate 18 | 19 | include $(BUILD_PACKAGE) 20 | -------------------------------------------------------------------------------- /opengl/tests/testLatency/Android.mk: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | # Test end-to-end latency. 3 | ######################################################################### 4 | 5 | TOP_LOCAL_PATH:= $(call my-dir) 6 | 7 | # Build activity 8 | 9 | 10 | LOCAL_PATH:= $(call my-dir) 11 | include $(CLEAR_VARS) 12 | 13 | LOCAL_SDK_VERSION := 8 14 | LOCAL_MODULE_TAGS := optional 15 | 16 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 17 | 18 | LOCAL_PACKAGE_NAME := TestLatency 19 | 20 | include $(BUILD_PACKAGE) 21 | -------------------------------------------------------------------------------- /opengl/tests/testPauseResume/Android.mk: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | # OpenGL ES JNI sample 3 | # This makefile builds both an activity and a shared library. 4 | ######################################################################### 5 | TOP_LOCAL_PATH:= $(call my-dir) 6 | 7 | # Build activity 8 | 9 | LOCAL_PATH:= $(call my-dir) 10 | include $(CLEAR_VARS) 11 | 12 | LOCAL_MODULE_TAGS := optional 13 | 14 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 15 | 16 | LOCAL_PACKAGE_NAME := TestEGL 17 | 18 | include $(BUILD_PACKAGE) 19 | -------------------------------------------------------------------------------- /opengl/tests/testViewport/Android.mk: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | # OpenGL ES JNI sample 3 | # This makefile builds both an activity and a shared library. 4 | ######################################################################### 5 | TOP_LOCAL_PATH:= $(call my-dir) 6 | 7 | # Build activity 8 | 9 | LOCAL_PATH:= $(call my-dir) 10 | include $(CLEAR_VARS) 11 | 12 | LOCAL_MODULE_TAGS := optional 13 | 14 | LOCAL_SRC_FILES := $(call all-subdir-java-files) 15 | 16 | LOCAL_PACKAGE_NAME := TestViewport 17 | 18 | # Set a specific SDK version so we can run on Froyo. 19 | 20 | LOCAL_SDK_VERSION := 8 21 | 22 | include $(BUILD_PACKAGE) 23 | -------------------------------------------------------------------------------- /opengl/tests/testViewport/README: -------------------------------------------------------------------------------- 1 | Repro steps: 2 | 3 | build, install and run the attached test program TestViewport.apk 4 | 5 | Run on Sapphire with Froyo. 6 | 7 | The program clears the screen to blue, then draws a full screen white quad that 8 | is alligned to the screen. 9 | (Therefore the whole screen should appear to be white.) 10 | 11 | 12 | Note that screen is all white. 13 | 14 | Rotate screen 90 degrees. 15 | 16 | Expected: screen is still all white. 17 | 18 | Actual: screen is blue with offset white rectangle. 19 | 20 | This bug only happens on Sapphire, it works correctly on Passion. 21 | 22 | What happens: 23 | 24 | I think the bug is that the gl.glViewport() call in onSurfaceChanged() is 25 | being ignored by the OpenGL driver. 26 | 27 | NOTE: If a gl.glViewport call is added at the beginning of the onDrawFrame() 28 | call (which means it is called before every draw), the program runs correctly. 29 | -------------------------------------------------------------------------------- /opengl/tests/textures/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | textures.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-textures 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | LOCAL_CFLAGS := -DGL_GLEXT_PROTOTYPES 24 | 25 | include $(BUILD_EXECUTABLE) 26 | -------------------------------------------------------------------------------- /opengl/tests/tritex/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | tritex.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libEGL \ 10 | libGLESv1_CM \ 11 | libui \ 12 | libgui \ 13 | libutils 14 | 15 | LOCAL_STATIC_LIBRARIES += libglTest 16 | 17 | LOCAL_C_INCLUDES += $(call include-path-for, opengl-tests-includes) 18 | 19 | LOCAL_MODULE:= test-opengl-tritex 20 | 21 | LOCAL_MODULE_TAGS := optional 22 | 23 | include $(BUILD_EXECUTABLE) 24 | -------------------------------------------------------------------------------- /opengl/tools/glgen/.gitignore: -------------------------------------------------------------------------------- 1 | generated 2 | out 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/specs/egl/EGLExt.spec: -------------------------------------------------------------------------------- 1 | EGLBoolean eglPresentationTimeANDROID ( EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time ) 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/specs/egl/checks.spec: -------------------------------------------------------------------------------- 1 | eglInitialize nullAllowed major nullAllowed minor check major 1 check minor 1 2 | eglGetConfigs nullAllowed configs check configs config_size 3 | eglChooseConfig nullAllowed configs check configs config_size check num_config 1 sentinel attrib_list EGL_NONE 4 | eglGetConfigAttrib check value 1 5 | //STUB function: //eglCreateWindowSurface nullAllowed attrib_list sentinel attrib_list EGL_NONE 6 | eglCreatePbufferSurface nullAllowed attrib_list sentinel attrib_list EGL_NONE 7 | //unsupported: eglCreatePixmapSurface nullAllowed attrib_list sentinel attrib_list EGL_NONE 8 | eglCreatePixmapSurface unsupported 9 | eglCopyBuffers unsupported 10 | eglQuerySurface check value 1 11 | //STUB function: eglCreatePbufferFromClientBuffer nullAllowed attrib_list sentinel attrib_list EGL_NONE 12 | eglCreateContext sentinel attrib_list EGL_NONE 13 | eglQueryContext check value 1 14 | -------------------------------------------------------------------------------- /opengl/tools/glgen/specs/gles11/GLES10Ext.spec: -------------------------------------------------------------------------------- 1 | GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent ) 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/specs/jsr239/glspec-1.0ext: -------------------------------------------------------------------------------- 1 | GLbitfield glQueryMatrixxOES ( GLfixed *mantissa, GLint *exponent ) 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/src/.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/src/CodeEmitter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | public interface CodeEmitter { 18 | 19 | void setVersion(int version, boolean ext, boolean pack); 20 | void emitCode(CFunc cfunc, String original); 21 | void addNativeRegistration(String fname); 22 | void emitNativeRegistration(); 23 | } 24 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.java: -------------------------------------------------------------------------------- 1 | // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list ) 2 | // TODO Deprecate the below method 3 | public static native EGLSurface eglCreatePbufferFromClientBuffer( 4 | EGLDisplay dpy, 5 | int buftype, 6 | int buffer, 7 | EGLConfig config, 8 | int[] attrib_list, 9 | int offset 10 | ); 11 | // TODO Unhide the below method 12 | /** 13 | * {@hide} 14 | */ 15 | public static native EGLSurface eglCreatePbufferFromClientBuffer( 16 | EGLDisplay dpy, 17 | int buftype, 18 | long buffer, 19 | EGLConfig config, 20 | int[] attrib_list, 21 | int offset 22 | ); 23 | 24 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.nativeReg: -------------------------------------------------------------------------------- 1 | {"eglCreatePbufferFromClientBuffer", "(Landroid/opengl/EGLDisplay;IILandroid/opengl/EGLConfig;[II)Landroid/opengl/EGLSurface;", (void *) android_eglCreatePbufferFromClientBufferInt }, 2 | {"eglCreatePbufferFromClientBuffer", "(Landroid/opengl/EGLDisplay;IJLandroid/opengl/EGLConfig;[II)Landroid/opengl/EGLSurface;", (void *) android_eglCreatePbufferFromClientBuffer }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglCreateWindowSurface.nativeReg: -------------------------------------------------------------------------------- 1 | {"_eglCreateWindowSurface", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/lang/Object;[II)Landroid/opengl/EGLSurface;", (void *) android_eglCreateWindowSurface }, 2 | {"_eglCreateWindowSurfaceTexture", "(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Ljava/lang/Object;[II)Landroid/opengl/EGLSurface;", (void *) android_eglCreateWindowSurfaceTexture }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglGetDisplay.cpp: -------------------------------------------------------------------------------- 1 | /* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */ 2 | static jobject 3 | android_eglGetDisplay 4 | (JNIEnv *_env, jobject _this, jlong display_id) { 5 | EGLDisplay _returnValue = (EGLDisplay) 0; 6 | _returnValue = eglGetDisplay( 7 | reinterpret_cast(display_id) 8 | ); 9 | return toEGLHandle(_env, egldisplayClass, egldisplayConstructor, _returnValue); 10 | } 11 | 12 | /* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */ 13 | static jobject 14 | android_eglGetDisplayInt 15 | (JNIEnv *_env, jobject _this, jint display_id) { 16 | 17 | if (static_cast(display_id) != 18 | reinterpret_cast(EGL_DEFAULT_DISPLAY)) { 19 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "eglGetDisplay"); 20 | return 0; 21 | } 22 | return android_eglGetDisplay(_env, _this, display_id); 23 | } 24 | 25 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglGetDisplay.java: -------------------------------------------------------------------------------- 1 | // C function EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) 2 | 3 | public static native EGLDisplay eglGetDisplay( 4 | int display_id 5 | ); 6 | 7 | /** 8 | * {@hide} 9 | */ 10 | public static native EGLDisplay eglGetDisplay( 11 | long display_id 12 | ); 13 | 14 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglGetDisplay.nativeReg: -------------------------------------------------------------------------------- 1 | {"eglGetDisplay", "(I)Landroid/opengl/EGLDisplay;", (void *) android_eglGetDisplayInt }, 2 | {"eglGetDisplay", "(J)Landroid/opengl/EGLDisplay;", (void *) android_eglGetDisplay }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglQueryString.cpp: -------------------------------------------------------------------------------- 1 | /* const char * eglQueryString ( EGLDisplay dpy, EGLint name ) */ 2 | static jstring 3 | android_eglQueryString__Landroind_opengl_EGLDisplay_2I 4 | (JNIEnv *_env, jobject _this, jobject dpy, jint name) { 5 | const char* chars = (const char*) eglQueryString( 6 | (EGLDisplay)fromEGLHandle(_env, egldisplayGetHandleID, dpy), 7 | (EGLint)name 8 | ); 9 | return _env->NewStringUTF(chars); 10 | } 11 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglQueryString.java: -------------------------------------------------------------------------------- 1 | // C function const char * eglQueryString ( EGLDisplay dpy, EGLint name ) 2 | 3 | public static native String eglQueryString( 4 | EGLDisplay dpy, 5 | int name 6 | ); 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/egl/eglQueryString.nativeReg: -------------------------------------------------------------------------------- 1 | {"eglQueryString", "(Landroid/opengl/EGLDisplay;I)Ljava/lang/String;", (void *) android_eglQueryString__Landroind_opengl_EGLDisplay_2I }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES10ExtHeader.java-if: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | package android.opengl; 21 | 22 | public class GLES10Ext { 23 | native private static void _nativeClassInit(); 24 | static { 25 | _nativeClassInit(); 26 | } 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES10ExtcHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES10cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES11ExtcHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES11cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES20cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2009, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES30cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** 3 | ** Copyright 2013, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | // This source file is automatically generated 19 | 20 | #pragma GCC diagnostic ignored "-Wunused-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 22 | #pragma GCC diagnostic ignored "-Wunused-function" 23 | 24 | #include 25 | #include 26 | 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES31ExtcHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // This source file is automatically generated 18 | 19 | #pragma GCC diagnostic ignored "-Wunused-variable" 20 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-function" 22 | 23 | #include 24 | #include 25 | 26 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES31cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // This source file is automatically generated 18 | 19 | #pragma GCC diagnostic ignored "-Wunused-variable" 20 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-function" 22 | 23 | #include 24 | #include 25 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/GLES32cHeader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | // This source file is automatically generated 18 | 19 | #pragma GCC diagnostic ignored "-Wunused-variable" 20 | #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 21 | #pragma GCC diagnostic ignored "-Wunused-function" 22 | 23 | #include 24 | #include -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp: -------------------------------------------------------------------------------- 1 | /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */ 2 | static void 3 | android_glBindVertexBuffer__IIJI 4 | (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) { 5 | if (sizeof(GLintptr) != sizeof(jlong) && (offset < LONG_MIN || offset > LONG_MAX)) { 6 | jniThrowException(_env, "java/lang/IllegalArgumentException", "offset too large"); 7 | return; 8 | } 9 | glBindVertexBuffer( 10 | (GLuint)bindingindex, 11 | (GLuint)buffer, 12 | (GLintptr)offset, 13 | (GLsizei)stride 14 | ); 15 | } 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.java: -------------------------------------------------------------------------------- 1 | // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) 2 | 3 | public static native void glBindVertexBuffer( 4 | int bindingindex, 5 | int buffer, 6 | long offset, 7 | int stride 8 | ); 9 | 10 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.nativeReg: -------------------------------------------------------------------------------- 1 | {"glBindVertexBuffer", "(IIJI)V", (void *) android_glBindVertexBuffer__IIJI }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glCreateShaderProgramv.java: -------------------------------------------------------------------------------- 1 | // C function GLuint glCreateShaderProgramv ( GLenum type, GLsizei count, const GLchar *const *strings ) 2 | 3 | public static native int glCreateShaderProgramv( 4 | int type, 5 | String[] strings 6 | ); 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glCreateShaderProgramv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glCreateShaderProgramv", "(I[Ljava/lang/String;)I", (void *) android_glCreateShaderProgramv }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallback.cpp: -------------------------------------------------------------------------------- 1 | /* void glDebugMessageCallback ( GLDEBUGPROC callback, const void *userParam ) */ 2 | static void 3 | android_glDebugMessageCallback(JNIEnv *_env, jobject _this, jobject callback) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | } 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallback.java: -------------------------------------------------------------------------------- 1 | // C function void glDebugMessageCallback ( GLDEBUGPROC callback, const void *userParam ) 2 | 3 | public interface DebugProc { 4 | void onMessage(int source, int type, int id, int severity, String message); 5 | } 6 | 7 | public static native void glDebugMessageCallback(DebugProc callback); 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallback.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDebugMessageCallback", "(Landroid/opengl/GLES32$DebugProc;)V", (void *) android_glDebugMessageCallback }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallbackKHR.cpp: -------------------------------------------------------------------------------- 1 | /* void glDebugMessageCallbackKHR ( GLDEBUGPROCKHR callback, const void *userParam ) */ 2 | static void 3 | android_glDebugMessageCallbackKHR(JNIEnv *_env, jobject _this, jobject callback) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | } 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallbackKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glDebugMessageCallbackKHR ( GLDEBUGPROCKHR callback, const void *userParam ) 2 | 3 | public interface DebugProcKHR { 4 | void onMessage(int source, int type, int id, int severity, String message); 5 | } 6 | 7 | public static native void glDebugMessageCallbackKHR(DebugProcKHR callback); 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageCallbackKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDebugMessageCallbackKHR", "(Landroid/opengl/GLES31Ext$DebugProcKHR;)V", (void *) android_glDebugMessageCallbackKHR }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageInsertKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 2 | 3 | public static native void glDebugMessageInsertKHR( 4 | int source, 5 | int type, 6 | int id, 7 | int severity, 8 | String buf 9 | ); 10 | 11 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDebugMessageInsertKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDebugMessageInsertKHR", "(IIIILjava/lang/String;)V", (void *) android_glDebugMessageInsertKHR__IIIILjava_lang_String_2 }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDispatchComputeIndirect.cpp: -------------------------------------------------------------------------------- 1 | /* void glDispatchComputeIndirect ( GLintptr indirect ) */ 2 | static void android_glDispatchComputeIndirect(JNIEnv *_env, jobject, jlong indirect) { 3 | // 'indirect' is a byte offset, not a pointer. GL checks for negative and too-large values. 4 | // Here we only need to check for successful 64-bit to 32-bit conversion. 5 | // - jlong is a int64_t (jni.h) 6 | // - GLintptr is a long (khrplatform.h) 7 | if (sizeof(GLintptr) != sizeof(jlong) && (indirect < LONG_MIN || indirect > LONG_MAX)) { 8 | jniThrowException(_env, "java/lang/IllegalArgumentException", "indirect offset too large"); 9 | return; 10 | } 11 | glDispatchComputeIndirect((GLintptr)indirect); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDispatchComputeIndirect.java: -------------------------------------------------------------------------------- 1 | // C function void glDispatchComputeIndirect ( GLintptr indirect ); 2 | 3 | public static native void glDispatchComputeIndirect(long indirect); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDispatchComputeIndirect.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDispatchComputeIndirect", "(J)V", (void *) android_glDispatchComputeIndirect }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawArraysIndirect.cpp: -------------------------------------------------------------------------------- 1 | /* void glDrawArraysIndirect ( GLenum mode, const void *indirect ) */ 2 | static void android_glDrawArraysIndirect(JNIEnv *_env, jobject, int mode, jlong indirect) { 3 | // In OpenGL ES, 'indirect' is a byte offset into a buffer, not a raw pointer. 4 | // GL checks for too-large values. Here we only need to check for successful signed 64-bit 5 | // to unsigned 32-bit conversion. 6 | if (sizeof(void*) != sizeof(jlong) && indirect > static_cast(UINT32_MAX)) { 7 | jniThrowException(_env, "java/lang/IllegalArgumentException", "indirect offset too large"); 8 | return; 9 | } 10 | glDrawArraysIndirect(mode, (const void*)indirect); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawArraysIndirect.java: -------------------------------------------------------------------------------- 1 | // C function void glDrawArraysIndirect ( GLenum mode, const void *indirect ); 2 | 3 | public static native void glDrawArraysIndirect(int mode, long indirect); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawArraysIndirect.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDrawArraysIndirect", "(IJ)V", (void *) android_glDrawArraysIndirect }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsIndirect.cpp: -------------------------------------------------------------------------------- 1 | /* void glDrawElementsIndirect ( GLenum mode, GLenum type, const void *indirect ) */ 2 | static void android_glDrawElementsIndirect(JNIEnv *_env, jobject, jint mode, jint type, jlong indirect) { 3 | // In OpenGL ES, 'indirect' is a byte offset into a buffer, not a raw pointer. 4 | // GL checks for too-large values. Here we only need to check for successful signed 64-bit 5 | // to unsigned 32-bit conversion. 6 | if (sizeof(void*) != sizeof(jlong) && indirect > static_cast(UINT32_MAX)) { 7 | jniThrowException(_env, "java/lang/IllegalArgumentException", "indirect offset too large"); 8 | return; 9 | } 10 | glDrawElementsIndirect(mode, type, (const void*)indirect); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsIndirect.java: -------------------------------------------------------------------------------- 1 | // C function glDrawElementsIndirect ( GLenum mode, GLenum type, const void *indirect ); 2 | 3 | public static native void glDrawElementsIndirect(int mode, int type, long indirect); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsIndirect.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDrawElementsIndirect", "(IIJ)V", (void *) android_glDrawElementsIndirect }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsInstanced.java: -------------------------------------------------------------------------------- 1 | // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) 2 | 3 | public static native void glDrawElementsInstanced( 4 | int mode, 5 | int count, 6 | int type, 7 | java.nio.Buffer indices, 8 | int instanceCount 9 | ); 10 | 11 | // C function void glDrawElementsInstanced ( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instanceCount ) 12 | 13 | public static native void glDrawElementsInstanced( 14 | int mode, 15 | int count, 16 | int type, 17 | int indicesOffset, 18 | int instanceCount 19 | ); 20 | 21 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsInstanced.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDrawElementsInstanced", "(IIILjava/nio/Buffer;I)V", (void *) android_glDrawElementsInstanced__IIILjava_nio_Buffer_2I }, 2 | {"glDrawElementsInstanced", "(IIIII)V", (void *) android_glDrawElementsInstanced__IIIII }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsInstancedBaseVertex.java: -------------------------------------------------------------------------------- 1 | // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex ) 2 | 3 | public static native void glDrawElementsInstancedBaseVertex( 4 | int mode, 5 | int count, 6 | int type, 7 | java.nio.Buffer indices, 8 | int instanceCount, 9 | int basevertex 10 | ); 11 | 12 | // C function void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex ) 13 | 14 | public static native void glDrawElementsInstancedBaseVertex( 15 | int mode, 16 | int count, 17 | int type, 18 | int indicesOffset, 19 | int instanceCount, 20 | int basevertex 21 | ); 22 | 23 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glDrawElementsInstancedBaseVertex.nativeReg: -------------------------------------------------------------------------------- 1 | {"glDrawElementsInstancedBaseVertex", "(IIILjava/nio/Buffer;II)V", (void *) android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II }, 2 | {"glDrawElementsInstancedBaseVertex", "(IIIIII)V", (void *) android_glDrawElementsInstancedBaseVertex__IIIIII }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetActiveAttrib.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetActiveAttrib", "(III[II[II[II[BI)V", (void *) android_glGetActiveAttrib__III_3II_3II_3II_3BI }, 2 | {"glGetActiveAttrib", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", (void *) android_glGetActiveAttrib__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B }, 3 | {"glGetActiveAttrib", "(II[II[II)Ljava/lang/String;", (void *) android_glGetActiveAttrib1 }, 4 | {"glGetActiveAttrib", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", (void *) android_glGetActiveAttrib2 }, 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetActiveUniform.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetActiveUniform", "(III[II[II[II[BI)V", (void *) android_glGetActiveUniform__III_3II_3II_3II_3BI }, 2 | {"glGetActiveUniform", "(II[II[II)Ljava/lang/String;", (void *) android_glGetActiveUniform1 }, 3 | {"glGetActiveUniform", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", (void *) android_glGetActiveUniform__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B }, 4 | {"glGetActiveUniform", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", (void *) android_glGetActiveUniform2 }, 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetActiveUniformBlockName.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetActiveUniformBlockName", "(III[II[BI)V", (void *) android_glGetActiveUniformBlockName_III_3II_3BI }, 2 | {"glGetActiveUniformBlockName", "(IILjava/nio/Buffer;Ljava/nio/Buffer;)V", (void *) android_glGetActiveUniformBlockName_IILjava_nio_Buffer_2Ljava_nio_Buffer_2 }, 3 | {"glGetActiveUniformBlockName", "(II)Ljava/lang/String;", (void *) android_glGetActiveUniformBlockName_II }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBooleanv.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetBooleanv ( GLenum pname, GLboolean *params ) */ 2 | static void 3 | android_glGetBooleanv__I_3ZI 4 | (JNIEnv *_env, jobject _this, jint pname, jbooleanArray params_ref, jint offset) { 5 | get( 6 | _env, _this, pname, params_ref, offset); 7 | } 8 | 9 | /* void glGetBooleanv ( GLenum pname, GLboolean *params ) */ 10 | static void 11 | android_glGetBooleanv__ILjava_nio_IntBuffer_2 12 | (JNIEnv *_env, jobject _this, jint pname, jobject params_buf) { 13 | getarray( 14 | _env, _this, pname, params_buf); 15 | } 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBooleanv.java: -------------------------------------------------------------------------------- 1 | // C function void glGetBooleanv ( GLenum pname, GLboolean *params ) 2 | 3 | public static native void glGetBooleanv( 4 | int pname, 5 | boolean[] params, 6 | int offset 7 | ); 8 | 9 | // C function void glGetBooleanv ( GLenum pname, GLboolean *params ) 10 | 11 | public static native void glGetBooleanv( 12 | int pname, 13 | java.nio.IntBuffer params 14 | ); 15 | 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBooleanv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetBooleanv", "(I[ZI)V", (void *) android_glGetBooleanv__I_3ZI }, 2 | {"glGetBooleanv", "(ILjava/nio/IntBuffer;)V", (void *) android_glGetBooleanv__ILjava_nio_IntBuffer_2 }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBufferPointerv.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetBufferPointerv ( GLenum target, GLenum pname, GLvoid** params ) */ 2 | static jobject 3 | android_glGetBufferPointerv__II 4 | (JNIEnv *_env, jobject _this, jint target, jint pname) { 5 | GLint64 _mapLength; 6 | GLvoid* _p; 7 | glGetBufferParameteri64v((GLenum)target, GL_BUFFER_MAP_LENGTH, &_mapLength); 8 | glGetBufferPointerv((GLenum)target, (GLenum)pname, &_p); 9 | return _env->NewDirectByteBuffer(_p, _mapLength); 10 | } 11 | 12 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBufferPointerv.java: -------------------------------------------------------------------------------- 1 | // C function void glGetBufferPointerv ( GLenum target, GLenum pname, GLvoid** params ) 2 | 3 | public static native java.nio.Buffer glGetBufferPointerv( 4 | int target, 5 | int pname 6 | ); 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetBufferPointerv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetBufferPointerv", "(II)Ljava/nio/Buffer;", (void *) android_glGetBufferPointerv__II }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetDebugMessageLog.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetDebugMessageLog", "(II[II[II[II[II[II[BI)I", (void *) android_glGetDebugMessageLog__II_3II_3II_3II_3II_3II_3BI }, 2 | {"glGetDebugMessageLog", "(ILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)I", (void *) android_glGetDebugMessageLog__ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2 }, 3 | {"glGetDebugMessageLog", "(I[II[II[II[II)[Ljava/lang/String;", (void *) android_glGetDebugMessageLog__I_3II_3II_3II_3II }, 4 | {"glGetDebugMessageLog", "(ILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)[Ljava/lang/String;", (void *) android_glGetDebugMessageLog__ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2 }, 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetDebugMessageLogKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetDebugMessageLogKHR", "(II[II[II[II[II[II[BI)I", (void *) android_glGetDebugMessageLogKHR__II_3II_3II_3II_3II_3II_3BI }, 2 | {"glGetDebugMessageLogKHR", "(ILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)I", (void *) android_glGetDebugMessageLogKHR__ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2 }, 3 | {"glGetDebugMessageLogKHR", "(I[II[II[II[II)[Ljava/lang/String;", (void *) android_glGetDebugMessageLogKHR__I_3II_3II_3II_3II }, 4 | {"glGetDebugMessageLogKHR", "(ILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)[Ljava/lang/String;", (void *) android_glGetDebugMessageLogKHR__ILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2 }, 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetFloatv.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetFloatv ( GLenum pname, GLfloat *params ) */ 2 | static void 3 | android_glGetFloatv__I_3FI 4 | (JNIEnv *_env, jobject _this, jint pname, jfloatArray params_ref, jint offset) { 5 | get( 6 | _env, _this, pname, params_ref, offset); 7 | } 8 | 9 | /* void glGetFloatv ( GLenum pname, GLfloat *params ) */ 10 | static void 11 | android_glGetFloatv__ILjava_nio_FloatBuffer_2 12 | (JNIEnv *_env, jobject _this, jint pname, jobject params_buf) { 13 | getarray( 14 | _env, _this, pname, params_buf); 15 | } 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetFloatv.java: -------------------------------------------------------------------------------- 1 | // C function void glGetFloatv ( GLenum pname, GLfloat *params ) 2 | 3 | public static native void glGetFloatv( 4 | int pname, 5 | float[] params, 6 | int offset 7 | ); 8 | 9 | // C function void glGetFloatv ( GLenum pname, GLfloat *params ) 10 | 11 | public static native void glGetFloatv( 12 | int pname, 13 | java.nio.FloatBuffer params 14 | ); 15 | 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetFloatv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetFloatv", "(I[FI)V", (void *) android_glGetFloatv__I_3FI }, 2 | {"glGetFloatv", "(ILjava/nio/FloatBuffer;)V", (void *) android_glGetFloatv__ILjava_nio_FloatBuffer_2 }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetIntegerv.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetIntegerv ( GLenum pname, GLint *params ) */ 2 | static void 3 | android_glGetIntegerv__I_3II 4 | (JNIEnv *_env, jobject _this, jint pname, jintArray params_ref, jint offset) { 5 | get( 6 | _env, _this, pname, params_ref, offset); 7 | } 8 | 9 | /* void glGetIntegerv ( GLenum pname, GLint *params ) */ 10 | static void 11 | android_glGetIntegerv__ILjava_nio_IntBuffer_2 12 | (JNIEnv *_env, jobject _this, jint pname, jobject params_buf) { 13 | getarray( 14 | _env, _this, pname, params_buf); 15 | } 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetIntegerv.java: -------------------------------------------------------------------------------- 1 | // C function void glGetIntegerv ( GLenum pname, GLint *params ) 2 | 3 | public static native void glGetIntegerv( 4 | int pname, 5 | int[] params, 6 | int offset 7 | ); 8 | 9 | // C function void glGetIntegerv ( GLenum pname, GLint *params ) 10 | 11 | public static native void glGetIntegerv( 12 | int pname, 13 | java.nio.IntBuffer params 14 | ); 15 | 16 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetIntegerv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetIntegerv", "(I[II)V", (void *) android_glGetIntegerv__I_3II }, 2 | {"glGetIntegerv", "(ILjava/nio/IntBuffer;)V", (void *) android_glGetIntegerv__ILjava_nio_IntBuffer_2 }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabel.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetObjectLabel ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) */ 2 | static jstring 3 | android_glGetObjectLabel(JNIEnv *_env, jobject _this, jint identifier, jint name) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabel.java: -------------------------------------------------------------------------------- 1 | // C function void glGetObjectLabel ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) 2 | 3 | public static native String glGetObjectLabel(int identifier, int name); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabel.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetObjectLabel", "(II)Ljava/lang/String;", (void *) android_glGetObjectLabel }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabelKHR.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetObjectLabelKHR ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) */ 2 | static jstring 3 | android_glGetObjectLabelKHR(JNIEnv *_env, jobject _this, jint identifier, jint name) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabelKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glGetObjectLabelKHR ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label ) 2 | 3 | public static native String glGetObjectLabelKHR(int identifier, int name); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectLabelKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetObjectLabelKHR", "(II)Ljava/lang/String;", (void *) android_glGetObjectLabelKHR }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabel.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetObjectPtrLabel ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) */ 2 | static jstring 3 | android_glGetObjectPtrLabel(JNIEnv *_env, jobject _this, jlong ptr) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabel.java: -------------------------------------------------------------------------------- 1 | // C function void glGetObjectPtrLabel ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) 2 | 3 | public static native String glGetObjectPtrLabel(long ptr); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabel.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetObjectPtrLabel", "(J)Ljava/lang/String;", (void *) android_glGetObjectPtrLabel }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetObjectPtrLabelKHR ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) */ 2 | static jstring 3 | android_glGetObjectPtrLabelKHR(JNIEnv *_env, jobject _this, jlong ptr) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glGetObjectPtrLabelKHR ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label ) 2 | 3 | public static native String glGetObjectPtrLabelKHR(long ptr); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetObjectPtrLabelKHR", "(J)Ljava/lang/String;", (void *) android_glGetObjectPtrLabelKHR }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointerv.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetPointerv ( GLenum pname, void **params ) */ 2 | static jlong 3 | android_glGetPointerv(JNIEnv *_env, jobject _this, jint pname) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointerv.java: -------------------------------------------------------------------------------- 1 | // C function void glGetPointerv ( GLenum pname, void **params ) 2 | 3 | public static native long glGetPointerv( 4 | int pname 5 | ); 6 | 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointerv.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetPointerv", "(I)J", (void *) android_glGetPointerv }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointervKHR.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetPointervKHR ( GLenum pname, void **params ) */ 2 | static jobject 3 | android_glGetDebugMessageCallbackKHR(JNIEnv *_env, jobject _this) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | return NULL; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointervKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glGetPointervKHR ( GLenum pname, void **params ) 2 | 3 | public static native DebugProcKHR glGetDebugMessageCallbackKHR(); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetPointervKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetDebugMessageCallbackKHR", "()Landroid/opengl/GLES31Ext$DebugProcKHR;", (void *) android_glGetDebugMessageCallbackKHR }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* void glGetProgramInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 4 | static jstring android_glGetProgramInfoLog(JNIEnv *_env, jobject, jint shader) { 5 | GLint infoLen = 0; 6 | glGetProgramiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 7 | if (!infoLen) { 8 | return _env->NewStringUTF(""); 9 | } 10 | char* buf = (char*) malloc(infoLen); 11 | if (buf == NULL) { 12 | jniThrowException(_env, "java/lang/IllegalArgumentException", "out of memory"); 13 | return NULL; 14 | } 15 | glGetProgramInfoLog(shader, infoLen, NULL, buf); 16 | jstring result = _env->NewStringUTF(buf); 17 | free(buf); 18 | return result; 19 | } 20 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java: -------------------------------------------------------------------------------- 1 | // C function void glGetProgramInfoLog( GLuint program, GLsizei maxLength, GLsizei * length, 2 | // GLchar * infoLog); 3 | 4 | public static native String glGetProgramInfoLog( 5 | int program 6 | ); 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetProgramInfoLog", "(I)Ljava/lang/String;", (void *) android_glGetProgramInfoLog }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* void glGetProgramPipelineInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 4 | static jstring android_glGetProgramPipelineInfoLog(JNIEnv *_env, jobject, jint shader) { 5 | GLint infoLen = 0; 6 | glGetProgramPipelineiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 7 | if (!infoLen) { 8 | return _env->NewStringUTF(""); 9 | } 10 | char* buf = (char*) malloc(infoLen); 11 | if (buf == NULL) { 12 | jniThrowException(_env, "java/lang/OutOfMemoryError", "out of memory"); 13 | return NULL; 14 | } 15 | glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf); 16 | jstring result = _env->NewStringUTF(buf); 17 | free(buf); 18 | return result; 19 | } 20 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.java: -------------------------------------------------------------------------------- 1 | // C function void glGetProgramPipelineInfoLog( GLuint program, GLsizei maxLength, GLsizei * length, GLchar * infoLog); 2 | 3 | public static native String glGetProgramPipelineInfoLog( 4 | int program 5 | ); 6 | 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetProgramPipelineInfoLog", "(I)Ljava/lang/String;", (void *) android_glGetProgramPipelineInfoLog }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramResourceName.cpp: -------------------------------------------------------------------------------- 1 | /* void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name ) */ 2 | static jstring 3 | android_glGetProgramResourceName 4 | (JNIEnv *_env, jobject _this, jint program, jint programInterface, jint index) { 5 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 6 | return NULL; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramResourceName.java: -------------------------------------------------------------------------------- 1 | // C function void glGetProgramResourceName ( GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name ) 2 | 3 | public static native String glGetProgramResourceName( 4 | int program, 5 | int programInterface, 6 | int index 7 | ); 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetProgramResourceName.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetProgramResourceName", "(III)Ljava/lang/String;", (void *) android_glGetProgramResourceName }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* void glGetShaderInfoLog ( GLuint shader, GLsizei maxLength, GLsizei* length, GLchar* infoLog ) */ 4 | static jstring android_glGetShaderInfoLog(JNIEnv *_env, jobject, jint shader) { 5 | GLint infoLen = 0; 6 | glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); 7 | if (!infoLen) { 8 | return _env->NewStringUTF(""); 9 | } 10 | char* buf = (char*) malloc(infoLen); 11 | if (buf == NULL) { 12 | jniThrowException(_env, "java/lang/IllegalArgumentException", "out of memory"); 13 | return NULL; 14 | } 15 | glGetShaderInfoLog(shader, infoLen, NULL, buf); 16 | jstring result = _env->NewStringUTF(buf); 17 | free(buf); 18 | return result; 19 | } 20 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java: -------------------------------------------------------------------------------- 1 | // C function void glGetShaderInfoLog( GLuint shader, GLsizei maxLength, GLsizei * length, 2 | // GLchar * infoLog); 3 | 4 | public static native String glGetShaderInfoLog( 5 | int shader 6 | ); 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetShaderInfoLog", "(I)Ljava/lang/String;", (void *) android_glGetShaderInfoLog }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetShaderSource.java: -------------------------------------------------------------------------------- 1 | // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 2 | 3 | public static native void glGetShaderSource( 4 | int shader, 5 | int bufsize, 6 | int[] length, 7 | int lengthOffset, 8 | byte[] source, 9 | int sourceOffset 10 | ); 11 | 12 | // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 13 | 14 | /** @hide Method is broken, but used to be public (b/6006380) */ 15 | public static native void glGetShaderSource( 16 | int shader, 17 | int bufsize, 18 | java.nio.IntBuffer length, 19 | byte source 20 | ); 21 | 22 | // C function void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source ) 23 | 24 | public static native String glGetShaderSource( 25 | int shader 26 | ); 27 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetShaderSource.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetShaderSource", "(II[II[BI)V", (void *) android_glGetShaderSource__II_3II_3BI }, 2 | {"glGetShaderSource", "(IILjava/nio/IntBuffer;B)V", (void *) android_glGetShaderSource__IILjava_nio_IntBuffer_2B }, 3 | {"glGetShaderSource", "(I)Ljava/lang/String;", (void *) android_glGetShaderSource }, 4 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetString.cpp: -------------------------------------------------------------------------------- 1 | /* const GLubyte * glGetString ( GLenum name ) */ 2 | static jstring android_glGetString(JNIEnv* _env, jobject, jint name) { 3 | const char* chars = (const char*) glGetString((GLenum) name); 4 | return _env->NewStringUTF(chars); 5 | } 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetString.java: -------------------------------------------------------------------------------- 1 | // C function const GLubyte * glGetString ( GLenum name ) 2 | 3 | public static native String glGetString( 4 | int name 5 | ); 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetString.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetString", "(I)Ljava/lang/String;", (void *) android_glGetString }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetStringi.cpp: -------------------------------------------------------------------------------- 1 | /* const GLubyte * glGetStringi ( GLenum name, GLuint index ) */ 2 | static jstring 3 | android_glGetStringi__II 4 | (JNIEnv *_env, jobject _this, jint name, jint index) { 5 | const GLubyte* _chars = glGetStringi((GLenum)name, (GLuint)index); 6 | return _env->NewStringUTF((const char*)_chars); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetStringi.java: -------------------------------------------------------------------------------- 1 | // C function const GLubyte * glGetStringi ( GLenum name, GLuint index ) 2 | 3 | public static native String glGetStringi( 4 | int name, 5 | int index 6 | ); 7 | 8 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetStringi.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetStringi", "(II)Ljava/lang/String;", (void *) android_glGetStringi__II }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetTransformFeedbackVarying.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetTransformFeedbackVarying", "(III[II[II[II[BI)V", (void *) android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI }, 2 | {"glGetTransformFeedbackVarying", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;B)V", (void *) android_glGetTransformFeedbackVarying__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B }, 3 | {"glGetTransformFeedbackVarying", "(IIILjava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/ByteBuffer;)V", (void *) android_glGetTransformFeedbackVarying__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2 }, 4 | {"glGetTransformFeedbackVarying", "(II[II[II)Ljava/lang/String;", (void *) android_glGetTransformFeedbackVarying1 }, 5 | {"glGetTransformFeedbackVarying", "(IILjava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/lang/String;", (void *) android_glGetTransformFeedbackVarying2 }, 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetUniformIndices.java: -------------------------------------------------------------------------------- 1 | // C function void glGetUniformIndices ( GLuint program, GLsizei uniformCount, const GLchar *const *uniformNames, GLuint *uniformIndices ) 2 | 3 | public static native void glGetUniformIndices( 4 | int program, 5 | String[] uniformNames, 6 | int[] uniformIndices, 7 | int uniformIndicesOffset 8 | ); 9 | 10 | // C function void glGetUniformIndices ( GLuint program, GLsizei uniformCount, const GLchar *const *uniformNames, GLuint *uniformIndices ) 11 | 12 | public static native void glGetUniformIndices( 13 | int program, 14 | String[] uniformNames, 15 | java.nio.IntBuffer uniformIndices 16 | ); 17 | 18 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glGetUniformIndices.nativeReg: -------------------------------------------------------------------------------- 1 | {"glGetUniformIndices", "(I[Ljava/lang/String;[II)V", (void *) android_glGetUniformIndices_array }, 2 | {"glGetUniformIndices", "(I[Ljava/lang/String;Ljava/nio/IntBuffer;)V", (void *) android_glGetUniformIndices_buffer }, 3 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glMapBufferRange.cpp: -------------------------------------------------------------------------------- 1 | /* GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access ) */ 2 | static jobject 3 | android_glMapBufferRange__IIII 4 | (JNIEnv *_env, jobject _this, jint target, jint offset, jint length, jint access) { 5 | GLvoid* _p = glMapBufferRange((GLenum)target, 6 | (GLintptr)offset, (GLsizeiptr)length, (GLbitfield)access); 7 | jobject _buf = (jobject)0; 8 | if (_p) { 9 | _buf = _env->NewDirectByteBuffer(_p, length); 10 | } 11 | return _buf; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glMapBufferRange.java: -------------------------------------------------------------------------------- 1 | // C function GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access ) 2 | 3 | public static native java.nio.Buffer glMapBufferRange( 4 | int target, 5 | int offset, 6 | int length, 7 | int access 8 | ); 9 | 10 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glMapBufferRange.nativeReg: -------------------------------------------------------------------------------- 1 | {"glMapBufferRange", "(IIII)Ljava/nio/Buffer;", (void *) android_glMapBufferRange__IIII }, -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabel.cpp: -------------------------------------------------------------------------------- 1 | /* void glObjectPtrLabel ( const void *ptr, GLsizei length, const GLchar *label ) */ 2 | static void 3 | android_glObjectPtrLabel(JNIEnv *_env, jobject _this, jlong ptr, jstring label) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabel.java: -------------------------------------------------------------------------------- 1 | // C function void glObjectPtrLabel ( const void *ptr, GLsizei length, const GLchar *label ) 2 | 3 | public static native void glObjectPtrLabel(long ptr, String label); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabel.nativeReg: -------------------------------------------------------------------------------- 1 | {"glObjectPtrLabel", "(JLjava/lang/String;)V", (void *) android_glObjectPtrLabel }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabelKHR.cpp: -------------------------------------------------------------------------------- 1 | /* void glObjectPtrLabelKHR ( const void *ptr, GLsizei length, const GLchar *label ) */ 2 | static void 3 | android_glObjectPtrLabelKHR(JNIEnv *_env, jobject _this, jlong ptr, jstring label) { 4 | jniThrowException(_env, "java/lang/UnsupportedOperationException", "not yet implemented"); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabelKHR.java: -------------------------------------------------------------------------------- 1 | // C function void glObjectPtrLabelKHR ( const void *ptr, GLsizei length, const GLchar *label ) 2 | 3 | public static native void glObjectPtrLabelKHR(long ptr, String label); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glObjectPtrLabelKHR.nativeReg: -------------------------------------------------------------------------------- 1 | {"glObjectPtrLabelKHR", "(JLjava/lang/String;)V", (void *) android_glObjectPtrLabelKHR }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glShaderSource.cpp: -------------------------------------------------------------------------------- 1 | 2 | /* void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint * length ) */ 3 | static 4 | void 5 | android_glShaderSource 6 | (JNIEnv *_env, jobject _this, jint shader, jstring string) { 7 | 8 | if (!string) { 9 | jniThrowException(_env, "java/lang/IllegalArgumentException", "string == null"); 10 | return; 11 | } 12 | 13 | const char* nativeString = _env->GetStringUTFChars(string, 0); 14 | const char* strings[] = {nativeString}; 15 | glShaderSource(shader, 1, strings, 0); 16 | _env->ReleaseStringUTFChars(string, nativeString); 17 | } 18 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glShaderSource.java: -------------------------------------------------------------------------------- 1 | // C function void glShaderSource ( GLuint shader, GLsizei count, const GLchar ** string, const GLint* length ) 2 | 3 | public static native void glShaderSource( 4 | int shader, 5 | String string 6 | ); 7 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glShaderSource.nativeReg: -------------------------------------------------------------------------------- 1 | {"glShaderSource", "(ILjava/lang/String;)V", (void *) android_glShaderSource }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glTransformFeedbackVaryings.java: -------------------------------------------------------------------------------- 1 | // C function void glTransformFeedbackVaryings ( GLuint program, GLsizei count, const GLchar *varyings, GLenum bufferMode ) 2 | 3 | public static native void glTransformFeedbackVaryings( 4 | int program, 5 | String[] varyings, 6 | int bufferMode 7 | ); 8 | 9 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/gles11/glTransformFeedbackVaryings.nativeReg: -------------------------------------------------------------------------------- 1 | {"glTransformFeedbackVaryings", "(I[Ljava/lang/String;I)V", (void *) android_glTransformFeedbackVaryings }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/GL10ExtHeader.java-if: -------------------------------------------------------------------------------- 1 | ** 2 | ** Copyright 2007, The Android Open Source Project 3 | ** 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); 5 | ** you may not use this file except in compliance with the License. 6 | ** You may obtain a copy of the License at 7 | ** 8 | ** http://www.apache.org/licenses/LICENSE-2.0 9 | ** 10 | ** Unless required by applicable law or agreed to in writing, software 11 | ** distributed under the License is distributed on an "AS IS" BASIS, 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ** See the License for the specific language governing permissions and 14 | ** limitations under the License. 15 | */ 16 | 17 | // This source file is automatically generated 18 | 19 | package javax.microedition.khronos.opengles; 20 | 21 | public interface GL10Ext extends GL { 22 | 23 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/GL11ImplHeader.java-impl: -------------------------------------------------------------------------------- 1 | // Copyright 2006 The Android Open Source Project 2 | 3 | // All Rights Reserved. 4 | 5 | // This source file is automatically generated 6 | 7 | package com.google.android.gles_jni; 8 | 9 | import java.nio.Buffer; 10 | import javax.microedition.khronos.opengles.GL11; 11 | import android.graphics.Canvas; 12 | 13 | public class GL11Impl implements GL11 { 14 | 15 | // Private accessors for native code 16 | 17 | native private static void _nativeClassInit(); 18 | static { 19 | _nativeClassInit(); 20 | } 21 | 22 | Buffer _colorPointer = null; 23 | Buffer _normalPointer = null; 24 | Buffer _texCoordPointer = null; 25 | Buffer _vertexPointer = null; 26 | 27 | public GL11Impl() { 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/GLHeader.java-if: -------------------------------------------------------------------------------- 1 | /* //device/java/android/javax/microedition/khronos/opengles/GL.java 2 | ** 3 | ** Copyright 2006, The Android Open Source Project 4 | ** 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); 6 | ** you may not use this file except in compliance with the License. 7 | ** You may obtain a copy of the License at 8 | ** 9 | ** http://www.apache.org/licenses/LICENSE-2.0 10 | ** 11 | ** Unless required by applicable law or agreed to in writing, software 12 | ** distributed under the License is distributed on an "AS IS" BASIS, 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ** See the License for the specific language governing permissions and 15 | ** limitations under the License. 16 | */ 17 | 18 | package javax.microedition.khronos.opengles; 19 | 20 | public interface GL { 21 | } 22 | 23 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/glGetString.cpp: -------------------------------------------------------------------------------- 1 | /* const GLubyte * glGetString ( GLenum name ) */ 2 | static jstring android_glGetString(JNIEnv *_env, jobject, jint name) { 3 | const char* chars = (const char*) glGetString((GLenum) name); 4 | return _env->NewStringUTF(chars); 5 | } 6 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/glGetString.java-10-if: -------------------------------------------------------------------------------- 1 | public String glGetString( 2 | int name 3 | ); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/glGetString.java-if: -------------------------------------------------------------------------------- 1 | public String glGetString( 2 | int name 3 | ); 4 | 5 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/glGetString.java-impl: -------------------------------------------------------------------------------- 1 | // C function const GLubyte * glGetString ( GLenum name ) 2 | 3 | public native String _glGetString( 4 | int name 5 | ); 6 | 7 | public String glGetString( 8 | int name 9 | ) { 10 | String returnValue; 11 | returnValue = _glGetString( 12 | name 13 | ); 14 | return returnValue; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /opengl/tools/glgen/stubs/jsr239/glGetString.nativeReg: -------------------------------------------------------------------------------- 1 | {"_glGetString", "(I)Ljava/lang/String;", (void *) android_glGetString }, 2 | -------------------------------------------------------------------------------- /opengl/tools/glgen2/.gitignore: -------------------------------------------------------------------------------- 1 | registry/reg.pyc 2 | -------------------------------------------------------------------------------- /services/batteryservice/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | BatteryProperties.cpp \ 6 | BatteryProperty.cpp \ 7 | IBatteryPropertiesListener.cpp \ 8 | IBatteryPropertiesRegistrar.cpp 9 | 10 | LOCAL_STATIC_LIBRARIES := \ 11 | libutils \ 12 | libbinder 13 | 14 | LOCAL_MODULE:= libbatteryservice 15 | 16 | LOCAL_MODULE_TAGS := optional 17 | 18 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code 19 | 20 | include $(BUILD_STATIC_LIBRARY) 21 | -------------------------------------------------------------------------------- /services/inputflinger/host/inputflinger.rc: -------------------------------------------------------------------------------- 1 | service inputflinger /system/bin/inputflinger 2 | class main 3 | user system 4 | group input wakelock 5 | # onrestart restart zygote 6 | -------------------------------------------------------------------------------- /services/inputflinger/host/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include "InputFlinger.h" 19 | 20 | using namespace android; 21 | 22 | int main(int, char**) { 23 | ProcessState::self()->setThreadPoolMaxThreadCount(4); 24 | BinderService::publishAndJoinThreadPool(true); 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /services/powermanager/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | IPowerManager.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libutils \ 9 | libbinder 10 | 11 | LOCAL_MODULE:= libpowermanager 12 | 13 | LOCAL_MODULE_TAGS := optional 14 | 15 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code 16 | 17 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../../include 18 | 19 | include $(BUILD_SHARED_LIBRARY) 20 | -------------------------------------------------------------------------------- /services/sensorservice/main_sensorservice.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include "SensorService.h" 19 | 20 | using namespace android; 21 | 22 | int main(int /*argc*/, char** /*argv*/) { 23 | signal(SIGPIPE, SIG_IGN); 24 | SensorService::publishAndJoinThreadPool(); 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /services/sensorservice/tests/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | sensorservicetest.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils libutils libui libgui 9 | 10 | LOCAL_MODULE:= test-sensorservice 11 | 12 | LOCAL_MODULE_TAGS := optional 13 | 14 | include $(BUILD_EXECUTABLE) 15 | -------------------------------------------------------------------------------- /services/surfaceflinger/MODULE_LICENSE_APACHE2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CyanogenMod/android_frameworks_native/e98640f9c7b6be750a1f6c4f28e77272460993fd/services/surfaceflinger/MODULE_LICENSE_APACHE2 -------------------------------------------------------------------------------- /services/surfaceflinger/surfaceflinger.rc: -------------------------------------------------------------------------------- 1 | service surfaceflinger /system/bin/surfaceflinger 2 | class core 3 | user system 4 | group graphics drmrpc readproc 5 | onrestart restart zygote 6 | writepid /dev/stune/foreground/tasks 7 | -------------------------------------------------------------------------------- /services/surfaceflinger/tests/Android.mk: -------------------------------------------------------------------------------- 1 | # Build the unit tests, 2 | LOCAL_PATH:= $(call my-dir) 3 | include $(CLEAR_VARS) 4 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 5 | 6 | LOCAL_MODULE := SurfaceFlinger_test 7 | 8 | LOCAL_MODULE_TAGS := tests 9 | 10 | LOCAL_SRC_FILES := \ 11 | Transaction_test.cpp \ 12 | 13 | LOCAL_SHARED_LIBRARIES := \ 14 | libEGL \ 15 | libGLESv2 \ 16 | libbinder \ 17 | libcutils \ 18 | libgui \ 19 | libui \ 20 | libutils \ 21 | 22 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) 23 | # to integrate with auto-test framework. 24 | include $(BUILD_NATIVE_TEST) 25 | 26 | # Include subdirectory makefiles 27 | # ============================================================ 28 | 29 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework 30 | # team really wants is to build the stuff defined by this makefile. 31 | ifeq (,$(ONE_SHOT_MAKEFILE)) 32 | include $(call first-makefiles-under,$(LOCAL_PATH)) 33 | endif 34 | -------------------------------------------------------------------------------- /services/surfaceflinger/tests/vsync/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | vsync.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | libutils \ 10 | libbinder \ 11 | libui \ 12 | libgui 13 | 14 | LOCAL_MODULE:= test-vsync-events 15 | 16 | LOCAL_MODULE_TAGS := tests 17 | 18 | include $(BUILD_EXECUTABLE) 19 | -------------------------------------------------------------------------------- /services/surfaceflinger/tests/waitforvsync/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(CLEAR_VARS) 3 | 4 | LOCAL_SRC_FILES:= \ 5 | waitforvsync.cpp 6 | 7 | LOCAL_SHARED_LIBRARIES := \ 8 | libcutils \ 9 | 10 | LOCAL_MODULE:= test-waitforvsync 11 | 12 | LOCAL_MODULE_TAGS := tests 13 | 14 | include $(BUILD_EXECUTABLE) 15 | -------------------------------------------------------------------------------- /vulkan/.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Chromium 2 | IndentWidth: 4 3 | -------------------------------------------------------------------------------- /vulkan/Android.mk: -------------------------------------------------------------------------------- 1 | include $(call all-named-subdir-makefiles, libvulkan nulldrv tools) 2 | -------------------------------------------------------------------------------- /vulkan/doc/implementors_guide/implementors_guide-docinfo.adoc: -------------------------------------------------------------------------------- 1 | 24 | -------------------------------------------------------------------------------- /vulkan/doc/implementors_guide/implementors_guide.conf: -------------------------------------------------------------------------------- 1 | [attributes] 2 | newline=\n 3 | 4 | [replacements] 5 | \+\/-=± 6 | -------------------------------------------------------------------------------- /vulkan/libvulkan/stubhal.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef LIBVULKAN_STUBHAL_H 18 | #define LIBVULKAN_STUBHAL_H 1 19 | 20 | struct hwvulkan_device_t; 21 | 22 | namespace vulkan { 23 | namespace stubhal { 24 | 25 | extern const hwvulkan_device_t kDevice; 26 | 27 | } // namespace stubhal 28 | } // namespace vulkan 29 | 30 | #endif // LIBVULKAN_STUBHAL_H 31 | -------------------------------------------------------------------------------- /vulkan/libvulkan/vulkan_loader_data.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | using namespace vulkan; 20 | 21 | LoaderData& LoaderData::GetInstance() { 22 | static LoaderData loader_data = {}; 23 | return loader_data; 24 | } 25 | --------------------------------------------------------------------------------