Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 25 of 58) sorted by relevance

123

/packages/providers/MediaProvider/errorprone/src/com/android/providers/media/
DMimeTypeChecker.java31 import com.sun.source.tree.ExpressionTree;
32 import com.sun.source.tree.MethodInvocationTree;
33 import com.sun.source.tree.SwitchTree;
57 public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) { in matchMethodInvocation() argument
58 if (STRING_EQUALS.matches(tree, state) || STRING_STARTS_WITH.matches(tree, state) in matchMethodInvocation()
59 || OBJECTS_EQUALS.matches(tree, state)) { in matchMethodInvocation()
60 if (MIME_WITHOUT_CASE_FOLDING.matches(tree.getMethodSelect(), state) in matchMethodInvocation()
61 || tree.getArguments().stream().anyMatch(MIME_WITHOUT_CASE_FOLDING)) { in matchMethodInvocation()
62 return buildDescription(tree).setMessage(MESSAGE).build(); in matchMethodInvocation()
65 if (STRING_REGION_MATCHES.matches(tree, state)) { in matchMethodInvocation()
[all …]
DLocaleRootChecker.java31 import com.sun.source.tree.ExpressionTree;
32 import com.sun.source.tree.MethodInvocationTree;
59 public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) { in matchMethodInvocation() argument
60 if (MISSING_LOCALE_ROOT.matches(tree, state)) { in matchMethodInvocation()
61 return buildDescription(tree) in matchMethodInvocation()
/packages/modules/Virtualization/guest/authfs/src/fsverity/
Dbuilder.rs208 let mut tree = MerkleLeaves::new(); in merkle_tree_non_sequential() localVariable
212 tree.update_hash(1, &hash, CHUNK_SIZE * 2); in merkle_tree_non_sequential()
213 tree.update_hash(3, &hash, CHUNK_SIZE * 4); in merkle_tree_non_sequential()
214 tree.update_hash(0, &hash, CHUNK_SIZE); in merkle_tree_non_sequential()
215 tree.update_hash(2, &hash, CHUNK_SIZE * 3); in merkle_tree_non_sequential()
219 tree.calculate_fsverity_digest()? in merkle_tree_non_sequential()
226 let mut tree = MerkleLeaves::new(); in merkle_tree_grow_leaves() localVariable
227 tree.update_hash(0, &[42; HASH_SIZE], CHUNK_SIZE); // fake hash of a CHUNK_SIZE block in merkle_tree_grow_leaves()
230 tree.resize(4096 * 3 - 100); in merkle_tree_grow_leaves()
232 assert!(tree.is_index_valid(0)); in merkle_tree_grow_leaves()
[all …]
/packages/modules/Virtualization/libs/apkmanifest/native/
Dapkmanifest.cpp75 Result<void> findManifestElement(ResXMLTree& tree) { in findManifestElement() argument
77 ResXMLParser::event_code_t event = tree.next(); in findManifestElement()
85 return Error() << "Failed to parse XML: " << statusToString(tree.getError()); in findManifestElement()
93 if (tree.getElementNamespaceID() >= 0) { in findManifestElement()
97 const char16_t* nameChars = tree.getElementName(&nameLength); in findManifestElement()
114 Result<std::string> getStringOnlyAttribute(const ResXMLTree& tree, size_t index) { in getStringOnlyAttribute() argument
116 const char16_t* value = tree.getAttributeStringValue(index, &len); in getStringOnlyAttribute()
124 Result<uint32_t> getU32Attribute(const ResXMLTree& tree, size_t index) { in getU32Attribute() argument
125 auto type = tree.getAttributeDataType(index); in getU32Attribute()
131 return tree.getAttributeData(index); in getU32Attribute()
[all …]
/packages/providers/MediaProvider/jni/
Dnode.cpp114 void node::DeleteTree(node* tree) { in DeleteTree() argument
115 std::lock_guard<std::recursive_mutex> guard(*tree->lock_); in DeleteTree()
117 if (tree) { in DeleteTree()
124 tree->Acquire(); in DeleteTree()
129 std::vector<node*> children(tree->children_.begin(), tree->children_.end()); in DeleteTree()
134 CHECK(tree->children_.empty()); in DeleteTree()
135 delete tree; in DeleteTree()
/packages/modules/Virtualization/libs/apkverify/src/
Dhashtree.rs23 pub tree: Vec<u8>, field
39 let tree = generate_hash_tree(input, input_size, &salt, block_size, algorithm)?; in from() localVariable
43 let root_hash = if tree.is_empty() { in from()
48 let first_block = &tree[0..block_size]; in from()
51 Ok(HashTree { tree, root_hash }) in from()
213 assert_eq!(golden_hash_tree.as_slice(), ht.tree.as_slice()); in compare_with_golden_output()
/packages/modules/adb/client/
Dfastdeploy.cpp156 android::ResXMLTree tree; in get_package_name_from_apk() local
157 android::status_t setto_status = tree.setTo(manifest_data.data(), manifest_len, true); in get_package_name_from_apk()
162 while ((code = tree.next()) != android::ResXMLParser::BAD_DOCUMENT && in get_package_name_from_apk()
167 const char16_t* element_name = tree.getElementName(&element_name_length); in get_package_name_from_apk()
173 for (size_t i = 0; i < tree.getAttributeCount(); i++) { in get_package_name_from_apk()
176 tree.getAttributeName(i, &attribute_name_length); in get_package_name_from_apk()
185 tree.getAttributeStringValue(i, &attribute_value_length); in get_package_name_from_apk()
/packages/modules/Virtualization/docs/debug/
DREADME.md48 ### Dump device tree
50 The VMs device tree can be dumped on creation by adding the `--dump_device_tree`
51 argument and passing a path where the device tree gets dumped to, as follows:
54 adb shell /apex/com.android.virt/bin/vm run-microdroid --dump-device-tree PATH
59 device tree to `/data/misc/virtualizationservice/$CID/device_tree.dtb` where
87 device tree overlay like below to the Pixel-specific partition `dpm`.
120 device tree from crosvm.
121 1. OS payload (e.g. Microdroid) [reads][read_debug_policy] the device tree and enables specific
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DPermissionsRequestFragment.kt49 private val tree: TreeNode by lazy { in <lambda>() constant in com.android.healthconnect.testapps.toolbox.ui.PermissionsRequestFragment
152 tree.forEach { in <lambda>()
155 tree.forEach { setCheckBoxChecked(it, false) } in <lambda>()
159 updateCounters(tree) in <lambda>()
197 tree.forEach { in <lambda>()
232 updateCounters(tree) in <lambda>()
287 setButtonsEnabled(atLeastOneIsChecked(tree)) in <lambda>()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/utils/
Dtext.cc99 ScopedFPDFStructTree tree(FPDF_StructTree_GetForPage(page)); in GetAltTextFromPage() local
100 int num_children = FPDF_StructTree_CountChildren(tree.get()); in GetAltTextFromPage()
102 GetAltTextFromElementTree(FPDF_StructTree_GetChildAtIndex(tree.get(), i), 0, result); in GetAltTextFromPage()
/packages/modules/adb/docs/dev/
Dincremental-install.md60 With v2 signing, an apps is signed by building a merkle tree, keeping only the
62 the app, the merkle tree is rebuilt, and the top hash is compared against the
67 This problem is solved with V4 signing which does not discard the merkle tree
71 Upon installation the whole merkel tree from V4 is given to `pm` which forwards
73 of each block when they are received from the `IS` via the merkle tree.
/packages/providers/MediaProvider/errorprone/src/com/google/errorprone/matchers/
DFieldMatchers.java21 import com.sun.source.tree.ExpressionTree;
22 import com.sun.source.tree.ImportTree;
/packages/modules/Virtualization/docs/
Ddevice_assignment.md12 VM DTBO is a device tree overlay which describes all assignable devices
35 DTBO is compiled from device tree source (DTS) with `dtc` tool. [DTBO syntax]
52 * Overlayable node is a node that would be applied to the base device tree
70 * See: [Device tree binding for IOMMUs][IOMMU]
95 Here's a simple example device tree source with four assignable devices nodes.
233 incoming device tree with the VM DTBO.
Ddevice_trees.md4 Virtualization Framework (AVF) composes and validates the device tree (DT)
13 have adopted the [device tree format][dtspec] as the way to describe the
25 the untrusted device tree. If any anomaly is detected, pvmfw aborts the boot of
59 the guest by providing device tree overlays (DTBO) to crosvm. These overlays get
181 temporary data structures and pruning a built-in device tree (called the
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactFilterCursor.java250 ContactTernarySearchTree tree = new ContactTernarySearchTree(); in buildContactSearchTree() local
259 tree.put(query, position); in buildContactSearchTree()
268 tree.put(substring, position); in buildContactSearchTree()
271 return tree; in buildContactSearchTree()
/packages/modules/Virtualization/guest/pvmfw/
DREADME.md92 device tree node where both address and size have been properly aligned to the
216 - entry 1 may point to a [DTBO] to be applied to the pVM device tree. See
232 may be included in the device tree passed to a protected VM. pvmfw validates
233 that if any of these properties is included in the VM's device tree, the
237 are added under the "/avf/reference" node in the host Android device tree.
241 reference DT, nor does it apply it to the VM's device tree, it just ensures
242 that if matching properties are present in the VM device tree they contain the
268 is passed as a reserved-memory region through the device tree with the
328 `/reserved-memory` device tree node marked as
396 - x0 = physical address of device tree blob (dtb) in system RAM.
[all …]
/packages/modules/Wifi/service/tests/wifitests/
DREADME.md25 in this directory. It will rebuild parts of your tree with coverage enabled and then run the tests,
29 the following from the root out your source tree to generate results in the wifi_coverage directory
/packages/modules/Bluetooth/tools/lint/
DREADME.md48 - [PSI source files](https://github.com/JetBrains/intellij-community/tree/master/java/java-psi-api/…
50 - [IntelliJ plugin for viewing PSI tree of files](https://plugins.jetbrains.com/plugin/227-psiviewe…
/packages/modules/Virtualization/guest/kernel/
DREADME.md4 Microdroid. The kernel is built from the same source tree as Generic Kernel
54 Copy the built kernel image to the Android source tree directly, and build the virt APEX.
/packages/modules/Virtualization/libs/apkverify/tests/data/
Dcreate.sh11 --out-merkle-tree input.$size.hash \
/packages/modules/Virtualization/tests/libs/libdts/
DREADME.md1 Device tree source (DTS) decompiler on Android device.
/packages/apps/Car/DebuggingRestrictionController/soong/
DREADME.md1 The files in this directory are for building the app in the Android source tree.
/packages/modules/Virtualization/guest/trusty/test_vm_os/
DREADME.md7 - Trusty user-space tests for service TAs (DT tree for example)
/packages/modules/Virtualization/build/microdroid/
Dfstab.microdroid5 …e,ro,errors=panic wait,first_stage_mount,avb_hashtree_digest=/proc/device-tree/avf/vendor_hashtree…
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/
DREADME.md9 [comment]: <> This file structure print out has been generated with the tree command.

123