Home
last modified time | relevance | path

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

123

/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()
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()
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()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java50 protected void onSaveInstanceState(Bundle savedState) { in onSaveInstanceState() argument
51 savedState.putCharSequence(SAVE_KEY_TITLE, getTitle()); in onSaveInstanceState()
52 super.onSaveInstanceState(savedState); in onSaveInstanceState()
56 protected void onRestoreInstanceState(Bundle savedState) { in onRestoreInstanceState() argument
57 super.onRestoreInstanceState(savedState); in onRestoreInstanceState()
58 setTitle(savedState.getCharSequence(SAVE_KEY_TITLE)); in onRestoreInstanceState()
97 protected void onCreate(Bundle savedState) { in onCreate() argument
98 super.onCreate(savedState); in onCreate()
/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DAccessibilitySettingsForSetupWizardActivity.java37 protected void onSaveInstanceState(Bundle savedState) { in onSaveInstanceState() argument
38 savedState.putCharSequence(SAVE_KEY_TITLE, getTitle()); in onSaveInstanceState()
39 super.onSaveInstanceState(savedState); in onSaveInstanceState()
43 protected void onRestoreInstanceState(Bundle savedState) { in onRestoreInstanceState() argument
44 super.onRestoreInstanceState(savedState); in onRestoreInstanceState()
45 setTitle(savedState.getCharSequence(SAVE_KEY_TITLE)); in onRestoreInstanceState()
/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/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java202 final Bundle savedState = new Bundle(); in getIntentWithAccessPoint() local
203 savedState.putString("key_ssid", ssid); in getIntentWithAccessPoint()
204 return new Intent().putExtra(KEY_ACCESS_POINT_STATE, savedState); in getIntentWithAccessPoint()
216 final Bundle savedState = new Bundle(); in createAccessPoint() local
217 savedState.putString("key_ssid", ssid); in createAccessPoint()
218 savedState.putParcelable("key_networkinfo", info); in createAccessPoint()
219 return new AccessPoint(mContext, savedState); in createAccessPoint()
/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()
DConversationInputManager.java125 final Bundle savedState) { in ConversationInputManager() argument
144 if (savedState != null) { in ConversationInputManager()
146 mInputs[i].restoreState(savedState); in ConversationInputManager()
158 public void onSaveInputState(final Bundle savedState) { in onSaveInputState() argument
160 mInputs[i].saveState(savedState); in onSaveInputState()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseActivity.java70 protected void onCreate(Bundle savedState) { in onCreate() argument
91 super.onCreate(savedState); in onCreate()
102 mIsKeyguardLocked = savedState == null in onCreate()
104 : savedState.getBoolean(STATE_IS_KEYGUARD_LOCKED, false); in onCreate()
121 mRestoring = savedState != null; in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DConfirmDeviceCredentialBaseActivity.java70 protected void onCreate(Bundle savedState) { in onCreate() argument
91 super.onCreate(savedState); in onCreate()
103 mIsKeyguardLocked = savedState == null in onCreate()
105 : savedState.getBoolean(STATE_IS_KEYGUARD_LOCKED, false); in onCreate()
122 mRestoring = savedState != null; in onCreate()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorActivity.java314 public void onCreate(Bundle savedState) { in onCreate() argument
315 super.onCreate(savedState); in onCreate()
361 if (savedState != null) { in onCreate()
363 mPhotoMode = savedState.getInt(STATE_PHOTO_MODE); in onCreate()
364 mActionBarTitleResId = savedState.getInt(STATE_ACTION_BAR_TITLE); in onCreate()
365 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()
112 if (savedState != null) { in onCreate()
113 mActionCode = savedState.getInt(KEY_ACTION_CODE); in onCreate()
114 mIsSearchMode = savedState.getBoolean(KEY_SEARCH_MODE); in onCreate()
132 prepareSearchViewAndActionBar(savedState); in onCreate()
144 private void prepareSearchViewAndActionBar(Bundle savedState) { in prepareSearchViewAndActionBar() argument
155 mActionBarAdapter.initialize(savedState, mRequest); in prepareSearchViewAndActionBar()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DGesturePreferenceControllerTest.java92 final Bundle savedState = new Bundle(); in onResume_shouldStartVideoPreferenceWithVideoPauseState() local
99 savedState.putBoolean(GesturePreferenceController.KEY_VIDEO_PAUSED, true); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
100 mController.onCreate(savedState); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
105 savedState.putBoolean(GesturePreferenceController.KEY_VIDEO_PAUSED, false); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
106 mController.onCreate(savedState); in onResume_shouldStartVideoPreferenceWithVideoPauseState()
/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, "")
DSearchMenuItemController.java52 Bundle savedState) { in SearchMenuItemController() argument
57 if (savedState != null) { in SearchMenuItemController()
58 mSearchMode = savedState.getBoolean(KEY_SEARCH_MODE, false); in SearchMenuItemController()
59 mQuery = savedState.getString(KEY_SEARCH_QUERY, ""); in SearchMenuItemController()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java103 public void onCreate(Bundle savedState) { in onCreate() argument
104 super.onCreate(savedState); in onCreate()
106 if (savedState != null) { in onCreate()
107 mExpandedAlarmId = savedState.getLong(KEY_EXPANDED_ID, Alarm.INVALID_ID); in onCreate()
112 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) { in onCreateView() argument
135 mAlarmTimeClickHandler = new AlarmTimeClickHandler(this, savedState, mAlarmUpdateHandler, in onCreateView()
DAlarmClockFragment.kt81 override fun onCreate(savedState: Bundle?) { in onCreate()
82 super.onCreate(savedState) in onCreate()
84 savedState?.let { in onCreate()
92 savedState: Bundle? in onCreateView()
114 mAlarmTimeClickHandler = AlarmTimeClickHandler(this, savedState, mAlarmUpdateHandler, this) in onCreateView()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchViewManager.java97 @Nullable Bundle savedState) { in SearchViewManager() argument
98 this(listener, commandProcessor, new SearchChipViewManager(chipGroup), savedState, in SearchViewManager()
107 @Nullable Bundle savedState, in SearchViewManager() argument
121 if (savedState != null) { in SearchViewManager()
122 mCurrentSearch = savedState.getString(Shared.EXTRA_QUERY); in SearchViewManager()
123 mChipViewManager.restoreCheckedChipItems(savedState); in SearchViewManager()
/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