Lines Matching refs:token

290      * The last window token that gained focus.
355 * The token we have made for the currently active input method, to
966 // by a token.
983 * Returns true iff the caller is identified to be the current input method with the token.
984 * @param token The window token given to the input method when it was started.
985 * @return true if and only if non-null valid token is specified.
987 private boolean calledWithValidToken(IBinder token) {
988 if (token == null || mCurToken != token) {
1282 if (true || DEBUG) Slog.v(TAG, "Adding window token: " + mCurToken);
1323 Slog.w(TAG, "Service connected without a token!");
1327 if (DEBUG) Slog.v(TAG, "Initiating attach with token: " + mCurToken);
1374 if (DEBUG) Slog.v(TAG, "Removing window token: " + mCurToken);
1466 public void updateStatusIcon(IBinder token, String packageName, int iconId) {
1470 if (!calledWithValidToken(token)) {
1472 Slog.e(TAG, "Ignoring updateStatusIcon due to an invalid token. uid:" + uid
1473 + " token:" + token);
1562 public void setImeWindowStatus(IBinder token, int vis, int backDisposition) {
1565 if (!calledWithValidToken(token)) {
1567 Slog.e(TAG, "Ignoring setImeWindowStatus due to an invalid token. uid:" + uid
1568 + " token:" + token);
1584 mStatusBar.setImeWindowStatus(token, vis, backDisposition,
2017 + " attribute=" + attribute + ", token = " + windowToken);
2143 public void setInputMethod(IBinder token, String id) {
2147 setInputMethodWithSubtypeId(token, id, NOT_A_SUBTYPE_ID);
2151 public void setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) {
2157 setInputMethodWithSubtypeIdLocked(token, id,
2161 setInputMethod(token, id);
2183 public boolean switchToLastInputMethod(IBinder token) {
2246 setInputMethodWithSubtypeIdLocked(token, targetLastImiId, subtypeId);
2255 public boolean switchToNextInputMethod(IBinder token, boolean onlyCurrentIme) {
2260 if (!calledWithValidToken(token)) {
2262 Slog.e(TAG, "Ignoring switchToNextInputMethod due to an invalid token. uid:" + uid
2263 + " token:" + token);
2271 setInputMethodWithSubtypeIdLocked(token, nextSubtype.mImi.getId(),
2278 public boolean shouldOfferSwitchingToNextInputMethod(IBinder token) {
2283 if (!calledWithValidToken(token)) {
2286 + "token. uid:" + uid + " token:" + token);
2388 private void setInputMethodWithSubtypeId(IBinder token, String id, int subtypeId) {
2390 setInputMethodWithSubtypeIdLocked(token, id, subtypeId);
2394 private void setInputMethodWithSubtypeIdLocked(IBinder token, String id, int subtypeId) {
2395 if (token == null) {
2400 "Using null token requires permission "
2403 } else if (mCurToken != token) {
2405 + " token: " + token);
2418 public void hideMySoftInput(IBinder token, int flags) {
2423 if (!calledWithValidToken(token)) {
2425 Slog.e(TAG, "Ignoring hideInputMethod due to an invalid token. uid:"
2426 + uid + " token:" + token);
2439 public void showMySoftInput(IBinder token, int flags) {
2444 if (!calledWithValidToken(token)) {
2446 Slog.e(TAG, "Ignoring showMySoftInput due to an invalid token. uid:"
2447 + uid + " token:" + token);
2541 if (DEBUG) Slog.v(TAG, "Sending attach of token: " + args.arg2);