/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 | BinderTest.java | 381 long token = Binder.clearCallingIdentity(); in testClearCallingIdentity() local 382 assertTrue(token > 0); in testClearCallingIdentity() 383 Binder.restoreCallingIdentity(token); in testClearCallingIdentity() 387 final long token = Binder.clearCallingWorkSource(); in testClearCallingWorkSource() local 388 Binder.restoreCallingWorkSource(token); in testClearCallingWorkSource() 395 final long token = Binder.setCallingWorkSourceUid(otherUid); in testSetCallingWorkSourceUid() local 397 Binder.restoreCallingWorkSource(token); in testSetCallingWorkSourceUid()
|
/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/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/instantapp/src/android/cts/instantapp/resolver/ |
D | InstantAppRequestInfoTest.kt | 32 private val token = UUID.randomUUID().toString() constant 35 isRequesterInstantApp, token) 59 assertThat(info.token).isEqualTo(token) in assertValues()
|
/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/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 | 102 MediaSession.Token token = getIntent().getParcelableExtra(KEY_SESSION_TOKEN); in setMediaControllerIfInForeground() local 103 if (token != null) { in setMediaControllerIfInForeground() 104 MediaController controller = new MediaController(this, token); in setMediaControllerIfInForeground()
|
D | MediaSessionTestService.java | 52 MediaSession.Token token = args.getParcelable(KEY_SESSION_TOKEN); in testSeriesOfSetQueue_setUp() local 67 mMediaController = new MediaController(this, token); in testSeriesOfSetQueue_setUp() 84 MediaSession.Token token = args.getParcelable(KEY_SESSION_TOKEN); in testSetQueue_setUp() local 96 mMediaController = new MediaController(this, token); in testSetQueue_setUp()
|
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/tests/telephony/current/src/android/telephony/gba/cts/ |
D | TestGbaService.java | 40 public void onAuthenticationRequest(int subId, int token, int appType, in onAuthenticationRequest() argument 48 reportKeysAvailable(token, key, btid); in onAuthenticationRequest() 50 reportAuthenticationFailure(token, reason); in onAuthenticationRequest()
|
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/ |
D | RestoreSessionTest.java | 80 long token = 0L; 83 long restoreToken = restoreSet.token; 87 token = restoreSet.token; 92 mRestoreToken = token;
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 745 int token = mChannel.configure(s, rateLevel); in runSensorDirectReportTest() local 746 assertTrue("configure direct mChannel failed", token > 0); in runSensorDirectReportTest() 752 checkSharedMemoryContent(s, memType, rateLevel, token); in runSensorDirectReportTest() 775 int token = mChannel.configure(s, rateLevel); in runSensorDirectReportUidIdleTest() local 776 assertTrue("configure direct mChannel failed", token > 0); in runSensorDirectReportUidIdleTest() 803 checkSharedMemoryContent(s, memType, rateLevel, token); in runSensorDirectReportUidIdleTest() 951 int token = mChannel.configure(s, rateLevel); in runMultiModeRateIndependencyTest() local 962 List<DirectReportSensorEvent> events = parseEntireBuffer(token, mEventPool, mByteBuffer, in runMultiModeRateIndependencyTest() 997 int token = mChannel.configure(s, rateLevel); in runTimestampTest() local 998 assertTrue("configure direct mChannel failed", token > 0); in runTimestampTest() [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/sensor/src/android/hardware/cts/helpers/ |
D | SensorRatePermissionDirectReportTestHelper.java | 165 int token = channel.configure(mSensor, rateLevel); in getSensorEvents() local 169 readEventsFromHardwareBuffer(token, hardwareBuffer, sensorEventCount); in getSensorEvents() 179 int token, HardwareBuffer hardwareBuffer, int sensorEventCount) { in readEventsFromHardwareBuffer() argument 188 SensorDirectReportTest.parseEntireBuffer(token, eventPool, byteBuffer, in readEventsFromHardwareBuffer()
|
/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/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/framework/base/windowmanager/overlayappbase/src/android/server/wm/overlay/ |
D | UntrustedTouchTestService.java | 102 public void showActivityChildWindow(String name, IBinder token) throws RemoteException { in showActivityChildWindow() argument 105 params.token = token; in showActivityChildWindow()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextRequestTest.java | 54 request.token = EXPECTED_TOKEN; in createForTest() 70 assertEquals(EXPECTED_TOKEN, request.token); in assertTestInstance()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ToastPresenterTest.java | 66 Binder token = new Binder(); in testUpdateLayoutParams() local 68 mToastPresenter.show(view, token, windowToken, 0, 0, 0, 0, 0, 0, null); in testUpdateLayoutParams()
|
/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()
|