Home
last modified time | relevance | path

Searched refs:tokenizer (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/services/mediametrics/
DStringUtils.cpp25 std::string tokenizer(std::string::const_iterator& it, in tokenizer() function
45 auto flag = tokenizer(it, flags.end(), delim); in split()
50 auto token = tokenizer(it, flags.end(), delim); in split()
64 auto token = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
67 auto device = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
70 token = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
74 auto address = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
79 token = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
85 token = tokenizer(it, devices.end(), delim); in getDeviceAddressPairs()
DStringUtils.h53 std::string tokenizer(std::string::const_iterator& it,
/frameworks/base/tools/aapt2/util/
DUtil_test.cpp56 auto tokenizer = util::Tokenize(StringPiece("this| is|the|end"), '|'); in TEST() local
57 auto iter = tokenizer.begin(); in TEST()
66 ASSERT_THAT(iter, Eq(tokenizer.end())); in TEST()
70 auto tokenizer = util::Tokenize(StringPiece(""), '|'); in TEST() local
71 auto iter = tokenizer.begin(); in TEST()
72 ASSERT_THAT(iter, Ne(tokenizer.end())); in TEST()
75 ASSERT_THAT(iter, Eq(tokenizer.end())); in TEST()
79 auto tokenizer = util::Tokenize(StringPiece("one."), '.'); in TEST() local
80 auto iter = tokenizer.begin(); in TEST()
83 ASSERT_THAT(iter, Ne(tokenizer.end())); in TEST()
/frameworks/native/libs/input/
DPropertyMap.cpp118 std::unique_ptr<Tokenizer> tokenizer(rawTokenizer); in load() local
125 Parser parser(outMap.get(), tokenizer.get()); in load()
130 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load()
142 PropertyMap::Parser::Parser(PropertyMap* map, Tokenizer* tokenizer) in Parser() argument
143 : mMap(map), mTokenizer(tokenizer) {} in Parser()
DVirtualKeyMap.cpp52 std::unique_ptr<Tokenizer> tokenizer(t); in load() local
60 Parser parser(map.get(), tokenizer.get()); in load()
72 VirtualKeyMap::Parser::Parser(VirtualKeyMap* map, Tokenizer* tokenizer) : in Parser() argument
73 mMap(map), mTokenizer(tokenizer) { in Parser()
DKeyLayoutMap.cpp75 Tokenizer* tokenizer; in loadContents() local
76 status_t status = Tokenizer::fromContents(String8(filename.c_str()), contents, &tokenizer); in loadContents()
81 std::unique_ptr<Tokenizer> t(tokenizer); in loadContents()
90 Tokenizer* tokenizer; in load() local
91 status_t status = Tokenizer::open(String8(filename.c_str()), &tokenizer); in load()
96 std::unique_ptr<Tokenizer> t(tokenizer); in load()
104 base::Result<std::shared_ptr<KeyLayoutMap>> KeyLayoutMap::load(Tokenizer* tokenizer) { in load() argument
114 Parser parser(map.get(), tokenizer); in load()
119 tokenizer->getFilename().string(), tokenizer->getLineNumber(), in load()
254 KeyLayoutMap::Parser::Parser(KeyLayoutMap* map, Tokenizer* tokenizer) : in Parser() argument
[all …]
DKeyCharacterMap.cpp150 Tokenizer* tokenizer; in load() local
151 status_t status = Tokenizer::open(String8(filename.c_str()), &tokenizer); in load()
155 std::unique_ptr<Tokenizer> t(tokenizer); in load()
165 Tokenizer* tokenizer; in loadContents() local
166 status_t status = Tokenizer::fromContents(String8(filename.c_str()), contents, &tokenizer); in loadContents()
171 std::unique_ptr<Tokenizer> t(tokenizer); in loadContents()
179 base::Result<std::shared_ptr<KeyCharacterMap>> KeyCharacterMap::load(Tokenizer* tokenizer, in load() argument
190 Parser parser(map.get(), tokenizer, format); in load()
195 tokenizer->getFilename().string(), tokenizer->getLineNumber(), elapsedTime / 1000000.0); in load()
757 KeyCharacterMap::Parser::Parser(KeyCharacterMap* map, Tokenizer* tokenizer, Format format) : in Parser() argument
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DGeolocationTimeZoneSuggestion.java157 StringTokenizer tokenizer = new StringTokenizer(zoneIdsString, ","); in parseZoneIdsArg() local
158 while (tokenizer.hasMoreTokens()) { in parseZoneIdsArg()
159 zoneIds.add(tokenizer.nextToken()); in parseZoneIdsArg()
/frameworks/native/include/input/
DKeyLayoutMap.h69 static base::Result<std::shared_ptr<KeyLayoutMap>> load(Tokenizer* tokenizer);
118 Parser(KeyLayoutMap* map, Tokenizer* tokenizer);
DVirtualKeyMap.h65 Parser(VirtualKeyMap* map, Tokenizer* tokenizer);
DKeyCharacterMap.h215 Parser(KeyCharacterMap* map, Tokenizer* tokenizer, Format format);
246 static base::Result<std::shared_ptr<KeyCharacterMap>> load(Tokenizer* tokenizer, Format format);
DPropertyMap.h90 Parser(PropertyMap* map, Tokenizer* tokenizer);
/frameworks/base/core/java/android/net/
DUrlQuerySanitizer.java622 StringTokenizer tokenizer = new StringTokenizer(query, "&"); in parseQuery() local
623 while(tokenizer.hasMoreElements()) { in parseQuery()
624 String attributeValuePair = tokenizer.nextToken(); in parseQuery()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java336 StringTokenizer tokenizer = new StringTokenizer(versionString, "."); in isVMMultidexCapable() local
337 String majorToken = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null; in isVMMultidexCapable()
338 String minorToken = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null; in isVMMultidexCapable()
/frameworks/native/cmds/atrace/
Datrace.cpp761 Tokenizer* tokenizer = nullptr; in setCategoriesEnableFromFile() local
762 if (Tokenizer::open(String8(categories_file), &tokenizer) != NO_ERROR) { in setCategoriesEnableFromFile()
766 while (!tokenizer->isEol()) { in setCategoriesEnableFromFile()
767 String8 token = tokenizer->nextToken(" "); in setCategoriesEnableFromFile()
769 tokenizer->skipDelimiters(" "); in setCategoriesEnableFromFile()
774 delete tokenizer; in setCategoriesEnableFromFile()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java399 StringTokenizer tokenizer = new StringTokenizer(apkSignatureSchemeIdList, ","); in verifyCertificate() local
400 while (tokenizer.hasMoreTokens()) { in verifyCertificate()
401 String idText = tokenizer.nextToken().trim(); in verifyCertificate()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java272 Rfc822Tokenizer tokenizer = new Rfc822Tokenizer(); in testRfc822FindToken() local
276 assertEquals(0, tokenizer.findTokenStart(address, 21)); in testRfc822FindToken()
277 assertEquals(22, tokenizer.findTokenEnd(address, 21)); in testRfc822FindToken()
278 assertEquals(24, tokenizer.findTokenStart(address, 25)); in testRfc822FindToken()
279 assertEquals(46, tokenizer.findTokenEnd(address, 25)); in testRfc822FindToken()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraAgentImpl.java1039 StringTokenizer tokenizer = new StringTokenizer(flattened, ";"); in dumpDeviceSettings() local
1041 while (tokenizer.hasMoreElements()) { in dumpDeviceSettings()
1042 dumpedSettings += tokenizer.nextToken() + '\n'; in dumpDeviceSettings()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java1560 public void setTokenizer(Tokenizer tokenizer) { in setTokenizer() argument
1561 mTokenizer = tokenizer; in setTokenizer()