Home
last modified time | relevance | path

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

/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricSecurityTests.java93 for (Integer sensorId : sensors) { in testBiometricStrength_StrongSensor()
95 testBiometricStrength_forSensor_authAllowed(sensorId, in testBiometricStrength_StrongSensor()
122 for (Integer sensorId : sensors) { in testBiometricStrength_WeakSensor()
123 testBiometricStrength_forSensor_authDisallowed(sensorId, in testBiometricStrength_WeakSensor()
128 testBiometricStrength_forSensor_authAllowed(sensorId, in testBiometricStrength_WeakSensor()
164 for (Integer sensorId : sensors) { in testBiometricStrength_ConvenienceSensor()
166 testBiometricStrength_forSensor_authDisallowed(sensorId, in testBiometricStrength_ConvenienceSensor()
174 private void testBiometricStrength_forSensor_authAllowed(int sensorId, int originalStrength, in testBiometricStrength_forSensor_authAllowed() argument
177 + ", sensorId=" + sensorId in testBiometricStrength_forSensor_authAllowed()
184 updateStrengthAndVerify(sensorId, originalStrength); in testBiometricStrength_forSensor_authAllowed()
[all …]
DBiometricServiceTests.java62 for (Integer sensorId : strongSensors) { in testAuthenticatorIdsInvalidated()
63 testAuthenticatorIdsInvalidated_forSensor(sensorId, strongSensors); in testAuthenticatorIdsInvalidated()
71 private void testAuthenticatorIdsInvalidated_forSensor(int sensorId, in testAuthenticatorIdsInvalidated_forSensor() argument
73 Log.d(TAG, "testAuthenticatorIdsInvalidated_forSensor: " + sensorId); in testAuthenticatorIdsInvalidated_forSensor()
77 mBiometricManager.createTestSession(sensorId); in testAuthenticatorIdsInvalidated_forSensor()
83 Log.d(TAG, "Enrolling for: " + sensorId); in testAuthenticatorIdsInvalidated_forSensor()
84 enrollForSensor(targetSensorTestSession, sensorId); in testAuthenticatorIdsInvalidated_forSensor()
89 assertEquals(0, Utils.numberOfSpecifiedOperations(state, sensorId, in testAuthenticatorIdsInvalidated_forSensor()
95 if (id != sensorId) { in testAuthenticatorIdsInvalidated_forSensor()
101 assertEquals(1, Utils.numberOfSpecifiedOperations(state, sensorId, in testAuthenticatorIdsInvalidated_forSensor()
[all …]
DSensorStates.java158 sensorStates.put(sensorStateProto.sensorId, sensorState); in parseFrom()
172 for (Integer sensorId : sensorServiceState.sensorStates.keySet()) { in merge()
173 if (sensorStates.containsKey(sensorId)) { in merge()
174 throw new IllegalStateException("Duplicate sensorId found: " + sensorId); in merge()
176 sensorStates.put(sensorId, sensorServiceState.sensorStates.get(sensorId)); in merge()
221 for (Integer sensorId : sensorStates.keySet()) { in toString()
222 sb.append("{SensorId: ").append(sensorId); in toString()
223 sb.append(", Operation: ").append(sensorStates.get(sensorId) in toString()
226 final Map<Integer, UserState> userStates = sensorStates.get(sensorId).getUserStates(); in toString()
DBiometricActivityTests.java71 @NonNull BiometricTestSession session, int sensorId, in testBiometricOnly_authenticateFromForegroundActivity_forSensor() argument
73 Log.d(TAG, "testBiometricOnly_authenticateFromForegroundActivity_forSensor: " + sensorId); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
76 enrollForSensor(session, sensorId); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
85 assertTrue(state.toString(), state.mSensorStates.sensorStates.get(sensorId).isBusy()); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
124 @NonNull BiometricTestSession session, int sensorId, in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor() argument
127 + sensorId); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
130 enrollForSensor(session, sensorId); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
141 assertTrue(state.toString(), state.mSensorStates.sensorStates.get(sensorId).isBusy()); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
191 @NonNull BiometricTestSession session, int sensorId, in testBiometricOnly_rejectThenAuthenticate_forSensor() argument
193 Log.d(TAG, "testBiometricOnly_rejectThenAuthenticate_forSensor: " + sensorId); in testBiometricOnly_rejectThenAuthenticate_forSensor()
[all …]
DBiometricTestBase.java337 protected void showDefaultBiometricPrompt(int sensorId, int userId, in showDefaultBiometricPrompt() argument
351 .setAllowedSensorIds(new ArrayList<>(Collections.singletonList(sensorId))) in showDefaultBiometricPrompt()
362 protected void showDefaultBiometricPromptWithContents(int sensorId, int userId, in showDefaultBiometricPromptWithContents() argument
377 .setAllowedSensorIds(new ArrayList<>(Collections.singletonList(sensorId))) in showDefaultBiometricPromptWithContents()
389 int sensorId, int userId) throws Exception { in showDefaultBiometricPromptAndAuth() argument
392 showDefaultBiometricPromptWithContents(sensorId, userId, false /* requireConfirmation */, in showDefaultBiometricPromptAndAuth()
437 protected int getCurrentStrength(int sensorId) throws Exception { in getCurrentStrength() argument
439 return serviceState.mSensorStates.sensorStates.get(sensorId).getCurrentStrength(); in getCurrentStrength()
540 protected void enrollForSensor(@NonNull BiometricTestSession session, int sensorId) in enrollForSensor() argument
542 Log.d(TAG, "Enrolling for sensor: " + sensorId); in enrollForSensor()
[all …]
DUtils.java83 public static void waitForBusySensor(int sensorId, @NonNull SensorStatesSupplier supplier) in waitForBusySensor() argument
86 if (!supplier.getSensorStates().sensorStates.get(sensorId).isBusy()) { in waitForBusySensor()
155 int sensorId, int operation) { in numberOfSpecifiedOperations() argument
157 final List<Integer> recentOps = state.mSensorStates.sensorStates.get(sensorId) in numberOfSpecifiedOperations()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java213 final int sensorId = getSensorId(sensor); in processClientRequest() local
214 if (mSensorManager.getDefaultSensor(sensorId) == null) { in processClientRequest()
327 int sensorId = getSensorId(sensorName); in handleSensorSwitchCommand() local
328 if (sensorId >= 0) { in handleSensorSwitchCommand()
329 response = switchSensor(sensorId, switchOn, requestRate); in handleSensorSwitchCommand()
344 int sensorId = -1; in getSensorId() local
347 sensorId = Sensor.TYPE_ACCELEROMETER; in getSensorId()
349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE; in getSensorId()
351 sensorId = Sensor.TYPE_GAME_ROTATION_VECTOR; in getSensorId()
353 sensorId = Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR; in getSensorId()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDynamicSensorDiscoveryTestActivity.java149 Integer sensorId = mCallback.getSensorId(); in test4_OnReconnect() local
150 boolean match = mSensorId != null && sensorId != null && in test4_OnReconnect()
151 sensorId.intValue() == mSensorId.intValue(); in test4_OnReconnect()
185 public boolean waitForConnection(Integer sensorId) { in waitForConnection() argument
187 mExpectSensorId = sensorId; in waitForConnection()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintServiceTest.java156 private void testEnrollForSensor(BiometricTestSession session, int sensorId) throws Exception { in testEnrollForSensor() argument
171 .get(sensorId).getUserStates().get(userId).numEnrolled); in testEnrollForSensor()