Home
last modified time | relevance | path

Searched refs:trustAgentRule (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/TrustTests/src/android/trust/test/
DTemporaryAndRenewableTrustTest.kt49 private val trustAgentRule = TrustAgentRule<TemporaryAndRenewableTrustAgent>() constant in android.trust.test.TemporaryAndRenewableTrustTest
56 .around(trustAgentRule)
60 trustAgentRule.agent.setManagingTrust(true) in manageTrust()
78 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_deviceStaysLocked()
86 trustAgentRule.agent.grantTrust( in grantTrustUnlockedDevice_deviceLocksOnScreenOff()
95 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice()
102 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_grantTrustOnLockedDeviceUnlocksDevice()
111 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_callsBackWhenUnlocked()
123 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_callsBackWhenUnlocked()
135 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_revokeTrustPreventsSubsequentUnlock()
[all …]
DUserUnlockRequestTest.kt45 private val trustAgentRule = TrustAgentRule<UserUnlockRequestTrustAgent>() constant in android.trust.test.UserUnlockRequestTest
51 .around(trustAgentRule)
55 val oldCount = trustAgentRule.agent.onUserRequestedUnlockCallCount in reportUserRequestedUnlock_propagatesToAgent()
59 assertThat(trustAgentRule.agent.onUserRequestedUnlockCallCount) in reportUserRequestedUnlock_propagatesToAgent()
68 assertThat(trustAgentRule.agent.lastCallDismissKeyguard) in reportUserRequestedUnlock_propagatesToAgentWithDismissKeyguard()
74 val oldCount = trustAgentRule.agent.onUserMayRequestUnlockCallCount in reportUserMayRequestUnlock_propagatesToAgent()
78 assertThat(trustAgentRule.agent.onUserMayRequestUnlockCallCount) in reportUserMayRequestUnlock_propagatesToAgent()
84 val oldCount = trustAgentRule.agent.onUserMayRequestUnlockCallCount in reportUserMayRequestUnlock_differentUserId_doesNotPropagateToAgent()
88 assertThat(trustAgentRule.agent.onUserMayRequestUnlockCallCount) in reportUserMayRequestUnlock_differentUserId_doesNotPropagateToAgent()
DGrantAndRevokeTrustTest.kt52 private val trustAgentRule = TrustAgentRule<GrantAndRevokeTrustAgent>() constant in android.trust.test.GrantAndRevokeTrustTest
60 .around(trustAgentRule)
65 trustAgentRule.agent.setManagingTrust(true) in manageTrust()
79 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 10000, 0) {} in grantKeepsDeviceUnlocked()
87 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0) {} in grantKeepsDeviceUnlocked_untilRevoked()
90 trustAgentRule.agent.revokeTrust() in grantKeepsDeviceUnlocked_untilRevoked()
106 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 10000, 0) {} in grantCannotActivelyUnlockDevice()
133 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 10000, 0) {} in grantCouldCauseWrongDeviceLockedStateDueToBug()
143 trustAgentRule.agent.grantTrust(GRANT_MESSAGE, 0, 0, callback) in grantDoesNotCallBack()
DUnlockAttemptTest.kt50 private val trustAgentRule = in <lambda>() constant in android.trust.test.UnlockAttemptTest
54 private val agent get() = trustAgentRule.agent in <lambda>()
61 .around(trustAgentRule) in <lambda>()
71 trustAgentRule.enableTrustAgent() in <lambda>()
75 trustAgentRule.verifyAgentIsRunning(MAX_WAIT_FOR_ENABLED_TRUST_AGENT_TO_START) in <lambda>()
105 trustAgentRule.enableTrustAgent() in <lambda>()
109 trustAgentRule.ensureAgentIsNotRunning(MAX_WAIT_FOR_ENABLED_TRUST_AGENT_TO_START) in <lambda>()
145 trustAgentRule.enableAndVerifyTrustAgentIsRunning( in <lambda>()
157 trustAgentRule.reportSuccessfulUnlock() in <lambda>()
163 trustAgentRule.reportFailedUnlock() in <lambda>()
DIsActiveUnlockRunningTest.kt54 private val trustAgentRule = TrustAgentRule<IsActiveUnlockRunningTrustAgent>() constant
70 .around(trustAgentRule)
74 trustAgentRule.agent.setManagingTrust(true) in manageTrust()
95 trustAgentRule.agent.grantTrust( in grantTrustLockedDevice_isActiveUnlockRunningIsFalse()
104 trustAgentRule.agent.grantTrust( in grantTrustUnlockedDevice_isActiveUnlockRunningIsTrueWhileLocked()
116 trustAgentRule.agent.grantTrust( in trustRevoked_isActiveUnlockRunningIsFalse()
119 trustAgentRule.agent.revokeTrust() in trustRevoked_isActiveUnlockRunningIsFalse()