/frameworks/base/test-runner/src/android/test/ |
H A D | ActivityUnitTestCase.java | 139 IBinder token = null; 152 token, mApplication, intent, info, title, mMockParent, id,
|
/frameworks/native/libs/gui/ |
H A D | LayerState.cpp | 99 output.writeStrongBinder(token); 112 token = input.readStrongBinder();
|
/frameworks/support/v4/api21/android/support/v4/media/ |
H A D | MediaBrowserServiceCompatApi21.java | 45 public static void setSessionToken(Object serviceObj, Object token) { argument 46 ((MediaBrowserService) serviceObj).setSessionToken((MediaSession.Token) token);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | NotificationCompat.java | 198 public MediaStyle setMediaSession(MediaSessionCompat.Token token) { argument 199 mToken = token;
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_fingerprint_FingerprintService.cpp | 80 ALOGE("Falure sending auth token to KeyStore: %d", ret); 133 static jint nativeEnroll(JNIEnv* env, jobject clazz, jbyteArray token, jint groupId, jint timeout) { argument 135 const int tokenSize = env->GetArrayLength(token); 136 jbyte* tokenData = env->GetByteArrayElements(token, 0); 138 ALOG(LOG_VERBOSE, LOG_TAG, "nativeEnroll() : invalid token size %d\n", tokenSize); 143 env->ReleaseByteArrayElements(token, tokenData, 0);
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | BackupManagerService.java | 440 public long token; field in class:BackupManagerService.RestoreParams 442 public int pmToken; // in post-install restore, the PM's token for this transaction 454 token = _token; 462 * Restore at install: PM token needed, kill after restore 469 token = _token; 485 token = _token; 501 token = _token; 592 // token is the index of the entry in the pending-operations list. 681 // Utility: build a new random integer token 683 int token; 2545 prepareOperationTimeout(int token, long interval, BackupRestoreTask callback) argument 2557 waitUntilOperationComplete(int token) argument 2589 handleTimeout(int token, Object obj) argument 3498 restoreObbFile(String pkgName, ParcelFileDescriptor data, long fileSize, int type, String path, long mode, long mtime, int token, IBackupManager callbackBinder) argument 3625 FullBackupRunner(PackageInfo pack, IBackupAgent agent, ParcelFileDescriptor pipe, int token, boolean sendApk, boolean writeManifest, byte[] widgetData) argument 5308 RestoreFileRunnable(IBackupAgent agent, FileMetadata info, ParcelFileDescriptor socket, int token) argument 6511 RestoreFinishedRunnable(IBackupAgent agent, int token) argument 6564 RestoreFileRunnable(IBackupAgent agent, FileMetadata info, ParcelFileDescriptor socket, int token) argument 9474 startConfirmationUi(int token, String action) argument 9488 startConfirmationTimeout(int token, FullParams params) argument 9515 acknowledgeFullBackupOrRestore(int token, boolean allow, String curPassword, String encPpassword, IFullBackupRestoreObserver observer) argument 9884 restoreAtInstall(String packageName, int token) argument 10013 opComplete(int token, long result) argument 10130 restoreAll(long token, IRestoreObserver observer) argument 10191 restoreSome(long token, IRestoreObserver observer, String[] packages) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupAgent.java | 471 // Do entire sub-tree for the provided token. 834 mode = -1; // < 0 is a token to skip attempting a chmod() 897 int token, IBackupManager callbackBinder) throws RemoteException { 920 callbackBinder.opComplete(token, 0); 930 int token, IBackupManager callbackBinder) throws RemoteException { 950 callbackBinder.opComplete(token, 0); 959 int token, IBackupManager callbackBinder) { 993 callbackBinder.opComplete(token, 0); 1000 public void doMeasureFullBackup(int token, IBackupManager callbackBinder) { argument 1017 callbackBinder.opComplete(token, measureOutpu 894 doBackup(ParcelFileDescriptor oldState, ParcelFileDescriptor data, ParcelFileDescriptor newState, int token, IBackupManager callbackBinder) argument 928 doRestore(ParcelFileDescriptor data, int appVersionCode, ParcelFileDescriptor newState, int token, IBackupManager callbackBinder) argument 958 doFullBackup(ParcelFileDescriptor data, int token, IBackupManager callbackBinder) argument 1025 doRestoreFile(ParcelFileDescriptor data, long size, int type, String domain, String path, long mode, long mtime, int token, IBackupManager callbackBinder) argument 1048 doRestoreFinished(int token, IBackupManager callbackBinder) argument [all...] |
H A D | BackupTransport.java | 273 * Get the identifying token of the backup set currently being stored from 277 * @return A token that can be passed to {@link #startRestore}, or 0 if there 289 * @param token A backup token as returned by {@link #getAvailableRestoreSets} 297 public int startRestore(long token, PackageInfo[] packages) { argument 641 public int startRestore(long token, PackageInfo[] packages) throws RemoteException { argument 642 return BackupTransport.this.startRestore(token, packages);
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionService.java | 650 final long token = Binder.clearCallingIdentity(); 661 Binder.restoreCallingIdentity(token); 669 final long token = Binder.clearCallingIdentity(); 684 Binder.restoreCallingIdentity(token); 693 final long token = Binder.clearCallingIdentity(); 714 Binder.restoreCallingIdentity(token); 753 final long token = Binder.clearCallingIdentity(); 783 Binder.restoreCallingIdentity(token); 791 final long token = Binder.clearCallingIdentity(); 799 Binder.restoreCallingIdentity(token); [all...] |
H A D | MediaRouterService.java | 134 final long token = Binder.clearCallingIdentity(); 140 Binder.restoreCallingIdentity(token); 151 final long token = Binder.clearCallingIdentity(); 157 Binder.restoreCallingIdentity(token); 168 final long token = Binder.clearCallingIdentity(); 174 Binder.restoreCallingIdentity(token); 186 final long token = Binder.clearCallingIdentity(); 192 Binder.restoreCallingIdentity(token); 208 final long token = Binder.clearCallingIdentity(); 214 Binder.restoreCallingIdentity(token); [all...] |
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
H A D | PlayerController.java | 179 MediaSession.Token token; 181 token = mBinder.getSessionToken(); 186 mController = new MediaController(mContext, token);
|
/frameworks/base/tools/aapt2/util/ |
H A D | Files.cpp | 225 for (const std::string& token : mPatternTokens) { 226 const char* tokenStr = token.c_str(); 267 << token << "'"); local
|
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi21.java | 49 public static Object verifyToken(Object token) { argument 50 if (token instanceof MediaSession.Token) { 51 return token; 53 throw new IllegalArgumentException("token is not a valid MediaSession.Token object");
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | InputMethodManagerService.java | 325 * The last window token that we confirmed to be focused. This is always updated upon reports 408 * The token we have made for the currently active input method, to 1135 // by a token. 1152 * Returns true iff the caller is identified to be the current input method with the token. 1153 * @param token The window token given to the input method when it was started. 1154 * @return true if and only if non-null valid token is specified. 1156 private boolean calledWithValidToken(IBinder token) { argument 1157 if (token == null || mCurToken != token) { 1679 updateStatusIcon(IBinder token, String packageName, int iconId) argument 1785 setImeWindowStatus(IBinder token, int vis, int backDisposition) argument 1800 updateSystemUi(IBinder token, int vis, int backDisposition) argument 1807 updateSystemUiLocked(IBinder token, int vis, int backDisposition) argument 2425 setInputMethod(IBinder token, String id) argument 2433 setInputMethodAndSubtype(IBinder token, String id, InputMethodSubtype subtype) argument 2461 switchToLastInputMethod(IBinder token) argument 2533 switchToNextInputMethod(IBinder token, boolean onlyCurrentIme) argument 2557 shouldOfferSwitchingToNextInputMethod(IBinder token) argument 2647 clearLastInputMethodWindowForTransition(IBinder token) argument 2688 setInputMethodWithSubtypeId(IBinder token, String id, int subtypeId) argument 2694 setInputMethodWithSubtypeIdLocked(IBinder token, String id, int subtypeId) argument 2718 hideMySoftInput(IBinder token, int flags) argument 2739 showMySoftInput(IBinder token, int flags) argument [all...] |
H A D | AppOpsService.java | 1069 public int startOperation(IBinder token, int code, int uid, String packageName) { argument 1076 ClientState client = (ClientState)token; 1124 public void finishOperation(IBinder token, int code, int uid, String packageName) { argument 1131 if (!(token instanceof ClientState)) { 1134 ClientState client = (ClientState) token; 1972 long token = Binder.clearCallingIdentity(); 1980 Binder.restoreCallingIdentity(token); 1988 long token = Binder.clearCallingIdentity(); 1993 Binder.restoreCallingIdentity(token); 2177 public void setUserRestrictions(Bundle restrictions, IBinder token, in argument 2191 setUserRestriction(int code, boolean restricted, IBinder token, int userHandle, String[] exceptionPackages) argument 2211 setUserRestrictionNoCheck(int code, boolean restricted, IBinder token, int userHandle, String[] exceptionPackages) argument 2305 private final IBinder token; field in class:AppOpsService.ClientRestrictionState 2309 ClientRestrictionState(IBinder token) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowSurfacePlacer.java | 145 public AppWindowToken token; field in class:WindowSurfacePlacer.LayerAndToken 341 // hiding apps, moving apps in Z-order, etc. The app token list 439 WindowToken token = exitingTokens.get(i); 440 if (!token.hasVisible) { 442 if (token.windowType == TYPE_WALLPAPER) { 443 mWallpaperControllerLocked.removeWallpaperToken(token); 455 AppWindowToken token = exitingAppTokens.get(i); 456 if (!token.hasVisible && !mService.mClosingApps.contains(token) && 457 (!token [all...] |
H A D | DisplayContent.java | 367 AppWindowToken token = task.getTopVisibleAppToken(); 368 if (token == null || !token.isVisible()) { 598 WindowToken token = mExitingTokens.get(i); 600 pw.print(' '); pw.print(token); 602 token.dump(pw, " ");
|
H A D | DragState.java | 110 DragState(WindowManagerService service, IBinder token, SurfaceControl surface, argument 113 mToken = token; 510 final IBinder token = touchedWin.mClient.asBinder(); 517 mService.mH.removeMessages(H.DRAG_END_TIMEOUT, token); 518 Message msg = mService.mH.obtainMessage(H.DRAG_END_TIMEOUT, token); 528 mToken = token;
|
/frameworks/native/libs/input/ |
H A D | KeyLayoutMap.cpp | 322 String8 token = mTokenizer->nextToken(WHITESPACE); local 323 if (token == "invert") { 334 } else if (token == "split") { 364 axisInfo.axis = getAxisByLabel(token.string()); 367 mTokenizer->getLocation().string(), token.string());
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | XmlEditor.java | 168 private static Position toPosition(Token token) { argument 169 return new Position(token.getLine() - 1, token.getCharPositionInLine()); 172 private static Position toEndPosition(Token token) { argument 173 return new Position(token.getLine() - 1, 174 token.getCharPositionInLine() + token.getText().length());
|
/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 1034 * @param token The token for this activity to communicate with 1049 IBinder token, Application application, Intent intent, ActivityInfo info, 1055 activity.attach(context, aThread, this, token, 0, application, intent, 1470 * @param token Internal token identifying to the system who is starting 1493 Context who, IBinder contextThread, IBinder token, Activity target, 1521 token, target != null ? target.mEmbeddedID : null, 1539 IBinder token, Activity target, Intent[] intents, Bundle options) { 1540 execStartActivitiesAsUser(who, contextThread, token, targe 1048 newActivity(Class<?> clazz, Context context, IBinder token, Application application, Intent intent, ActivityInfo info, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstance) argument 1492 execStartActivity( Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options) argument 1538 execStartActivities(Context who, IBinder contextThread, IBinder token, Activity target, Intent[] intents, Bundle options) argument 1552 execStartActivitiesAsUser(Context who, IBinder contextThread, IBinder token, Activity target, Intent[] intents, Bundle options, int userId) argument 1615 execStartActivity( Context who, IBinder contextThread, IBinder token, String target, Intent intent, int requestCode, Bundle options) argument 1675 execStartActivity( Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options, UserHandle user) argument 1713 execStartActivityAsCaller( Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options, boolean ignoreTargetSecurity, int userId) argument [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyStoreTest.java | 814 IBinder token = result.token; 816 result = mKeyStore.update(token, null, new byte[] {0x01, 0x02, 0x03, 0x04}); 819 mKeyStore.finish(token, null, null).resultCode); 824 IBinder token = new Binder(); 825 OperationResult result = mKeyStore.update(token, null, new byte[] {0x01}); 826 assertEquals("Update with invalid token should fail", 846 IBinder token = result.token; 847 result = mKeyStore.update(token, nul [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 336 final long token = Binder.clearCallingIdentity(); 344 Binder.restoreCallingIdentity(token); 479 long token = Binder.clearCallingIdentity(); 523 Binder.restoreCallingIdentity(token); 540 long token = Binder.clearCallingIdentity(); 550 Binder.restoreCallingIdentity(token); 655 long token = Binder.clearCallingIdentity(); 665 Binder.restoreCallingIdentity(token); 677 long token = Binder.clearCallingIdentity(); 681 Binder.restoreCallingIdentity(token); [all...] |
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 105 for(char *token = strtok(patterns, delim); 106 !ignore && token != NULL; 107 token = strtok(NULL, delim)) { 108 chatty = token[0] != '!'; 109 if (!chatty) token++; // skip ! 110 if (strncasecmp(token, "<dir>" , 5) == 0) { 112 token += 5; 114 if (strncasecmp(token, "<file>", 6) == 0) { 116 token += 6; 119 matchedPattern = token; [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 70 // The currently-active restore set always has the same (nonzero!) token 433 for (long token : POSSIBLE_SETS) { 434 if ((new File(mDataDir, Long.toString(token))).exists()) { 435 existing[num++] = token; 450 // The current restore set always has the same token 455 public int startRestore(long token, PackageInfo[] packages) { argument 456 if (DEBUG) Log.v(TAG, "start restore " + token + " : " + packages.length 460 mRestoreSetDir = new File(mDataDir, Long.toString(token));
|