Home
last modified time | relevance | path

Searched refs:android_app (Results 1 – 6 of 6) sorted by relevance

/development/ndk/sources/android/native_app_glue/
Dandroid_native_app_glue.c39 static void free_saved_state(struct android_app* android_app) { in free_saved_state() argument
40 pthread_mutex_lock(&android_app->mutex); in free_saved_state()
41 if (android_app->savedState != NULL) { in free_saved_state()
42 free(android_app->savedState); in free_saved_state()
43 android_app->savedState = NULL; in free_saved_state()
44 android_app->savedStateSize = 0; in free_saved_state()
46 pthread_mutex_unlock(&android_app->mutex); in free_saved_state()
49 int8_t android_app_read_cmd(struct android_app* android_app) { in android_app_read_cmd() argument
51 if (read(android_app->msgread, &cmd, sizeof(cmd)) == sizeof(cmd)) { in android_app_read_cmd()
54 free_saved_state(android_app); in android_app_read_cmd()
[all …]
Dandroid_native_app_glue.h84 struct android_app;
96 struct android_app* app;
100 void (*process)(struct android_app* app, struct android_poll_source* source);
111 struct android_app { struct
117 void (*onAppCmd)(struct android_app* app, int32_t cmd); argument
123 int32_t (*onInputEvent)(struct android_app* app, AInputEvent* event); argument
318 int8_t android_app_read_cmd(struct android_app* android_app);
325 void android_app_pre_exec_cmd(struct android_app* android_app, int8_t cmd);
332 void android_app_post_exec_cmd(struct android_app* android_app, int8_t cmd);
343 extern void android_main(struct android_app* app);
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsNativeActivity.cpp49 struct android_app;
66 android_app* app_;
77 static void HandleCmd( struct android_app* app,
79 static int32_t HandleInput( android_app* app,
84 void SetState( android_app* state );
223 int32_t Engine::HandleInput( android_app* app, in HandleInput()
293 void Engine::HandleCmd( struct android_app* app, in HandleCmd()
386 void Engine::SetState( android_app* state ) in SetState()
444 void android_main( android_app* state ) in android_main()
/development/ndk/platforms/android-17/samples/Teapot/jni/
DTeapotNativeActivity.cpp39 struct android_app;
56 android_app* app_;
67 static void HandleCmd( struct android_app* app,
69 static int32_t HandleInput( android_app* app,
74 void SetState( android_app* state );
212 int32_t Engine::HandleInput( android_app* app, in HandleInput()
282 void Engine::HandleCmd( struct android_app* app, in HandleCmd()
375 void Engine::SetState( android_app* state ) in SetState()
433 void android_main( android_app* state ) in android_main()
/development/ndk/platforms/android-9/samples/native-activity/jni/
Dmain.c45 struct android_app* app;
168 static int32_t engine_handle_input(struct android_app* app, AInputEvent* event) { in engine_handle_input()
182 static void engine_handle_cmd(struct android_app* app, int32_t cmd) { in engine_handle_cmd()
231 void android_main(struct android_app* state) { in android_main()
/development/ndk/platforms/android-9/samples/native-plasma/jni/
Dplasma.c375 struct android_app* app;
413 static int32_t engine_handle_input(struct android_app* app, AInputEvent* event) { in engine_handle_input()
428 static void engine_handle_cmd(struct android_app* app, int32_t cmd) { in engine_handle_cmd()
446 void android_main(struct android_app* state) { in android_main()