diff options
| author | 2023-09-06 17:07:53 +0000 | |
|---|---|---|
| committer | 2023-09-08 04:02:52 +0000 | |
| commit | 3787368695d233e8ff2a2be3e805b5ff4545b384 (patch) | |
| tree | 10091130818dc6087c8c0c49e359bdab26e61b5b /api/coverage/tools | |
| parent | 3391fd855f962385b49f81fcf7ac3fd334cb824f (diff) | |
Improve LockStateTrackingRule
- Make assertLocked and assertUnlocked check
  KeyguardManager#isDeviceLocked, in addition to what they were checking
  before.  This is important, as this verifies what TrustManagerService
  (and thus also Keystore) considers the device locked state to be.
- Rename assertUnlocked to assertUnlockedAndTrusted.  This makes it
  clear that it checks for trusted (which implies unlocked), not just
  unlocked (which does not necessarily imply trusted).
- Rename the inner class LockState to TrustState.  This makes it clear
  what it actually is.
- Improve the class comment.
Bug: 296464083
Bug: 298249081
Flag: TEST_ONLY
Test: atest TrustTests
Change-Id: I865ec19dff7ebe00ff083da29154e3c9cb846574
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions