Searched defs:token (Results 101 - 125 of 221) sorted by relevance

123456789

/frameworks/base/core/java/android/content/
H A DBroadcastReceiver.java87 boolean ordered, boolean sticky, IBinder token, int userId, int flags) {
94 mToken = token;
86 PendingResult(int resultCode, String resultData, Bundle resultExtras, int type, boolean ordered, boolean sticky, IBinder token, int userId, int flags) argument
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManagerGlobal.java423 public void setVirtualDisplaySurface(IVirtualDisplayCallback token, Surface surface) { argument
425 mDm.setVirtualDisplaySurface(token, surface);
431 public void resizeVirtualDisplay(IVirtualDisplayCallback token, argument
434 mDm.resizeVirtualDisplay(token, width, height, densityDpi);
440 public void releaseVirtualDisplay(IVirtualDisplayCallback token) { argument
442 mDm.releaseVirtualDisplay(token);
/frameworks/base/core/java/android/os/
H A DHandler.java402 public final boolean postAtTime(Runnable r, Object token, long uptimeMillis) argument
404 return sendMessageAtTime(getPostMessage(r, token), uptimeMillis);
518 * <var>token</var> that are in the message queue. If <var>token</var> is null,
521 public final void removeCallbacks(Runnable r, Object token) argument
523 mQueue.removeMessages(this, r, token);
683 * <var>obj</var> is <var>token</var>. If <var>token</var> is null,
686 public final void removeCallbacksAndMessages(Object token) { argument
687 mQueue.removeCallbacksAndMessages(this, token);
781 getPostMessage(Runnable r, Object token) argument
[all...]
H A DMessageQueue.java59 // The next barrier token.
60 // Barriers are indicated by messages with a null target whose arg1 field carries the token.
444 * the token that identifies the synchronization barrier.
452 * the same token to ensure that the message queue resumes normal operation.
455 * @return A token that uniquely identifies the barrier. This token must be
465 // Enqueue a new sync barrier token.
468 final int token = mNextBarrierToken++;
472 msg.arg1 = token;
489 return token;
503 removeSyncBarrier(int token) argument
[all...]
H A DBinder.java47 * token that can be shared across processes.
233 * @return Returns an opaque token that can be used to restore the
248 * @param token The opaque token that was previously returned by
253 public static final native void restoreCallingIdentity(long token); argument
/frameworks/base/core/java/android/service/trust/
H A DTrustAgentService.java126 * Int enum indicating that escrow token is active.
133 * Int enum indicating that escow token is inactive.
158 private static final String EXTRA_TOKEN = "token";
167 final IBinder token; field in class:TrustAgentService.ConfigurationData
171 token = t;
196 if (data.token != null) {
199 mCallback.onConfigureCompleted(result, data.token);
218 byte[] token = data.getByteArray(EXTRA_TOKEN);
221 onEscrowTokenAdded(token, handle, user);
307 * Called when an escrow token i
315 onEscrowTokenAdded(byte[] token, long handle, UserHandle user) argument
478 addEscrowToken(byte[] token, UserHandle user) argument
546 unlockUserWithToken(long handle, byte[] token, UserHandle user) argument
589 onConfigure(List<PersistableBundle> args, IBinder token) argument
625 onEscrowTokenAdded(byte[] token, long handle, UserHandle user) argument
[all...]
/frameworks/base/core/java/android/util/
H A DJsonReader.java33 * Within JSON objects, name/value pairs are represented by a single token.
193 * long as the longest token that can be reported as a number.
211 * The type of the next token to be returned by {@link #peek} and {@link
214 private JsonToken token; field in class:JsonReader
273 * Consumes the next token from the JSON stream and asserts that it is the
281 * Consumes the next token from the JSON stream and asserts that it is the
289 * Consumes the next token from the JSON stream and asserts that it is the
297 * Consumes the next token from the JSON stream and asserts that it is the
309 if (token != expected) {
320 return token !
[all...]
/frameworks/base/core/java/android/view/
H A DWindowManagerInternal.java112 * @param openToken the token for the opening app
113 * @param closeToken the token for the closing app
130 * @param token the token for app whose transition has finished
132 public void onAppTransitionFinishedLocked(IBinder token) {} argument
186 * Gets the magnification and translation applied to a window given its token.
191 * @param windowToken The window's token.
217 * Gets the token of the window that has input focus.
219 * @return The token.
232 * Gets the frame of a window given its token
237 getWindowFrame(IBinder token, Rect outBounds) argument
257 addWindowToken(android.os.IBinder token, int type, int displayId) argument
266 removeWindowToken(android.os.IBinder token, boolean removeWindows, int displayId) argument
[all...]
H A DChoreographer.java142 // All frame callbacks posted by applications have this token.
364 * @param token The callback token, or null if none.
369 public void postCallback(int callbackType, Runnable action, Object token) { argument
370 postCallbackDelayed(callbackType, action, token, 0);
381 * @param token The callback token, or null if none.
388 Runnable action, Object token, long delayMillis) {
396 postCallbackDelayedInternal(callbackType, action, token, delayMillis);
400 Object action, Object token, lon
387 postCallbackDelayed(int callbackType, Runnable action, Object token, long delayMillis) argument
399 postCallbackDelayedInternal(int callbackType, Object action, Object token, long delayMillis) argument
436 removeCallbacks(int callbackType, Runnable action, Object token) argument
444 removeCallbacksInternal(int callbackType, Object action, Object token) argument
765 obtainCallbackLocked(long dueTime, Object action, Object token) argument
905 public Object token; field in class:Choreographer.CallbackRecord
943 addCallbackLocked(long dueTime, Object action, Object token) argument
965 removeCallbacksLocked(Object action, Object token) argument
[all...]
H A DWindowManagerGlobal.java221 public ArrayList<ViewRootImpl> getRootViews(IBinder token) { argument
227 if (params.token == null) {
230 if (params.token != token) {
237 if (params.token == viewj.getWindowToken()
238 && paramsj.token == token) {
340 if (mRoots.get(i).mWindow.asBinder() == wparams.token) {
407 * Remove all roots with specified token.
409 * @param token ap
413 closeAll(IBinder token, String who, String what) argument
426 closeAllExceptView(IBinder token, View view, String who, String what) argument
605 setStoppedState(IBinder token, boolean stopped) argument
629 changeCanvasOpacity(IBinder token, boolean opaque) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DMediaSessions.java106 public void setVolume(Token token, int level) { argument
107 final MediaControllerRecord r = mRecords.get(token);
109 Log.w(TAG, "setVolume: No record found for token " + token);
120 final Token token = controller.getSessionToken();
121 mCallbacks.onRemoteVolumeChanged(token, flags);
137 final Token token = controller.getSessionToken();
139 toRemove.remove(token);
140 if (!mRecords.containsKey(token)) {
143 mRecords.put(token,
198 updateRemoteH(Token token, String name, PlaybackInfo pi) argument
373 onRemoteUpdate(Token token, String name, PlaybackInfo pi) argument
375 onRemoteVolumeChanged(Token token, int flags) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DGraphicsStatsService.java165 public ParcelFileDescriptor requestBufferForProcess(String packageName, IGraphicsStatsCallback token) argument
178 pfd = requestBufferForProcessLocked(token, uid, pid, packageName, info.versionCode);
199 private ParcelFileDescriptor requestBufferForProcessLocked(IGraphicsStatsCallback token, argument
201 ActiveBuffer buffer = fetchActiveBuffersLocked(token, uid, pid, packageName, versionCode);
294 private ActiveBuffer fetchActiveBuffersLocked(IGraphicsStatsCallback token, int uid, int pid, argument
313 ActiveBuffer buffers = new ActiveBuffer(token, uid, pid, packageName, versionCode);
411 ActiveBuffer(IGraphicsStatsCallback token, int uid, int pid, String packageName, int versionCode) argument
416 mCallback = token;
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvRemoteProviderProxy.java240 public void inputBridgeConnected(IBinder token) { argument
242 if (DEBUG) Slog.d(TAG, this + ": inputBridgeConnected token: " + token);
244 mActiveConnection.onInputBridgeConnected(token);
251 void openInputBridge(TvRemoteProviderProxy provider, IBinder token, String name, argument
254 void closeInputBridge(TvRemoteProviderProxy provider, IBinder token); argument
256 void clearInputBridge(TvRemoteProviderProxy provider, IBinder token); argument
258 void sendTimeStamp(TvRemoteProviderProxy provider, IBinder token, long timestamp); argument
260 void sendKeyDown(TvRemoteProviderProxy provider, IBinder token, int keyCode); argument
262 void sendKeyUp(TvRemoteProviderProxy provider, IBinder token, in argument
264 sendPointerDown(TvRemoteProviderProxy provider, IBinder token, int pointerId, int x, int y) argument
267 sendPointerUp(TvRemoteProviderProxy provider, IBinder token, int pointerId) argument
269 sendPointerSync(TvRemoteProviderProxy provider, IBinder token) argument
306 onInputBridgeConnected(IBinder token) argument
325 openInputBridge(final IBinder token, final String name, final int width, final int height, final int maxPointers) argument
352 closeInputBridge(final IBinder token) argument
377 clearInputBridge(final IBinder token) argument
402 sendTimestamp(final IBinder token, final long timestamp) argument
424 sendKeyDown(final IBinder token, final int keyCode) argument
450 sendKeyUp(final IBinder token, final int keyCode) argument
475 sendPointerDown(final IBinder token, final int pointerId, final int x, final int y) argument
501 sendPointerUp(final IBinder token, final int pointerId) argument
527 sendPointerSync(final IBinder token) argument
574 openInputBridge(IBinder token, String name, int width, int height, int maxPointers) argument
583 closeInputBridge(IBinder token) argument
591 clearInputBridge(IBinder token) argument
599 sendTimestamp(IBinder token, long timestamp) argument
607 sendKeyDown(IBinder token, int keyCode) argument
615 sendKeyUp(IBinder token, int keyCode) argument
623 sendPointerDown(IBinder token, int pointerId, int x, int y) argument
632 sendPointerUp(IBinder token, int pointerId) argument
640 sendPointerSync(IBinder token) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DBoundsAnimationController.java89 public void onAppTransitionFinishedLocked(IBinder token) { argument
H A DWindowSurfacePlacer.java94 public AppWindowToken token; field in class:WindowSurfacePlacer.LayerAndToken
285 // (1) Determine if both the closing and opening app token sets are wallpaper targets, in
339 mTmpLayerAndToken.token = null;
341 final AppWindowToken topClosingApp = mTmpLayerAndToken.token;
398 // This token isn't going to be animating. Add it to the list of tokens to
401 mService.mNoAnimationNotifyOnTransitionFinished.add(wtoken.token);
471 if (layerAndToken.token == null || layer > layerAndToken.layer) {
472 layerAndToken.token = wtoken;
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowTestUtils.java98 TestAppWindowToken(WindowManagerService service, IApplicationToken token, argument
104 super(service, token, voiceInteraction, dc, inputDispatchingTimeoutNanos, fullscreen,
243 IApplicationToken token) {
244 super(taskController, token, null /* listener */, 0 /* index */,
251 mToken = token;
255 AppWindowToken createAppWindow(WindowManagerService service, IApplicationToken token, argument
261 return new TestAppWindowToken(service, token, voiceInteraction, dc,
287 WindowManager.LayoutParams attrs, WindowToken token) {
288 super(service, session, window, token, null, OP_NONE, 0, attrs, 0, 0,
242 TestAppWindowContainerController(TestTaskWindowContainerController taskController, IApplicationToken token) argument
286 TestWindowState(WindowManagerService service, Session session, IWindow window, WindowManager.LayoutParams attrs, WindowToken token) argument
/frameworks/native/cmds/dumpstate/tests/
H A Ddumpstate_test.cpp561 sp<IDumpstateToken> token; local
562 EXPECT_TRUE(dss.setListener("", listener, &token).isOk());
563 ASSERT_THAT(token, IsNull());
567 sp<IDumpstateToken> token; local
568 EXPECT_TRUE(dss.setListener("whatever", nullptr, &token).isOk());
569 ASSERT_THAT(token, IsNull());
574 sp<IDumpstateToken> token; local
575 EXPECT_TRUE(dss.setListener("whatever", listener, &token).isOk());
576 ASSERT_THAT(token, NotNull());
579 token
[all...]
/frameworks/rs/script_api/
H A DGenerateStubsWhiteList.cpp34 const char* token[3]; // The last two entries can be nullptr member in struct:BuiltInMangling
100 // Try to substitue each token.
104 // No substitution possible, just go to the next token.
130 // Replace the token with the substitution. Don't advance, as the new substitution
162 if (!a.token[i]) {
166 if (t == end || *t++ != a.token[i]) {
/frameworks/support/media-compat/api21/android/support/v4/media/session/
H A DMediaSessionCompatApi21.java55 public static Object verifyToken(Object token) { argument
56 if (token instanceof MediaSession.Token) {
57 return token;
59 throw new IllegalArgumentException("token is not a valid MediaSession.Token object");
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp422 sp<AReplyToken> token = looper->createReplyToken(); local
423 if (token == NULL) {
424 ALOGE("failed to create reply token");
427 setObject("replyID", token);
430 return looper->awaitResponse(token, response);
435 ALOGW("failed to post reply to a NULL token");
/frameworks/av/services/radio/
H A DRadioService.cpp633 int64_t token = IPCThreadState::self()->clearCallingIdentity(); local
638 IPCThreadState::self()->restoreCallingIdentity(token);
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java70 // The currently-active restore set always has the same (nonzero!) token
435 for (long token : POSSIBLE_SETS) {
436 if ((new File(mDataDir, Long.toString(token))).exists()) {
437 existing[num++] = token;
452 // The current restore set always has the same token
457 public int startRestore(long token, PackageInfo[] packages) { argument
458 if (DEBUG) Log.v(TAG, "start restore " + token + " : " + packages.length
462 mRestoreSetDir = new File(mDataDir, Long.toString(token));
/frameworks/base/keystore/java/android/security/
H A DKeyStore.java504 public OperationResult update(IBinder token, KeymasterArguments arguments, byte[] input) { argument
506 return mBinder.update(token, arguments, input);
513 public OperationResult finish(IBinder token, KeymasterArguments arguments, byte[] signature, argument
516 return mBinder.finish(token, arguments, signature, entropy);
523 public OperationResult finish(IBinder token, KeymasterArguments arguments, byte[] signature) { argument
524 return finish(token, arguments, signature, null);
527 public int abort(IBinder token) { argument
529 return mBinder.abort(token);
537 * Check if the operation referenced by {@code token} is currently authorized.
539 * @param token A
542 isOperationAuthorized(IBinder token) argument
[all...]
/frameworks/base/libs/storage/
H A DIMountService.cpp446 const sp<IObbActionListener>& token, int32_t nonce)
453 data.writeStrongBinder(IInterface::asBinder(token));
467 const sp<IObbActionListener>& token, const int32_t nonce)
473 data.writeStrongBinder(IInterface::asBinder(token));
445 mountObb(const String16& rawPath, const String16& canonicalPath, const String16& key, const sp<IObbActionListener>& token, int32_t nonce) argument
466 unmountObb(const String16& filename, const bool force, const sp<IObbActionListener>& token, const int32_t nonce) argument
/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java262 public void addSubscription(final String id, final IBinder token, final Bundle options, argument
277 MediaBrowserService.this.addSubscription(id, connection, token, options);
288 public void removeSubscription(final String id, final IBinder token, argument
301 if (!MediaBrowserService.this.removeSubscription(id, connection, token)) {
455 * @param token The token for the service's {@link MediaSession}.
457 public void setSessionToken(final MediaSession.Token token) { argument
458 if (token == null) {
459 throw new IllegalArgumentException("Session token may not be null.");
462 throw new IllegalStateException("The session token ha
585 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument
607 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument
[all...]

Completed in 772 milliseconds

123456789