Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DVolumeSeekBarPreferenceTest.java192 SavedVolumeState savedState = new SavedVolumeState(parcel); in onRestoreInstanceState_withMutedState_loadsIsUnMuted() local
195 mVolumeSeekBarPreference.onRestoreInstanceState(savedState); in onRestoreInstanceState_withMutedState_loadsIsUnMuted()
206 SavedVolumeState savedState = new SavedVolumeState(parcel); in onRestoreInstanceState_withMutedState_loadsIsMuted() local
209 mVolumeSeekBarPreference.onRestoreInstanceState(savedState); in onRestoreInstanceState_withMutedState_loadsIsMuted()
219 SavedVolumeState savedState = new SavedVolumeState(parcel); in writeToParcel_withMuted_writesMutedToParcel() local
220 savedState.setIsMuted(true); in writeToParcel_withMuted_writesMutedToParcel()
222 savedState.writeToParcel(parcel, /* flags= */ 0); in writeToParcel_withMuted_writesMutedToParcel()
230 SavedVolumeState savedState = new SavedVolumeState(parcel); in isMuted_forSaveVolumeState_readMutedState() local
231 savedState.setIsMuted(true); in isMuted_forSaveVolumeState_readMutedState()
234 .that(savedState.isMuted()) in isMuted_forSaveVolumeState_readMutedState()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java42 protected void onSaveInstanceState(Bundle savedState) { in onSaveInstanceState() argument
43 savedState.putCharSequence(SAVE_KEY_TITLE, getTitle()); in onSaveInstanceState()
44 super.onSaveInstanceState(savedState); in onSaveInstanceState()
48 protected void onRestoreInstanceState(Bundle savedState) { in onRestoreInstanceState() argument
49 super.onRestoreInstanceState(savedState); in onRestoreInstanceState()
50 setTitle(savedState.getCharSequence(SAVE_KEY_TITLE)); in onRestoreInstanceState()
91 protected void onCreate(Bundle savedState) { in onCreate() argument
92 super.onCreate(savedState); in onCreate()
/packages/services/Car/packages/ScriptExecutor/src/com/android/car/scriptexecutor/
DScriptExecutor.java60 PersistableBundle publishedData, PersistableBundle savedState, in invokeScript() argument
65 null, savedState, listener)); in invokeScript()
70 ParcelFileDescriptor publishedDataFileDescriptor, PersistableBundle savedState, in invokeScriptForLargeInput() argument
93 null, savedState, listener); in invokeScriptForLargeInput()
99 BundleList bundleList, PersistableBundle savedState, in invokeScriptForBundleList() argument
107 reconstBundles.bundles, savedState, listener)); in invokeScriptForBundleList()
174 List<PersistableBundle> bundleList, PersistableBundle savedState, in nativeInvokeScript() argument
/packages/apps/Contacts/src/com/android/contacts/list/
DContactEntryListFragment.java280 public void onCreate(Bundle savedState) { in onCreate() argument
281 super.onCreate(savedState); in onCreate()
282 restoreSavedState(savedState); in onCreate()
287 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
288 if (savedState == null) { in restoreSavedState()
292 mSectionHeaderDisplayEnabled = savedState.getBoolean(KEY_SECTION_HEADER_DISPLAY_ENABLED); in restoreSavedState()
293 mPhotoLoaderEnabled = savedState.getBoolean(KEY_PHOTO_LOADER_ENABLED); in restoreSavedState()
294 mQuickContactEnabled = savedState.getBoolean(KEY_QUICK_CONTACT_ENABLED); in restoreSavedState()
295 mAdjustSelectionBoundsEnabled = savedState.getBoolean(KEY_ADJUST_SELECTION_BOUNDS_ENABLED); in restoreSavedState()
296 mSearchMode = savedState.getBoolean(KEY_SEARCH_MODE); in restoreSavedState()
[all …]
DContactPickerFragment.java79 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
80 super.restoreSavedState(savedState); in restoreSavedState()
82 if (savedState == null) { in restoreSavedState()
86 mEditMode = savedState.getBoolean(KEY_EDIT_MODE); in restoreSavedState()
87 mCreateContactEnabled = savedState.getBoolean(KEY_CREATE_CONTACT_ENABLED); in restoreSavedState()
88 mShortcutRequested = savedState.getBoolean(KEY_SHORTCUT_REQUESTED); in restoreSavedState()
DGroupMemberPickerFragment.java194 public void onCreate(Bundle savedState) { in onCreate() argument
195 if (savedState == null) { in onCreate()
201 mAccountName = savedState.getString(KEY_ACCOUNT_NAME); in onCreate()
202 mAccountType = savedState.getString(KEY_ACCOUNT_TYPE); in onCreate()
203 mAccountDataSet = savedState.getString(KEY_ACCOUNT_DATA_SET); in onCreate()
204 mContactIds = savedState.getStringArrayList(KEY_CONTACT_IDS); in onCreate()
206 super.onCreate(savedState); in onCreate()
DPhoneNumberPickerFragment.java103 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
104 super.restoreSavedState(savedState); in restoreSavedState()
106 if (savedState == null) { in restoreSavedState()
110 mFilter = savedState.getParcelable(KEY_FILTER); in restoreSavedState()
111 mShortcutAction = savedState.getString(KEY_SHORTCUT_ACTION); in restoreSavedState()
DJoinContactListFragment.java182 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
183 super.restoreSavedState(savedState); in restoreSavedState()
184 if (savedState != null) { in restoreSavedState()
185 mTargetContactId = savedState.getLong(KEY_TARGET_CONTACT_ID); in restoreSavedState()
DContactBrowseListFragment.java221 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
222 super.restoreSavedState(savedState); in restoreSavedState()
224 if (savedState == null) { in restoreSavedState()
228 mFilter = savedState.getParcelable(KEY_FILTER); in restoreSavedState()
229 mSelectedContactUri = savedState.getParcelable(KEY_SELECTED_URI); in restoreSavedState()
230 mSelectionVerified = savedState.getBoolean(KEY_SELECTION_VERIFIED); in restoreSavedState()
231 mLastSelectedPosition = savedState.getInt(KEY_LAST_SELECTED_POSITION); in restoreSavedState()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentGridView.java103 final SavedState savedState = new SavedState(superState); in onSaveInstanceState() local
104 savedState.unselectedParts = mUnselectedSet in onSaveInstanceState()
106 return savedState; in onSaveInstanceState()
116 final SavedState savedState = (SavedState) state; in onRestoreInstanceState() local
117 super.onRestoreInstanceState(savedState.getSuperState()); in onRestoreInstanceState()
119 for (int i = 0; i < savedState.unselectedParts.length; i++) { in onRestoreInstanceState()
120 final MessagePartData unselectedPart = savedState.unselectedParts[i]; in onRestoreInstanceState()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridView.java239 final SavedState savedState = new SavedState(superState); in onSaveInstanceState() local
240 savedState.isMultiSelectMode = mIsMultiSelectMode; in onSaveInstanceState()
241 savedState.selectedImages = mSelectedImages.values() in onSaveInstanceState()
243 return savedState; in onSaveInstanceState()
253 final SavedState savedState = (SavedState) state; in onRestoreInstanceState() local
254 super.onRestoreInstanceState(savedState.getSuperState()); in onRestoreInstanceState()
255 mIsMultiSelectMode = savedState.isMultiSelectMode; in onRestoreInstanceState()
257 for (int i = 0; i < savedState.selectedImages.length; i++) { in onRestoreInstanceState()
258 final MessagePartData selectedImage = savedState.selectedImages[i]; in onRestoreInstanceState()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamConfirmDialogActivity.java43 protected void onCreate(Bundle savedState) { in onCreate() argument
47 super.onCreate(savedState); in onCreate()
51 protected void createUiFromIntent(@Nullable Bundle savedState, Intent intent) { in createUiFromIntent() argument
55 mSavedState = savedState; in createUiFromIntent()
64 super.createUiFromIntent(savedState, intent); in createUiFromIntent()
/packages/apps/Settings/src/com/android/settings/
DSettings.java129 protected void onCreate(Bundle savedState) { in onCreate() argument
130 super.onCreate(savedState); in onCreate()
187 protected void onCreate(Bundle savedState) { in onCreate() argument
188 super.onCreate(savedState); in onCreate()
224 protected void onCreate(Bundle savedState) { in onCreate() argument
225 super.onCreate(savedState); in onCreate()
253 protected void onCreate(Bundle savedState) { in onCreate() argument
256 super.onCreate(savedState); in onCreate()
266 protected void onCreate(Bundle savedState) { in onCreate() argument
269 super.onCreate(savedState); in onCreate()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/binder/
DColorPickerBinder.kt117 override fun saveInstanceState(savedState: Bundle) { in <lambda>()
121 savedState.putParcelable( in <lambda>()
128 override fun restoreInstanceState(savedState: Bundle) { in <lambda>()
129 layoutManagerSavedState = savedState.getParcelable(LAYOUT_MANAGER_SAVED_STATE) in <lambda>()
135 fun saveInstanceState(savedState: Bundle) in <lambda>()
136 fun restoreInstanceState(savedState: Bundle) in <lambda>()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DSpinnerPreference.java89 SavedState savedState = (SavedState) state; in onRestoreInstanceState() local
90 super.onRestoreInstanceState(savedState.getSuperState()); in onRestoreInstanceState()
91 mSavedSpinnerPosition = savedState.getSpinnerPosition(); in onRestoreInstanceState()
96 savedState.getSpinnerPosition(), in onRestoreInstanceState()
99 Log.d(TAG, "onRestoreInstanceState() spinnerPosition=" + savedState.getSpinnerPosition()); in onRestoreInstanceState()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationInput.java71 public void saveState(final Bundle savedState) { in saveState() argument
72 savedState.putBoolean(mConversationInputBase.getInputStateKey(this), mShowing); in saveState()
75 public void restoreState(final Bundle savedState) { in restoreState() argument
77 if (savedState.getBoolean(mConversationInputBase.getInputStateKey(this))) { in restoreState()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java476 public void onCreate(Bundle savedState) { in onCreate() argument
477 if (savedState != null) { in onCreate()
480 mAction = savedState.getString(KEY_ACTION); in onCreate()
481 mLookupUri = savedState.getParcelable(KEY_URI); in onCreate()
484 super.onCreate(savedState); in onCreate()
489 if (savedState == null) { in onCreate()
496 mViewIdGenerator = savedState.getParcelable(KEY_VIEW_ID_GENERATOR); in onCreate()
498 mAutoAddToDefaultGroup = savedState.getBoolean(KEY_AUTO_ADD_TO_DEFAULT_GROUP); in onCreate()
499 mDisableDeleteMenuOption = savedState.getBoolean(KEY_DISABLE_DELETE_MENU_OPTION); in onCreate()
500 mNewLocalProfile = savedState.getBoolean(KEY_NEW_LOCAL_PROFILE); in onCreate()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DSpinnerPreferenceTest.java70 SpinnerPreference.SavedState savedState = in onSaveInstanceState_returnExpectedResult() local
72 assertThat(savedState.getSpinnerPosition()).isEqualTo(1); in onSaveInstanceState_returnExpectedResult()
77 SpinnerPreference.SavedState savedState = in onRestoreInstanceState_returnExpectedResult() local
79 mSpinnerPreference.onRestoreInstanceState(savedState); in onRestoreInstanceState_returnExpectedResult()
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
DSearchMenuItemController.kt39 savedState: Bundle?
50 if (savedState != null) {
51 mSearchMode = savedState.getBoolean(KEY_SEARCH_MODE, false)
52 queryText = savedState.getString(KEY_SEARCH_QUERY, "")
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseActivity.java60 protected void onCreate(Bundle savedState) { in onCreate() argument
82 super.onCreate(savedState); in onCreate()
90 mIsKeyguardLocked = savedState == null in onCreate()
92 : savedState.getBoolean(STATE_IS_KEYGUARD_LOCKED, false); in onCreate()
109 mRestoring = savedState != null; in onCreate()
/packages/services/Car/service/src/com/android/car/telemetry/scriptexecutorinterface/
DIScriptExecutor.aidl42 in @nullable PersistableBundle savedState, in invokeScript() argument
61 in @nullable PersistableBundle savedState, in invokeScriptForLargeInput() argument
79 in @nullable PersistableBundle savedState, in invokeScriptForBundleList() argument
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorActivity.java314 public void onCreate(Bundle savedState) { in onCreate() argument
315 super.onCreate(savedState); in onCreate()
363 if (savedState != null) { in onCreate()
365 mPhotoMode = savedState.getInt(STATE_PHOTO_MODE); in onCreate()
366 mActionBarTitleResId = savedState.getInt(STATE_ACTION_BAR_TITLE); in onCreate()
367 mPhotoUri = Uri.parse(savedState.getString(STATE_PHOTO_URI)); in onCreate()
DContactSelectionActivity.java107 protected void onCreate(Bundle savedState) { in onCreate() argument
108 super.onCreate(savedState); in onCreate()
114 if (savedState != null) { in onCreate()
115 mActionCode = savedState.getInt(KEY_ACTION_CODE); in onCreate()
116 mIsSearchMode = savedState.getBoolean(KEY_SEARCH_MODE); in onCreate()
134 prepareSearchViewAndActionBar(savedState); in onCreate()
146 private void prepareSearchViewAndActionBar(Bundle savedState) { in prepareSearchViewAndActionBar() argument
157 mActionBarAdapter.initialize(savedState, mRequest); in prepareSearchViewAndActionBar()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingActivity.java25 protected void onCreate(Bundle savedState) { in onCreate() argument
26 super.onCreate(savedState); in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java66 protected void onCreate(Bundle savedState) { in onCreate() argument
67 super.onCreate(savedState); in onCreate()
76 if (savedState == null) { in onCreate()
85 mPickedItem = savedState.getParcelable(KEY_PICKED_ITEM); in onCreate()

123