Home
last modified time | relevance | path

Searched refs:savedState (Results 1 – 13 of 13) sorted by relevance

/development/ndk/sources/android/native_app_glue/
Dandroid_native_app_glue.c41 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()
244 void* savedState, size_t savedStateSize) { in android_app_create() argument
252 if (savedState != NULL) { in android_app_create()
253 android_app->savedState = malloc(savedStateSize); in android_app_create()
255 memcpy(android_app->savedState, savedState, savedStateSize); in android_app_create()
353 void* savedState = NULL; in onSaveInstanceState() local
363 if (android_app->savedState != NULL) { in onSaveInstanceState()
364 savedState = android_app->savedState; in onSaveInstanceState()
[all …]
Dandroid_native_app_glue.h139 void* savedState; member
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java329 public synchronized void restoreState(Bundle savedState) { in restoreState() argument
335 mDifficulty = savedState.getInt(KEY_DIFFICULTY); in restoreState()
336 mX = savedState.getDouble(KEY_X); in restoreState()
337 mY = savedState.getDouble(KEY_Y); in restoreState()
338 mDX = savedState.getDouble(KEY_DX); in restoreState()
339 mDY = savedState.getDouble(KEY_DY); in restoreState()
340 mHeading = savedState.getDouble(KEY_HEADING); in restoreState()
342 mLanderWidth = savedState.getInt(KEY_LANDER_WIDTH); in restoreState()
343 mLanderHeight = savedState.getInt(KEY_LANDER_HEIGHT); in restoreState()
344 mGoalX = savedState.getInt(KEY_GOAL_X); in restoreState()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DReorderOnLaunch.java30 protected void onCreate(Bundle savedState) { in onCreate() argument
31 super.onCreate(savedState); in onCreate()
DReorderTwo.java30 protected void onCreate(Bundle savedState) { in onCreate() argument
31 super.onCreate(savedState); in onCreate()
DReorderThree.java30 protected void onCreate(Bundle savedState) { in onCreate() argument
31 super.onCreate(savedState); in onCreate()
DReorderFour.java30 protected void onCreate(Bundle savedState) { in onCreate() argument
31 super.onCreate(savedState); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/nfc/
DTechFilter.java32 public void onCreate(Bundle savedState) { in onCreate() argument
33 super.onCreate(savedState); in onCreate()
DForegroundNdefPush.java37 public void onCreate(Bundle savedState) { in onCreate() argument
38 super.onCreate(savedState); in onCreate()
DForegroundDispatch.java45 public void onCreate(Bundle savedState) { in onCreate() argument
46 super.onCreate(savedState); in onCreate()
/development/ndk/platforms/android-9/samples/native-activity/jni/
Dmain.c187 engine->app->savedState = malloc(sizeof(struct saved_state)); in engine_handle_cmd()
188 *((struct saved_state*)engine->app->savedState) = engine->state; in engine_handle_cmd()
250 if (state->savedState != NULL) { in android_main()
252 engine.state = *(struct saved_state*)state->savedState; in android_main()
/development/ndk/platforms/android-13/include/android/
Dnative_activity.h236 void* savedState, size_t savedStateSize);
/development/ndk/platforms/android-9/include/android/
Dnative_activity.h229 void* savedState, size_t savedStateSize);