platform_system_security/keystore2/tests
Eric Biggers 10afa966fa Split Keystore's onLockScreenEvent into onDevice{Unlocked,Locked}
Currently Keystore is notified of the device being unlocked and locked
for each user via onLockScreenEvent(lockScreenEvent, userId, password,
unlockingSids), where lockScreenEvent is UNLOCK or LOCK.  This is a bit
confusing because the password parameter is only meaningful for UNLOCK,
and the unlockingSids parameter is only meaningful for LOCK.  This
problem will get worse when we add a parameter that tells Keystore
whether unlocking via a weak biometric or trust agent is possible, as
that will be another parameter that is only meaningful for LOCK.

Therefore, this CL splits onLockScreenEvent into two methods
onDeviceUnlocked and onDeviceLocked, each with the appropriate
parameters.  No change in behavior intended.

Bug: 296464083
Test: atest -p --include-subdirs system/security/keystore2 \
      && atest CtsKeystoreTestCases \
      && atest TrustTests \
      && atest com.android.server.locksettings
Flag: N/A, straightforward refactoring
Change-Id: Ie2afd118bddca6112a5469558569c63b68ee10fb
2023-12-02 03:05:43 +00:00
..
legacy_blobs Split Keystore's onLockScreenEvent into onDevice{Unlocked,Locked} 2023-12-02 03:05:43 +00:00
Android.bp Add getLastAuthTime() to IKeystoreAuthorization 2023-10-31 20:30:50 +00:00
AndroidTest.xml Adding test to create BACKEND_BUSY error 2022-05-13 22:30:16 +00:00
keystore2_client_3des_key_tests.rs Added tests using 3DES algorithm. 2022-08-12 02:09:46 +00:00
keystore2_client_aes_key_tests.rs Make keystore2 unit tests less brittle 2023-01-12 12:56:03 +00:00
keystore2_client_attest_key_tests.rs Adding tests to verify Device-Unique-Attestation. 2023-11-14 21:33:19 +00:00
keystore2_client_authorizations_tests.rs Test added to generate a key with specifying cerificate subject and 2023-11-14 23:25:30 +00:00
keystore2_client_delete_key_tests.rs Adding tests to validate deleteKey APIs. 2023-01-18 00:43:30 +00:00
keystore2_client_device_unique_attestation_tests.rs Adding tests to verify Device-Unique-Attestation. 2023-11-14 21:33:19 +00:00
keystore2_client_ec_key_tests.rs Add, standardise or temporarily opt out of safety comments for keystore2. 2023-07-28 10:32:08 +01:00
keystore2_client_grant_key_tests.rs Add, standardise or temporarily opt out of safety comments for keystore2. 2023-07-28 10:32:08 +01:00
keystore2_client_hmac_key_tests.rs Added HMAC key generation tests. 2022-08-31 18:22:08 +00:00
keystore2_client_import_keys_tests.rs Changes are made in keystore-client-tests to verify CREATION_DATETIME, 2023-10-09 21:51:19 +00:00
keystore2_client_key_agreement_tests.rs Adding key agreement [AGREE_KEY] tests. 2023-02-07 01:57:33 +00:00
keystore2_client_key_id_domain_tests.rs Changes made in keystore2_client_tests to avoid test timeout issues. 2022-10-05 18:57:51 +00:00
keystore2_client_keystore_engine_tests.rs Re-structured keystore test-utils module. 2023-08-29 17:03:35 +00:00
keystore2_client_list_entries_tests.rs Add, standardise or temporarily opt out of safety comments for keystore2. 2023-07-28 10:32:08 +01:00
keystore2_client_operation_tests.rs Add, standardise or temporarily opt out of safety comments for keystore2. 2023-07-28 10:32:08 +01:00
keystore2_client_rsa_key_tests.rs Make keystore2 unit tests less brittle 2023-01-12 12:56:03 +00:00
keystore2_client_test_utils.rs Test added to generate a key with specifying cerificate subject and 2023-11-14 23:25:30 +00:00
keystore2_client_tests.rs Adding tests to verify Device-Unique-Attestation. 2023-11-14 21:33:19 +00:00
keystore2_client_update_subcomponent_tests.rs Add, standardise or temporarily opt out of safety comments for keystore2. 2023-07-28 10:32:08 +01:00