Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 97) sorted by relevance

1234

/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java366 (@Nullable DocumentStack stack) -> openFolderInSearchResult(stack, doc)); in openContainerDocument()
532 && mState.stack.size() > 1) { in isManagedDownload()
569 private void openFolderInSearchResult(@Nullable DocumentStack stack, DocumentInfo doc) { in openFolderInSearchResult() argument
570 if (stack == null) { in openFolderInSearchResult()
571 mState.stack.popToRootDocument(); in openFolderInSearchResult()
578 mState.stack.push(doc); in openFolderInSearchResult()
580 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult()
582 Log.w(TAG, "Provider returns " + stack.getRoot() + " rather than expected " in openFolderInSearchResult()
583 + mState.stack.getRoot()); in openFolderInSearchResult()
586 final DocumentInfo top = stack.peek(); in openFolderInSearchResult()
[all …]
DBaseActivity.java287 if (!mState.stack.isInitialized()) { in onCreate()
300 if (mState.stack.size() <= 1) { in onCreate()
373 mSearchManager.showMenu(mState.stack); in onPrepareOptionsMenu()
462 if (root.equals(getCurrentRoot()) && mState.stack.size() <= 1) { in onRootPicked()
476 mState.stack.changeRoot(root); in onRootPicked()
603 mState.derivedMode = LocalPreferences.getViewMode(this, mState.stack.getRoot(), MODE_GRID); in refreshCurrentRootAndDirectory()
621 String newTitle = mState.stack.getTitle(); in refreshCurrentRootAndDirectory()
718 if (!mState.stack.isInitialized()) { in updateHeaderTitle()
723 final RootInfo root = mState.stack.getRoot(); in updateHeaderTitle()
758 boolean isGlobalSearch = mSearchManager.isSearching() || mState.stack.size() > 1; in getHeaderRecentTitle()
[all …]
DHorizontalBreadcrumb.java186 isFirst ? mEnv.getCurrentRoot().title : mState.stack.get(position).displayName); in onBindViewHolder()
199 if (mState.stack.isRecents()) { in getItemCount()
204 && mState.stack.size() == 0 in getItemCount()
205 && mState.stack.getRoot() != null in getItemCount()
206 && mState.stack.getRoot().supportsCrossProfile()) { in getItemCount()
209 return mState.stack.size(); in getItemCount()
DNavigationViewManager.java128 while (mState.stack.size() > position + 1) { in onNavigationItemSelected()
130 mState.stack.pop(); in onNavigationItemSelected()
164 String title = mState.stack.size() <= 1 in update()
165 ? mEnv.getCurrentRoot().title : mState.stack.getTitle(); in update()
208 return mState.stack.isRecents() && !mEnv.isSearchExpanded() && mShowSearchBar; in shouldShowSearchBar()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DTraceHelperForTest.java50 LinkedList<TraceInfo> stack = mStack.get(); in beginSection() local
52 stack.add(info); in beginSection()
58 updateBinderTracking(stack); in beginSection()
66 LinkedList<TraceInfo> stack = mStack.get(); in endSection() local
67 if (stack.size() == 0) { in endSection()
71 stack.remove(info); in endSection()
76 updateBinderTracking(stack); in endSection()
83 LinkedList<TraceInfo> stack = mStack.get(); in beginFlagsOverride() local
85 stack.add(info); in beginFlagsOverride()
86 updateBinderTracking(stack); in beginFlagsOverride()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java139 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
140 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
141 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
158 assertEquals(2, mEnv.state.stack.size()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
159 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
160 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
186 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
187 assertEquals(TestEnv.FILE_IN_ARCHIVE, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
188 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
189 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
[all …]
DProfileTabsTest.java69 mState.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in setUp()
70 mState.stack.push(TestEnv.FOLDER_0); in setUp()
121 mState.stack.push(TestEnv.FOLDER_1); in testUpdateView_twoUsers_subFolder_shouldHide()
132 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_twoUsers_recents_subFolder_shouldHide()
134 mState.stack.push((TestEnv.FOLDER_0)); in testUpdateView_twoUsers_recents_subFolder_shouldHide()
145 mState.stack.changeRoot(TestProvidersAccess.PICKLES); in testUpdateView_twoUsers_thirdParty_shouldHide()
146 mState.stack.push((TestEnv.FOLDER_0)); in testUpdateView_twoUsers_thirdParty_shouldHide()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java147 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
148 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded()
156 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
194 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
201 final DocumentStack stack = in testInitLocation_RestoresLastAccessedStack() local
203 mLastAccessed.setLastAccessed(mActivity, stack); in testInitLocation_RestoresLastAccessedStack()
208 assertEquals(stack, mEnv.state.stack); in testInitLocation_RestoresLastAccessedStack()
255 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testOpenContainerDocument()
265 assertEquals(1, mEnv.state.stack.size()); in testOpenContainerDocument_sameDocumentInfo()
271 mEnv.state.stack.changeRoot(TestProvidersAccess.HOME); in testIncreasePickCountRecordCalled()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentStack.java197 public void reset(DocumentStack stack) { in reset() argument
199 Log.d(TAG, "Resetting the whole darn stack to: " + stack); in reset()
202 mList = stack.mList; in reset()
203 mRoot = stack.mRoot; in reset()
249 DocumentStack stack = new DocumentStack(); in fromLastAccessedCursor() local
252 DurableUtils.readFromArray(rawStack, stack); in fromLastAccessedCursor()
254 stack.updateRoot(matchingRoots); in fromLastAccessedCursor()
255 stack.updateDocuments(context); in fromLastAccessedCursor()
257 return stack; in fromLastAccessedCursor()
338 final DocumentStack stack = new DocumentStack();
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DDocumentStackTest.java141 DocumentStack stack = new DocumentStack(mStack); in testCopyConstructor() local
143 assertEquals(2, stack.size()); in testCopyConstructor()
144 assertEquals(DIR_1, stack.get(0)); in testCopyConstructor()
145 assertEquals(DIR_2, stack.get(1)); in testCopyConstructor()
146 assertEquals(ROOT_1, stack.getRoot()); in testCopyConstructor()
155 DocumentStack stack = new DocumentStack(mStack); in testCopyConstructor_MakesDeepCopy() local
159 assertEquals(2, stack.size()); in testCopyConstructor_MakesDeepCopy()
160 assertEquals(DIR_1, stack.get(0)); in testCopyConstructor_MakesDeepCopy()
161 assertEquals(DIR_2, stack.get(1)); in testCopyConstructor_MakesDeepCopy()
162 assertEquals(ROOT_1, stack.getRoot()); in testCopyConstructor_MakesDeepCopy()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeMessage.java550 private final Stack<Object> stack = new Stack<Object>(); field in MimeMessage.MimeMessageBuilder
555 if (!c.isInstance(stack.peek())) { in expect()
561 + stack.peek().getClass().getName() in expect()
568 if (stack.isEmpty()) { in startMessage()
569 stack.push(MimeMessage.this); in startMessage()
574 ((Part) stack.peek()).setBody(m); in startMessage()
575 stack.push(m); in startMessage()
585 stack.pop(); in endMessage()
598 ((Part) stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
613 final Part e = (Part) stack.peek(); in startMultipart()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java149 openInNewWindow(new DocumentStack(mState.stack, doc)); in openSelectedInNewWindow()
169 DocumentStack stack = new DocumentStack(root, doc); in pasteIntoFolder() local
170 mClipper.copyFromClipboard(doc, stack, mDialogs::showFileOperationStatus); in pasteIntoFolder()
258 mClipper.clipDocumentsForCut(mModel::getItemUri, selection, mState.stack.peek()); in cutToClipboard()
308 mState.stack.peek()); in showDeleteDialog()
341 .withDestination(mState.stack) in deleteSelectedDocuments()
417 if (mState.stack.isInitialized()) { in initLocation()
475 DocumentStack stack = intent.getParcelableExtra(Shared.EXTRA_STACK); in launchToStackLocation() local
476 if (stack == null || stack.getRoot() == null) { in launchToStackLocation()
480 mState.stack.reset(stack); in launchToStackLocation()
[all …]
DConfig.java30 public boolean managedModeEnabled(DocumentStack stack) { in managedModeEnabled() argument
32 final RootInfo root = stack.getRoot(); in managedModeEnabled()
44 && stack.size() == 1; in managedModeEnabled()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java133 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testSpringOpenDirectory()
184 mHandler.deleteSelectedDocuments(docs, mEnv.state.stack.peek()); in testDeleteSelectedDocuments()
383 assertEquals(TestEnv.FILE_ARCHIVE, mEnv.state.stack.peek()); in testDocumentPicked_OpensArchives()
393 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.peek()); in testDocumentPicked_OpensDirectories()
418 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
419 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded()
427 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
497 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
558 assertTrue(mEnv.state.stack.isEmpty()); in testRefresh_emptyStack()
657 Preconditions.checkState(mEnv.state.stack.size() == 1); in testShowInspector_OverridesRootDocumentName()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java124 ContentResolver resolver, String packageName, DocumentStack stack) { in setLastAccessed() argument
127 if (stack.getRoot() != null && !UserId.CURRENT_USER.equals(stack.getRoot().userId)) { in setLastAccessed()
132 final byte[] rawStack = DurableUtils.writeToArrayOrNull(stack); in setLastAccessed()
250 final DocumentStack stack = new DocumentStack(); in purgeByAuthority() local
258 DurableUtils.readFromArray(rawStack, stack); in purgeByAuthority()
260 if (stack.getRoot() != null && predicate.test(stack.getRoot().authority)) { in purgeByAuthority()
DActionHandler.java110 if (mState.stack.isInitialized()) { in initLocation()
188 private void onLastAccessedStackLoaded(@Nullable DocumentStack stack) { in onLastAccessedStackLoaded() argument
189 if (stack == null) { in onLastAccessedStackLoaded()
192 mState.stack.reset(stack); in onLastAccessedStackLoaded()
369 mState.stack, in saveDocument()
397 mState.stack, in finishPicking()
422 intent, mSearchMgr.isSearching(), Metrics.sanitizeRoot(mState.stack.getRoot())); in onPickFinished()
439 intent.putExtra(Shared.EXTRA_STACK, (Parcelable) mState.stack); in onPickFinished()
452 final DocumentInfo cwd = mState.stack.peek(); in getExecutorForCurrentDirectory()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java83 Stack<Position> stack = new Stack<>(); in readUnigramsAndBigramsBinaryInner() local
87 stack.push(initPos); in readUnigramsAndBigramsBinaryInner()
89 while (!stack.empty()) { in readUnigramsAndBigramsBinaryInner()
90 Position p = stack.peek(); in readUnigramsAndBigramsBinaryInner()
106 stack.pop(); in readUnigramsAndBigramsBinaryInner()
124 stack.pop(); in readUnigramsAndBigramsBinaryInner()
132 stack.push(childrenPos); in readUnigramsAndBigramsBinaryInner()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java140 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_matchedState_showRow()
154 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_showSelectedUserItems()
178 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_showSelectedUserItems_otherUser()
202 mState.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testUpdateView_notInRecent_hideRow()
213 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_notHandledAction_hideRow()
226 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_noItems_hideRow()
241 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_crossProfileSearch_hideRow()
262 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_notCrossProfileSearch_showRow()
281 mState.stack.changeRoot(TestProvidersAccess.RECENTS); in testUpdateView_noItemsOnSelectedUser_hideRow()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DDocumentStackAsserts.java18 public static void assertEqualsTo(DocumentStack stack, RootInfo root, List<DocumentInfo> docs) { in assertEqualsTo() argument
19 assertEquals(root, stack.getRoot()); in assertEqualsTo()
20 assertEquals(docs.size(), stack.size()); in assertEqualsTo()
22 assertEquals(docs.get(i), stack.get(i)); in assertEqualsTo()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfileData.java74 public void addSample(String[] stack) { in addSample() argument
75 int[] ids = new int[stack.length]; in addSample()
76 for (int i = 0; i < stack.length; i++) { in addSample()
77 ids[i] = nameToId(stack[i]); in addSample()
81 for (int i = stack.length - 1; i >= 0; i--) { in addSample()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchViewManager.java266 public void update(DocumentStack stack) { in update() argument
292 showMenu(stack); in update()
295 public void showMenu(@Nullable DocumentStack stack) { in showMenu() argument
296 final DocumentInfo cwd = stack != null ? stack.peek() : null; in showMenu()
306 final RootInfo root = stack != null ? stack.getRoot() : null; in showMenu()
323 mMenuItem.setVisible(supportsSearch && (!stack.isRecents() || !mShowSearchBar)); in showMenu()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragHost.java109 mDragAndDropManager.updateState(v, mState.stack.getRoot(), mDestinationLookup.lookup(v)); in onDragEntered()
126 return (doc != null) && mDragAndDropManager.canSpringOpen(mState.stack.getRoot(), doc); in canSpringOpen()
144 DocumentStack dstStack = dst.equals(mState.stack.peek()) in handleDropEvent()
145 ? mState.stack in handleDropEvent()
146 : new DocumentStack(mState.stack, dst); in handleDropEvent()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java433 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testSupportsMimeTypesSearch_showChips() local
435 mSearchViewManager.showMenu(stack); in testSupportsMimeTypesSearch_showChips()
448 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testNotSupportsMimeTypesSearch_notShowChips() local
450 mSearchViewManager.showMenu(stack); in testNotSupportsMimeTypesSearch_notShowChips()
460 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testSupportsSearch_showMenu() local
462 mSearchViewManager.showMenu(stack); in testSupportsSearch_showMenu()
472 DocumentStack stack = new DocumentStack(root, new DocumentInfo()); in testNotSupportsSearch_notShowMenuAndChips() local
475 mSearchViewManager.showMenu(stack); in testNotSupportsSearch_notShowMenuAndChips()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp372 int stack[DM]; in rcssort() local
415 sj = stack[--m]; in rcssort()
416 si = stack[--m]; in rcssort()
423 stack[m++] = si; in rcssort()
424 stack[m++] = sL; in rcssort()
434 sj = stack[--m]; in rcssort()
435 si = stack[--m]; in rcssort()
442 stack[m++] = sk; in rcssort()
443 stack[m++] = sj; in rcssort()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java1135 private LengthRecordNode stack = null; field in PduComposer.BufferStack
1157 temp.next = stack; in newbuf()
1158 stack = temp; in newbuf()
1173 mMessage = stack.currentMessage; in pop()
1174 mPosition = stack.currentPosition; in pop()
1176 toCopy = stack; in pop()
1179 stack = stack.next; in pop()

1234