/cts/tools/dasm/src/dasm/ |
D | ReservedWords.java | 21 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 …]
|
D | Scanner.java | 29 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/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 200 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/tools/dasm/src/java_cup/ |
D | lexer.java | 6 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 …]
|
D | parser.java | 330 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/view/src/android/view/inputmethod/cts/ |
D | InputMethodManagerTest.java | 109 IBinder token = view.getWindowToken(); in testInputMethodManager() 113 assertTrue(imManager.hideSoftInputFromWindow(token, 0)); in testInputMethodManager() 119 assertTrue(imManager.hideSoftInputFromWindow(token, 0, receiver)); in testInputMethodManager() 121 imManager.showSoftInputFromInputMethod(token, InputMethodManager.SHOW_FORCED); in testInputMethodManager() 122 imManager.hideSoftInputFromInputMethod(token, InputMethodManager.HIDE_NOT_ALWAYS); in testInputMethodManager() 125 imManager.toggleSoftInputFromWindow(token, 0, InputMethodManager.HIDE_NOT_ALWAYS); in testInputMethodManager() 126 imManager.toggleSoftInputFromWindow(token, 0, InputMethodManager.HIDE_NOT_ALWAYS); in testInputMethodManager() 130 imManager.setInputMethod(token, enabledImList.get(0).getId()); in testInputMethodManager()
|
D | ExtractedTextRequestTest.java | 31 request.token = 2; in testExtractedTextRequest() 43 assertEquals(request.token, target.token); in testExtractedTextRequest()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AsyncQueryHandlerTest.java | 275 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/tests/tests/os/src/android/os/cts/ |
D | TokenWatcherTest.java | 114 IBinder token = mEmptyService.getToken(); in testTokenWatcher() local 121 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher() 126 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher() 132 mMockTokenWatcher.release(token); in testTokenWatcher() 138 mMockTokenWatcher.release(token); in testTokenWatcher() 144 IBinder token = mEmptyService.getToken(); in testCleanUp() local 151 mMockTokenWatcher.acquire(token, TAG); in testCleanUp() 156 mMockTokenWatcher.cleanup(token, true); in testCleanUp()
|
D | HandlerTest.java | 81 Object token = new Object(); in testPostAtTime2() local 82 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2() 201 Object token = new Object(); in testRemoveCallbacksWithObject() local 202 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject() 204 mHandler.removeCallbacks(r1, token); in testRemoveCallbacksWithObject() 212 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject() 214 mHandler.removeCallbacks(r2, token); in testRemoveCallbacksWithObject() 219 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject()
|
D | BinderTest.java | 343 long token = Binder.clearCallingIdentity(); in testClearCallingIdentity() local 344 assertTrue(token > 0); in testClearCallingIdentity() 345 Binder.restoreCallingIdentity(token); in testClearCallingIdentity()
|
/cts/tools/dasm/src/java_cup/runtime/ |
D | token.java | 13 public class token extends symbol { class 16 public token(int term_num) in token() method in token
|
D | lr_parser.java | 237 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()
|
D | float_token.java | 13 public class float_token extends token {
|
D | double_token.java | 13 public class double_token extends token {
|
D | long_token.java | 13 public class long_token extends token {
|
D | int_token.java | 13 public class int_token extends token {
|
D | char_token.java | 13 public class char_token extends token {
|
D | str_token.java | 13 public class str_token extends token {
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | Rfc822TokenizerTest.java | 144 private void localAssertEquals(Rfc822Token token, String name, in localAssertEquals() argument 146 assertEquals(name, token.getName()); in localAssertEquals() 147 assertEquals(address, token.getAddress()); in localAssertEquals() 148 assertEquals(comment, token.getComment()); in localAssertEquals()
|
/cts/tools/dasm/src/dasm/tokens/ |
D | number_token.java | 22 public class number_token extends java_cup.runtime.token {
|
D | variant_token.java | 22 public class variant_token extends java_cup.runtime.token {
|
/cts/tools/dasm/etc/ |
D | java_cup-new.jar | ... init> (int)
}
java_cup/runtime/token.class
token.java
package java_cup.runtime
public ... |
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 338 final String token = String.valueOf(android.os.Process.myUid()); in testDataWrite() local 339 writeString(getContext().getFileStreamPath("my_int"), token); in testDataWrite() 356 final String token = String.valueOf(android.os.Process.myUid()); in testDataRead() local 357 assertEquals(token, readString(getContext().getFileStreamPath("my_int"))); in testDataRead() 398 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataWrite() local 399 writeString(new File(getContext().getExternalFilesDir(null), "my_ext"), token); in testPrimaryDataWrite() 403 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataRead() local 404 assertEquals(token, readString(new File(getContext().getExternalFilesDir(null), "my_ext"))); in testPrimaryDataRead()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | RootProcessScanner.java | 190 private static void findToken(Scanner scanner, String token) { in findToken() argument 193 if (next.equals(token)) { in findToken()
|