Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 36) sorted by relevance

12

/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DApiFile.kt393 val token = tokenizer.getToken() ?: break in parseApiSingleFile() constant
395 if ("package" == token) { in parseApiSingleFile()
398 throw ApiParseException("expected package got $token", tokenizer) in parseApiSingleFile()
404 var token: String = tokenizer.requireToken() in parsePackage() variable
407 val annotations = getAnnotations(tokenizer, token) in parsePackage()
409 token = tokenizer.current in parsePackage()
410 tokenizer.assertIdent(token) in parsePackage()
411 val name: String = token in parsePackage()
439 token = tokenizer.requireToken() in parsePackage()
440 if ("{" != token) { in parsePackage()
[all …]
DTokenizer.kt71 val token = getToken(parenIsSep, eatWhitespace) in requireToken() constant
72 return token ?: throw ApiParseException("Unexpected end of file", this) in requireToken()
174 internal fun assertIdent(token: String) { in assertIdent()
175 if (!isIdent(token[0])) { in assertIdent()
176 throw ApiParseException("Expected identifier: $token", this) in assertIdent()
202 internal fun isIdent(token: String): Boolean { in isIdent()
203 return isIdent(token[0]) in isIdent()
/tools/tradefederation/core/src/com/android/tradefed/util/
DQuotationAwareTokenizer.java68 StringBuilder token = new StringBuilder(); in tokenizeLine() local
82 token.append(aChar); in tokenizeLine()
84 if (token.length() > 0) { in tokenizeLine()
87 log(String.format("Finished token '%s'", token.toString()), logging); in tokenizeLine()
89 if (token.toString().equals("''")) { in tokenizeLine()
92 tokens.add(token.toString()); in tokenizeLine()
94 token.delete(0, token.length()); in tokenizeLine()
104 token.append(aChar); in tokenizeLine()
116 if (token.length() > 0) { in tokenizeLine()
117 log(String.format("Finished final token '%s'", token.toString()), logging); in tokenizeLine()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/token/
DTelephonyTokenProvider.java16 package com.android.tradefed.invoker.shard.token;
43 public boolean hasToken(ITestDevice device, TokenProperty token) { in hasToken() argument
53 switch (token) { in hasToken()
61 device.getSerialNumber(), token, info); in hasToken()
69 device.getSerialNumber(), token, info); in hasToken()
93 device.getSerialNumber(), token, info); in hasToken()
96 CLog.w("Token '%s' doesn't match any TelephonyTokenProvider tokens.", token); in hasToken()
DCecControllerTokenProvider.java16 package com.android.tradefed.invoker.shard.token;
42 public boolean hasToken(ITestDevice device, TokenProperty token) { in hasToken() argument
46 switch (token) { in hasToken()
61 CLog.e("Token '%s' doesn't match any CecControllerTokenProvider tokens.", token); in hasToken()
DTokenProviderHelper.java16 package com.android.tradefed.invoker.shard.token;
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DLocalPool.java20 import com.android.tradefed.invoker.shard.token.ITokenProvider;
21 import com.android.tradefed.invoker.shard.token.ITokenRequest;
22 import com.android.tradefed.invoker.shard.token.TokenProperty;
23 import com.android.tradefed.invoker.shard.token.TokenProviderHelper;
DITestsPool.java19 import com.android.tradefed.invoker.shard.token.ITokenRequest;
DRemoteDynamicPool.java21 import com.android.tradefed.invoker.shard.token.ITokenRequest;
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DTokenizerTest.kt83 fun `check token`() { in <lambda>()
96 val token = requireToken() in <lambda>() constant
97 assertEquals(expectedToken, token) in <lambda>()
/tools/security/gdb/
Dparameters_extract.py165 for token in func_params:
167 if token == '(':
169 elif token == ')':
174 if token == ',' and parentheses_count == 0:
178 current_param += token
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/shard/token/
DITokenProvider.java16 package com.android.tradefed.invoker.shard.token;
38 boolean hasToken(ITestDevice device, TokenProperty token); in hasToken() argument
DTokenProperty.java16 package com.android.tradefed.invoker.shard.token;
DITokenRequest.java16 package com.android.tradefed.invoker.shard.token;
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/shard/
DTokenTestClass.java20 import com.android.tradefed.invoker.shard.token.ITokenRequest;
21 import com.android.tradefed.invoker.shard.token.TokenProperty;
DRemoteDynamicPoolTest.java22 import com.android.tradefed.invoker.shard.token.ITokenRequest;
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java438 String token = line.get(idx); in expandLongMacro() local
439 Matcher matchMacro = MACRO_PATTERN.matcher(token); in expandLongMacro()
488 String token = line.get(idx); in expandMacro() local
489 Matcher matchMacro = MACRO_PATTERN.matcher(token); in expandMacro()
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/shard/token/
DTokenProviderHelperTest.java16 package com.android.tradefed.invoker.shard.token;
DCecControllerTokenProviderTest.java16 package com.android.tradefed.invoker.shard.token;
DTelephonyTokenProviderTest.java16 package com.android.tradefed.invoker.shard.token;
/tools/asuite/atest/logstorage/
Datest_gcp_utils.py123 token = self._get_sso_access_token()
124 credentials = oauth2_client.AccessTokenCredentials(token, 'atest')
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DApiFromTextTest.kt144 fun `Annotation signatures requiring more complicated token matching`() { in Annotation signatures requiring more complicated token matching()
/tools/repohooks/tools/
Dcpplint.py2983 token = match.group(1)
2989 if token in ('{', '}', ';'): return False
2996 if token in ('>', '=', '[', ']', '.'): return True
3000 if token != '<':
3206 token = matched.group(1)
3207 if token == '{':
3220 elif token == ';' or token == ')':
4000 token = last_word.group(1)
4002 token = expr
4005 if _TYPES.match(token):
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_test_utils.py2707 (int(token) for token in stdout.split() if token.isdigit()), None)
2710 (int(token) for token in stdout.split() if token.isdigit()), None)
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java725 for (final String token : tokens) { in stopMonitor()
726 values.add(Long.parseLong(token)); in stopMonitor()

12