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/editor/
DContactEditorBaseFragment.java470 public void onCreate(Bundle savedState) { in onCreate() argument
471 if (savedState != null) { in onCreate()
474 mAction = savedState.getString(KEY_ACTION); in onCreate()
475 mLookupUri = savedState.getParcelable(KEY_URI); in onCreate()
478 super.onCreate(savedState); in onCreate()
480 if (savedState == null) { in onCreate()
483 mViewIdGenerator = savedState.getParcelable(KEY_VIEW_ID_GENERATOR); in onCreate()
485 mAutoAddToDefaultGroup = savedState.getBoolean(KEY_AUTO_ADD_TO_DEFAULT_GROUP); in onCreate()
486 mDisableDeleteMenuOption = savedState.getBoolean(KEY_DISABLE_DELETE_MENU_OPTION); in onCreate()
487 mNewLocalProfile = savedState.getBoolean(KEY_NEW_LOCAL_PROFILE); in onCreate()
[all …]
DCompactContactEditorFragment.java146 public void onCreate(Bundle savedState) { in onCreate() argument
147 super.onCreate(savedState); in onCreate()
149 if (savedState != null) { in onCreate()
150 mPhotoUri = savedState.getParcelable(KEY_PHOTO_URI); in onCreate()
151 mPhotoRawContactId = savedState.getLong(KEY_PHOTO_RAW_CONTACT_ID); in onCreate()
156 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) { in onCreateView() argument
DContactEditorFragment.java92 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) { in onCreateView() argument
103 public void onCreate(Bundle savedState) { in onCreate() argument
104 super.onCreate(savedState); in onCreate()
106 if (savedState != null) { in onCreate()
108 savedState.getSerializable(KEY_EXPANDED_EDITORS); in onCreate()
109 mRawContactIdRequestingPhoto = savedState.getLong( in onCreate()
111 mCurrentPhotoUri = savedState.getParcelable(KEY_CURRENT_PHOTO_URI); in onCreate()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactEntryListFragment.java260 public void onCreate(Bundle savedState) { in onCreate() argument
261 super.onCreate(savedState); in onCreate()
262 restoreSavedState(savedState); in onCreate()
267 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
268 if (savedState == null) { in restoreSavedState()
272 mSectionHeaderDisplayEnabled = savedState.getBoolean(KEY_SECTION_HEADER_DISPLAY_ENABLED); in restoreSavedState()
273 mPhotoLoaderEnabled = savedState.getBoolean(KEY_PHOTO_LOADER_ENABLED); in restoreSavedState()
274 mQuickContactEnabled = savedState.getBoolean(KEY_QUICK_CONTACT_ENABLED); in restoreSavedState()
275 mAdjustSelectionBoundsEnabled = savedState.getBoolean(KEY_ADJUST_SELECTION_BOUNDS_ENABLED); in restoreSavedState()
276 mIncludeProfile = savedState.getBoolean(KEY_INCLUDE_PROFILE); in restoreSavedState()
[all …]
DPhoneNumberPickerFragment.java151 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
152 super.restoreSavedState(savedState); in restoreSavedState()
154 if (savedState == null) { in restoreSavedState()
158 mFilter = savedState.getParcelable(KEY_FILTER); in restoreSavedState()
159 mShortcutAction = savedState.getString(KEY_SHORTCUT_ACTION); in restoreSavedState()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationListFragment.java309 public void onActivityCreated(Bundle savedState) { in onActivityCreated() argument
310 super.onActivityCreated(savedState); in onActivityCreated()
358 view.bindFragment(manager, savedState); in onActivityCreated()
421 if (savedState != null) { in onActivityCreated()
425 choice = savedState.getInt(CHOICE_MODE_KEY, choice); in onActivityCreated()
426 if (savedState.containsKey(LIST_STATE_KEY)) { in onActivityCreated()
458 public void onCreate(Bundle savedState) { in onCreate() argument
459 super.onCreate(savedState); in onCreate()
507 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) { in onCreateView() argument
539 if (savedState != null && savedState.containsKey(LIST_STATE_KEY)) { in onCreateView()
[all …]
DAbstractActivityController.java1298 public void onCreate(Bundle savedState) { in onCreate() argument
1343 savedState); in onCreate()
1350 if (savedState != null) { in onCreate()
1351 if (savedState.containsKey(SAVED_ACCOUNT)) { in onCreate()
1352 setAccount((Account) savedState.getParcelable(SAVED_ACCOUNT)); in onCreate()
1354 if (savedState.containsKey(SAVED_FOLDER)) { in onCreate()
1355 final Folder folder = savedState.getParcelable(SAVED_FOLDER); in onCreate()
1356 final String query = savedState.getString(SAVED_QUERY, null); in onCreate()
1359 if (savedState.containsKey(SAVED_ACTION)) { in onCreate()
1360 mDialogAction = savedState.getInt(SAVED_ACTION); in onCreate()
[all …]
DFolderListFragment.java301 public void onActivityCreated(Bundle savedState) { in onActivityCreated() argument
302 super.onActivityCreated(savedState); in onActivityCreated()
466 Bundle savedState) { in onCreateView() argument
474 if (savedState != null && savedState.containsKey(BUNDLE_LIST_STATE)) { in onCreateView()
475 mListView.onRestoreInstanceState(savedState.getParcelable(BUNDLE_LIST_STATE)); in onCreateView()
477 if (savedState != null && savedState.containsKey(BUNDLE_SELECTED_FOLDER)) { in onCreateView()
479 new FolderUri(Uri.parse(savedState.getString(BUNDLE_SELECTED_FOLDER))); in onCreateView()
480 mSelectedDrawerItemCategory = savedState.getInt(BUNDLE_SELECTED_ITEM_TYPE); in onCreateView()
481 mSelectedFolderType = savedState.getInt(BUNDLE_SELECTED_TYPE); in onCreateView()
486 if (savedState != null) { in onCreateView()
[all …]
DAbstractConversationViewFragment.java233 public void onCreate(Bundle savedState) { in onCreate() argument
234 super.onCreate(savedState); in onCreate()
243 if (savedState != null) { in onCreate()
244 mViewState = savedState.getParcelable(BUNDLE_VIEW_STATE); in onCreate()
245 mUserVisible = savedState.getBoolean(BUNDLE_USER_VISIBLE); in onCreate()
246 mIsDetached = savedState.getBoolean(BUNDLE_DETACHED, false); in onCreate()
248 savedState.getBoolean(BUNDLE_KEY_HAS_CONVERSATION_BEEN_TRANSFORMED, false); in onCreate()
250 savedState.getBoolean(BUNDLE_KEY_HAS_CONVERSATION_BEEN_REVERTED, false); in onCreate()
DTwoPaneController.java208 public void onCreate(Bundle savedState) { in onCreate() argument
224 if (savedState != null) { in onCreate()
225 mSavedMiscellaneousView = savedState.getBoolean(SAVED_MISCELLANEOUS_VIEW, false); in onCreate()
227 savedState.getInt(SAVED_MISCELLANEOUS_VIEW_TRANSACTION_ID, -1); in onCreate()
235 super.onCreate(savedState); in onCreate()
238 if (savedState != null) { in onCreate()
239 mCurrentConversationJustPeeking = savedState.getBoolean(SAVED_PEEK_MODE, in onCreate()
241 mSavedPeekingConversation = savedState.getParcelable(SAVED_PEEKING_CONVERSATION); in onCreate()
/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/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/Contacts/src/com/android/contacts/list/
DContactPickerFragment.java92 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
93 super.restoreSavedState(savedState); in restoreSavedState()
95 if (savedState == null) { in restoreSavedState()
99 mEditMode = savedState.getBoolean(KEY_EDIT_MODE); in restoreSavedState()
100 mCreateContactEnabled = savedState.getBoolean(KEY_CREATE_CONTACT_ENABLED); in restoreSavedState()
101 mShortcutRequested = savedState.getBoolean(KEY_SHORTCUT_REQUESTED); in restoreSavedState()
DContactBrowseListFragment.java227 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
228 super.restoreSavedState(savedState); in restoreSavedState()
230 if (savedState == null) { in restoreSavedState()
234 mFilter = savedState.getParcelable(KEY_FILTER); in restoreSavedState()
235 mSelectedContactUri = savedState.getParcelable(KEY_SELECTED_URI); in restoreSavedState()
236 mSelectionVerified = savedState.getBoolean(KEY_SELECTION_VERIFIED); in restoreSavedState()
237 mLastSelectedPosition = savedState.getInt(KEY_LAST_SELECTED_POSITION); in restoreSavedState()
DJoinContactListFragment.java180 public void restoreSavedState(Bundle savedState) { in restoreSavedState() argument
181 super.restoreSavedState(savedState); in restoreSavedState()
182 if (savedState != null) { in restoreSavedState()
183 mTargetContactId = savedState.getLong(KEY_TARGET_CONTACT_ID); in restoreSavedState()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainActivity.java85 @Override public void onCreate(Bundle savedState) { in onCreate() argument
86 super.onCreate(savedState); in onCreate()
87 if (savedState == null) { in onCreate()
90 mState = (State) savedState.getSerializable(KEY_STATE); in onCreate()
480 @Override protected void onSaveInstanceState(Bundle savedState) { in onSaveInstanceState() argument
481 super.onSaveInstanceState(savedState); in onSaveInstanceState()
483 savedState.putSerializable(KEY_STATE, mState); in onSaveInstanceState()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java184 public void onCreate(Bundle savedState) { in onCreate() argument
185 super.onCreate(savedState); in onCreate()
191 Bundle savedState) { in onCreateView() argument
199 if (savedState != null) { in onCreateView()
200 expandedId = savedState.getLong(KEY_EXPANDED_ID); in onCreateView()
201 repeatCheckedIds = savedState.getLongArray(KEY_REPEAT_CHECKED_IDS); in onCreateView()
202 mRingtoneTitleCache = savedState.getBundle(KEY_RINGTONE_TITLE_CACHE); in onCreateView()
203 mDeletedAlarm = savedState.getParcelable(KEY_DELETED_ALARM); in onCreateView()
204 mUndoShowing = savedState.getBoolean(KEY_UNDO_SHOWING); in onCreateView()
205 selectedAlarms = savedState.getLongArray(KEY_SELECTED_ALARMS); in onCreateView()
[all …]
/packages/apps/Settings/src/com/android/settings/
DAppListPreference.java158 SavedState savedState = (SavedState) state; in onRestoreInstanceState() local
159 mShowItemNone = savedState.showItemNone; in onRestoreInstanceState()
160 setPackageNames(savedState.entryValues, savedState.value); in onRestoreInstanceState()
161 super.onRestoreInstanceState(savedState.superState); in onRestoreInstanceState()
DSettingsActivity.java540 protected void onCreate(Bundle savedState) { in onCreate() argument
541 super.onCreate(savedState); in onCreate()
597 if (savedState != null) { in onCreate()
600 mSearchMenuItemExpanded = savedState.getBoolean(SAVE_KEY_SEARCH_MENU_EXPANDED); in onCreate()
601 mSearchQuery = savedState.getString(SAVE_KEY_SEARCH_QUERY); in onCreate()
606 savedState.getParcelableArrayList(SAVE_KEY_CATEGORIES); in onCreate()
613 mDisplayHomeAsUpEnabled = savedState.getBoolean(SAVE_KEY_SHOW_HOME_AS_UP); in onCreate()
614 mDisplaySearch = savedState.getBoolean(SAVE_KEY_SHOW_SEARCH); in onCreate()
615 mHomeActivitiesCount = savedState.getInt(SAVE_KEY_HOME_ACTIVITIES_COUNT, in onCreate()
/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/Contacts/src/com/android/contacts/activities/
DActionBarAdapter.java195 public void initialize(Bundle savedState, ContactsRequest request) { in initialize() argument
196 if (savedState == null) { in initialize()
202 mSearchMode = savedState.getBoolean(EXTRA_KEY_SEARCH_MODE); in initialize()
203 mSelectionMode = savedState.getBoolean(EXTRA_KEY_SELECTED_MODE); in initialize()
204 mQueryString = savedState.getString(EXTRA_KEY_QUERY); in initialize()
207 mCurrentTab = savedState.getInt(EXTRA_KEY_SELECTED_TAB); in initialize()
DContactSelectionActivity.java108 protected void onCreate(Bundle savedState) { in onCreate() argument
109 super.onCreate(savedState); in onCreate()
115 if (savedState != null) { in onCreate()
116 mActionCode = savedState.getInt(KEY_ACTION_CODE); in onCreate()
117 mIsSearchMode = savedState.getBoolean(KEY_SEARCH_MODE); 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()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java960 private void restoreState(Bundle savedState) { in restoreState() argument
961 if (savedState == null) { in restoreState()
965 State state = intToState(savedState.getInt(RUNTIME_STATE, State.WORKSPACE.ordinal())); in restoreState()
970 int currentScreen = savedState.getInt(RUNTIME_STATE_CURRENT_SCREEN, -1); in restoreState()
975 … final long pendingAddContainer = savedState.getLong(RUNTIME_STATE_PENDING_ADD_CONTAINER, -1); in restoreState()
976 final int pendingAddScreen = savedState.getInt(RUNTIME_STATE_PENDING_ADD_SCREEN, -1); in restoreState()
981 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState()
982 mPendingAddInfo.cellY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_Y); in restoreState()
983 mPendingAddInfo.spanX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_SPAN_X); in restoreState()
984 mPendingAddInfo.spanY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_SPAN_Y); in restoreState()
[all …]

123