Home
last modified time | relevance | path

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

/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
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()
241 static struct android_app* android_app_create(ANativeActivity* activity, void* savedState, in android_app_create() argument
250 if (savedState != NULL) { in android_app_create()
251 android_app->savedState = malloc(savedStateSize); in android_app_create()
253 memcpy(android_app->savedState, savedState, savedStateSize); in android_app_create()
351 void* savedState = NULL; in onSaveInstanceState() local
361 if (android_app->savedState != NULL) { in onSaveInstanceState()
362 savedState = android_app->savedState; in onSaveInstanceState()
[all …]
Dandroid_native_app_glue.h138 void* savedState; member
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DCarLauncherTestActivity.java31 protected void onCreate(Bundle savedState) { in onCreate() argument
32 super.onCreate(savedState); in onCreate()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTestUtil.java168 Pair<Parcelable, FragmentManagerNonConfig> savedState) { in resume() argument
171 if (savedState != null) { in resume()
172 fragmentController.restoreAllState(savedState.first, savedState.second); in resume()
190 final Parcelable savedState = fragmentController.saveAllState(); in destroy()
196 result[0] = Pair.create(savedState, nonConfig); in destroy()
DFragmentLifecycleTest.java425 Pair<Parcelable, FragmentManagerNonConfig> savedState = in noPrematureStateChange() local
439 fragmentController.restoreAllState(savedState.first, savedState.second); in noPrematureStateChange()
576 final Parcelable savedState = fc1.saveAllState(); in targetFragmentRestoreLifecycleStateBackStack()
585 fc2.restoreAllState(savedState, nonconf); in targetFragmentRestoreLifecycleStateBackStack()
643 final Parcelable savedState = fc1.saveAllState(); in targetFragmentRestoreLifecycleStateManagerOrder()
652 fc2.restoreAllState(savedState, nonconf); in targetFragmentRestoreLifecycleStateManagerOrder()
709 Pair<Parcelable, FragmentManagerNonConfig> savedState = null; in testLifecycleTransitionFailure() local
711 savedState = FragmentTestUtil.destroy(mActivityRule, fc1); in testLifecycleTransitionFailure()
733 FragmentTestUtil.resume(mActivityRule, fc2, savedState); in testLifecycleTransitionFailure()
798 Pair<Parcelable, FragmentManagerNonConfig> savedState = in restoreNonConfig() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DToastVerifierActivity.java35 protected void onCreate(Bundle savedState) { in onCreate() argument
36 super.onCreate(savedState); in onCreate()
DBubblesVerifierActivity.java137 protected void onCreate(Bundle savedState) { in onCreate() argument
138 super.onCreate(savedState); in onCreate()
235 restoreStateFromBundle(savedState); in onCreate()
239 protected void onSaveInstanceState(Bundle savedState) { in onSaveInstanceState() argument
240 super.onSaveInstanceState(savedState); in onSaveInstanceState()
241 savedState.putInt("mCurrentTestIndex", mCurrentTestIndex); in onSaveInstanceState()
242 savedState.putInt("mStepFailureCount", mStepFailureCount); in onSaveInstanceState()
243 savedState.putBoolean("mShowingSummary", mShowingSummary); in onSaveInstanceState()
244 savedState.putBoolean("mTestStepPassed", mTestStepPassed.isEnabled()); in onSaveInstanceState()
247 private void restoreStateFromBundle(Bundle savedState) { in restoreStateFromBundle() argument
[all …]
DInteractiveVerifierActivity.java173 protected void onCreate(Bundle savedState) { in onCreate() argument
174 super.onCreate(savedState); in onCreate()
175 int savedStateIndex = (savedState == null) ? 0 : savedState.getInt(STATE, 0); in onCreate()
176 int savedStatus = (savedState == null) ? SETUP : savedState.getInt(STATUS, SETUP); in onCreate()
177 int scrollY = (savedState == null) ? 0 : savedState.getInt(SCROLLY, 0); in onCreate()
178 String displayMode = (savedState == null) ? null : savedState.getString(DISPLAY_MODE, null); in onCreate()
DBubbleActivity.java48 public void onCreate(Bundle savedState) { in onCreate() argument
49 super.onCreate(savedState); in onCreate()
DShortcutThrottlingResetActivity.java77 protected void onCreate(Bundle savedState) { in onCreate() argument
78 super.onCreate(savedState); in onCreate()
DNotificationHidingVerifierActivity.kt126 private fun restoreState(savedState: Bundle) { in <lambda>()
127 currentTestIdx = savedState.getInt("currentTestIdx") in <lambda>()
128 numFailures = savedState.getInt("numFailures") in <lambda>()
DNotificationPrivacyVerifierActivity.java56 protected void onCreate(Bundle savedState) { in onCreate() argument
57 super.onCreate(savedState); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/
DInteractiveVerifierActivity.java150 protected void onCreate(Bundle savedState) { in onCreate() argument
151 super.onCreate(savedState); in onCreate()
152 int savedStateIndex = (savedState == null) ? 0 : savedState.getInt(STATE, 0); in onCreate()
153 int savedStatus = (savedState == null) ? SETUP : savedState.getInt(STATUS, SETUP); in onCreate()
DTileServiceRequestVerifierActivity.java66 protected void onCreate(Bundle savedState) { in onCreate() argument
68 super.onCreate(savedState); in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DView_BaseSavedStateTest.java102 BaseSavedState savedState = new BaseSavedState(superState); in testWriteToParcel() local
105 savedState.writeToParcel(dest, flags); in testWriteToParcel()
DAbsSavedStateTest.java124 AbsSavedState savedState = new AbsSavedStateImpl(superState); in testWriteToParcel() local
127 savedState.writeToParcel(dest, flags); in testWriteToParcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DVrListenerVerifierActivity.java70 protected void onCreate(Bundle savedState) { in onCreate() argument
71 super.onCreate(savedState); in onCreate()
72 mCurrentIdx = (savedState == null) ? 0 : savedState.getInt(STATE, 0); in onCreate()
95 test.setStatus((savedState == null) ? Status.SETUP : in onCreate()
96 Status.values()[savedState.getInt(test.getClass().getSimpleName(), 0)]); in onCreate()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DBackupTest.java208 boolean savedState = dpm.isBackupServiceEnabled(who); in setBackupServiceEnabled_SecurityLogEventsEmitted()
231 dpm.setBackupServiceEnabled(who, savedState); in setBackupServiceEnabled_SecurityLogEventsEmitted()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java450 protected void onSaveInstanceState(final Bundle savedState) { in onSaveInstanceState() argument
451 super.onSaveInstanceState(savedState); in onSaveInstanceState()
453 savedState.putBundle(ORIGINAL_RESTRICTIONS_NAME, mOriginalRestrictions); in onSaveInstanceState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java94 protected void onCreate(Bundle savedState) { in onCreate() argument
95 super.onCreate(savedState); in onCreate()
/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java538 Parcelable savedState = mListView.onSaveInstanceState(); in testSaveAndRestoreInstanceState_positionIsRestored() local
543 mListView.onRestoreInstanceState(savedState); in testSaveAndRestoreInstanceState_positionIsRestored()