Home
last modified time | relevance | path

Searched refs:sensorId (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DFaceProvider.java139 final int sensorId = prop.commonProps.sensorId; in FaceProvider() local
151 prop.commonProps.sensorId, prop.commonProps.sensorStrength, in FaceProvider()
155 final Sensor sensor = new Sensor(getTag() + "/" + sensorId, this, mContext, mHandler, in FaceProvider()
158 mSensors.put(sensorId, sensor); in FaceProvider()
203 final int sensorId = mSensors.keyAt(i); in getHalInstance() local
204 scheduleLoadAuthenticatorIds(sensorId); in getHalInstance()
205 scheduleInternalCleanup(sensorId, ActivityManager.getCurrentUser(), in getHalInstance()
212 private void scheduleForSensor(int sensorId, @NonNull BaseClientMonitor client) { in scheduleForSensor() argument
213 if (!mSensors.contains(sensorId)) { in scheduleForSensor()
215 + " for sensor: " + sensorId); in scheduleForSensor()
[all …]
DFaceInternalCleanupClient.java43 int sensorId, @NonNull BiometricLogger logger, in FaceInternalCleanupClient() argument
46 super(context, lazyDaemon, userId, owner, sensorId, logger, biometricContext, in FaceInternalCleanupClient()
53 List<Face> enrolledList, BiometricUtils<Face> utils, int sensorId, in getEnumerateClient() argument
56 enrolledList, utils, sensorId, logger, biometricContext); in getEnumerateClient()
62 int biometricId, int userId, String owner, BiometricUtils<Face> utils, int sensorId, in getRemovalClient() argument
69 utils, sensorId, logger, biometricContext, authenticatorIds); in getRemovalClient()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DFingerprintProvider.java158 final int sensorId = prop.commonProps.sensorId; in FingerprintProvider() local
170 new FingerprintSensorPropertiesInternal(prop.commonProps.sensorId, in FingerprintProvider()
185 final Sensor sensor = new Sensor(getTag() + "/" + sensorId, this, mContext, mHandler, in FingerprintProvider()
189 mSensors.put(sensorId, sensor); in FingerprintProvider()
238 final int sensorId = mSensors.keyAt(i); in getHalInstance() local
239 scheduleLoadAuthenticatorIds(sensorId); in getHalInstance()
240 scheduleInternalCleanup(sensorId, ActivityManager.getCurrentUser(), in getHalInstance()
247 private void scheduleForSensor(int sensorId, @NonNull BaseClientMonitor client) { in scheduleForSensor() argument
248 if (!mSensors.contains(sensorId)) { in scheduleForSensor()
250 + " for sensor: " + sensorId); in scheduleForSensor()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DServiceProvider.java66 boolean containsSensor(int sensorId); in containsSensor() argument
78 FingerprintSensorPropertiesInternal getSensorProperties(int sensorId); in getSensorProperties() argument
80 void scheduleResetLockout(int sensorId, int userId, @Nullable byte[] hardwareAuthToken); in scheduleResetLockout() argument
82 void scheduleGenerateChallenge(int sensorId, int userId, @NonNull IBinder token, in scheduleGenerateChallenge() argument
85 void scheduleRevokeChallenge(int sensorId, int userId, @NonNull IBinder token, in scheduleRevokeChallenge() argument
91 long scheduleEnroll(int sensorId, @NonNull IBinder token, @NonNull byte[] hardwareAuthToken, in scheduleEnroll() argument
95 void cancelEnrollment(int sensorId, @NonNull IBinder token, long requestId); in cancelEnrollment() argument
97 long scheduleFingerDetect(int sensorId, @NonNull IBinder token, int userId, in scheduleFingerDetect() argument
101 void scheduleAuthenticate(int sensorId, @NonNull IBinder token, long operationId, int userId, in scheduleAuthenticate() argument
106 long scheduleAuthenticate(int sensorId, @NonNull IBinder token, long operationId, int userId, in scheduleAuthenticate() argument
[all …]
DFingerprintService.java147 final ServiceProvider provider = getProviderForSensor(prop.sensorId); in broadcastCurrentEnrollmentState()
150 .getEnrolledFingerprints(prop.sensorId, userInfo.id).isEmpty(); in broadcastCurrentEnrollmentState()
156 listener, userInfo.id, prop.sensorId, enrolled); in broadcastCurrentEnrollmentState()
159 userInfo.id, prop.sensorId, enrolled); in broadcastCurrentEnrollmentState()
172 public ITestSession createTestSession(int sensorId, @NonNull ITestSessionCallback callback, in createTestSession() argument
176 final ServiceProvider provider = getProviderForSensor(sensorId); in createTestSession()
179 Slog.w(TAG, "Null provider for createTestSession, sensorId: " + sensorId); in createTestSession()
183 return provider.createTestSession(sensorId, callback, opPackageName); in createTestSession()
187 public byte[] dumpSensorServiceStateProto(int sensorId, boolean clearSchedulerBuffer) { in dumpSensorServiceStateProto() argument
191 final ServiceProvider provider = getProviderForSensor(sensorId); in dumpSensorServiceStateProto()
[all …]
DFingerprintUtils.java59 public static FingerprintUtils getInstance(int sensorId) { in getInstance() argument
61 return getInstance(sensorId, null /* fileName */); in getInstance()
71 private static FingerprintUtils getInstance(int sensorId, @Nullable String fileName) { in getInstance() argument
77 if (sInstances.get(sensorId) == null) { in getInstance()
79 fileName = "settings_fingerprint_" + sensorId + ".xml"; in getInstance()
81 sInstances.put(sensorId, new FingerprintUtils(fileName)); in getInstance()
83 utils = sInstances.get(sensorId); in getInstance()
92 public static FingerprintUtils getLegacyInstance(int sensorId) { in getLegacyInstance() argument
95 return getInstance(sensorId, LEGACY_FINGERPRINT_FILE); in getLegacyInstance()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DServiceProvider.java63 boolean containsSensor(int sensorId); in containsSensor() argument
69 FaceSensorPropertiesInternal getSensorProperties(int sensorId); in getSensorProperties() argument
72 List<Face> getEnrolledFaces(int sensorId, int userId); in getEnrolledFaces() argument
75 int getLockoutModeForUser(int sensorId, int userId); in getLockoutModeForUser() argument
81 default void scheduleInvalidateAuthenticatorId(int sensorId, int userId, in scheduleInvalidateAuthenticatorId() argument
87 long getAuthenticatorId(int sensorId, int userId); in getAuthenticatorId() argument
89 boolean isHardwareDetected(int sensorId); in isHardwareDetected() argument
91 void scheduleGenerateChallenge(int sensorId, int userId, @NonNull IBinder token, in scheduleGenerateChallenge() argument
94 void scheduleRevokeChallenge(int sensorId, int userId, @NonNull IBinder token, in scheduleRevokeChallenge() argument
97 long scheduleEnroll(int sensorId, @NonNull IBinder token, @NonNull byte[] hardwareAuthToken, in scheduleEnroll() argument
[all …]
DFaceService.java90 private ServiceProvider getProviderForSensor(int sensorId) { in getProviderForSensor() argument
92 if (provider.containsSensor(sensorId)) { in getProviderForSensor()
113 final int sensorId = properties.get(0).sensorId; in getSingleProvider() local
115 if (provider.containsSensor(sensorId)) { in getSingleProvider()
116 return new Pair<>(sensorId, provider); in getSingleProvider()
138 public ITestSession createTestSession(int sensorId, @NonNull ITestSessionCallback callback, in createTestSession() argument
142 final ServiceProvider provider = getProviderForSensor(sensorId); in createTestSession()
145 Slog.w(TAG, "Null provider for createTestSession, sensorId: " + sensorId); in createTestSession()
149 return provider.createTestSession(sensorId, callback, opPackageName); in createTestSession()
153 public byte[] dumpSensorServiceStateProto(int sensorId, boolean clearSchedulerBuffer) { in dumpSensorServiceStateProto() argument
[all …]
DFaceUtils.java44 public static FaceUtils getInstance(int sensorId) { in getInstance() argument
46 return getInstance(sensorId, null /* fileName */); in getInstance()
56 private static FaceUtils getInstance(int sensorId, @Nullable String fileName) { in getInstance() argument
62 if (sInstances.get(sensorId) == null) { in getInstance()
64 fileName = "settings_face_" + sensorId + ".xml"; in getInstance()
66 sInstances.put(sensorId, new FaceUtils(fileName)); in getInstance()
68 utils = sInstances.get(sensorId); in getInstance()
77 public static FaceUtils getLegacyInstance(int sensorId) { in getLegacyInstance() argument
80 return getInstance(sensorId, LEGACY_FACE_FILE); in getLegacyInstance()
/frameworks/base/core/java/android/hardware/fingerprint/
DIFingerprintService.aidl40 … ITestSession createTestSession(int sensorId, ITestSessionCallback callback, String opPackageName); in createTestSession() argument
43 byte[] dumpSensorServiceStateProto(int sensorId, boolean clearSchedulerBuffer); in dumpSensorServiceStateProto() argument
49 FingerprintSensorPropertiesInternal getSensorProperties(int sensorId, String opPackageName); in getSensorProperties() argument
54 long authenticate(IBinder token, long operationId, int sensorId, int userId, in authenticate() argument
69 void prepareForAuthentication(int sensorId, IBinder token, long operationId, int userId, in prepareForAuthentication() argument
74 void startPreparedClient(int sensorId, int cookie); in startPreparedClient() argument
84 …void cancelAuthenticationFromService(int sensorId, IBinder token, String opPackageName, long reque… in cancelAuthenticationFromService() argument
110 boolean isHardwareDetected(int sensorId, String opPackageName); in isHardwareDetected() argument
113 …void generateChallenge(IBinder token, int sensorId, int userId, IFingerprintServiceReceiver receiv… in generateChallenge() argument
116 …void revokeChallenge(IBinder token, int sensorId, int userId, String opPackageName, long challenge… in revokeChallenge() argument
[all …]
DIUdfpsOverlayController.aidl26 …void showUdfpsOverlay(long requestId, int sensorId, int reason, IUdfpsOverlayControllerCallback ca… in showUdfpsOverlay() argument
29 void hideUdfpsOverlay(int sensorId); in hideUdfpsOverlay() argument
34 void onAcquired(int sensorId, int acquiredInfo); in onAcquired() argument
37 void onEnrollmentProgress(int sensorId, int remaining); in onEnrollmentProgress() argument
40 void onEnrollmentHelp(int sensorId); in onEnrollmentHelp() argument
43 void setDebugMessage(int sensorId, String message); in setDebugMessage() argument
DFingerprintManager.java180 public BiometricTestSession createTestSession(int sensorId) { in createTestSession() argument
182 return new BiometricTestSession(mContext, sensorId, in createTestSession()
411 public void onUdfpsPointerDown(int sensorId) {} in onUdfpsPointerDown() argument
418 public void onUdfpsPointerUp(int sensorId) {} in onUdfpsPointerUp() argument
430 void onFingerprintDetected(int sensorId, int userId, boolean isStrongBiometric); in onFingerprintDetected() argument
505 public void onLockoutReset(int sensorId) { } in onLockoutReset() argument
515 void onChallengeGenerated(int sensorId, int userId, long challenge); in onChallengeGenerated() argument
576 @NonNull AuthenticationCallback callback, Handler handler, int sensorId, int userId, in authenticate() argument
605 sensorId, in authenticate()
717 public void generateChallenge(int sensorId, int userId, GenerateChallengeCallback callback) { in generateChallenge() argument
[all …]
DIFingerprintServiceReceiver.aidl28 void onFingerprintDetected(int sensorId, int userId, boolean isStrongBiometric); in onFingerprintDetected() argument
32 void onChallengeGenerated(int sensorId, int userId, long challenge); in onChallengeGenerated() argument
33 void onUdfpsPointerDown(int sensorId); in onUdfpsPointerDown() argument
34 void onUdfpsPointerUp(int sensorId); in onUdfpsPointerUp() argument
DFingerprintServiceReceiver.java43 public void onFingerprintDetected(int sensorId, int userId, boolean isStrongBiometric) in onFingerprintDetected() argument
64 public void onChallengeGenerated(int sensorId, int userId, long challenge) in onChallengeGenerated() argument
70 public void onUdfpsPointerDown(int sensorId) throws RemoteException { in onUdfpsPointerDown() argument
75 public void onUdfpsPointerUp(int sensorId) throws RemoteException { in onUdfpsPointerUp() argument
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DClientMonitorCallbackConverter.java62 public void onAcquired(int sensorId, int acquiredInfo, int vendorCode) throws RemoteException { in onAcquired() argument
64 mSensorReceiver.onAcquired(sensorId, acquiredInfo, vendorCode); in onAcquired()
72 void onAuthenticationSucceeded(int sensorId, BiometricAuthenticator.Identifier identifier, in onAuthenticationSucceeded() argument
75 mSensorReceiver.onAuthenticationSucceeded(sensorId, token); in onAuthenticationSucceeded()
85 void onAuthenticationFailed(int sensorId) throws RemoteException { in onAuthenticationFailed() argument
87 mSensorReceiver.onAuthenticationFailed(sensorId); in onAuthenticationFailed()
95 public void onError(int sensorId, int cookie, int error, int vendorCode) in onError() argument
98 mSensorReceiver.onError(sensorId, cookie, error, vendorCode); in onError()
108 public void onDetected(int sensorId, int userId, boolean isStrongBiometric) in onDetected() argument
111 mFaceServiceReceiver.onFaceDetected(sensorId, userId, isStrongBiometric); in onDetected()
[all …]
DSensorOverlays.java67 public void show(int sensorId, @BiometricOverlayConstants.ShowReason int reason, in show() argument
71 mSidefpsController.get().show(sensorId, reason); in show()
88 client.getRequestId(), sensorId, reason, callback); in show() local
100 public void hide(int sensorId) { in hide() argument
103 mSidefpsController.get().hide(sensorId); in hide()
111 mUdfpsOverlayController.get().hideUdfpsOverlay(sensorId); in hide()
/frameworks/base/core/java/android/hardware/face/
DIFaceService.aidl36 … ITestSession createTestSession(int sensorId, ITestSessionCallback callback, String opPackageName); in createTestSession() argument
39 byte[] dumpSensorServiceStateProto(int sensorId, boolean clearSchedulerBuffer); in dumpSensorServiceStateProto() argument
45 FaceSensorPropertiesInternal getSensorProperties(int sensorId, String opPackageName); in getSensorProperties() argument
61 void prepareForAuthentication(int sensorId, boolean requireConfirmation, IBinder token, in prepareForAuthentication() argument
67 void startPreparedClient(int sensorId, int cookie); in startPreparedClient() argument
76 …void cancelAuthenticationFromService(int sensorId, IBinder token, String opPackageName, long reque… in cancelAuthenticationFromService() argument
98 List<Face> getEnrolledFaces(int sensorId, int userId, String opPackageName); in getEnrolledFaces() argument
101 boolean isHardwareDetected(int sensorId, String opPackageName); in isHardwareDetected() argument
104 …void generateChallenge(IBinder token, int sensorId, int userId, IFaceServiceReceiver receiver, Str… in generateChallenge() argument
107 …void revokeChallenge(IBinder token, int sensorId, int userId, String opPackageName, long challenge… in revokeChallenge() argument
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DBiometricDeferredQueue.java101 public void onGenerateChallengeResult(int sensorId, int userId, long challenge) { in onGenerateChallengeResult() argument
102 if (!sensorIds.contains(sensorId)) { in onGenerateChallengeResult()
103 Slog.e(TAG, "Unknown sensorId received: " + sensorId); in onGenerateChallengeResult()
109 Slog.d(TAG, "Resetting face lockout for sensor: " + sensorId in onGenerateChallengeResult()
114 faceManager.resetLockout(sensorId, userAuthInfo.userId, hat); in onGenerateChallengeResult()
118 sensorIds.remove(sensorId); in onGenerateChallengeResult()
119 faceManager.revokeChallenge(sensorId, userId, challenge); in onGenerateChallengeResult()
200 mFingerprintManager.resetLockout(prop.sensorId, user.userId, in processPendingLockoutsForFingerprint()
205 Slog.d(TAG, "Resetting fingerprint lockout for sensor: " + prop.sensorId in processPendingLockoutsForFingerprint()
210 mFingerprintManager.resetLockout(prop.sensorId, user.userId, hat); in processPendingLockoutsForFingerprint()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DFingerprint21.java160 mLockoutResetDispatcher.notifyLockoutResetCallbacks(mSensorProperties.sensorId);
189 HalResultController(int sensorId, @NonNull Context context, @NonNull Handler handler, in HalResultController() argument
191 mSensorId = sensorId; in HalResultController()
333 mSensorId = sensorProps.sensorId; in Fingerprint21()
369 final HalResultController controller = new HalResultController(sensorProps.sensorId, in newInstance()
379 PerformanceTracker.getInstanceForSensorId(mSensorProperties.sensorId) in serviceDied()
493 !getEnrolledFingerprints(mSensorProperties.sensorId, targetUserId).isEmpty(); in scheduleUpdateActiveUserWithoutHandler()
496 mContext.getOpPackageName(), mSensorProperties.sensorId, in scheduleUpdateActiveUserWithoutHandler()
519 public boolean containsSensor(int sensorId) { in containsSensor() argument
520 return mSensorProperties.sensorId == sensorId; in containsSensor()
[all …]
DFingerprintInternalCleanupClient.java46 @NonNull String owner, int sensorId, in FingerprintInternalCleanupClient() argument
51 super(context, lazyDaemon, userId, owner, sensorId, logger, biometricContext, in FingerprintInternalCleanupClient()
59 BiometricUtils<Fingerprint> utils, int sensorId, in getEnumerateClient() argument
62 enrolledList, utils, sensorId, logger, biometricContext); in getEnumerateClient()
69 int sensorId, @NonNull BiometricLogger logger, in getRemovalClient() argument
75 sensorId, logger, biometricContext, authenticatorIds); in getRemovalClient()
/frameworks/base/core/java/android/hardware/biometrics/
DSensorPropertiesInternal.java34 public final int sensorId; field in SensorPropertiesInternal
42 return new SensorPropertiesInternal(prop.sensorId, prop.sensorStrength, in from()
47 public SensorPropertiesInternal(int sensorId, @SensorProperties.Strength int sensorStrength, in SensorPropertiesInternal() argument
50 this.sensorId = sensorId; in SensorPropertiesInternal()
59 sensorId = in.readInt(); in SensorPropertiesInternal()
88 dest.writeInt(sensorId); in writeToParcel()
106 return "ID: " + sensorId + ", Strength: " + sensorStrength in toString()
DIBiometricSensorReceiver.aidl25 void onAuthenticationSucceeded(int sensorId, in byte[] token); in onAuthenticationSucceeded() argument
27 void onAuthenticationFailed(int sensorId); in onAuthenticationFailed() argument
30 void onError(int sensorId, int cookie, int error, int vendorCode); in onError() argument
32 void onAcquired(int sensorId, int acquiredInfo, int vendorCode); in onAcquired() argument
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthSession.java395 boolean onErrorReceived(int sensorId, int cookie, @BiometricConstants.Errors int error, in onErrorReceived() argument
397 Slog.d(TAG, "onErrorReceived sensor: " + sensorId + " error: " + error); in onErrorReceived()
421 @Modality final int modality = sensorIdToModality(sensorId); in onErrorReceived()
503 void onAcquired(int sensorId, int acquiredInfo, int vendorCode) { in onAcquired() argument
509 final String message = getAcquiredMessageForSensor(sensorId, acquiredInfo, vendorCode); in onAcquired()
510 Slog.d(TAG, "sensorId: " + sensorId + " acquiredInfo: " + acquiredInfo in onAcquired()
517 mStatusBarService.onBiometricHelp(sensorIdToModality(sensorId), message); in onAcquired()
567 void onAuthenticationSucceeded(int sensorId, boolean strong, byte[] token) { in onAuthenticationSucceeded() argument
573 mAuthenticatedSensorId = sensorId; in onAuthenticationSucceeded()
578 Slog.w(TAG, "Dropping authToken for non-strong biometric, id: " + sensorId); in onAuthenticationSucceeded()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DFaceInternalCleanupClient.java44 int sensorId, @NonNull BiometricLogger logger, in FaceInternalCleanupClient() argument
47 super(context, lazyDaemon, userId, owner, sensorId, logger, biometricContext, in FaceInternalCleanupClient()
54 List<Face> enrolledList, BiometricUtils<Face> utils, int sensorId, in getEnumerateClient() argument
57 enrolledList, utils, sensorId, logger, biometricContext); in getEnumerateClient()
63 int biometricId, int userId, String owner, BiometricUtils<Face> utils, int sensorId, in getRemovalClient() argument
70 sensorId, logger, biometricContext, authenticatorIds); in getRemovalClient()
DFace10.java160 HalResultController(int sensorId, @NonNull Context context, @NonNull Handler handler, in HalResultController() argument
163 mSensorId = sensorId; in HalResultController()
346 mSensorId = sensorProps.sensorId; in Face10()
354 mHalResultController = new HalResultController(sensorProps.sensorId, context, mHandler, in Face10()
462 public boolean containsSensor(int sensorId) { in containsSensor() argument
463 return mSensorId == sensorId; in containsSensor()
476 public FaceSensorPropertiesInternal getSensorProperties(int sensorId) { in getSensorProperties() argument
482 public List<Face> getEnrolledFaces(int sensorId, int userId) { in getEnrolledFaces() argument
488 public int getLockoutModeForUser(int sensorId, int userId) { in getLockoutModeForUser() argument
493 public long getAuthenticatorId(int sensorId, int userId) { in getAuthenticatorId() argument
[all …]

123456