/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/tests/tests/text/src/android/text/method/cts/ |
D | EditorState.java | 89 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/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | TestImsSmsImpl.java | 45 public void sendSms(int token, int messageRef, String format, String smsc, boolean isRetry, in sendSms() argument 51 mToken = token; in sendSms() 72 public void acknowledgeSms(int token, int messageRef, int result) { in acknowledgeSms() argument 73 mToken = token; in acknowledgeSms() 80 public void acknowledgeSmsReport(int token, int messageRef, int result) { in acknowledgeSmsReport() argument 81 mToken = token; in acknowledgeSmsReport() 87 public void receiveSmsWaitForAcknowledge(int token, String format, byte[] pdu) { in receiveSmsWaitForAcknowledge() argument 88 onSmsReceived(token, format, pdu); in receiveSmsWaitForAcknowledge() 97 assertEquals("Token mismatch.", token, mToken); in receiveSmsWaitForAcknowledge() 102 public void sendReportWaitForAcknowledgeSmsReportR(int token, String format, byte[] pdu) { in sendReportWaitForAcknowledgeSmsReportR() argument [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | TokenWatcherTest.java | 113 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 …]
|
D | HandlerTest.java | 83 Object token = new Object(); in testPostAtTime2() local 84 assertTrue(mHandler.postAtTime(r, token, SystemClock.uptimeMillis() + RUNTIME)); in testPostAtTime2() 203 Object token = new Object(); in testRemoveCallbacksWithObject() local 204 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject() 206 mHandler.removeCallbacks(r1, token); in testRemoveCallbacksWithObject() 214 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject() 216 mHandler.removeCallbacks(r2, token); in testRemoveCallbacksWithObject() 221 mHandler.postAtTime(r1, token, SystemClock.uptimeMillis() + RUNTIME); in testRemoveCallbacksWithObject()
|
D | BinderTest.java | 379 long token = Binder.clearCallingIdentity(); in testClearCallingIdentity() local 380 assertTrue(token > 0); in testClearCallingIdentity() 381 Binder.restoreCallingIdentity(token); in testClearCallingIdentity()
|
/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/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamObjectTest.java | 82 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testObjectOneChar() local 87 po.endObject(token); in testObjectOneChar() 109 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testObjectOneLargeChar() local 114 po.endObject(token); in testObjectOneLargeChar() 141 long token = po.startObject(ProtoOutputStream.makeFieldId(2, in testObjectAndTwoChars() local 146 po.endObject(token); in testObjectAndTwoChars() 180 long token = po.startObject(ProtoOutputStream.makeFieldId(1, in testEmptyObject() local 182 po.endObject(token); in testEmptyObject() 234 long token = po.startObject(ProtoOutputStream.makeFieldId(2, in testEmptyObjectAndTwoChars() local 236 po.endObject(token); in testEmptyObjectAndTwoChars() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ResetPasswordWithTokenTest.java | 32 private static final byte[] token = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes(); field in ResetPasswordWithTokenTest 53 token, 0)); in testSetupWorkProfile() 61 token, 0)); in testResetPasswordBeforeUnlock() 77 token, 0)); in testClearPasswordBeforeUnlock() 94 assertTrue(mDevicePolicyManager.setResetPasswordToken(ADMIN_RECEIVER_COMPONENT, token)); in testSetResetPasswordToken()
|
/cts/tests/tests/telephony/TestSmsRetrieverApp/src/android/telephony/cts/smsretriever/ |
D | MainActivity.java | 50 String token = null; in onCreate() local 52 token = SmsManager.getDefault().createAppSpecificSmsTokenWithPackageInfo( in onCreate() 61 result.putString("token", token); in onCreate() 66 equalTo("testprefix1This is a test message" + token)); in onCreate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaSessionTestActivity.java | 34 MediaSession.Token token = getIntent().getParcelableExtra(KEY_SESSION_TOKEN); in onResume() local 35 if (token != null) { in onResume() 36 MediaController controller = new MediaController(this, token); in onResume()
|
D | MediaController2Test.java | 150 final Session2Token token = new Session2Token( in testBuilder_withIllegalArguments() local 154 MediaController2.Builder builder = new MediaController2.Builder(null, token); in testBuilder_withIllegalArguments() 168 MediaController2.Builder builder = new MediaController2.Builder(mContext, token); in testBuilder_withIllegalArguments() 176 MediaController2.Builder builder = new MediaController2.Builder(mContext, token); in testBuilder_withIllegalArguments() 184 MediaController2.Builder builder = new MediaController2.Builder(mContext, token); in testBuilder_withIllegalArguments() 233 final Session2Token token = new Session2Token( in testBuilder_setConnectionHints_withCustomParcelable() local 242 try (MediaController2 controller = new MediaController2.Builder(mContext, token) in testBuilder_setConnectionHints_withCustomParcelable() 385 Object token = controller.sendSessionCommand(command, commandArg); in testCancelSessionCommand() local 386 controller.cancelSessionCommand(token); in testCancelSessionCommand() 465 public void onCommandResult(MediaController2 controller, Object token, in onCommandResult() argument [all …]
|
D | MediaSession2Test.java | 215 Session2Token token = session.getToken(); in testSession2Token() local 216 assertEquals(Process.myUid(), token.getUid()); in testSession2Token() 217 assertEquals(mContext.getPackageName(), token.getPackageName()); in testSession2Token() 218 assertNull(token.getServiceName()); in testSession2Token() 219 assertEquals(Session2Token.TYPE_SESSION, token.getType()); in testSession2Token() 220 assertEquals(0, token.describeContents()); in testSession2Token() 221 assertTrue(token.getExtras().isEmpty()); in testSession2Token() 229 Session2Token token = session.getToken(); in testSession2Token_extrasNotSet() local 230 assertTrue(token.getExtras().isEmpty()); in testSession2Token_extrasNotSet() 290 Session2Token token = session.getToken(); in testSession2Token_writeToParcel() local [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextRequestTest.java | 39 request.token = 2; in testExtractedTextRequest() 51 assertEquals(request.token, target.token); in testExtractedTextRequest()
|
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/ |
D | RestoreSessionTest.java | 78 long token = 0L; 81 long restoreToken = restoreSet.token; 85 token = restoreSet.token; 90 mRestoreToken = token;
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 625 int token = mChannel.configure(s, rateLevel); in runSensorDirectReportTest() local 626 assertTrue("configure direct mChannel failed", token > 0); in runSensorDirectReportTest() 632 checkSharedMemoryContent(s, memType, rateLevel, token); in runSensorDirectReportTest() 773 int token = mChannel.configure(s, rateLevel); in runMultiModeRateIndependencyTest() local 784 List<DirectReportSensorEvent> events = parseEntireBuffer(mBuffer, token); in runMultiModeRateIndependencyTest() 818 int token = mChannel.configure(s, rateLevel); in runTimestampTest() local 819 assertTrue("configure direct mChannel failed", token > 0); in runTimestampTest() 859 int token = mChannel.configure(s, s.getHighestDirectReportRateLevel()); in runAtomicCounterTest() local 860 assertTrue("configure direct mChannel failed", token > 0); in runAtomicCounterTest() 900 int token = mChannel.configure(s, rateLevel); in runReconfigureTest() local [all …]
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | BuildUtilBase.java | 97 String token = scanner.findWithinHorizon(methodPattern, content.length()); in parseTestMethod() local 98 if (token == null) { in parseTestMethod() 204 String token = null; in parseTestClassName() local 206 token = scanner.findWithinHorizon(pattern, methodSource.length()); in parseTestClassName() 207 if (token != null) { in parseTestClassName() 212 if (token == null) { in parseTestClassName()
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | Rfc822TokenizerTest.java | 185 private void verifyLocalAssertEquals(Rfc822Token token, String name, in verifyLocalAssertEquals() argument 187 assertEquals(name, token.getName()); in verifyLocalAssertEquals() 188 assertEquals(address, token.getAddress()); in verifyLocalAssertEquals() 189 assertEquals(comment, token.getComment()); in verifyLocalAssertEquals()
|
/cts/tests/app/src/android/app/cts/ |
D | ListActivityTest.java | 111 final Semaphore token = new Semaphore(0); in runOnMainAndDrawSync() local 122 view.post(() -> token.release()); in runOnMainAndDrawSync() 133 token.tryAcquire(5, TimeUnit.SECONDS)); in runOnMainAndDrawSync()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 246 for (String token : tokens) { in getUserSerialNumber() 247 token = token.trim(); in getUserSerialNumber() 248 Matcher matcher = pattern.matcher(token); in getUserSerialNumber()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 402 final String token = String.valueOf(android.os.Process.myUid()); in testDataWrite() local 403 writeString(getContext().getFileStreamPath("my_int"), token); in testDataWrite() 420 final String token = String.valueOf(android.os.Process.myUid()); in testDataRead() local 421 assertEquals(token, readString(getContext().getFileStreamPath("my_int"))); in testDataRead() 462 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataWrite() local 463 writeString(new File(getContext().getExternalFilesDir(null), "my_ext"), token); in testPrimaryDataWrite() 467 final String token = String.valueOf(android.os.Process.myUid()); in testPrimaryDataRead() local 468 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()
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
D | UtilsProvider.java | 56 final long token = Binder.clearCallingIdentity(); in call() local 92 Binder.restoreCallingIdentity(token); in call()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoReceiveSmsPermissionTest.java | 114 String token = SmsManager.getDefault().createAppSpecificSmsToken(receivedIntent); in testAppSpecificSmsToken() local 115 String message = "test message, token=" + token; in testAppSpecificSmsToken()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NetworkLoggingTest.java | 83 final long token = 88 token); 90 fail("Failed to retrieve batch of network logs with batch token " + token);
|