Lines Matching defs:handle

607                 final long handle = getSyntheticPasswordHandleLocked(userId);
611 getGateKeeperService(), handle, noCredential, userId, null);
1060 long handle = getSyntheticPasswordHandleLocked(userId);
1061 return mSpManager.getCredentialType(handle, userId) ==
1074 long handle = getSyntheticPasswordHandleLocked(userId);
1075 return mSpManager.getCredentialType(handle, userId) ==
1086 long handle = getSyntheticPasswordHandleLocked(userId);
1087 return mSpManager.getCredentialType(handle, userId) !=
2290 long handle = mSpManager.createPasswordBasedSyntheticPassword(getGateKeeperService(),
2294 // Since when initializing SP, we didn't provide an existing password handle
2307 setLong(SYNTHETIC_PASSWORD_HANDLE_KEY, handle, userId);
2321 long handle = getSyntheticPasswordHandleLocked(userId);
2325 return enabled != 0 && handle != SyntheticPasswordManager.DEFAULT_HANDLE;
2330 long handle = getSyntheticPasswordHandleLocked(userId);
2334 return enabled != 0 && handle == SyntheticPasswordManager.DEFAULT_HANDLE;
2360 long handle = getSyntheticPasswordHandleLocked(userId);
2362 getGateKeeperService(), handle, userCredential, userId, progressCallback);
2377 // match the recorded GK password handle.
2412 * Change the user's lockscreen password by creating a new SP blob and update the handle, based
2416 * When clearing credential, we keep the SP unchanged, but clear its password handle so its
2434 // the password handle and SID unchanged.
2485 long handle = getSyntheticPasswordHandleLocked(userId);
2487 getGateKeeperService(), handle, savedCredential, userId, null);
2525 mSpManager.destroyPasswordBasedSyntheticPassword(handle, userId);
2561 long handle = getSyntheticPasswordHandleLocked(userId);
2563 getGateKeeperService(), handle, currentCredential, userId, null);
2596 long handle = mSpManager.createTokenBasedSyntheticPassword(token, userId);
2598 mSpManager.activateTokenBasedSyntheticPassword(handle, auth, userId);
2600 return handle;
2608 for (long handle : mSpManager.getPendingTokensForUser(userId)) {
2609 Slog.i(TAG, String.format("activateEscrowTokens: %x %d ", handle, userId));
2610 mSpManager.activateTokenBasedSyntheticPassword(handle, auth, userId);
2615 private boolean isEscrowTokenActive(long handle, int userId) {
2617 return mSpManager.existsHandle(handle, userId);
2621 private boolean removeEscrowToken(long handle, int userId) {
2623 if (handle == getSyntheticPasswordHandleLocked(userId)) {
2624 Slog.w(TAG, "Cannot remove password handle");
2627 if (mSpManager.removePendingToken(handle, userId)) {
2630 if (mSpManager.existsHandle(handle, userId)) {
2631 mSpManager.destroyTokenBasedSyntheticPassword(handle, userId);
2876 public boolean removeEscrowToken(long handle, int userId) {
2877 return LockSettingsService.this.removeEscrowToken(handle, userId);
2881 public boolean isEscrowTokenActive(long handle, int userId) {
2882 return LockSettingsService.this.isEscrowTokenActive(handle, userId);