Searched defs:token (Results 176 - 200 of 221) sorted by relevance

123456789

/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWindowToken.java104 // True if we are current in the process of removing this app token from the display
107 // The input dispatching timeout for this application token in nanoseconds.
132 // it will sometimes be true a little earlier: when the token has
144 // Last visibility state we reported to the app token.
147 // Last drawn state we reported to the app token.
150 // Set to true when the token has been removed from the window mgr.
159 // True if the hidden state of this token was forced to false due to a transferred starting
196 AppWindowToken(WindowManagerService service, IApplicationToken token, boolean voiceInteraction, argument
201 this(service, token, voiceInteraction, dc, fullscreen, overrideConfig, bounds);
217 AppWindowToken(WindowManagerService service, IApplicationToken token, boolea argument
[all...]
H A DAppTransition.java411 topOpeningAppAnimator != null ? topOpeningAppAnimator.mAppToken.token : null,
412 topClosingAppAnimator != null ? topClosingAppAnimator.mAppToken.token : null,
474 public void notifyAppTransitionFinishedLocked(IBinder token) { argument
476 mListeners.get(i).onAppTransitionFinishedLocked(token);
H A DDisplayContent.java181 // Mapping from a token IBinder to a WindowToken object on this display.
400 // If this window's app token is running a detached wallpaper animation, make a note so
773 final WindowToken token = getWindowToken(binder);
774 if (token == null) {
777 return token.asAppWindowToken();
780 private void addWindowToken(IBinder binder, WindowToken token) { argument
781 final DisplayContent dc = mService.mRoot.getWindowTokenDisplay(token);
783 // We currently don't support adding a window token to the display if the display
784 // already has the binder mapped to another token. If there is a use case for supporting
787 throw new IllegalArgumentException("Can't map token
828 reParentWindowToken(WindowToken token) argument
3494 addChild(WindowToken token) argument
[all...]
H A DWindowState.java583 WindowState(WindowManagerService service, Session s, IWindow c, WindowToken token, argument
590 mToken = token;
604 + " token=" + token + " (" + mAttrs.token + ")" + " params=" + a);
674 if (localLOGV) Slog.v(TAG, "Attaching " + this + " token=" + mToken);
1313 * Is this window visible, ignoring its app token? It is not visible if there is no surface,
1323 * The same as isVisible(), but follows the current hidden state of the associated app token,
1371 * Whether this window's drawn state might affect the drawn states of the app token.
1436 * Return true if this window or its app token i
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmMockContext.java119 final long token = (((long) callingUid) << 32) | (callingPid);
122 return token;
125 public void restoreCallingIdentity(long token) { argument
126 callingUid = (int) (token >> 32);
127 callingPid = (int) token;
352 0 /* type */, false /* ordered */, false /* sticky */, null /* token */, userId,
/frameworks/native/libs/gui/
H A DSurfaceComposerClient.cpp111 return compare_type(lhs.token, rhs.token);
139 DisplayState& getDisplayStateLocked(const sp<IBinder>& token);
186 status_t setDisplaySurface(const sp<IBinder>& token,
188 void setDisplayLayerStack(const sp<IBinder>& token, uint32_t layerStack);
189 void setDisplayProjection(const sp<IBinder>& token,
193 void setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height);
549 DisplayState& Composer::getDisplayStateLocked(const sp<IBinder>& token) { argument
551 s.token = token;
561 setDisplaySurface(const sp<IBinder>& token, sp<IGraphicBufferProducer> bufferProducer) argument
581 setDisplayLayerStack(const sp<IBinder>& token, uint32_t layerStack) argument
589 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument
602 setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) argument
722 getLayerFrameStats(const sp<IBinder>& token, FrameStats* outStats) const argument
851 setDisplaySurface(const sp<IBinder>& token, sp<IGraphicBufferProducer> bufferProducer) argument
856 setDisplayLayerStack(const sp<IBinder>& token, uint32_t layerStack) argument
861 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument
869 setDisplaySize(const sp<IBinder>& token, uint32_t width, uint32_t height) argument
922 setDisplayPowerMode(const sp<IBinder>& token, int mode) argument
[all...]
/frameworks/support/media-compat/java/android/support/v4/media/session/
H A DMediaControllerCompat.java64 * If MediaControllerCompat is created with a {@link MediaSessionCompat.Token session token}
66 * {@link MediaSessionCompat.Token session token} is not passed through a
219 * Creates a media controller from a session token which may have
222 * @param sessionToken The token of the session to be controlled.
472 * Get the token for the session this controller is connected to.
474 * @return The session's token.
1278 public MediaControllerImplBase(MediaSessionCompat.Token token) { argument
1279 mBinder = IMediaSession.Stub.asInterface((IBinder) token.getToken());
H A DMediaSessionCompat.java77 * {@link #getSessionToken() session token} to other processes to allow them to
588 * Retrieve a token object that can be used by apps to create a
594 * {@link android.os.Build.VERSION_CODES#LOLLIPOP} this token may only be
598 * @return A token that can be used to create a media controller for this
1462 * @param token The framework token object.
1465 public static Token fromToken(Object token) { argument
1466 return fromToken(token, null);
1477 * @param token The framework token objec
1483 fromToken(Object token, IMediaSession extraBinder) argument
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp789 int64_t token = IPCThreadState::self()->clearCallingIdentity(); local
791 IPCThreadState::self()->restoreCallingIdentity(token);
1147 int64_t token = IPCThreadState::self()->clearCallingIdentity(); local
1155 IPCThreadState::self()->restoreCallingIdentity(token);
1877 int64_t token = IPCThreadState::self()->clearCallingIdentity(); local
1883 IPCThreadState::self()->restoreCallingIdentity(token);
/frameworks/base/core/java/android/inputmethodservice/
H A DInputMethodService.java297 * A token to keep tracking the last IPC that triggered
302 * <p>Some IPCs to {@link com.android.server.InputMethodManagerService} require this token to
385 * Take care of attaching the given window token provided by the system.
387 public void attachToken(IBinder token) { argument
389 mToken = token;
390 mWindow.setToken(token);
533 public void updateExtractedText(int token, ExtractedText text) { argument
537 onUpdateExtractedText(token, text);
1876 public void onUpdateExtractedText(int token, ExtractedText text) { argument
1877 if (mExtractedToken != token) {
[all...]
/frameworks/base/core/java/android/view/
H A DWindowManager.java78 * {@link LayoutParams} {@link LayoutParams#token}
214 * windows. For these types of windows, the {@link #token} must be
215 * set to the token of the activity they are a part of (this will
216 * normally be done for you if {@link #token} is null).
220 * window. For these types of windows, the {@link #token} must be
221 * the token of the window it is attached to.
359 * Window type: a normal application window. The {@link #token} must be
360 * an Activity token identifying who the window belongs to.
387 * Start of types of sub-windows. The {@link #token} of these windows
1769 public IBinder token field in class:WindowManager.LayoutParams
[all...]
/frameworks/base/media/java/android/media/tv/
H A DTvInputManager.java879 public void onSessionCreated(String inputId, IBinder token, InputChannel channel,
884 Log.e(TAG, "Callback not found for " + token);
888 if (token != null) {
889 session = new Session(token, channel, mService, mUserId, seq,
1748 private Session(IBinder token, InputChannel channel, ITvInputManager service, int userId, argument
1750 mToken = token;
2317 * @param token A token used to identify the input event later in the callback.
2327 public int dispatchInputEvent(@NonNull InputEvent event, Object token, argument
2336 PendingEvent p = obtainPendingEventLocked(event, token, callbac
2364 onFinishedInputEvent(Object token, boolean handled) argument
2451 obtainPendingEventLocked(InputEvent event, Object token, FinishedInputEventCallback callback, Handler handler) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp1471 jint repeat, jint token) {
1491 im->getInputManager()->getReader()->vibrate(deviceId, pattern, patternSize, repeat, token);
1495 jclass /* clazz */, jlong ptr, jint deviceId, jint token) {
1498 im->getInputManager()->getReader()->cancelVibrate(deviceId, token);
1469 nativeVibrate(JNIEnv* env, jclass , jlong ptr, jint deviceId, jlongArray patternObj, jint repeat, jint token) argument
1494 nativeCancelVibrate(JNIEnv* , jclass , jlong ptr, jint deviceId, jint token) argument
/frameworks/base/services/core/java/com/android/server/
H A DInputMethodManagerService.java372 * The last window token that we confirmed to be focused. This is always updated upon reports
467 * The token we have made for the currently active input method, to
1488 // by a token.
1506 * Returns true iff the caller is identified to be the current input method with the token.
1507 * @param token The window token given to the input method when it was started.
1508 * @return true if and only if non-null valid token is specified.
1510 private boolean calledWithValidToken(@Nullable IBinder token) { argument
1511 if (token == null && Binder.getCallingPid() == Process.myPid()) {
1518 if (token
2051 updateStatusIcon(IBinder token, String packageName, int iconId) argument
2155 setImeWindowStatus(IBinder token, IBinder startInputToken, int vis, int backDisposition) argument
2187 updateSystemUi(IBinder token, int vis, int backDisposition) argument
2194 updateSystemUiLocked(IBinder token, int vis, int backDisposition) argument
2812 setInputMethod(IBinder token, String id) argument
2820 setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) argument
2848 switchToLastInputMethod(IBinder token) argument
2920 switchToNextInputMethod(IBinder token, boolean onlyCurrentIme) argument
2941 shouldOfferSwitchingToNextInputMethod(IBinder token) argument
3031 clearLastInputMethodWindowForTransition(IBinder token) argument
3064 setInputMethodWithSubtypeId(IBinder token, String id, int subtypeId) argument
3070 setInputMethodWithSubtypeIdLocked(IBinder token, String id, int subtypeId) argument
3094 hideMySoftInput(IBinder token, int flags) argument
3112 showMySoftInput(IBinder token, int flags) argument
4324 createInputContentUriToken(@ullable IBinder token, @Nullable Uri contentUri, @Nullable String packageName) argument
4382 reportFullscreenMode(IBinder token, boolean fullscreen) argument
[all...]
H A DStorageManagerService.java526 IObbActionListener token, int nonce) {
531 this.token = token;
541 final IObbActionListener token; field in class:StorageManagerService.ObbState
543 // Identifier to pass back to the token
547 return token.asBinder();
570 sb.append(",token=").append(token);
841 final long token = Binder.clearCallingIdentity();
864 Binder.restoreCallingIdentity(token);
525 ObbState(String rawPath, String canonicalPath, int callingUid, IObbActionListener token, int nonce) argument
2546 mountObb( String rawPath, String canonicalPath, String key, IObbActionListener token, int nonce) argument
2562 unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce) argument
2911 addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) argument
2939 unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) argument
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java2023 * Extract the data and token caches before removing the
2372 // wipe out cached token in memory.
2407 String token,
2417 account, token, tokenType, callerPkg, callerSigDigest, expiryMillis);
2852 String token = readCachedTokenInternal(
2858 if (token != null) {
2860 Log.v(TAG, "getAuthToken: cache hit ofr custom token authenticator.");
2863 result.putString(AccountManager.KEY_AUTHTOKEN, token);
3391 // Strip auth token from result.
3767 throw new IllegalArgumentException("status token i
2401 saveCachedToken( UserAccounts accounts, Account account, String callerPkg, byte[] callerSigDigest, String tokenType, String token, long expiryMillis) argument
4601 onAccountAccessed(String token) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityRecord.java209 final IApplicationToken.Stub appToken; // window manager token
753 private static ActivityRecord tokenToActivityRecordLocked(Token token) { argument
754 if (token == null) {
757 ActivityRecord r = token.weakActivity.get();
776 static ActivityRecord forTokenLocked(IBinder token) { argument
778 return Token.tokenToActivityRecordLocked((Token)token);
780 Slog.w(TAG, "Bad activity token: " + token, e);
1692 static void activityResumedLocked(IBinder token) { argument
1693 final ActivityRecord r = ActivityRecord.forTokenLocked(token);
2071 getTaskForActivityLocked(IBinder token, boolean onlyRoot) argument
2084 isInStackLocked(IBinder token) argument
2089 getStackLocked(IBinder token) argument
[all...]
H A DActivityStack.java704 * @param token If non-null, any history records matching this token will be skipped.
709 final ActivityRecord topRunningActivityLocked(IBinder token, int taskId) { argument
719 if (!r.finishing && (token != r.appToken) && r.okToShowLocked()) {
758 ActivityRecord isInStackLocked(IBinder token) { argument
759 final ActivityRecord r = ActivityRecord.forTokenLocked(token);
1363 final void activityPausedLocked(IBinder token, boolean timeout) { argument
1365 "Activity paused: token=" + token + ", timeout=" + timeout);
1367 final ActivityRecord r = isInStackLocked(token);
3450 requestFinishActivityLocked(IBinder token, int resultCode, Intent resultData, String reason, boolean oomAdj) argument
4280 activityDestroyedLocked(IBinder token, String reason) argument
4839 willActivityBeVisibleLocked(IBinder token) argument
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java229 int repeat, int token);
230 private static native void nativeCancelVibrate(long ptr, int deviceId, int token); argument
1690 public void vibrate(int deviceId, long[] pattern, int repeat, IBinder token) { argument
1697 v = mVibratorTokens.get(token);
1699 v = new VibratorToken(deviceId, token, mNextVibratorTokenValue++);
1701 token.linkToDeath(v, 0);
1706 mVibratorTokens.put(token, v);
1718 public void cancelVibrate(int deviceId, IBinder token) { argument
1721 v = mVibratorTokens.get(token);
2274 public VibratorToken(int deviceId, IBinder token, in argument
228 nativeVibrate(long ptr, int deviceId, long[] pattern, int repeat, int token) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationManagerService.java491 Binder token; field in class:NotificationManagerService.ToastRecord
494 Binder token) {
499 this.token = token;
1508 Binder token = new Binder();
1509 mWindowManagerInternal.addWindowToken(token, TYPE_TOAST, DEFAULT_DISPLAY);
1510 record = new ToastRecord(callingPid, pkg, callback, duration, token);
1970 public void unregisterListener(INotificationListener token, int userid) {
1971 mListeners.unregisterService(token, userid);
1979 * @param token Th
493 ToastRecord(int pid, String pkg, ITransientNotification callback, int duration, Binder token) argument
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutService.java1141 final long token = injectClearCallingIdentity();
1145 injectRestoreCallingIdentity(token);
1351 final long token = injectClearCallingIdentity();
1391 injectRestoreCallingIdentity(token);
2113 final long token = injectClearCallingIdentity();
2117 injectRestoreCallingIdentity(token);
2123 final long token = injectClearCallingIdentity();
2128 injectRestoreCallingIdentity(token);
2230 final long token = injectClearCallingIdentity();
2296 injectRestoreCallingIdentity(token);
3843 injectRestoreCallingIdentity(long token) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java198 void injectRestoreCallingIdentity(long token) { argument
199 mInjectedCallingUid = (int) token;
260 void injectRestoreCallingIdentity(long token) { argument
261 mContext.injectRestoreCallingIdentity(token);
523 void injectRestoreCallingIdentity(long token) { argument
524 mInjectedCallingUid = (int) token;
973 final long token = mServiceContext.injectClearCallingIdentity();
977 mServiceContext.injectRestoreCallingIdentity(token);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.cpp294 sp<BBinder> token = new DisplayToken(this); local
299 mCurrentState.displays.add(token, info);
301 return token;
309 ALOGW("destroyDisplay: invalid display token");
326 "Overwriting display token for display type %d", type);
1165 wp<IBinder> token = mBuiltinDisplays[type]; local
1190 token, fbs, producer, mRenderEngine->getEGLConfig(),
1192 mDisplays.add(token, hw);
2833 ssize_t dpyIdx = mCurrentState.displays.indexOfKey(s.token);
3148 d.token
[all...]
H A DSurfaceFlinger_hwc1.cpp274 sp<BBinder> token = new DisplayToken(this); local
279 mCurrentState.displays.add(token, info);
281 return token;
289 ALOGW("destroyDisplay: invalid display token");
305 "Overwriting display token for display type %d", type);
558 wp<IBinder> token = mBuiltinDisplays[i]; local
568 type, hwcId, mHwc->getFormat(hwcId), isSecure, token,
578 mDisplays.add(token, hw);
2498 ssize_t dpyIdx = mCurrentState.displays.indexOfKey(s.token);
2808 d.token
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java764 // This token was already tokenized, so skip past the ending token.
769 // and commit the whole token.
1364 // When we have a valid token, include it with the token
1460 String token = editable.toString().substring(tokenStart, tokenEnd);
1461 final String trimmedToken = token.trim();
1464 token = trimmedToken.substring(0, trimmedToken.length() - 1);
1466 RecipientEntry entry = createTokenizedEntry(token);
1482 chip.setOriginalText(token);
1489 createTokenizedEntry(final String token) argument
[all...]

Completed in 455 milliseconds

123456789