Home
last modified time | relevance | path

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

123

/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/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/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsSmsImpl.java45 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/
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 …]
DBinderTest.java381 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/
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.java32 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/
DInstantAppRequestInfoTest.kt32 private val token = UUID.randomUUID().toString() constant in android.cts.instantapp.resolver.InstantAppRequestInfoTest
35 isRequesterInstantApp, token)
59 assertThat(info.token).isEqualTo(token) in assertValues()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamObjectTest.java82 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/
DMainActivity.java50 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/
DMediaSessionTestActivity.java102 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()
DMediaSessionTestService.java52 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()
DMediaController2Test.java150 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 …]
DMediaSession2Test.java215 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/
DTestGbaService.java40 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/
DRestoreSessionTest.java80 long token = 0L;
83 long restoreToken = restoreSet.token;
87 token = restoreSet.token;
92 mRestoreToken = token;
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java745 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/
DBuildUtilBase.java97 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/
DSensorRatePermissionDirectReportTestHelper.java165 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/
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()
/cts/tests/tests/text/src/android/text/util/cts/
DRfc822TokenizerTest.java185 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/
DUntrustedTouchTestService.java102 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/
DExtractedTextRequestTest.java54 request.token = EXPECTED_TOKEN; in createForTest()
70 assertEquals(EXPECTED_TOKEN, request.token); in assertTestInstance()
/cts/tests/tests/widget/src/android/widget/cts/
DToastPresenterTest.java66 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/
DNumberBlockingTest.java246 for (String token : tokens) { in getUserSerialNumber()
247 token = token.trim(); in getUserSerialNumber()
248 Matcher matcher = pattern.matcher(token); in getUserSerialNumber()

123