Home
last modified time | relevance | path

Searched refs:vendorCode (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/java/android/hardware/face/
DFaceCallback.java195 public void sendErrorResult(Context context, int errMsgId, int vendorCode) { in sendErrorResult() argument
198 ? (vendorCode + FACE_ERROR_VENDOR_BASE) : errMsgId; in sendErrorResult()
201 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
204 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
207 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
253 public void sendAcquiredResult(Context context, int acquireInfo, int vendorCode) { in sendAcquiredResult() argument
256 new FaceDataFrame(acquireInfo, vendorCode)); in sendAcquiredResult()
262 new FaceDataFrame(acquireInfo, vendorCode)); in sendAcquiredResult()
279 final int vendorCode = frame.getData().getVendorCode(); in sendAuthenticationFrame() local
280 final int helpCode = getHelpCode(acquireInfo, vendorCode); in sendAuthenticationFrame()
[all …]
DFaceDataFrame.java53 int vendorCode, in FaceDataFrame() argument
59 mVendorCode = vendorCode; in FaceDataFrame()
73 public FaceDataFrame(@BiometricFaceConstants.FaceAcquired int acquiredInfo, int vendorCode) { in FaceDataFrame() argument
75 mVendorCode = vendorCode; in FaceDataFrame()
DFaceManager.java122 public void onAcquired(int acquireInfo, int vendorCode) { in onAcquired() argument
124 vendorCode)); in onAcquired()
145 public void onError(int error, int vendorCode) { in onError() argument
146 mExecutor.execute(() -> mFaceCallback.sendErrorResult(mContext, error, vendorCode)); in onError()
898 public static String getErrorString(Context context, int errMsg, int vendorCode) { in getErrorString() argument
932 if (vendorCode < msgArray.length) { in getErrorString()
933 return msgArray[vendorCode]; in getErrorString()
941 Slog.w(TAG, "Invalid error message: " + errMsg + ", " + vendorCode); in getErrorString()
950 public static int getMappedAcquiredInfo(int acquireInfo, int vendorCode) { in getMappedAcquiredInfo() argument
971 return BiometricConstants.BIOMETRIC_ACQUIRED_VENDOR_BASE + vendorCode; in getMappedAcquiredInfo()
[all …]
DIFaceServiceReceiver.aidl28 void onAcquired(int acquiredInfo, int vendorCode); in onAcquired() argument
32 void onError(int error, int vendorCode); in onError() argument
DFaceServiceReceiver.java32 public void onAcquired(int acquiredInfo, int vendorCode) throws RemoteException { in onAcquired() argument
54 public void onError(int error, int vendorCode) throws RemoteException { in onError() argument
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DAcquisitionClient.java85 public void onError(int errorCode, int vendorCode) { in onError() argument
87 onErrorInternal(errorCode, vendorCode, true /* finish */); in onError()
104 protected void onErrorInternal(int errorCode, int vendorCode, boolean finish) { in onErrorInternal() argument
113 errorCode, vendorCode, getTargetUserId()); in onErrorInternal() local
116 getListener().onError(getSensorId(), getCookie(), errorCode, vendorCode); in onErrorInternal() local
160 public void onAcquired(int acquiredInfo, int vendorCode) { in onAcquired() argument
162 onAcquiredInternal(acquiredInfo, vendorCode, true /* shouldSend */); in onAcquired()
165 protected final void onAcquiredInternal(int acquiredInfo, int vendorCode, in onAcquiredInternal() argument
168 acquiredInfo, vendorCode, getTargetUserId()); in onAcquiredInternal() local
170 Slog.v(TAG, "Acquired: " + acquiredInfo + " " + vendorCode in onAcquiredInternal()
[all …]
DClientMonitorCallbackConverter.java82 public void onAcquired(int sensorId, int acquiredInfo, int vendorCode) throws RemoteException { in onAcquired() argument
84 mSensorReceiver.onAcquired(sensorId, acquiredInfo, vendorCode); in onAcquired()
86 mFaceServiceReceiver.onAcquired(acquiredInfo, vendorCode); in onAcquired()
88 mFingerprintServiceReceiver.onAcquired(acquiredInfo, vendorCode); in onAcquired()
115 public void onError(int sensorId, int cookie, int error, int vendorCode) in onError() argument
118 mSensorReceiver.onError(sensorId, cookie, error, vendorCode); in onError()
120 mFaceServiceReceiver.onError(error, vendorCode); in onError()
122 mFingerprintServiceReceiver.onError(error, vendorCode); in onError()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DHidlToAidlCallbackConverter.java46 public void onAcquired(long deviceId, int acquiredInfo, int vendorCode) { in onAcquired() argument
47 onAcquired_2_2(deviceId, acquiredInfo, vendorCode); in onAcquired()
51 public void onAcquired_2_2(long deviceId, int acquiredInfo, int vendorCode) { in onAcquired_2_2() argument
52 mAidlResponseHandler.onAcquired(acquiredInfo, vendorCode); in onAcquired_2_2()
71 public void onError(long deviceId, int error, int vendorCode) { in onError() argument
72 mAidlResponseHandler.onError(error, vendorCode); in onError()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/
DFaceEnrollClient.java151 private boolean shouldSendAcquiredMessage(int acquireInfo, int vendorCode) { in shouldSendAcquiredMessage() argument
153 ? !Utils.listContains(mEnrollIgnoreListVendor, vendorCode) in shouldSendAcquiredMessage()
158 public void onAcquired(int acquireInfo, int vendorCode) { in onAcquired() argument
159 final boolean shouldSend = shouldSendAcquiredMessage(acquireInfo, vendorCode); in onAcquired()
161 final int helpCode = getHelpCode(acquireInfo, vendorCode); in onAcquired()
162 final String helpMessage = getEnrollHelpMessage(getContext(), acquireInfo, vendorCode); in onAcquired()
169 onAcquiredInternal(acquireInfo, vendorCode, shouldSend); in onAcquired()
180 final int vendorCode = frame.getData().getVendorCode(); in onEnrollmentFrame() local
181 onAcquiredInternal(acquireInfo, vendorCode, false /* shouldSend */); in onEnrollmentFrame()
183 final boolean shouldSend = shouldSendAcquiredMessage(acquireInfo, vendorCode); in onEnrollmentFrame()
[all …]
DFaceAuthenticationClient.java286 public void onError(@BiometricConstants.Errors int error, int vendorCode) { in onError() argument
292 vendorCode, in onError()
296 getErrorString(getContext(), error, vendorCode), error).build() in onError()
298 super.onError(error, vendorCode); in onError()
312 private boolean shouldSendAcquiredMessage(int acquireInfo, int vendorCode) { in shouldSendAcquiredMessage() argument
314 ? !Utils.listContains(getAcquireVendorIgnorelist(), vendorCode) in shouldSendAcquiredMessage()
319 public void onAcquired(int acquireInfo, int vendorCode) { in onAcquired() argument
321 final boolean shouldSend = shouldSendAcquiredMessage(acquireInfo, vendorCode); in onAcquired()
327 final String helpMessage = getAuthHelpMessage(getContext(), acquireInfo, vendorCode); in onAcquired()
329 final int helpCode = getHelpCode(acquireInfo, vendorCode); in onAcquired()
[all …]
DAidlResponseHandler.java145 public void onError(byte error, int vendorCode) { in onError() argument
146 onError(AidlConversionUtils.toFrameworkError(error), vendorCode); in onError() local
152 public void onError(int error, int vendorCode) { in onError() argument
154 c.onError(error, vendorCode); in onError()
281 public void onAcquired(int acquiredInfo, int vendorCode) { in onAcquired() argument
282 handleResponse(AcquisitionClient.class, (c) -> c.onAcquired(acquiredInfo, vendorCode)); in onAcquired()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintCallback.java184 public void sendAcquiredResult(@NonNull Context context, int acquireInfo, int vendorCode) { in sendAcquiredResult() argument
191 final String msg = getAcquiredString(context, acquireInfo, vendorCode); in sendAcquiredResult()
197 ? (vendorCode + FINGERPRINT_ACQUIRED_VENDOR_BASE) : acquireInfo; in sendAcquiredResult()
213 public void sendErrorResult(@NonNull Context context, int errMsgId, int vendorCode) { in sendErrorResult() argument
216 ? (vendorCode + FINGERPRINT_ERROR_VENDOR_BASE) : errMsgId; in sendErrorResult()
219 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
222 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
225 getErrorString(context, errMsgId, vendorCode)); in sendErrorResult()
DIFingerprintServiceReceiver.aidl26 void onAcquired(int acquiredInfo, int vendorCode); in onAcquired() argument
30 void onError(int error, int vendorCode); in onError() argument
DFingerprintServiceReceiver.java32 public void onAcquired(int acquiredInfo, int vendorCode) throws RemoteException { in onAcquired() argument
54 public void onError(int error, int vendorCode) throws RemoteException { in onError() argument
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/hidl/
DHidlToAidlCallbackConverter.java64 int vendorCode) { in onAcquired() argument
65 mAidlResponseHandler.onAcquired(acquiredInfo, vendorCode); in onAcquired()
69 public void onError(long deviceId, int userId, int error, int vendorCode) { in onError() argument
70 mAidlResponseHandler.onError(error, vendorCode); in onError()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DAidlResponseHandler.java125 public void onAcquired(int acquiredInfo, int vendorCode) { in onAcquired() argument
126 handleResponse(AcquisitionClient.class, (c) -> c.onAcquired(acquiredInfo, vendorCode)); in onAcquired()
130 public void onAcquired(byte info, int vendorCode) { in onAcquired() argument
132 AidlConversionUtils.toFrameworkAcquiredInfo(info), vendorCode)); in onAcquired()
138 public void onError(int error, int vendorCode) { in onError() argument
140 c.onError(error, vendorCode); in onError()
148 public void onError(byte error, int vendorCode) { in onError() argument
149 onError(AidlConversionUtils.toFrameworkError(error), vendorCode); in onError() local
DFingerprintEnrollClient.java164 public void onAcquired(@FingerprintAcquired int acquiredInfo, int vendorCode) { in onAcquired() argument
172 String helpMsg = getAcquiredString(getContext(), acquiredInfo, vendorCode); in onAcquired()
175 ? (vendorCode + FINGERPRINT_ACQUIRED_VENDOR_BASE) : acquiredInfo; in onAcquired()
196 if (UdfpsHelper.isValidAcquisitionMessage(getContext(), acquiredInfo, vendorCode)) { in onAcquired()
201 super.onAcquired(acquiredInfo, vendorCode); in onAcquired()
205 public void onError(int errorCode, int vendorCode) { in onError() argument
209 getErrorString(getContext(), errorCode, vendorCode), errorCode).build() in onError()
211 super.onError(errorCode, vendorCode); in onError()
DFingerprintAuthenticationClient.java238 public void onAcquired(@FingerprintAcquired int acquiredInfo, int vendorCode) { in onAcquired() argument
244 String helpMsg = getAcquiredString(getContext(), acquiredInfo, vendorCode); in onAcquired()
247 ? (vendorCode + FINGERPRINT_ACQUIRED_VENDOR_BASE) : acquiredInfo; in onAcquired()
257 super.onAcquired(acquiredInfo, vendorCode); in onAcquired()
263 public void onError(int errorCode, int vendorCode) { in onError() argument
266 getRequestReason(), getErrorString(getContext(), errorCode, vendorCode), in onError()
269 super.onError(errorCode, vendorCode); in onError()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DBiometricLogger.java132 int acquiredInfo, int vendorCode, int targetUserId) { in logOnAcquired() argument
156 + ", VendorCode: " + vendorCode); in logOnAcquired()
166 acquiredInfo, vendorCode, targetUserId); in logOnAcquired()
171 int error, int vendorCode, int targetUserId) { in logOnError() argument
186 + ", VendorCode: " + vendorCode in logOnError()
199 error, vendorCode, targetUserId); in logOnError()
DBiometricFrameworkStatsLogger.java55 int acquiredInfo, int vendorCode, int targetUserId) { in acquired() argument
63 vendorCode, in acquired()
131 int error, int vendorCode, int targetUserId) { in error() argument
139 vendorCode, in error()
/frameworks/base/core/java/android/hardware/biometrics/
DIBiometricSensorReceiver.aidl30 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.java438 int vendorCode) throws RemoteException { in onErrorReceived() argument
468 mVendorCodeEscrow = vendorCode; in onErrorReceived()
497 mClientReceiver.onError(modality, error, vendorCode); in onErrorReceived()
509 mStatusBarService.onBiometricError(modality, error, vendorCode); in onErrorReceived()
515 mClientReceiver.onError(modality, error, vendorCode); in onErrorReceived()
519 mStatusBarService.onBiometricError(modality, error, vendorCode); in onErrorReceived()
528 mClientReceiver.onError(modality, error, vendorCode); in onErrorReceived()
549 void onAcquired(int sensorId, int acquiredInfo, int vendorCode) { in onAcquired() argument
555 final String message = getAcquiredMessageForSensor(sensorId, acquiredInfo, vendorCode); in onAcquired()
565 ? (vendorCode + FINGERPRINT_ACQUIRED_VENDOR_BASE) : acquiredInfo; in onAcquired()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DBiometricLoggerTest.java102 final int vendorCode = 3; in testAcquired() local
105 mLogger.logOnAcquired(mContext, mOpContext, acquiredInfo, vendorCode, targetUserId); in testAcquired()
109 eq(acquiredInfo), eq(vendorCode), eq(targetUserId)); in testAcquired()
152 final int vendorCode = 11; in testError() local
155 mLogger.logOnError(mContext, mOpContext, error, vendorCode, targetUserId); in testError()
159 anyLong(), eq(error), eq(vendorCode), eq(targetUserId)); in testError()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DAuthControllerTest.java553 final int vendorCode = 0; in testOnAuthenticationFailedInvoked_whenBiometricTimedOut() local
554 mAuthController.onBiometricError(modality, error, vendorCode); in testOnAuthenticationFailedInvoked_whenBiometricTimedOut()
581 final int vendorCode = 0; in testOnErrorInvoked_whenSystemRequested() local
582 mAuthController.onBiometricError(modality, error, vendorCode); in testOnErrorInvoked_whenSystemRequested()
588 FaceManager.getErrorString(mContext, error, vendorCode)); in testOnErrorInvoked_whenSystemRequested()
595 final int vendorCode = 0; in testErrorLockout_whenCredentialAllowed_AnimatesToCredentialUI() local
599 mAuthController.onBiometricError(BiometricAuthenticator.TYPE_FACE, error, vendorCode); in testErrorLockout_whenCredentialAllowed_AnimatesToCredentialUI()
608 final int vendorCode = 0; in testErrorLockoutPermanent_whenCredentialAllowed_AnimatesToCredentialUI() local
612 mAuthController.onBiometricError(BiometricAuthenticator.TYPE_FACE, error, vendorCode); in testErrorLockoutPermanent_whenCredentialAllowed_AnimatesToCredentialUI()
622 final int vendorCode = 0; in testErrorLockout_whenCredentialNotAllowed_sendsOnError() local
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DUdfpsHelper.java67 int acquireInfo, int vendorCode) { in isValidAcquisitionMessage() argument
68 return FingerprintManager.getAcquiredString(context, acquireInfo, vendorCode) != null; in isValidAcquisitionMessage()

12