Home
last modified time | relevance | path

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

1234567891011

/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java369 (@Nullable DocumentStack stack) -> openFolderInSearchResult(stack, doc)); in openContainerDocument()
536 && mState.stack.size() > 1) { in isManagedDownload()
573 private void openFolderInSearchResult(@Nullable DocumentStack stack, DocumentInfo doc) { in openFolderInSearchResult() argument
574 if (stack == null) { in openFolderInSearchResult()
575 mState.stack.popToRootDocument(); in openFolderInSearchResult()
582 mState.stack.push(doc); in openFolderInSearchResult()
584 if (!Objects.equals(mState.stack.getRoot(), stack.getRoot())) { in openFolderInSearchResult()
586 Log.w(TAG, "Provider returns " + stack.getRoot() + " rather than expected " in openFolderInSearchResult()
587 + mState.stack.getRoot()); in openFolderInSearchResult()
590 final DocumentInfo top = stack.peek(); in openFolderInSearchResult()
[all …]
DBaseActivity.java127 protected void setInitialStack(DocumentStack stack) { in setInitialStack() argument
134 mInitialStack.reset(stack); in setInitialStack()
339 if (!mState.stack.isInitialized()) { in onCreate()
352 if (mState.stack.size() <= 1) { in onCreate()
447 mSearchManager.showMenu(mState.stack); in onPrepareOptionsMenu()
538 if (root.equals(getCurrentRoot()) && mState.stack.size() <= 1) { in onRootPicked()
552 mState.stack.changeRoot(root); in onRootPicked()
666 mState.derivedMode = LocalPreferences.getViewMode(this, mState.stack.getRoot(), MODE_GRID); in refreshCurrentRootAndDirectory()
684 String newTitle = mState.stack.getTitle(); in refreshCurrentRootAndDirectory()
800 if (!mState.stack.isInitialized()) { in updateHeaderTitle()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java169 mEnv.state.stack.changeRoot(TestProvidersAccess.DOWNLOADS); in testInitLocation_RestoresIfStackIsLoaded()
170 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded()
178 mEnv.state.stack.changeRoot(TestProvidersAccess.HAMMY); in testInitLocation_LoadsRootDocIfStackOnlyHasRoot()
219 DocumentStackAsserts.assertEqualsTo(mEnv.state.stack, TestProvidersAccess.HOME, in testInitLocation_LaunchToDocuments()
226 final DocumentStack stack = in testInitLocation_RestoresLastAccessedStack() local
228 mLastAccessed.setLastAccessed(mActivity, stack); in testInitLocation_RestoresLastAccessedStack()
233 assertEquals(stack, mEnv.state.stack); in testInitLocation_RestoresLastAccessedStack()
283 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testOpenContainerDocument()
293 assertEquals(1, mEnv.state.stack.size()); in testOpenContainerDocument_sameDocumentInfo()
299 mEnv.state.stack.changeRoot(TestProvidersAccess.HOME); in testIncreasePickCountRecordCalled()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java164 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
165 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
166 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
183 assertEquals(2, mEnv.state.stack.size()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
184 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
185 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport()
211 assertEquals(mEnv.docs.nextPath.getPath().size(), mEnv.state.stack.size()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
212 assertEquals(TestEnv.FILE_IN_ARCHIVE, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
213 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
214 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_ClickArchiveInSearch_opensArchiveInArchiveProvider()
[all …]
/packages/modules/Bluetooth/system/stack/mmc/codec_server/
DBUILD.gn20 "//bt/system/stack/mmc:target_defaults",
26 "//bt/system/stack",
27 "//bt/system/stack/include",
31 "//bt/system/stack/mmc/proto:mmc_config_proto",
43 "//bt/system/stack/mmc:target_defaults",
49 "//bt/system/stack",
50 "//bt/system/stack/include",
57 "//bt/system/stack/mmc/proto:mmc_config_proto",
/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/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/modules/Bluetooth/system/main/
DAndroid.bp37 "packages/modules/Bluetooth/system/stack/a2dp",
38 "packages/modules/Bluetooth/system/stack/avdt",
39 "packages/modules/Bluetooth/system/stack/btm",
40 "packages/modules/Bluetooth/system/stack/include",
41 "packages/modules/Bluetooth/system/stack/l2cap",
84 "packages/modules/Bluetooth/system/stack/a2dp",
85 "packages/modules/Bluetooth/system/stack/avdt",
86 "packages/modules/Bluetooth/system/stack/btm",
87 "packages/modules/Bluetooth/system/stack/include",
88 "packages/modules/Bluetooth/system/stack/l2cap",
[all …]
DBUILD.gn59 "//bt/system/stack/include",
60 "//bt/system/stack/l2cap",
61 "//bt/system/stack/a2dp",
62 "//bt/system/stack/btm",
63 "//bt/system/stack/avdt",
91 "//bt/system/stack",
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DAudioFocusStackTest.java76 AudioFocusStack stack = in getActiveFocusList() local
79 List<AudioFocusInfo> activeFoci = stack.getActiveFocusList(); in getActiveFocusList()
87 AudioFocusStack stack = in getActiveFocusList_withEmptyInfo() local
90 List<AudioFocusInfo> activeFoci = stack.getActiveFocusList(); in getActiveFocusList_withEmptyInfo()
97 AudioFocusStack stack = in getInactiveFocusList() local
100 List<AudioFocusInfo> inactiveFoci = stack.getInactiveFocusList(); in getInactiveFocusList()
108 AudioFocusStack stack = in getInactiveFocusList_withEmptyInfo() local
111 List<AudioFocusInfo> inactiveFoci = stack.getInactiveFocusList(); in getInactiveFocusList_withEmptyInfo()
/packages/services/Car/tools/telemetry/lua-interpreter/
Djson.lua37 local function encode_table(val, stack)
39 stack = stack or {}
42 if stack[val] then error("circular reference") end
44 stack[val] = true
60 table.insert(res, encode(v, stack))
62 stack[val] = nil
71 table.insert(res, encode(k, stack) .. ":" .. encode(v, stack))
73 stack[val] = nil
102 encode = function(val, stack)
106 return f(val, 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/modules/Bluetooth/system/stack/mmc/
DBUILD.gn27 "//bt/system/stack/mmc/codec_client:libcodec_client",
28 "//bt/system/stack/mmc/proto:mmc_config_proto",
43 "//bt/system/stack",
44 "//bt/system/stack/include",
94 "//bt/system/stack/mmc/proto:mmc_service_proto",
95 "//bt/system/stack/mmc/codec_server:libcodec_server_hfp_lc3",
98 deps += [ "//bt/system/stack/mmc/codec_server:libcodec_server_a2dp_aac" ]
139 "//bt/system/stack/mmc/proto:mmc_config_proto",
168 "//bt/system/stack/mmc/proto:mmc_config_proto",
/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/stack/
DBUILD.gn37 "//bt/system/stack",
38 "//bt/system/stack/include",
44 "//bt/system/stack/mmc",
54 source_set("stack") {
225 "//bt/system/stack/mmc",
277 "//bt/system/stack/a2dp",
278 "//bt/system/stack/btm",
279 "//bt/system/stack/include",
294 ":stack",
330 "//bt/system/stack/a2dp",
[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/modules/Bluetooth/system/gd/l2cap/fuzz/
DAndroid.bp23 "packages/modules/Bluetooth/system/stack/a2dp",
24 "packages/modules/Bluetooth/system/stack/avdt",
25 "packages/modules/Bluetooth/system/stack/btm",
26 "packages/modules/Bluetooth/system/stack/include",
27 "packages/modules/Bluetooth/system/stack/l2cap",
/packages/modules/Bluetooth/system/test/suite/
DAndroid.bp27 "packages/modules/Bluetooth/system/stack/a2dp",
28 "packages/modules/Bluetooth/system/stack/avdt",
29 "packages/modules/Bluetooth/system/stack/btm",
30 "packages/modules/Bluetooth/system/stack/include",
31 "packages/modules/Bluetooth/system/stack/l2cap",
84 "libbt-stack",
85 "libbt-stack-core",
/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/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java125 ContentResolver resolver, String packageName, DocumentStack stack) { in setLastAccessed() argument
128 if (stack.getRoot() != null && !UserId.CURRENT_USER.equals(stack.getRoot().userId)) { in setLastAccessed()
133 final byte[] rawStack = DurableUtils.writeToArrayOrNull(stack); in setLastAccessed()
254 final DocumentStack stack = new DocumentStack(); in purgeByAuthority() local
262 DurableUtils.readFromArray(rawStack, stack); in purgeByAuthority()
264 if (stack.getRoot() != null && predicate.test(stack.getRoot().authority)) { in purgeByAuthority()
/packages/modules/Uwb/docs/
DFiRa_CRs_Android.csv72 CR410,NA,CR adds clarifying text; no Android stack changes required
74 CR414,NA,CR adds clarifying text; no Android stack changes required
76 CR422,NA,CR specifies interpretation of existing field; no Android stack change required
80 CR426,NA,CR clarifies UWBS behavior; no Android stack changes required
110 CR470,NA,CR specifies UWBS behavior; no Android stack changes required.
131 CR503,NA,CR specifies UWBS behavior; no Android stack changes required.
145 CR1016,NA,CR specifies UWBS behavior; no Android stack change required
150 CR1026,NA,CR specifies UWBS behavior; no Android stack change required
151 CR1027,NA,CR specifies UWBS behavior; no Android stack change required
163 … the DL-TDoA Ranging Measurement field values in case of an error; no Android stack change required
[all …]
/packages/modules/Bluetooth/system/stack/fuzzers/
DREADME.md4 Bluetooth stack implements very complex wireless communication protocols and
7 Bluetooth stack.
9 Due to the complex architecture of the Android Bluetooth stack, fuzzing the
10 entire stack with pure software is very difficult and impractical. Instead,
11 multiple fuzzers are created to target different areas of the BT stack. Fuzzers
12 in this directory focuses on the components under `system/stack`.
27 ## Bluetooth stack overview
36 applications use these APIs to configure the stack, and issue requests.
42 5. It's common for a Bluetooth stack component to use state machines. The state
94 most of the stack components. With the mocks and design patterns it
/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/Bluetooth/system/stack/mmc/codec_client/
DBUILD.gn19 "//bt/system/stack/mmc:target_defaults",
28 "//bt/system/stack/mmc/proto:mmc_service_proto",
29 "//bt/system/stack/mmc/proto:mmc_config_proto",
30 "//bt/system/stack/mmc/metrics:libmmc_metrics",
/packages/modules/Bluetooth/system/gd/
DREADME.md7 Guidelines for developing the Gabeldorsche (GD) stack
15 tests are used in ensuring Gabeldorsche stack's stability, correctness and free
18 If you are verifying something is glued or hooked up correctly inside the stack,
25 so it applies to any stack.

1234567891011