Home
last modified time | relevance | path

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

12345678

/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/src/com/android/documentsui/
DAbstractActionHandler.java368 (@Nullable DocumentStack stack) -> openFolderInSearchResult(stack, doc)); in openContainerDocument()
534 && mState.stack.size() > 1) { in isManagedDownload()
571 private void openFolderInSearchResult(@Nullable DocumentStack stack, DocumentInfo doc) { in openFolderInSearchResult() argument
572 if (stack == null) { in openFolderInSearchResult()
573 mState.stack.popToRootDocument(); in openFolderInSearchResult()
580 mState.stack.push(doc); in openFolderInSearchResult()
582 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult()
584 Log.w(TAG, "Provider returns " + stack.getRoot() + " rather than expected " in openFolderInSearchResult()
585 + mState.stack.getRoot()); in openFolderInSearchResult()
588 final DocumentInfo top = stack.peek(); in openFolderInSearchResult()
[all …]
DBaseActivity.java293 if (!mState.stack.isInitialized()) { in onCreate()
306 if (mState.stack.size() <= 1) { in onCreate()
379 mSearchManager.showMenu(mState.stack); in onPrepareOptionsMenu()
468 if (root.equals(getCurrentRoot()) && mState.stack.size() <= 1) { in onRootPicked()
482 mState.stack.changeRoot(root); in onRootPicked()
609 mState.derivedMode = LocalPreferences.getViewMode(this, mState.stack.getRoot(), MODE_GRID); in refreshCurrentRootAndDirectory()
627 String newTitle = mState.stack.getTitle(); in refreshCurrentRootAndDirectory()
738 if (!mState.stack.isInitialized()) { in updateHeaderTitle()
743 final RootInfo root = mState.stack.getRoot(); in updateHeaderTitle()
778 boolean isGlobalSearch = mSearchManager.isSearching() || mState.stack.size() > 1; in getHeaderRecentTitle()
[all …]
/packages/modules/Bluetooth/system/gd/rust/shim/src/
Dstack.rs42 let stack = bluetooth_rs::Stack::new(local_rt).await; in stack_create() localVariable
43 stack.use_default_snoop().await; in stack_create()
45 Box::new(Stack(stack)) in stack_create()
53 pub fn stack_stop(stack: &mut Stack) { in stack_stop()
56 stack.stop_blocking(); in stack_stop()
59 pub fn get_hci(stack: &mut Stack) -> Box<Hci> { in get_hci()
63 stack.get_runtime(), in get_hci()
64 stack.get_blocking::<bluetooth_rs::hci::facade::HciFacadeService>(), in get_hci()
68 pub fn get_controller(stack: &mut Stack) -> Box<Controller> { in get_controller()
71 Box::new(Controller(stack.get_blocking::<Arc<ControllerExports>>())) in get_controller()
/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 …]
/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/modules/Bluetooth/system/gd/rust/facade/src/
Dlib.rs73 stack: Stack, field
77 async fn start(stack: Stack, req: StartStackRequest, grpc_port: u16) -> Self { in start()
81 services.push(stack.get_grpc::<HciHalFacadeService>().await); in start()
84 services.push(stack.get_grpc::<HciFacadeService>().await); in start()
85 services.push(stack.get_grpc::<ControllerFacadeService>().await); in start()
99 Self { server, stack } in start()
104 self.stack.stop().await; in stop()
125 let stack = Stack::new(local_rt.clone()).await; in create() localVariable
126 stack.set_rootcanal_port(rootcanal_port).await; in create()
127 stack.configure_snoop(snoop_path.clone()).await; in create()
[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/modules/Bluetooth/system/main/
DAndroid.bp37 "packages/modules/Bluetooth/system/stack/include",
38 "packages/modules/Bluetooth/system/stack/l2cap",
39 "packages/modules/Bluetooth/system/stack/a2dp",
40 "packages/modules/Bluetooth/system/stack/btm",
41 "packages/modules/Bluetooth/system/stack/avdt",
78 "packages/modules/Bluetooth/system/stack/include",
79 "packages/modules/Bluetooth/system/stack/l2cap",
80 "packages/modules/Bluetooth/system/stack/a2dp",
81 "packages/modules/Bluetooth/system/stack/btm",
82 "packages/modules/Bluetooth/system/stack/avdt",
[all …]
DBUILD.gn65 "//bt/system/stack/include",
66 "//bt/system/stack/l2cap",
67 "//bt/system/stack/a2dp",
68 "//bt/system/stack/btm",
69 "//bt/system/stack/avdt",
96 "//bt/system/stack",
/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 …]
/packages/modules/Bluetooth/system/btif/
DAndroid.bp25 "packages/modules/Bluetooth/system/stack/a2dp",
26 "packages/modules/Bluetooth/system/stack/avdt",
27 "packages/modules/Bluetooth/system/stack/btm",
28 "packages/modules/Bluetooth/system/stack/include",
29 "packages/modules/Bluetooth/system/stack/l2cap",
233 "libbt-stack",
417 "packages/modules/Bluetooth/system/stack/a2dp",
418 "packages/modules/Bluetooth/system/stack/avdt",
419 "packages/modules/Bluetooth/system/stack/btm",
420 "packages/modules/Bluetooth/system/stack/include",
[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.java115 if (mState.stack.isInitialized()) { in initLocation()
201 private void onLastAccessedStackLoaded(@Nullable DocumentStack stack) { in onLastAccessedStackLoaded() argument
202 if (stack == null) { in onLastAccessedStackLoaded()
205 mState.stack.reset(stack); in onLastAccessedStackLoaded()
382 mState.stack, in saveDocument()
410 mState.stack, in finishPicking()
435 intent, mSearchMgr.isSearching(), Metrics.sanitizeRoot(mState.stack.getRoot())); in onPickFinished()
452 intent.putExtra(Shared.EXTRA_STACK, (Parcelable) mState.stack); in onPickFinished()
465 final DocumentInfo cwd = mState.stack.peek(); in getExecutorForCurrentDirectory()
/packages/modules/Bluetooth/system/doc/
Ddirectory_layout.md21 * main - *Main stack entrypoint* - Provides HAL for stack access.
22 * osi - *Operating System Interface* - General resource support for stack.
24 * stack - **Deprecated** - The Stack - Push to proper spot in *./profiles*
29 * vnd - *Vendor* - Vendor specific APIs - *to be integrated into rest of stack ?*.
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/
DAndroid.bp20 "packages/modules/Bluetooth/system/stack/include",
21 "packages/modules/Bluetooth/system/stack/l2cap",
22 "packages/modules/Bluetooth/system/stack/a2dp",
23 "packages/modules/Bluetooth/system/stack/btm",
24 "packages/modules/Bluetooth/system/stack/avdt",
/packages/modules/Bluetooth/system/stack/
DBUILD.gn50 "//bt/system/stack/include",
64 source_set("stack") {
278 "//bt/system/stack/a2dp",
279 "//bt/system/stack/btm",
280 "//bt/system/stack/include",
295 ":stack",
347 "//bt/system/stack/a2dp",
348 "//bt/system/stack/l2cap",
349 "//bt/system/stack/btm",
350 "//bt/system/stack/include",
[all …]
/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/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java135 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testSpringOpenDirectory()
186 mHandler.deleteSelectedDocuments(docs, mEnv.state.stack.peek()); in testDeleteSelectedDocuments()
385 assertEquals(TestEnv.FILE_ARCHIVE, mEnv.state.stack.peek()); in testDocumentPicked_OpensArchives()
395 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.peek()); in testDocumentPicked_OpensDirectories()
420 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
421 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded()
429 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
499 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
563 assertTrue(mEnv.state.stack.isEmpty()); in testRefresh_emptyStack()
662 Preconditions.checkState(mEnv.state.stack.size() == 1); in testShowInspector_OverridesRootDocumentName()
[all …]
/packages/modules/StatsD/statsd/src/matchers/
DCombinationAtomMatchingTracker.cpp42 const unordered_map<int64_t, int>& matcherMap, vector<bool>& stack) { in init() argument
48 stack[mIndex] = true; in init()
73 if (stack[childIndex]) { in init()
79 matcherMap, stack)) { in init()
92 stack[mIndex] = false; in init()
/packages/modules/Bluetooth/system/test/suite/
DAndroid.bp29 "packages/modules/Bluetooth/system/stack/a2dp",
30 "packages/modules/Bluetooth/system/stack/avdt",
31 "packages/modules/Bluetooth/system/stack/btm",
32 "packages/modules/Bluetooth/system/stack/include",
33 "packages/modules/Bluetooth/system/stack/l2cap",
86 "libbt-stack",
/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/modules/StatsD/statsd/src/condition/
DCombinationConditionTracker.cpp41 vector<bool>& stack, in init() argument
54 conditionIdIndexMap, stack, conditionCache); in init()
63 stack[mIndex] = true; in init()
87 if (stack[childIndex]) { in init()
93 conditionIdIndexMap, stack, conditionCache); in init()
119 stack[mIndex] = false; in init()

12345678