Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/util/
DQuotationAwareTokenizer.java60 ArrayList<String> tokens = new ArrayList<String>(); in tokenizeLine() local
81 tokens.add(token.toString()); in tokenizeLine()
105 tokens.add(token.toString()); in tokenizeLine()
109 String[] tokensArray = new String[tokens.size()]; in tokenizeLine()
110 return tokens.toArray(tokensArray); in tokenizeLine()
130 public static String combineTokens(String... tokens) { in combineTokens() argument
133 for (int i=0; i < tokens.length; i++) { in combineTokens()
134 final String token = tokens[i]; in combineTokens()
143 if (i < (tokens.length - 1)) { in combineTokens()
/tools/test/connectivity/acts/framework/acts/
Dconfig_parser.py142 tokens = item.split(':')
143 if len(tokens) > 2:
145 if len(tokens) == 1:
147 test_cls_name = tokens[0]
149 elif len(tokens) == 2:
152 test_cls_name, test_case_names = tokens
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioJitterTest.java144 String[] tokens = line.split(" "); in parseResult() local
145 if (tokens.length >= 2) { in parseResult()
146 String metricName = tokens[0]; in parseResult()
147 String metricValue = tokens[1]; in parseResult()
DAudioLoopbackTestHelper.java396 final String[] tokens = line.split(splitOn); in parseKeyValuePairFromFile() local
397 if (tokens.length >= 2) { in parseKeyValuePairFromFile()
398 final String key = tokens[0].trim(); in parseKeyValuePairFromFile()
399 final String value = tokens[1].trim(); in parseKeyValuePairFromFile()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DSdkAvdPreparer.java235 String[] tokens = arg.split(" "); in launchEmulatorForAvd() local
236 if (tokens.length == 1 && tokens[0].startsWith("-")) { in launchEmulatorForAvd()
237 emulatorArgs.add(tokens[0]); in launchEmulatorForAvd()
238 } else if (tokens.length == 2) { in launchEmulatorForAvd()
239 if (!tokens[0].startsWith("-")) { in launchEmulatorForAvd()
243 emulatorArgs.add(tokens[0]); in launchEmulatorForAvd()
244 emulatorArgs.add(tokens[1]); in launchEmulatorForAvd()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteModuleLoader.java400 String[] tokens = optionValueString.split(":="); in parseArgs() local
402 if (tokens.length == 1) { in parseArgs()
403 option = new OptionDef(optionName, tokens[0], moduleName); in parseArgs()
404 } else if (tokens.length == 2) { in parseArgs()
405 option = new OptionDef(optionName, tokens[0], tokens[1], moduleName); in parseArgs()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java798 String[] tokens = lines[i].split("\\{|\\}|:");
799 if (tokens.length != 4 && tokens.length != 5) {
806 users.add(tokens);
1284 String[] tokens = line.split("\\(|\\)| ");
1285 int userId = Integer.parseInt(tokens[4]);
1289 tokens = line.split("\\{|\\}");
1290 String componentName = tokens[1];
1297 String[] tokens = line.split("\\{|\\}");
1298 String componentName = tokens[1];
1303 tokens = line.split(":");
[all …]
DWifiHelper.java481 String[] tokens = output.split(","); in stopMonitor() local
482 List<Long> values = new ArrayList<Long>(tokens.length); in stopMonitor()
483 for (final String token : tokens) { in stopMonitor()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java934 String[] tokens; in run() local
950 tokens = null; in run()
952 tokens = QuotationAwareTokenizer.tokenizeLine(input); in run()
958 if (tokens == null || tokens.length == 0) { in run()
972 tokens = arrrgs.toArray(new String[0]); in run()
980 Runnable command = mCommandTrie.retrieve(groups, tokens); in run()
985 "Unable to handle command '%s'. Enter 'help' for help.", tokens[0])); in run()
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py508 tokens = lines[0].split(' ')
509 if len(tokens) > 1:
510 return tokens[1].lower()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java1629 StringTokenizer tokens = new StringTokenizer(algs); in getDigestsToVerify() local
1630 while (tokens.hasMoreTokens()) { in getDigestsToVerify()
1631 String alg = tokens.nextToken(); in getDigestsToVerify()
/tools/repohooks/tools/
Dcpplint.py4784 tokens = re.split(r'\s|\+|\-|\*|\/|<<|>>]', match.group(3))
4787 for tok in tokens: