Home
last modified time | relevance | path

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

1234

/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.java48 public void sendSms(int token, int messageRef, String format, String smsc, boolean isRetry, in sendSms() argument
54 mToken = token; in sendSms()
75 public void acknowledgeSms(int token, int messageRef, int result) { in acknowledgeSms() argument
76 mToken = token; in acknowledgeSms()
83 public void acknowledgeSmsReport(int token, int messageRef, int result) { in acknowledgeSmsReport() argument
84 mToken = token; in acknowledgeSmsReport()
91 public void acknowledgeSms(int token, int messageRef, int result, byte[] pdu) { in acknowledgeSms() argument
93 mToken = token; in acknowledgeSms()
104 public void onMemoryAvailable(int token) { in onMemoryAvailable() argument
105 mToken = token; in onMemoryAvailable()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DTokenWatcherTest.java115 IBinder token = mEmptyService.getToken(); in testTokenWatcher() local
122 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher()
127 mMockTokenWatcher.acquire(token, TAG); in testTokenWatcher()
133 mMockTokenWatcher.release(token); in testTokenWatcher()
139 mMockTokenWatcher.release(token); in testTokenWatcher()
145 IBinder token = mEmptyService.getToken(); in testCleanUp() local
152 mMockTokenWatcher.acquire(token, TAG); in testCleanUp()
157 mMockTokenWatcher.cleanup(token, true); in testCleanUp()
164 IBinder token = mEmptyService.getToken(); in testRepeatedAcquire() local
171 mMockTokenWatcher.acquire(token, TAG); in testRepeatedAcquire()
[all …]
DBinderTest.java147 long token = Binder.clearCallingIdentity(); in testClearCallingIdentity() local
148 assertTrue(token > 0); in testClearCallingIdentity()
149 Binder.restoreCallingIdentity(token); in testClearCallingIdentity()
160 long token = Binder.clearCallingIdentity(); in testGetCallingUidOrThrow_insideClearRestoreCallingIdentity_doesNotThrow() local
164 Binder.restoreCallingIdentity(token); in testGetCallingUidOrThrow_insideClearRestoreCallingIdentity_doesNotThrow()
171 long token = Binder.clearCallingIdentity(); in testGetCallingUidOrThrow_afterClearRestoreCallingIdentity_throws() local
175 Binder.restoreCallingIdentity(token); in testGetCallingUidOrThrow_afterClearRestoreCallingIdentity_throws()
230 long token = Binder.clearCallingIdentity(); in testGetCallingUidOrThrow_duplicateClearsAreStoredInSameVariable_doesNotThrow() local
231 token = Binder.clearCallingIdentity(); in testGetCallingUidOrThrow_duplicateClearsAreStoredInSameVariable_doesNotThrow()
235 Binder.restoreCallingIdentity(token); in testGetCallingUidOrThrow_duplicateClearsAreStoredInSameVariable_doesNotThrow()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java277 private void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
282 mAsyncHandler.startQuery(token, cookie, uri, projection, in startQuery()
286 private void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
291 mAsyncHandler.startInsert(token, cookie, uri, initialValues); in startInsert()
294 private void startUpdate(int token, Object cookie, Uri uri, ContentValues values, in startUpdate() argument
299 mAsyncHandler.startUpdate(token, cookie, uri, values, selection, selectionArgs); in startUpdate()
302 private void startDelete(int token, Object cookie, Uri uri, String selection, in startDelete() argument
307 mAsyncHandler.startDelete(token, cookie, uri, selection, selectionArgs); in startDelete()
340 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
341 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/widget/src/android/widget/cts/
DToastPresenterTest.java62 Binder token = new Binder(); in testUpdateLayoutParams() local
65 toastPresenter.show(view, token, windowToken, 0, 0, 0, 0, 0, 0, null); in testUpdateLayoutParams()
80 Binder token = new Binder(); in testShowOnInvalidDisplay_doNotThrow() local
88 toastPresenter.show(view, token, windowToken, 0, 0, 0, 0, 0, 0, null); in testShowOnInvalidDisplay_doNotThrow()
95 Binder token = new Binder(); in testAddA11yClientOnlyWhenShowing() local
106 toastPresenter.show(view, token, windowToken, 0, 0, 0, 0, 0, 0, null); in testAddA11yClientOnlyWhenShowing()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DISharedFilterTestServer.aidl22 void freeSharedFilterToken(String token); in freeSharedFilterToken() argument
23 boolean verifySharedFilter(String token); in verifySharedFilter() argument
DSharedFilterTestService.java81 public void freeSharedFilterToken(String token) { in freeSharedFilterToken() argument
82 mFilter.freeSharedFilterToken(token); in freeSharedFilterToken()
86 public boolean verifySharedFilter(String token) { in verifySharedFilter() argument
88 mContext, token, getExecutor(), getSharedFilterCallback()); in verifySharedFilter()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DISharedFilterTestServer.aidl22 void freeSharedFilterToken(String token); in freeSharedFilterToken() argument
23 boolean verifySharedFilter(String token); in verifySharedFilter() argument
DSharedFilterTestService.java81 public void freeSharedFilterToken(String token) { in freeSharedFilterToken() argument
82 mFilter.freeSharedFilterToken(token); in freeSharedFilterToken()
86 public boolean verifySharedFilter(String token) { in verifySharedFilter() argument
88 mContext, token, getExecutor(), getSharedFilterCallback()); in verifySharedFilter()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DAInputTransferTokenTest.java51 InputTransferToken token = in testAInputTransferToken_fromToJava() local
53 long nativeToken = nAInputTransferTokenFromJava(token); in testAInputTransferToken_fromToJava()
56 assertEquals("Token from Java and native don't match", token, fromNative); in testAInputTransferToken_fromToJava()
/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/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionTestActivity.java100 MediaSession.Token token = getIntent().getParcelableExtra(KEY_SESSION_TOKEN); in setMediaControllerIfInForeground() local
101 if (token != null) { in setMediaControllerIfInForeground()
102 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()
/cts/tests/contextualsearch/src/android/contextualsearch/cts/
DContextualSearchManagerTest.kt131 val token = mWatcher!!.launchExtras!! in testRequestContextualSearchState() constant
134 token.getContextualSearchState(context.mainExecutor, callback) in testRequestContextualSearchState()
152 val token = mWatcher!!.launchExtras!! in testRequestContextualSearchStateWithTokenRefresh() constant
155 token.getContextualSearchState(context.mainExecutor, callback) in testRequestContextualSearchStateWithTokenRefresh()
185 val token = mWatcher!!.launchExtras!! in testTokenWithinValidDuration() constant
188 token.getContextualSearchState(context.mainExecutor, callback) in testTokenWithinValidDuration()
191 token.getContextualSearchState(context.mainExecutor, callback) in testTokenWithinValidDuration()
208 val token = mWatcher!!.launchExtras!! in testTokenAfterValidDuration() constant
214 token.getContextualSearchState(context.mainExecutor, callback) in testTokenAfterValidDuration()
DCallbackTokenTest.kt40 assertThat(recreatedCallbackToken.token).isEqualTo(callbackToken.token) in testCallbackTokenDataClass()
/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/tests/tests/media/projection/sdk34/
DREADME6 The test app re-uses the user's consent token through two possible mechanisms:
7 1. caching the Intent result containing the user's consent token
/cts/tests/tests/media/projection/sdk33/
DREADME6 The test app re-uses the user's consent token through two possible mechanisms:
7 1. caching the Intent result containing the user's consent token
/cts/tests/app/src/android/app/cts/
DListActivityTest.java90 final Semaphore token = new Semaphore(0); in runOnMainAndDrawSync() local
101 view.post(() -> token.release()); in runOnMainAndDrawSync()
112 token.tryAcquire(5, TimeUnit.SECONDS)); in runOnMainAndDrawSync()
/cts/hostsidetests/media/app/ProxyMediaRouterWithMediaContentControlApp/src/android/media/router/cts/proxymediacontentcontrolapp/
DMediaRouter2DeviceTest.java139 MediaRouter2.ScanToken token = instance.requestScan(new ScanRequest.Builder().build()); in requestScan_withScreenOnScanning_triggersScanning() local
145 instance.cancelScanRequest(token); in requestScan_withScreenOnScanning_triggersScanning()
156 MediaRouter2.ScanToken token = instance.requestScan(new ScanRequest.Builder().build()); in cancelScanRequest_callTwice_throwsIllegalArgumentException() local
157 instance.cancelScanRequest(token); in cancelScanRequest_callTwice_throwsIllegalArgumentException()
158 assertThrows(IllegalArgumentException.class, () -> instance.cancelScanRequest(token)); in cancelScanRequest_callTwice_throwsIllegalArgumentException()
193 MediaRouter2.ScanToken token = in cancelScanRequest_screenOnScanning_unbindsSelfScanProvider() local
197 instance.cancelScanRequest(token); in cancelScanRequest_screenOnScanning_unbindsSelfScanProvider()
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/
DRestoreSessionTest.java84 long token = 0L;
87 long restoreToken = restoreSet.token;
91 token = restoreSet.token;
96 mRestoreToken = token;

1234