Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 126) sorted by relevance

123456

/system/extras/perf2cfg/tests/
Dtest_parse.py17 from perf2cfg import parse
23 got = parse.build_flags([])
27 got = parse.build_flags(['catch_block', 'critical'])
31 got = parse.build_name('void hcf()')
36 parse.parse_address(':)')
41 got = parse.parse_address('0x0000001c: d503201f nop')
46 parse.parse_flags('name "void hcf()"')
51 got = parse.parse_flags('flags')
55 got = parse.parse_flags('flags "catch_block" "critical"')
60 parse.parse_name('flags "catch_block" "critical"')
[all …]
/system/libcppbor/include/cppbor/
Dcppbor_parse.h37 ParseResult parse(const uint8_t* begin, const uint8_t* end);
68 inline ParseResult parse(const std::vector<uint8_t>& encoding) { in parse() function
69 return parse(encoding.data(), encoding.data() + encoding.size()); in parse()
83 inline ParseResult parse(const uint8_t* begin, size_t size) { in parse() function
84 return parse(begin, begin + size); in parse()
118 inline ParseResult parse(const Bstr* bstr) { in parse() function
121 return parse(bstr->value()); in parse()
130 void parse(const uint8_t* begin, const uint8_t* end, ParseClient* parseClient);
143 inline void parse(const std::vector<uint8_t>& encoding, ParseClient* parseClient) { in parse() function
144 return parse(encoding.data(), encoding.data() + encoding.size(), parseClient); in parse()
/system/libvintf/include/vintf/
Dparse_string.h64 bool parse(const std::string &s, HalFormat *hf);
65 bool parse(const std::string &s, Transport *tr);
66 bool parse(const std::string &s, Arch *ar);
67 bool parse(const std::string &s, KernelConfigType *il);
68 bool parse(const std::string &s, KernelConfigKey *key);
69 bool parse(const std::string &s, Tristate *tr);
70 bool parse(const std::string &s, SchemaType *ver);
71 bool parse(const std::string& s, XmlSchemaFormat* ver);
72 bool parse(const std::string& s, Level* l);
73 bool parse(const std::string &s, KernelSepolicyVersion *ksv);
[all …]
DTransportArch.h51 friend bool parse(const std::string &s, TransportArch *ta);
/system/tools/mkbootimg/rust/
Dbootimg.rs101 pub fn parse(buffer: B) -> BootResult<Self> { in parse() method
146 pub fn parse(buffer: B) -> BootResult<Self> { in parse() method
180 assert_eq!(BootImage::parse(&buffer[..]), Err(ImageError::BufferTooSmall)); in buffer_too_small_for_version()
197 assert_eq!(BootImage::parse(&buffer[..]), Err(ImageError::BufferTooSmall)); in buffer_too_small_valid_version()
207 assert_eq!(BootImage::parse(&buffer[..]), Err(ImageError::BadMagic)); in bad_magic()
221 assert_eq!(BootImage::parse(&buffer[..]), Err(ImageError::UnexpectedVersion)); in bad_version()
237 assert_eq!(BootImage::parse(&buffer[..]), expected); in parse_v0()
256 assert_eq!(BootImage::parse(&buffer[..]), expected); in parse_v1()
278 assert_eq!(BootImage::parse(&buffer[..]), expected); in parse_v2()
294 assert_eq!(BootImage::parse(&buffer[..]), expected); in parse_v3()
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/
DZoneTabFileTest.java54 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseEmpty()
66 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parseIgnoresCommentsAndEmptyLines()
73 public void parse() throws Exception { in parse() method in ZoneTabFileTest
83 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in parse()
96 ZoneTabFile.parse(file); in parseMalformedFile()
111 ZoneTabFile zoneTab = ZoneTabFile.parse(file); in createCountryToOlsonIdsMap()
/system/libvintf/
Dparse_string.cpp65 bool parse(const std::string &s, std::vector<T> *objs) { in parse() function
71 if (!parse(item, &ver)) { in parse()
91 bool parse(const std::string &s, ENUM *hf) { \
120 bool parse(const std::string& s, Level* l) { in parse() function
186 bool parse(const std::string &s, KernelConfigKey *key) { in parse() function
201 return parse(s, &kctv->mTristateValue); in parseKernelConfigValue()
215 if (parse(s, &kctv->mTristateValue)) { in parseKernelConfigTypedValue()
223 bool parse(const std::string &s, Version *ver) { in parse() function
239 bool parse(const std::string& s, SepolicyVersion* sepolicyVer) { in parse() function
248 if (!parse(s, &ver)) return false; in parse()
[all …]
DRuntimeInfo-target.cpp126 if (!parse(mRuntimeInfo->mOsRelease.substr(0, pos), &mRuntimeInfo->mKernel.mVersion)) { in parseKernelVersion()
134 if (!parse(prop, &mRuntimeInfo->mBootVbmetaAvbVersion)) { in fetchAvb()
138 if (!parse(prop, &mRuntimeInfo->mBootAvbVersion)) { in fetchAvb()
/system/nfc/tools/casimir/scripts/
Drf_packets.py145 def parse(span: bytes) -> Tuple['RfPacket', bytes]: member in RfPacket
161 return PollCommand.parse(fields.copy(), payload)
165 return NfcAPollResponse.parse(fields.copy(), payload)
169 return T4ATSelectCommand.parse(fields.copy(), payload)
173 return T4ATSelectResponse.parse(fields.copy(), payload)
177 return NfcDepSelectCommand.parse(fields.copy(), payload)
181 return NfcDepSelectResponse.parse(fields.copy(), payload)
185 return SelectCommand.parse(fields.copy(), payload)
189 return DeactivateNotification.parse(fields.copy(), payload)
193 return Data.parse(fields.copy(), payload)
[all …]
/system/librustutils/system_properties/
Dparsers_formatters.rs13 pub fn parse<T: FromStr>(s: &str) -> Result<T> { in parse() function
14 s.parse::<T>() in parse()
67 parse_list_with(s, parse) in parse_list()
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h151 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey) { in parse() function
152 auto [parsedKey, _, errMsg] = cppbor::parse(coseKey); in parse()
158 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey, CoseKeyType expectedKeyType, in parse() function
160 auto key = parse(coseKey); in parse()
173 auto key = parse(coseKey, OCTET_KEY_PAIR, EDDSA, ED25519); in parseEd25519()
186 auto key = parse(coseKey, OCTET_KEY_PAIR, ECDH_ES_HKDF_256, X25519); in parseX25519()
204 auto key = parse(coseKey, EC2, ES256, P256); in parseP256()
218 auto key = parse(coseKey, EC2, ES384, P384); in parseP384()
/system/extras/perf2cfg/perf2cfg/
Dedit.py34 from perf2cfg import parse
182 method_name = parse.parse_name(line)
211 pass_name = parse.parse_name(line)
325 directive = parse.build_name(f'[{info}] {method_name}')
347 self.saved_flags = parse.parse_flags(line)
361 padding = ' ' * len(parse.build_flags(flags))
381 self.output_stream.write(parse.build_flags(flags))
390 addr = parse.parse_address(line)
/system/keymaster/android_keymaster/
Dremote_provisioning_utils.cpp73 cppbor::parse(endpointEncryptionCertChain.begin(), endpointEncryptionCertChain.end()); in validateAndExtractEekPubAndId()
93 auto parsedPubKey = CoseKey::parse(lastPubKey); in validateAndExtractEekPubAndId()
137 cppbor::parse(keysToSign[i].begin(), keysToSign[i].end()); in validateAndExtractPubkeys()
153 auto [protectedMap, __, errMsg] = cppbor::parse(protectedParms); in validateAndExtractPubkeys()
164 auto pubKey = CoseKey::parse(payload->value(), EC2, ES256, P256); in validateAndExtractPubkeys()
/system/tools/xsdc/src/main/java/com/android/xsdc/
DMain.java132 cmd = CommandParser.parse(options, args); in main()
163 XmlSchema xmlSchema = parse(xsdFile, included); in main()
212 private static XmlSchema parse(String xsdFile, List<String> included) throws Exception { in parse() method in Main
219 parser.parse(in, xsdHandler); in parse()
225 XmlSchema temp = parse(filePath, included); in parse()
/system/libcppbor/tests/
Dcppbor_test.cpp1343 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1359 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1374 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1389 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1404 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1419 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1466 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1504 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1550 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST()
1592 parse(data.data(), data.data() + data.size(), &mpc); in TEST()
[all …]
/system/keymint/tests/
DAndroid.bp66 srcs: ["src/bin/auth-keyblob-parse.rs"],
78 srcs: ["src/bin/encrypted-keyblob-parse.rs"],
/system/hwservicemanager/
DVintf.cpp43 if (!FQName::parse(interfaceName, &fqName)) { in getTransport()
92 if (!FQName::parse(interfaceName, &fqName) || !fqName.isFullyQualified() || in getInstances()
DAccessControl.cpp59 if (!FQName::parse(fqName, &fqIface)) { in canAdd()
70 if (!FQName::parse(fqName, &fqIface)) { in canGet()
/system/chre/
Dbundle_chre.sh10 BRANCH=`git rev-parse --abbrev-ref --symbolic-full-name @{u}`
/system/tools/hidl/lint/
Dmain.cpp111 if (!FQName::parse(arg, &fqName)) { in main()
130 AST* ast = coordinator.parse(target); in main()
/system/extras/sane_schedstat/
Dsane_schedstat.c111 static int parse(const char *b) { in parse() function
152 if (parse(buf)) return -1; in main()
/system/extras/libjsonpb/verify/
Dverify.cpp141 if (!reader->parse(&*json.begin(), &*json.end(), &value, error)) { in AllFieldsAreKnown()
159 if (!reader->parse(&*json.begin(), &*json.end(), &old_json, error)) { in EqReformattedJson()
169 if (!reader->parse(&*new_json_string->begin(), &*new_json_string->end(), &new_json, error)) { in EqReformattedJson()
/system/tools/hidl/lint/test/
Dmain.cpp47 if (!FQName::parse(name, &fqName)) { in getLintsForHal()
61 AST* ast = coordinator.parse(fqName); in getLintsForHal()
/system/nfc/src/rust/hal/
Drootcanal_hal.rs68 match NciPacket::parse(&frozen) { in dispatch_incoming()
77 match DataPacket::parse(&frozen) { in dispatch_incoming()
/system/tools/hidl/
Dmain.cpp160 AST* typesAST = coordinator->parse(fqName); in appendPerTypeTargets()
265 AST* ast = coordinator->parse(fqName); in astGenerationFunction()
308 ast = coordinator->parse(fqName.getTypesForPackage()); in generateJavaForPackage()
314 ast = coordinator->parse(fqName); in generateJavaForPackage()
391 AST *ast = coordinator->parse(fqName); in isPackageJavaCompatible()
550 AST* ast = coordinator->parse(fqName); in generateAndroidBpForPackage()
651 AST *ast = coordinator->parse(fqName); in generateAndroidBpImplForPackage()
789 AST* ast = coordinator->parse(fqName); in validateForFormat()
835 AST *ast = coordinator->parse(fqName); in generateExportHeaderForPackage()
909 AST* ast = coordinator->parse(fqName, {} /* parsed */, in generateHashOutput()
[all …]

123456