Searched refs:android_app (Results 1 – 4 of 4) sorted by relevance
/development/ndk/sources/android/native_app_glue/ |
D | android_native_app_glue.c | 38 static void free_saved_state(struct android_app* android_app) { in free_saved_state() argument 39 pthread_mutex_lock(&android_app->mutex); in free_saved_state() 40 if (android_app->savedState != NULL) { in free_saved_state() 41 free(android_app->savedState); in free_saved_state() 42 android_app->savedState = NULL; in free_saved_state() 43 android_app->savedStateSize = 0; in free_saved_state() 45 pthread_mutex_unlock(&android_app->mutex); in free_saved_state() 48 int8_t android_app_read_cmd(struct android_app* android_app) { in android_app_read_cmd() argument 50 if (read(android_app->msgread, &cmd, sizeof(cmd)) == sizeof(cmd)) { in android_app_read_cmd() 53 free_saved_state(android_app); in android_app_read_cmd() [all …]
|
D | android_native_app_glue.h | 84 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-9/samples/native-activity/jni/ |
D | main.c | 45 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/ |
D | plasma.c | 375 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()
|