/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 69 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() argument 71 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission() 85 public boolean checkChangePermission(int uid) { in checkChangePermission() argument 87 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid); in checkChangePermission() 101 public boolean checkWifiAccessPermission(int uid) { in checkWifiAccessPermission() argument 103 int permission = mWifiPermissionsWrapper.getAccessWifiStatePermission(uid); in checkWifiAccessPermission() 117 public void enforceLocationPermission(String pkgName, int uid) { in enforceLocationPermission() argument 118 if (!checkCallersLocationPermission(pkgName, uid, /* coarseForTargetSdkLessThanQ */ true)) { in enforceLocationPermission() 120 "UID " + uid + " does not have Coarse/Fine Location permission"); in enforceLocationPermission() 155 public boolean checkCallersLocationPermission(String pkgName, int uid, in checkCallersLocationPermission() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 82 int uid = 10009; in insertKey_replacesOldKey() local 90 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in insertKey_replacesOldKey() 92 WrappedKey retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); in insertKey_replacesOldKey() 103 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, wrappedKey); in insertKey_replacesOldKey() 105 retrievedKey = mRecoverableKeyStoreDb.getKey(uid, alias); in insertKey_replacesOldKey() 141 int uid = 60001; in removeKey_removesAKey() local 148 mRecoverableKeyStoreDb.insertKey(userId, uid, alias, key); in removeKey_removesAKey() 150 assertTrue(mRecoverableKeyStoreDb.removeKey(uid, alias)); in removeKey_removesAKey() 152 assertNull(mRecoverableKeyStoreDb.getKey(uid, alias)); in removeKey_removesAKey() 166 int uid = 1009; in getKey_returnsInsertedKey() local [all …]
|
/frameworks/av/media/utils/include/mediautils/ |
D | ServiceUtilities.h | 40 static inline bool isServiceUid(uid_t uid) { in isServiceUid() argument 41 return multiuser_get_app_id(uid) < AID_APP_START; in isServiceUid() 45 static inline bool isAudioServerUid(uid_t uid) { in isAudioServerUid() argument 46 return uid == AID_AUDIOSERVER; in isAudioServerUid() 51 static inline bool isAudioServerOrRootUid(uid_t uid) { in isAudioServerOrRootUid() argument 52 return uid == AID_AUDIOSERVER || uid == AID_ROOT; in isAudioServerOrRootUid() 57 static inline bool isAudioServerOrSystemServerUid(uid_t uid) { in isAudioServerOrSystemServerUid() argument 58 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER; in isAudioServerOrSystemServerUid() 63 static inline bool isAudioServerOrSystemServerOrRootUid(uid_t uid) { in isAudioServerOrSystemServerOrRootUid() argument 64 return multiuser_get_app_id(uid) == AID_SYSTEM || uid == AID_AUDIOSERVER || uid == AID_ROOT; in isAudioServerOrSystemServerOrRootUid() [all …]
|
/frameworks/native/services/sensorservice/ |
D | BatteryService.h | 33 void enableSensorImpl(uid_t uid, int handle); 34 void disableSensorImpl(uid_t uid, int handle); 35 void cleanupImpl(uid_t uid); 38 uid_t uid; member 41 Info() : uid(0), handle(0), count(0) { } in Info() 42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info() 44 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid); 50 bool addSensor(uid_t uid, int handle); 51 bool removeSensor(uid_t uid, int handle); 55 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument [all …]
|
D | BatteryService.cpp | 36 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument 38 Info key(uid, handle); in addSensor() 48 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument 50 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor() 58 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument 60 if (addSensor(uid, handle)) { in enableSensorImpl() 62 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl() 67 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument 69 if (removeSensor(uid, handle)) { in disableSensorImpl() 71 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl() [all …]
|
/frameworks/native/libs/binder/ |
D | IBatteryStats.cpp | 35 virtual void noteStartSensor(int uid, int sensor) { in noteStartSensor() argument 38 data.writeInt32(uid); in noteStartSensor() 43 virtual void noteStopSensor(int uid, int sensor) { in noteStopSensor() argument 46 data.writeInt32(uid); in noteStopSensor() 51 virtual void noteStartVideo(int uid) { in noteStartVideo() argument 54 data.writeInt32(uid); in noteStartVideo() 58 virtual void noteStopVideo(int uid) { in noteStopVideo() argument 61 data.writeInt32(uid); in noteStopVideo() 65 virtual void noteStartAudio(int uid) { in noteStartAudio() argument 68 data.writeInt32(uid); in noteStartAudio() [all …]
|
D | IUidObserver.cpp | 33 virtual void onUidGone(uid_t uid, bool disabled) in onUidGone() argument 37 data.writeInt32((int32_t) uid); in onUidGone() 42 virtual void onUidActive(uid_t uid) in onUidActive() argument 46 data.writeInt32((int32_t) uid); in onUidActive() 50 virtual void onUidIdle(uid_t uid, bool disabled) in onUidIdle() argument 54 data.writeInt32((int32_t) uid); in onUidIdle() 59 virtual void onUidStateChanged(uid_t uid, int32_t procState, int64_t procStateSeq) in onUidStateChanged() argument 63 data.writeInt32((int32_t) uid); in onUidStateChanged() 82 uid_t uid = data.readInt32(); in onTransact() local 84 onUidGone(uid, disabled); in onTransact() [all …]
|
D | PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { in check() 42 e.uid = uid; in check() 52 uid_t uid, bool granted) { in cache() argument 64 e.uid = uid; in cache() 85 uid_t uid = ipcState->getCallingUid(); in checkCallingPermission() local 87 if (outUid) *outUid = uid; in checkCallingPermission() 88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission() 92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission() argument 93 if ((uid == 0) || (pid == getpid())) { in checkPermission() 100 if (pc.check(&granted, permission, uid) != NO_ERROR) { in checkPermission() [all …]
|
/frameworks/av/media/utils/ |
D | ServiceUtilities.cpp | 42 const String16& opPackageName, uid_t uid) { in resolveCallingPackage() argument 54 permissionController.getPackagesForUid(uid, packages); in resolveCallingPackage() 56 ALOGE("No packages for uid %d", uid); in resolveCallingPackage() 63 uid_t uid, bool start) { in checkRecordingInternal() argument 69 if (isAudioServerOrSystemServerOrRootUid(uid)) return true; in checkRecordingInternal() 75 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid); in checkRecordingInternal() 82 permissionController, opPackageName, uid); in checkRecordingInternal() 90 if (appOps.startOpNoThrow(op, uid, resolvedOpPackageName, /*startIfModeDefault*/ false) in checkRecordingInternal() 96 if (appOps.checkOp(op, uid, resolvedOpPackageName) != AppOpsManager::MODE_ALLOWED) { in checkRecordingInternal() 105 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in recordingAllowed() argument [all …]
|
D | BatteryNotifier.cpp | 41 void BatteryNotifier::noteStartVideo(uid_t uid) { in noteStartVideo() argument 44 if (mVideoRefCounts[uid] == 0 && batteryService != nullptr) { in noteStartVideo() 45 batteryService->noteStartVideo(uid); in noteStartVideo() 47 mVideoRefCounts[uid]++; in noteStartVideo() 50 void BatteryNotifier::noteStopVideo(uid_t uid) { in noteStopVideo() argument 52 if (mVideoRefCounts.find(uid) == mVideoRefCounts.end()) { in noteStopVideo() 53 ALOGW("%s: video refcount is broken for uid(%d).", __FUNCTION__, (int)uid); in noteStopVideo() 59 mVideoRefCounts[uid]--; in noteStopVideo() 60 if (mVideoRefCounts[uid] == 0) { in noteStopVideo() 62 batteryService->noteStopVideo(uid); in noteStopVideo() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppStateTracker.java | 262 int uid, @NonNull String packageName) { in onRunAnyAppOpsChanged() argument 263 updateJobsForUidPackage(uid, packageName, sender.isUidActive(uid)); in onRunAnyAppOpsChanged() 265 if (!sender.areAlarmsRestricted(uid, packageName, /*allowWhileIdle=*/ false)) { in onRunAnyAppOpsChanged() 266 unblockAlarmsForUidPackage(uid, packageName); in onRunAnyAppOpsChanged() 267 } else if (!sender.areAlarmsRestricted(uid, packageName, /*allowWhileIdle=*/ true)){ in onRunAnyAppOpsChanged() 272 if (!sender.isRunAnyInBackgroundAppOpsAllowed(uid, packageName)) { in onRunAnyAppOpsChanged() 273 Slog.v(TAG, "Package " + packageName + "/" + uid in onRunAnyAppOpsChanged() 275 stopForegroundServicesForUidPackage(uid, packageName); in onRunAnyAppOpsChanged() 282 private void onUidForegroundStateChanged(AppStateTracker sender, int uid) { in onUidForegroundStateChanged() argument 283 onUidForeground(uid, sender.isUidInForeground(uid)); in onUidForegroundStateChanged() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IBatteryStats.aidl | 36 void noteStartSensor(int uid, int sensor); in noteStartSensor() argument 37 void noteStopSensor(int uid, int sensor); in noteStopSensor() argument 38 void noteStartVideo(int uid); in noteStartVideo() argument 39 void noteStopVideo(int uid); in noteStopVideo() argument 40 void noteStartAudio(int uid); in noteStartAudio() argument 41 void noteStopAudio(int uid); in noteStopAudio() argument 44 void noteFlashlightOn(int uid); in noteFlashlightOn() argument 45 void noteFlashlightOff(int uid); in noteFlashlightOff() argument 46 void noteStartCamera(int uid); in noteStartCamera() argument 47 void noteStopCamera(int uid); in noteStopCamera() argument [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionCallback.aidl | 29 void onCommand(String packageName, int pid, int uid, ISessionControllerCallback caller, in onCommand() argument 31 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent, in onMediaButton() argument 33 void onMediaButtonFromController(String packageName, int pid, int uid, in onMediaButtonFromController() argument 37 void onPrepare(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPrepare() argument 38 void onPrepareFromMediaId(String packageName, int pid, int uid, in onPrepareFromMediaId() argument 40 void onPrepareFromSearch(String packageName, int pid, int uid, in onPrepareFromSearch() argument 42 void onPrepareFromUri(String packageName, int pid, int uid, in onPrepareFromUri() argument 44 void onPlay(String packageName, int pid, int uid, ISessionControllerCallback caller); in onPlay() argument 45 void onPlayFromMediaId(String packageName, int pid, int uid, in onPlayFromMediaId() argument 47 void onPlayFromSearch(String packageName, int pid, int uid, in onPlayFromSearch() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | RankingConfig.java | 27 void setImportance(String packageName, int uid, int importance); in setImportance() argument 28 int getImportance(String packageName, int uid); in getImportance() argument 29 void setShowBadge(String packageName, int uid, boolean showBadge); in setShowBadge() argument 30 boolean canShowBadge(String packageName, int uid); in canShowBadge() argument 32 boolean areBubblesAllowed(String packageName, int uid); in areBubblesAllowed() argument 34 boolean isGroupBlocked(String packageName, int uid, String groupId); in isGroupBlocked() argument 37 int uid); in getNotificationChannelGroups() argument 38 void createNotificationChannelGroup(String pkg, int uid, NotificationChannelGroup group, in createNotificationChannelGroup() argument 41 int uid, boolean includeDeleted, boolean includeNonGrouped, boolean includeEmpty); in getNotificationChannelGroups() argument 42 boolean createNotificationChannel(String pkg, int uid, NotificationChannel channel, in createNotificationChannel() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 128 public int uidPermission(@NonNull final String permission, final int uid) { in uidPermission() argument 129 return ActivityManager.checkUidPermission(permission, uid); in uidPermission() 167 int uid = app.applicationInfo != null ? app.applicationInfo.uid : INVALID_UID; in startMonitoring() local 168 if (uid < 0) { in startMonitoring() 171 mAllApps.add(UserHandle.getAppId(uid)); in startMonitoring() 173 final boolean isNetwork = hasPermission(CHANGE_NETWORK_STATE, uid); in startMonitoring() 178 Boolean permission = mApps.get(uid); in startMonitoring() 182 mApps.put(uid, hasRestrictedPermission); in startMonitoring() 187 final int otherNetdPerms = getNetdPermissionMask(uid); in startMonitoring() 188 netdPermsUids.put(uid, netdPermsUids.get(uid) | otherNetdPerms); in startMonitoring() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 86 int uid, @Nullable String message) { in checkLocationPermission() argument 87 return checkLocationPermissionInternal(pkgName, featureId, uid, message) == SUCCEEDED; in checkLocationPermission() 108 String pkgName, @Nullable String featureId, int uid, @Nullable String message) { in checkLocationPermissionWithDetailInfo() argument 109 final int result = checkLocationPermissionInternal(pkgName, featureId, uid, message); in checkLocationPermissionWithDetailInfo() 115 Log.e(TAG, "UID " + uid + " has no location permission"); in checkLocationPermissionWithDetailInfo() 134 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid, in enforceLocationPermission() argument 136 final int result = checkLocationPermissionInternal(pkgName, featureId, uid, message); in enforceLocationPermission() 142 throw new SecurityException("UID " + uid + " has no location permission"); in enforceLocationPermission() 147 int uid, @Nullable String message) { in checkLocationPermissionInternal() argument 148 checkPackage(uid, pkgName); in checkLocationPermissionInternal() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 118 public void onPackageAdded(String packageName, int uid) { in onStart() 119 onPackageChanged(packageName, uid); in onStart() 123 public void onPackageChanged(String packageName, int uid) { in onStart() 124 final int userId = UserHandle.getUserId(uid); in onStart() 132 public void onPackageRemoved(String packageName, int uid) { in onStart() 141 public void opChanged(int op, int uid, String packageName) { in onStart() 143 UserHandle.getUserId(uid)); in onStart() 474 setUidModeAllowed(op.code, op.uid, op.packageName); in syncPackages() 475 alreadySetAppOps.put(IntPair.of(op.uid, op.code), 1); in syncPackages() 481 if (alreadySetAppOps.indexOfKey(IntPair.of(op.uid, op.code)) >= 0) { in syncPackages() [all …]
|
/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 161 public static boolean isIsolated(int uid) { in isIsolated() argument 162 if (uid > 0) { in isIsolated() 163 return Process.isIsolated(uid); in isIsolated() 176 public static boolean isApp(int uid) { in isApp() argument 177 if (uid > 0) { in isApp() 178 final int appId = getAppId(uid); in isApp() 189 public static boolean isCore(int uid) { in isCore() argument 190 if (uid >= 0) { in isCore() 191 final int appId = getAppId(uid); in isCore() 203 public static UserHandle getUserHandleForUid(int uid) { in getUserHandleForUid() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySnapshotStorage.java | 81 public synchronized void put(int uid, KeyChainSnapshot snapshot) { in put() argument 82 mSnapshotByUid.put(uid, snapshot); in put() 85 writeToDisk(uid, snapshot); in put() 88 String.format(Locale.US, "Error persisting snapshot for %d to disk", uid), in put() 97 public synchronized KeyChainSnapshot get(int uid) { in get() argument 98 KeyChainSnapshot snapshot = mSnapshotByUid.get(uid); in get() 104 return readFromDisk(uid); in get() 106 Log.e(TAG, String.format(Locale.US, "Error reading snapshot for %d from disk", uid), e); in get() 114 public synchronized void remove(int uid) { in remove() argument 115 mSnapshotByUid.remove(uid); in remove() [all …]
|
/frameworks/av/media/utils/fuzzers/ |
D | ServiceUtilitiesFuzz.cpp | 30 uid_t uid = data_provider->ConsumeIntegral<uid_t>(); in __anona68969790102() local 31 pm.allowPlaybackCapture(uid); in __anona68969790102() 45 uid_t uid = data_provider.ConsumeIntegral<uid_t>(); in LLVMFuzzerTestOneInput() local 50 android::isServiceUid(uid); in LLVMFuzzerTestOneInput() 51 android::isAudioServerUid(uid); in LLVMFuzzerTestOneInput() 52 android::isAudioServerOrSystemServerUid(uid); in LLVMFuzzerTestOneInput() 53 android::isAudioServerOrMediaServerUid(uid); in LLVMFuzzerTestOneInput() 56 android::recordingAllowed(opPackageName, pid, uid); in LLVMFuzzerTestOneInput() 57 android::startRecording(opPackageName, pid, uid); in LLVMFuzzerTestOneInput() 58 android::finishRecording(opPackageName, uid); in LLVMFuzzerTestOneInput() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { in writeUid() argument 86 uid.getWakelockStats().entrySet()) { in writeUid() 109 uid.getSyncStats().entrySet()) { in writeUid() 115 uid.getJobStats().entrySet()) { in writeUid() 120 sensors = uid.getSensorStats(); in writeUid() 136 pids = uid.getPidStats(); in writeUid() 146 uid.getProcessStats().entrySet()) { in writeUid() 154 uid.getPackageStats().entrySet()) { in writeUid() 160 controller = uid.getWifiControllerActivity(); in writeUid() 179 controller = uid.getBluetoothControllerActivity(); in writeUid() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManagerTest.java | 210 int uid = Binder.getCallingUid(); in importKey_storesTheKey() local 216 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKey_storesTheKey() 217 assertThat(mRecoverableKeyStoreDb.getShouldCreateSnapshot(userId, uid)).isTrue(); in importKey_storesTheKey() 243 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nullMetadata_storesTheKey() local 250 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKeyWithMetadata_nullMetadata_storesTheKey() 251 assertThat(mRecoverableKeyStoreDb.getShouldCreateSnapshot(userId, uid)).isTrue(); in importKeyWithMetadata_nullMetadata_storesTheKey() 256 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() local 263 assertThat(mRecoverableKeyStoreDb.getKey(uid, TEST_ALIAS)).isNotNull(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 264 assertThat(mRecoverableKeyStoreDb.getShouldCreateSnapshot(userId, uid)).isTrue(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 292 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nullMetadata_storesTheKey() local [all …]
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | ChangeReporter.java | 89 public void reportChange(int uid, long changeId, int state) { in reportChange() argument 90 if (shouldWriteToStatsLog(uid, changeId, state)) { in reportChange() 91 StatsLog.write(StatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid, changeId, in reportChange() 94 if (shouldWriteToDebug(uid, changeId, state)) { in reportChange() 95 debugLog(uid, changeId, state); in reportChange() 97 markAsReported(uid, new ChangeReport(changeId, state)); in reportChange() 124 public boolean shouldWriteToStatsLog(int uid, long changeId, int state) { in shouldWriteToStatsLog() argument 125 return !isAlreadyReported(uid, new ChangeReport(changeId, state)); in shouldWriteToStatsLog() 137 public boolean shouldWriteToDebug(int uid, long changeId, int state) { in shouldWriteToDebug() argument 138 return mDebugLogAll || !isAlreadyReported(uid, new ChangeReport(changeId, state)); in shouldWriteToDebug() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 134 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() argument 138 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, uid, message); in checkReadPhoneState() 145 android.Manifest.permission.READ_PHONE_STATE, pid, uid, message); in checkReadPhoneState() 150 enforceCarrierPrivilege(context, subId, uid, message); in checkReadPhoneState() 160 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) in checkReadPhoneState() 191 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub() argument 195 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, pid, uid, message); in checkReadPhoneStateOnAnyActiveSub() 202 android.Manifest.permission.READ_PHONE_STATE, pid, uid, message); in checkReadPhoneStateOnAnyActiveSub() 206 return checkCarrierPrivilegeForAnySubId(context, uid); in checkReadPhoneStateOnAnyActiveSub() 213 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneStateOnAnyActiveSub() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | FakeGateKeeperService.java | 93 public GateKeeperResponse enroll(int uid, byte[] currentPasswordHandle, byte[] currentPassword, in enroll() argument 100 refreshSid(uid, handle.sid, false); in enroll() 101 handleMap.put(uid, newHandle.toBytes()); in enroll() 112 refreshSid(uid, newSid, true); in enroll() 113 handleMap.put(uid, newHandle.toBytes()); in enroll() 118 public GateKeeperResponse verify(int uid, byte[] enrolledPasswordHandle, in verify() argument 120 return verifyChallenge(uid, 0, enrolledPasswordHandle, providedPassword); in verify() 124 public GateKeeperResponse verifyChallenge(int uid, long challenge, in verifyChallenge() argument 129 byte[] knownHandle = handleMap.get(uid); in verifyChallenge() 135 refreshSid(uid, handle.sid, false); in verifyChallenge() [all …]
|