Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 20 of 20) sorted by relevance

/cts/suite/audio_quality/lib/src/task/
DTaskSound.cpp64 UniquePtr<std::vector<android::String8> > tokens(StringUtil::split(type, ':')); in run() local
65 if (tokens.get() == NULL) { in run()
70 if (StringUtil::compare(tokens->at(0), "file") == 0) { in run()
71 if (tokens->size() != 2) { in run()
72 LOGE("Wrong number of parameters %d", tokens->size()); in run()
74 buffer = Buffer::loadFromFile(tokens->at(1)); in run()
75 } else if (StringUtil::compare(tokens->at(0), "sin") == 0) { in run()
76 if (tokens->size() != 4) { in run()
77 LOGE("Wrong number of parameters %d", tokens->size()); in run()
79 int amplitude = atoi(tokens->at(1).string()); in run()
[all …]
DTaskProcess.cpp253 std::vector<android::String8>& tokens = *(paramTokens.get()); in parseParams() local
254 for (size_t i = 0; i < tokens.size(); i++) { in parseParams()
255 UniquePtr<std::vector<android::String8> > itemTokens(StringUtil::split(tokens[i], ':')); in parseParams()
298 std::vector<android::String8>* tokens = tokenPtr.get(); in parseAttribute() local
299 if (tokens == NULL) { in parseAttribute()
303 if (tokens->size() != 2) { in parseAttribute()
307 if (StringUtil::compare(tokens->at(0), "builtin") == 0) { in parseAttribute()
309 } else if (StringUtil::compare(tokens->at(0), "script") == 0) { in parseAttribute()
315 mName.append(tokens->at(1)); in parseAttribute()
/cts/suite/audio_quality/test/
DStringUtilTest.cpp56 std::vector<android::String8>* tokens = StringUtil::split(str, ':'); in TEST_F() local
57 ASSERT_TRUE(tokens != NULL); in TEST_F()
58 ASSERT_TRUE(tokens->size() == 4); in TEST_F()
59 ASSERT_TRUE(StringUtil::compare(tokens->at(0), "hello") == 0); in TEST_F()
60 ASSERT_TRUE(StringUtil::compare(tokens->at(1), "there") == 0); in TEST_F()
61 ASSERT_TRUE(StringUtil::compare(tokens->at(2), "break") == 0); in TEST_F()
62 ASSERT_TRUE(StringUtil::compare(tokens->at(3), "this") == 0); in TEST_F()
63 delete tokens; in TEST_F()
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenizerTest.java114 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(""); in testTokenize() local
115 assertEquals(0, tokens.length); in testTokenize()
118 tokens = Rfc822Tokenizer.tokenize(text); in testTokenize()
119 assertEquals(2, tokens.length); in testTokenize()
120 localAssertEquals(tokens[0], "Berg", "berg\\@google.com", "home"); in testTokenize()
121 localAssertEquals(tokens[1], null, "tom\\@google.com", "work"); in testTokenize()
124 tokens = Rfc822Tokenizer.tokenize(text); in testTokenize()
125 assertEquals(2, tokens.length); in testTokenize()
126 localAssertEquals(tokens[0], "Foo Bar", "foo\\@google.com", "something"); in testTokenize()
127 localAssertEquals(tokens[1], null, "blah\\@google.com", "something"); in testTokenize()
/cts/tools/cts-xml-generator/src/com/android/cts/xmlgenerator/
DTestListParser.java43 String[] tokens = line.split(":"); in parse() local
44 if (tokens.length < 2) { in parse()
48 String key = tokens[0]; in parse()
49 String value = tokens[1]; in parse()
56 if (tokens.length == 3) { in parse()
57 timeout = Integer.parseInt(tokens[2]); in parse()
DCtsXmlGenerator.java89 String[] tokens = value.split("->"); in main() local
90 if (tokens.length != 2) { in main()
95 if (additionalAttributes.containsKey(tokens[0])) { in main()
97 "Additional attribute %s has already been specified", tokens[0])); in main()
100 additionalAttributes.put(tokens[0], tokens[1]); in main()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java143 String[] tokens = lines[i].split("\\{|\\}|:"); in listUsers() local
145 tokens.length == 4 || tokens.length == 5); in listUsers()
146 users.add(Integer.parseInt(tokens[1])); in listUsers()
273 String[] tokens = feature.split(":"); in hasDeviceFeature() local
275 tokens.length > 1); in hasDeviceFeature()
276 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
277 mAvailableFeatures.add(tokens[1]); in hasDeviceFeature()
295 String[] tokens = commandOutput.split("\\s+"); in createUser() local
296 assertTrue(tokens.length > 0); in createUser()
297 assertEquals("Success:", tokens[0]); in createUser()
[all …]
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java112 String tokens[] = line.split(" "); in accessPrivateTrafficStats() local
113 if (tokens.length > 3 && tokens[3].equals(String.valueOf(otherAppUid))) { in accessPrivateTrafficStats()
115 if (!tokens[2].equals("0x0")) { in accessPrivateTrafficStats()
/cts/suite/audio_quality/lib/src/
DStringUtil.cpp26 std::vector<android::String8>* tokens = new std::vector<android::String8>(); in split() local
31 tokens->push_back(substr(str, lastTokenEnd, i - lastTokenEnd)); in split()
37 tokens->push_back(substr(str, lastTokenEnd, str.length() - lastTokenEnd)); in split()
39 return tokens; in split()
/cts/tools/dasm/src/dasm/tokens/
Drelative_number_token.java17 package dasm.tokens;
Dnumber_token.java17 package dasm.tokens;
Dvariant_token.java17 package dasm.tokens;
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java184 String tokens[] = line.split(" "); in accessOwnTrafficStats() local
185 if (tokens.length > 3 && tokens[3].equals(String.valueOf(ownAppUid))) { in accessOwnTrafficStats()
186 if (!tokens[2].equals("0x0")) { in accessOwnTrafficStats()
/cts/tests/tests/net/src/android/net/cts/
DTrafficStatsTest.java93 String tokens[] = line.split(" "); in accessOwnTrafficStats() local
94 if (tokens.length > 3 && tokens[3].equals(String.valueOf(ownAppUid))) { in accessOwnTrafficStats()
/cts/tools/dasm/src/dasm/
DScanner.java20 import dasm.tokens.number_token;
21 import dasm.tokens.relative_number_token;
Dparser.cup9 import dasm.tokens.number_token;
10 import dasm.tokens.relative_number_token;
11 import dasm.tokens.variant_token;
59 /* Terminals (tokens returned by the scanner). */
Dparser.java10 import dasm.tokens.number_token;
11 import dasm.tokens.relative_number_token;
12 import dasm.tokens.variant_token;
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DDeqpTestRunner.java1713 String[] tokens = feature.split(":"); in queryDeviceFeatures() local
1714 if (tokens.length < 2 || !"feature".equals(tokens[0])) { in queryDeviceFeatures()
1715 CLog.e("Failed parse features. Unexpect format on line \"%s\"", tokens[0]); in queryDeviceFeatures()
1718 availableFeatures.add(tokens[1]); in queryDeviceFeatures()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTest.java1251 StringTokenizer tokens = new StringTokenizer(plainText.trim(), ":");
1252 int subtitleTrackIndex = Integer.parseInt(tokens.nextToken());
1253 int startMs = Integer.parseInt(tokens.nextToken());
/cts/tools/signature-tools/lib/
Dantlr-2.7.7.jarMETA-INF/ META-INF/MANIFEST.MF antlr/ antlr/ActionElement.class ActionElement ...