Home
last modified time | relevance | path

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

12

/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/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java167 String[] tokens = lines[i].split("\\{|\\}|:"); in getUserFlags() local
169 tokens.length == 4 || tokens.length == 5); in getUserFlags()
171 if (Integer.parseInt(tokens[1]) == userId) { in getUserFlags()
172 return Integer.parseInt(tokens[3], 16); in getUserFlags()
303 String[] tokens = feature.split(":"); in hasDeviceFeature() local
305 tokens.length > 1); in hasDeviceFeature()
306 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
307 mAvailableFeatures.add(tokens[1]); in hasDeviceFeature()
336 String[] tokens = commandOutput.split("\\s+"); in createUser() local
337 assertTrue(tokens.length > 0); in createUser()
[all …]
/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/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/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
DAccessPrivateDataTest.java113 String tokens[] = line.split(" "); in accessPrivateTrafficStats() local
114 if (tokens.length > 3 && tokens[3].equals(String.valueOf(otherAppUid))) { in accessPrivateTrafficStats()
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerHostTest.java142 String[] tokens = feature.split(":"); in hasDeviceFeature() local
144 tokens.length > 1); in hasDeviceFeature()
145 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
146 mAvailableFeatures.add(tokens[1]); in hasDeviceFeature()
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
DCreatePrivateDataTest.java180 String tokens[] = line.split(" "); in accessOwnTrafficStats() local
181 if (tokens.length > 3 && tokens[3].equals(String.valueOf(ownAppUid))) { in accessOwnTrafficStats()
182 if (!tokens[2].equals("0x0")) { in accessOwnTrafficStats()
/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/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepo.java367 Set<String> tokens = moduleDef.getTokens(); in addModuleDef() local
368 if (tokens != null && !tokens.isEmpty()) { in addModuleDef()
490 Set<String> tokens = mDeviceTokens.get(serial); in getModules() local
491 getModulesWithTokens(tokens, modules); in getModules()
522 private void getModulesWithTokens(Set<String> tokens, List<IModuleDef> modules) { in getModulesWithTokens() argument
523 if (tokens != null) { in getModulesWithTokens()
528 if (tokens.containsAll(module.getTokens())) { in getModulesWithTokens()
/cts/tools/vm-tests-tf/src/util/build/
DExecuteFile.java141 ArrayList<String> tokens = new ArrayList<String>(); in ExecuteFile() local
145 tokens.add(token); in ExecuteFile()
148 this.cmdLine = tokens.toArray(new String[0]); in ExecuteFile()
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java88 final String[] tokens = string.split(" +"); in setByString() local
89 for (String token : tokens) { in setByString()
/cts/hostsidetests/services/activitymanager/src/android/server/cts/
DActivityManagerTestBase.java230 String[] tokens = feature.split(":"); in hasDeviceFeature() local
232 tokens.length > 1); in hasDeviceFeature()
233 assertEquals(feature, "feature", tokens[0]); in hasDeviceFeature()
234 mAvailableFeatures.add(tokens[1]); in hasDeviceFeature()
/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/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java210 String[] tokens = commandOutput.split("\\n"); in getUserSerialNumber() local
211 for (String token : tokens) { in getUserSerialNumber()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DModuleRepoTest.java154 Set<String> tokens = deviceTokens.get(SERIAL3); in testInitialization() local
155 assertEquals("Wrong number of tokens", 1, tokens.size()); in testInitialization()
156 assertTrue("Unexpected device token", tokens.contains(FOOBAR_TOKEN)); in testInitialization()
/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.java1787 String[] tokens = feature.split(":"); in queryDeviceFeatures() local
1788 if (tokens.length < 2 || !"feature".equals(tokens[0])) { in queryDeviceFeatures()
1789 CLog.e("Failed parse features. Unexpect format on line \"%s\"", tokens[0]); in queryDeviceFeatures()
1792 availableFeatures.add(tokens[1]); in queryDeviceFeatures()

12