Home
last modified time | relevance | path

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

123

/cts/tools/dasm/src/dasm/
DReservedWords.java21 import java_cup.runtime.token;
24 static Hashtable<String, token> reserved_words;
26 public static token get(String name) { in get()
27 return (token) reserved_words.get(name); in get()
35 reserved_words = new Hashtable<String, token>();
38 reserved_words.put(".annotation", new token(sym.DANNOTATION));
39 reserved_words.put(".attribute", new token(sym.DATTRIBUTE));
40 reserved_words.put(".bytecode", new token(sym.DBYTECODE));
41 reserved_words.put(".catch", new token(sym.DCATCH));
42 reserved_words.put(".class", new token(sym.DCLASS));
[all …]
DScanner.java29 import java_cup.runtime.token;
203 public token next_token() throws IOException, DasmError { in next_token()
214 return new token(sym.SEP); in next_token()
225 return new token(sym.EOF); in next_token()
229 return new token(sym.EQ); in next_token()
233 return new token(sym.COLON); in next_token()
283 token tok; in next_token()
319 if ((v = dict.get(s)) != null) return (token) v; in next_token()
331 protected token readQuotedString() throws IOException, DasmError { in readQuotedString()
429 protected token readRegList() throws IOException, DasmError { in readRegList()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DEditorState.java89 for (String token : tokens) { in setByString()
90 if (token.startsWith("'") && token.endsWith("'")) { in setByString()
91 for (int i = 1; i < token.length() - 1; ++i) { in setByString()
92 final char ch = token.charAt(1); in setByString()
99 sb.append(token.substring(1, token.length() - 1)); in setByString()
100 } else if (token.startsWith("U+")) { in setByString()
101 final int codePoint = Integer.parseInt(token.substring(2), 16); in setByString()
103 throw new IllegalArgumentException("Invalid code point is specified:" + token); in setByString()
106 } else if (token.equals(CURSOR)) { in setByString()
112 } else if (token.equals(SELECTION_START)) { in setByString()
[all …]
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java200 private JsonToken token; field in JsonReader
288 if (token != expected) { in expect()
299 return token != JsonToken.END_OBJECT && token != JsonToken.END_ARRAY; in hasNext()
306 if (token != null) { in peek()
307 return token; in peek()
314 if (token != JsonToken.BEGIN_ARRAY && token != JsonToken.BEGIN_OBJECT) { in peek()
316 "Expected JSON document to start with '[' or '{' but was " + token); in peek()
330 return token = JsonToken.END_DOCUMENT; in peek()
344 JsonToken result = token; in advance()
345 token = null; in advance()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DSessionToken2Test.java51 SessionToken2 token = new SessionToken2(mContext, mContext.getPackageName(), in testConstructor_sessionService() local
53 assertEquals(MockMediaSessionService2.ID, token.getId()); in testConstructor_sessionService()
54 assertEquals(mContext.getPackageName(), token.getPackageName()); in testConstructor_sessionService()
55 assertEquals(Process.myUid(), token.getUid()); in testConstructor_sessionService()
56 assertEquals(SessionToken2.TYPE_SESSION_SERVICE, token.getType()); in testConstructor_sessionService()
61 SessionToken2 token = new SessionToken2(mContext, mContext.getPackageName(), in testConstructor_libraryService() local
63 assertEquals(MockMediaLibraryService2.ID, token.getId()); in testConstructor_libraryService()
64 assertEquals(mContext.getPackageName(), token.getPackageName()); in testConstructor_libraryService()
65 assertEquals(Process.myUid(), token.getUid()); in testConstructor_libraryService()
66 assertEquals(SessionToken2.TYPE_LIBRARY_SERVICE, token.getType()); in testConstructor_libraryService()
DMediaSessionManager_MediaSession2Test.java99 SessionToken2 token = tokens.get(i); in testGetMediaSession2Tokens_hasMediaController() local
100 if (mContext.getPackageName().equals(token.getPackageName()) in testGetMediaSession2Tokens_hasMediaController()
101 && TAG.equals(token.getId())) { in testGetMediaSession2Tokens_hasMediaController()
103 controller = createController(token); in testGetMediaSession2Tokens_hasMediaController()
138 SessionToken2 token = tokens.get(i); in testGetSessionTokens_sessionRejected() local
139 if (mContext.getPackageName().equals(token.getPackageName()) in testGetSessionTokens_sessionRejected()
140 && TAG.equals(token.getId())) { in testGetSessionTokens_sessionRejected()
156 SessionToken2 token = tokens.get(i); in testGetMediaSession2Tokens_sessionClosed() local
157 assertFalse(mContext.getPackageName().equals(token.getPackageName()) in testGetMediaSession2Tokens_sessionClosed()
158 && TAG.equals(token.getId())); in testGetMediaSession2Tokens_sessionClosed()
[all …]
DMediaBrowser2Test.java80 TestControllerInterface onCreateController(@NonNull SessionToken2 token, in onCreateController() argument
85 return new TestMediaBrowser(mContext, token, new TestBrowserCallback(callback)); in onCreateController()
121 final SessionToken2 token = MockMediaLibraryService2.getToken(mContext); in testGetLibraryRoot() local
123 (MediaBrowser2) createController(token,true, callback); in testGetLibraryRoot()
143 final SessionToken2 token = MockMediaLibraryService2.getToken(mContext); in testGetItem() local
144 MediaBrowser2 browser = (MediaBrowser2) createController(token, true, callback); in testGetItem()
163 final SessionToken2 token = MockMediaLibraryService2.getToken(mContext); in testGetItemNullResult() local
164 MediaBrowser2 browser = (MediaBrowser2) createController(token, true, callback); in testGetItemNullResult()
203 final SessionToken2 token = MockMediaLibraryService2.getToken(mContext); in testGetChildren() local
204 MediaBrowser2 browser = (MediaBrowser2) createController(token, true, callback); in testGetChildren()
[all …]
DMediaSession2TestBase.java106 final MediaController2 createController(SessionToken2 token) throws InterruptedException { in createController() argument
107 return createController(token, true, null); in createController()
110 final MediaController2 createController(@NonNull SessionToken2 token, in createController() argument
113 TestControllerInterface instance = onCreateController(token, callback); in createController()
150 TestControllerInterface onCreateController(@NonNull SessionToken2 token, in onCreateController() argument
155 return new TestMediaController(mContext, token, new TestControllerCallback(callback)); in onCreateController()
282 public TestMediaController(@NonNull Context context, @NonNull SessionToken2 token, in TestMediaController() argument
284 super(context, token, sHandlerExecutor, callback); in TestMediaController()
DTestUtils.java58 SessionToken2 token = tokens.get(i); in getServiceToken() local
59 if (context.getPackageName().equals(token.getPackageName()) in getServiceToken()
60 && id.equals(token.getId())) { in getServiceToken()
61 return token; in getServiceToken()
/cts/tools/dasm/src/java_cup/
Dlexer.java6 import java_cup.runtime.token;
298 protected static token do_code_string() throws java.io.IOException in do_code_string()
332 protected static token do_id() throws java.io.IOException in do_id()
358 return new token(keyword_num.intValue()); in do_id()
373 public static token next_token() throws java.io.IOException in next_token()
384 public static token debug_next_token() throws java.io.IOException in debug_next_token()
386 token result = real_next_token(); in debug_next_token()
397 protected static token real_next_token() throws java.io.IOException in real_next_token()
418 return new token(sym_num); in real_next_token()
428 return new token(sym.COLON); in real_next_token()
[all …]
Dparser.java330 public java_cup.runtime.token scan() in scan()
689 CUP$result = new java_cup.runtime.token(/*NT$9*/41); in CUP$do_action()
705 CUP$result = new java_cup.runtime.token(/*NT$8*/40); in CUP$do_action()
759 CUP$result = new java_cup.runtime.token(/*NT$7*/39); in CUP$do_action()
828 CUP$result = new java_cup.runtime.token(/*NT$6*/38); in CUP$do_action()
847 CUP$result = new java_cup.runtime.token(/*NT$5*/37); in CUP$do_action()
866 CUP$result = new java_cup.runtime.token(/*NT$4*/36); in CUP$do_action()
885 CUP$result = new java_cup.runtime.token(/*NT$3*/35); in CUP$do_action()
1025 CUP$result = new java_cup.runtime.token(/*NT$2*/34); in CUP$do_action()
1071 CUP$result = new java_cup.runtime.token(/*NT$1*/33); in CUP$do_action()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DTokenWatcherTest.java113 IBinder token = mEmptyService.getToken(); in testTokenWatcher() local
120 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher()
125 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher()
131 mMockTokenWatcher.release(token); in testTokenWatcher()
137 mMockTokenWatcher.release(token); in testTokenWatcher()
143 IBinder token = mEmptyService.getToken(); in testCleanUp() local
150 mMockTokenWatcher.acquire(token, TAG); in testCleanUp()
155 mMockTokenWatcher.cleanup(token, true); in testCleanUp()
162 IBinder token = mEmptyService.getToken(); in testRepeatedAcquire() local
169 mMockTokenWatcher.acquire(token, TAG); in testRepeatedAcquire()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java275 private void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
280 mAsyncHandler.startQuery(token, cookie, uri, projection, in startQuery()
284 private void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
289 mAsyncHandler.startInsert(token, cookie, uri, initialValues); in startInsert()
292 private void startUpdate(int token, Object cookie, Uri uri, ContentValues values, in startUpdate() argument
297 mAsyncHandler.startUpdate(token, cookie, uri, values, selection, selectionArgs); in startUpdate()
300 private void startDelete(int token, Object cookie, Uri uri, String selection, in startDelete() argument
305 mAsyncHandler.startDelete(token, cookie, uri, selection, selectionArgs); in startDelete()
338 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
339 super.onDeleteComplete(token, cookie, result); in onDeleteComplete()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DResetPasswordWithTokenTest.java30 private static final byte[] token = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes(); field in ResetPasswordWithTokenTest
51 token, 0)); in testSetupWorkProfile()
63 token, 0)); in testResetPasswordBeforeUnlock()
71 assertTrue(mDevicePolicyManager.setResetPasswordToken(ADMIN_RECEIVER_COMPONENT, token)); in testSetResetPasswordToken()
/cts/tools/dasm/src/java_cup/runtime/
Dtoken.java13 public class token extends symbol { class
16 public token(int term_num) in token() method in token
Dlr_parser.java237 protected token cur_token;
306 public abstract token scan() throws java.lang.Exception; in scan()
357 public void syntax_error(token cur_token) in syntax_error()
369 public void unrecovered_syntax_error(token cur_token) in unrecovered_syntax_error()
620 public void debug_shift(token shift_tkn) in debug_shift()
833 token error_token; in find_recovery_config()
866 error_token = new token(error_sym()); in find_recovery_config()
877 protected token lookahead[];
890 lookahead = new token[error_sync_size()]; in read_lookahead()
906 protected token cur_err_token() { return lookahead[lookahead_pos]; } in cur_err_token()
Dlong_token.java13 public class long_token extends token {
Dfloat_token.java13 public class float_token extends token {
Dint_token.java13 public class int_token extends token {
Ddouble_token.java13 public class double_token extends token {
Dchar_token.java13 public class char_token extends token {
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractedTextRequestTest.java38 request.token = 2; in testExtractedTextRequest()
50 assertEquals(request.token, target.token); in testExtractedTextRequest()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamObjectTest.java81 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testObjectOneChar() local
86 po.endObject(token); in testObjectOneChar()
108 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testObjectOneLargeChar() local
113 po.endObject(token); in testObjectOneLargeChar()
140 long token = po.startObject(ProtoOutputStream.makeFieldId(2, in testObjectAndTwoChars() local
145 po.endObject(token); in testObjectAndTwoChars()
179 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testEmptyObject() local
181 po.endObject(token); in testEmptyObject()
233 long token = po.startObject(ProtoOutputStream.makeFieldId(2, in testEmptyObjectAndTwoChars() local
235 po.endObject(token); in testEmptyObjectAndTwoChars()
[all …]
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java212 for (String token : tokens) { in getUserSerialNumber()
213 token = token.trim(); in getUserSerialNumber()
214 if (token.contains("UserInfo{" + userId + ":")) { in getUserSerialNumber()
215 String[] split = token.split("serialNo="); in getUserSerialNumber()
/cts/tests/app/src/android/app/cts/
DListActivityTest.java111 final Semaphore token = new Semaphore(0); in runOnMainAndDrawSync() local
122 view.post(() -> token.release()); in runOnMainAndDrawSync()
133 token.tryAcquire(5, TimeUnit.SECONDS)); in runOnMainAndDrawSync()

123