examples/

directory
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT

Directories

Path Synopsis
activity
overview command
NativeActivity lifecycle overview.
NativeActivity lifecycle overview.
asset
overview command
Example: AAssetManager API overview and directory iteration.
Example: AAssetManager API overview and directory iteration.
audio
basic-playback command
Basic AAudio playback example.
Basic AAudio playback example.
recording command
Audio recording (capture) example.
Audio recording (capture) example.
state-machine command
AAudio stream state machine example.
AAudio stream state machine example.
stream-info command
Stream information query example.
Stream information query example.
binder
overview command
Binder IPC API overview.
Binder IPC API overview.
bitmap
formats command
Example: Android bitmap format constants and error codes.
Example: Android bitmap format constants and error codes.
camera
capture-session command
Camera capture session lifecycle example.
Camera capture session lifecycle example.
display command
Camera preview display using NativeActivity with OpenGL ES rendering.
Camera preview display using NativeActivity with OpenGL ES rendering.
manager command
Camera manager lifecycle example.
Camera manager lifecycle example.
overview command
Camera2 pipeline overview.
Camera2 pipeline overview.
choreographer
vsync command
Example: obtain the Android Choreographer singleton.
Example: obtain the Android Choreographer singleton.
config
device-config command
Example: query device configuration properties.
Example: query device configuration properties.
egl
config-query command
Example: EGL configuration attribute query.
Example: EGL configuration attribute query.
initialize command
Example: EGL initialization and display query.
Example: EGL initialization and display query.
offscreen-render command
EGL offscreen rendering with pbuffer and OpenGL ES 2.
EGL offscreen rendering with pbuffer and OpenGL ES 2.
pbuffer-context command
Example: offscreen pbuffer surface with an OpenGL ES 2 context.
Example: offscreen pbuffer surface with an OpenGL ES 2 context.
gles2
clear-screen command
Simplest GLES2 example: clear the framebuffer to a known color and verify.
Simplest GLES2 example: clear the framebuffer to a known color and verify.
framebuffer command
Render-to-texture via an offscreen framebuffer object (FBO).
Render-to-texture via an offscreen framebuffer object (FBO).
texture command
Textured quad: upload pixel data to a texture and render it on a quad.
Textured quad: upload pixel data to a texture and render it on a quad.
triangle command
Hello Triangle: the classic first OpenGL ES 2.0 program.
Hello Triangle: the classic first OpenGL ES 2.0 program.
gles3
instanced-drawing command
Instanced drawing example using OpenGL ES 3.0.
Instanced drawing example using OpenGL ES 3.0.
sync-fences command
Sync fence example using OpenGL ES 3.0.
Sync fence example using OpenGL ES 3.0.
transform-feedback command
Transform feedback example using OpenGL ES 3.0.
Transform feedback example using OpenGL ES 3.0.
vertex-array-objects command
Vertex Array Object (VAO) example using OpenGL ES 3.0.
Vertex Array Object (VAO) example using OpenGL ES 3.0.
hint
overview command
Performance Hint API overview.
Performance Hint API overview.
hwbuf
allocate-lock command
Hardware buffer allocation and CPU-lock lifecycle.
Hardware buffer allocation and CPU-lock lifecycle.
formats-usage command
Hardware buffer formats and usage flags overview.
Hardware buffer formats and usage flags overview.
image
overview command
AImageDecoder API overview.
AImageDecoder API overview.
input
event-types command
Example: input event type system and processing pattern.
Example: input event type system and processing pattern.
touch-handling command
Touch and key input event handling example.
Touch and key input event handling example.
log
priorities command
Example: Android log priority levels and their string representations.
Example: Android log priority levels and their string representations.
looper
basic-loop command
Basic ALooper event loop example.
Basic ALooper event loop example.
timeout-poll command
Timeout-based ALooper polling example.
Timeout-based ALooper polling example.
media
codec-lifecycle command
MediaCodec full lifecycle example.
MediaCodec full lifecycle example.
decoder-setup command
Video decoder setup example.
Video decoder setup example.
format-create command
Media format creation and property access example.
Media format creation and property access example.
muxer-tracks command
Muxer track format preparation example.
Muxer track format preparation example.
midi
overview command
MIDI API overview and reference example.
MIDI API overview and reference example.
permission
check-permissions command
Check common Android permissions for the current process.
Check common Android permissions for the current process.
persistablebundle
overview command
PersistableBundle API overview.
PersistableBundle API overview.
sensor
accelerometer command
Example: accelerometer sensor detail and event-queue setup.
Example: accelerometer sensor detail and event-queue setup.
event-loop command
Sensor event loop pattern combining sensor and looper packages.
Sensor event loop pattern combining sensor and looper packages.
list-sensors command
Example: list default sensors and their properties.
Example: list default sensors and their properties.
sharedmem
overview command
Example: sharedmem package overview
Example: sharedmem package overview
storage
obb-manager command
OBB storage manager lifecycle example.
OBB storage manager lifecycle example.
surfacecontrol
transaction command
Transaction lifecycle and chaining pattern example.
Transaction lifecycle and chaining pattern example.
surfacetexture
gl-rendering command
SurfaceTexture GL rendering pipeline example.
SurfaceTexture GL rendering pipeline example.
overview command
ASurfaceTexture API overview.
ASurfaceTexture API overview.
sync
overview command
Example: sync package overview
Example: sync package overview
thermal
monitor command
Example: thermal status monitoring.
Example: thermal status monitoring.
status-polling command
Thermal status polling example.
Thermal status polling example.
trace
basic-tracing command
Basic systrace example: synchronous sections, asynchronous sections, and counters.
Basic systrace example: synchronous sections, asynchronous sections, and counters.
function-tracing command
Function-level tracing with defer.
Function-level tracing with defer.
nested-sections command
Nested trace sections and counters example.
Nested trace sections and counters example.
window
formats command
Example: ANativeWindow pixel format constants and API overview.
Example: ANativeWindow pixel format constants and API overview.
software-render command
Software rendering to an ANativeWindow.
Software rendering to an ANativeWindow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL