Lines Matching refs:mState

123     private State mState;
164 mState = icicle.getParcelable(EXTRA_STATE);
185 if (mState.action == ACTION_MANAGE) {
193 if (mState.action == ACTION_CREATE) {
197 } else if (mState.action == ACTION_OPEN_TREE) {
201 if (mState.action == ACTION_GET_CONTENT) {
206 } else if (mState.action == ACTION_OPEN || mState.action == ACTION_CREATE
207 || mState.action == ACTION_OPEN_TREE) {
211 if (!mState.restored) {
212 if (mState.action == ACTION_MANAGE) {
224 mState = new State();
229 mState.action = ACTION_OPEN;
231 mState.action = ACTION_CREATE;
233 mState.action = ACTION_GET_CONTENT;
235 mState.action = ACTION_OPEN_TREE;
237 mState.action = ACTION_MANAGE;
240 if (mState.action == ACTION_OPEN || mState.action == ACTION_GET_CONTENT) {
241 mState.allowMultiple = intent.getBooleanExtra(
245 if (mState.action == ACTION_MANAGE) {
246 mState.acceptMimes = new String[] { "*/*" };
247 mState.allowMultiple = true;
249 mState.acceptMimes = intent.getStringArrayExtra(Intent.EXTRA_MIME_TYPES);
251 mState.acceptMimes = new String[] { intent.getType() };
254 mState.localOnly = intent.getBooleanExtra(Intent.EXTRA_LOCAL_ONLY, false);
255 mState.forceAdvanced = intent.getBooleanExtra(DocumentsContract.EXTRA_SHOW_ADVANCED, false);
256 mState.showAdvanced = mState.forceAdvanced
259 if (mState.action == ACTION_MANAGE) {
260 mState.showSize = true;
262 mState.showSize = LocalPreferences.getDisplayFileSize(this);
282 mState.restored = true;
308 DurableUtils.readFromArray(rawStack, mState.stack);
319 final Collection<RootInfo> matchingRoots = mRoots.getMatchingRootsBlocking(mState);
321 mState.stack.updateRoot(matchingRoots);
322 mState.stack.updateDocuments(getContentResolver());
325 mState.stack.reset();
336 mState.restored = true;
346 if (MimePredicate.mimeMatches(MimePredicate.VISUAL_MIMES, mState.acceptMimes)) {
349 if (mExternal && mState.action == ACTION_GET_CONTENT) {
412 if (mState.action == ACTION_OPEN || mState.action == ACTION_GET_CONTENT
413 || mState.action == ACTION_OPEN_TREE) {
415 } else if (mState.action == ACTION_CREATE) {
421 final boolean showRootIcon = mShowAsDialog || (mState.action == ACTION_MANAGE);
443 if (mState.stack.size() <= 1) {
483 mState.currentSearch = query;
511 mState.currentSearch = null;
526 mState.currentSearch = null;
554 grid.setVisible(mState.derivedMode != MODE_GRID);
555 list.setVisible(mState.derivedMode != MODE_LIST);
557 if (mState.currentSearch != null) {
565 mSearchView.setQuery(mState.currentSearch, false);
576 sortSize.setVisible(mState.showSize);
579 boolean fileSizeVisible = mState.action != ACTION_MANAGE;
580 if (mState.action == ACTION_CREATE || mState.action == ACTION_OPEN_TREE) {
591 if (mState.action == ACTION_CREATE) {
609 advanced.setVisible(mState.action != ACTION_MANAGE);
658 mState.showAdvanced = mState.forceAdvanced | display;
665 mState.showSize = display;
681 mState.userSortOrder = sortOrder;
689 mState.userMode = mode;
702 if (!mState.stackTouched) {
707 final int size = mState.stack.size();
709 mState.stack.pop();
722 state.putParcelable(EXTRA_STATE, mState);
733 return mState.stack.size();
738 return mState.stack.get(mState.stack.size() - position - 1);
798 while (mState.stack.size() > position + 1) {
799 mState.stackTouched = true;
800 mState.stack.pop();
812 if (mState.stack.root != null) {
813 return mState.stack.root;
820 return mState.stack.peek();
838 return mState;
850 if (mState.action == ACTION_CREATE || mState.action == ACTION_OPEN_TREE) {
857 MimePredicate.VISUAL_MIMES, mState.acceptMimes);
858 mState.userMode = visualMimes ? MODE_GRID : MODE_LIST;
859 mState.derivedMode = mState.userMode;
862 if (mState.currentSearch != null) {
864 DirectoryFragment.showSearch(fm, root, mState.currentSearch, anim);
872 if (mState.action == ACTION_CREATE) {
879 if (mState.action == ACTION_OPEN_TREE) {
882 final CharSequence displayName = (mState.stack.size() <= 1) ? root.title
903 mState.stack = stack;
904 mState.stackTouched = true;
914 mState.stack.root = root;
915 mState.stack.clear();
916 mState.stackTouched = true;
951 mState.stack.push(result);
952 mState.stackTouched = true;
991 mState.stack.push(doc);
992 mState.stackTouched = true;
994 } else if (mState.action == ACTION_OPEN || mState.action == ACTION_GET_CONTENT) {
997 } else if (mState.action == ACTION_CREATE) {
1000 } else if (mState.action == ACTION_MANAGE) {
1024 if (mState.action == ACTION_OPEN || mState.action == ACTION_GET_CONTENT) {
1052 final byte[] rawStack = DurableUtils.writeToArrayOrNull(mState.stack);
1053 if (mState.action == ACTION_CREATE || mState.action == ACTION_OPEN_TREE) {
1056 values.put(RecentColumns.KEY, mState.stack.buildKey());
1077 null, mState.acceptMimes, new ClipData.Item(uris[0]));
1084 if (mState.action == ACTION_GET_CONTENT) {
1086 } else if (mState.action == ACTION_OPEN_TREE) {
1289 Log.d(TAG, " * " + mState.stack.root);
1290 for (DocumentInfo doc : mState.stack) {