Lines Matching refs:opPackageName
734 * @param opPackageName name of package for caller
738 private boolean canUseFingerprint(String opPackageName, boolean requireForeground, int uid,
741 if (isKeyguard(opPackageName)) {
745 Slog.w(TAG,"Rejecting " + opPackageName + " ; not a current user or profile");
748 if (mAppOps.noteOp(AppOpsManager.OP_USE_FINGERPRINT, uid, opPackageName)
750 Slog.w(TAG, "Rejecting " + opPackageName + " ; permission denied");
753 if (requireForeground && !(isForegroundActivity(uid, pid) || currentClient(opPackageName))){
754 Slog.w(TAG, "Rejecting " + opPackageName + " ; not in foreground");
761 * @param opPackageName package of the caller
764 private boolean currentClient(String opPackageName) {
765 return mCurrentClient != null && mCurrentClient.getOwnerString().equals(opPackageName);
807 String opPackageName) {
808 updateActiveGroup(groupId, opPackageName);
810 if (DEBUG) Slog.v(TAG, "startAuthentication(" + opPackageName + ")");
813 receiver, mCurrentUserId, groupId, opId, restricted, opPackageName) {
866 String opPackageName) {
867 updateActiveGroup(userId, opPackageName);
872 userId, groupId, cryptoToken, restricted, opPackageName) {
1032 final String opPackageName) {
1054 restricted, opPackageName);
1082 final String opPackageName) {
1088 if (!canUseFingerprint(opPackageName, true /* foregroundOnly */, callingUid, callingPid,
1090 if (DEBUG) Slog.v(TAG, "authenticate(): reject " + opPackageName);
1110 flags, restricted, opPackageName);
1116 public void cancelAuthentication(final IBinder token, final String opPackageName) {
1121 if (!canUseFingerprint(opPackageName, true /* foregroundOnly */, callingUid, callingPid,
1123 if (DEBUG) Slog.v(TAG, "cancelAuthentication(): reject " + opPackageName);
1186 public boolean isHardwareDetected(long deviceId, String opPackageName) {
1187 if (!canUseFingerprint(opPackageName, false /* foregroundOnly */,
1218 opPackageName) {
1219 if (!canUseFingerprint(opPackageName, false /* foregroundOnly */,
1229 public boolean hasEnrolledFingerprints(int userId, String opPackageName) {
1230 if (!canUseFingerprint(opPackageName, false /* foregroundOnly */,
1240 public long getAuthenticatorId(String opPackageName) {
1257 return FingerprintService.this.getAuthenticatorId(opPackageName);
1474 * @param opPackageName the name of the calling package
1477 public long getAuthenticatorId(String opPackageName) {
1478 final int userId = getUserOrWorkProfileId(opPackageName, UserHandle.getCallingUserId());