/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
H A D | RecoverySessionStorageTest.java | 38 private static final String TEST_SESSION_ID = "peter"; field in RecoverySessionStorageTest 53 TEST_SESSION_ID, lskfHashFixture(), keyClaimantFixture(), vaultParamsFixture())); in size_incrementsAfterAdd() 62 TEST_SESSION_ID, lskfHashFixture(), keyClaimantFixture(), vaultParamsFixture())); in size_decrementsAfterRemove() 72 TEST_SESSION_ID, lskfHashFixture(), keyClaimantFixture(), vaultParamsFixture()); in remove_overwritesLskfHashMemory() 84 TEST_SESSION_ID, lskfHashFixture(), keyClaimantFixture(), vaultParamsFixture()); in remove_overwritesKeyClaimantMemory() 96 TEST_SESSION_ID, in remove_deletesSpecificSession() 106 storage.remove(TEST_USER_ID, TEST_SESSION_ID); in remove_deletesSpecificSession() 108 assertNull(storage.get(TEST_USER_ID, TEST_SESSION_ID)); in remove_deletesSpecificSession() 116 TEST_SESSION_ID, in remove_doesNotDeleteOtherSessions() 126 storage.remove(TEST_USER_ID, TEST_SESSION_ID); in remove_doesNotDeleteOtherSessions() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyStoreManagerTest.java | 752 TEST_SESSION_ID, in startRecoverySession_checksPermissionFirst() 767 TEST_SESSION_ID, in startRecoverySessionWithCertPath_storesTheSessionInfo() 785 TEST_SESSION_ID, in startRecoverySessionWithCertPath_checksPermissionFirst() 800 TEST_SESSION_ID, in startRecoverySession_storesTheSessionInfo() 816 TEST_SESSION_ID, in closeSession_closesASession() 830 TEST_SESSION_ID, in closeSession_doesNotCloseUnrelatedSessions() 980 TEST_SESSION_ID, in recoverKeyChainSnapshot_throwsIfRecoveryClaimCannotBeDecrypted() 1001 TEST_SESSION_ID, in recoverKeyChainSnapshot_throwsIfFailedToDecryptAllApplicationKeys() 1031 TEST_SESSION_ID, in recoverKeyChainSnapshot_doesNotThrowIfNoApplicationKeysToBeDecrypted() 1043 TEST_SESSION_ID, in recoverKeyChainSnapshot_doesNotThrowIfNoApplicationKeysToBeDecrypted() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | ApexManagerTest.java | 81 private static final int TEST_SESSION_ID = 99999999; field in ApexManagerTest 227 mApexManager.getStagedSessionInfo(TEST_SESSION_ID); in testGetStagedSessionInfo() 228 verify(mApexService, times(1)).getStagedSessionInfo(TEST_SESSION_ID); in testGetStagedSessionInfo() 236 assertThat(mApexManager.getStagedSessionInfo(TEST_SESSION_ID)).isNull(); in testGetStagedSessionInfo_unKnownStagedSessionId() 279 () -> mApexManager.markStagedSessionReady(TEST_SESSION_ID)); in testMarkStagedSessionReady_throwPackageManagerException() 287 () -> mApexManager.markStagedSessionReady(TEST_SESSION_ID)); in testMarkStagedSessionReady_throwRunTimeException() 306 () -> mApexManager.markStagedSessionSuccessful(TEST_SESSION_ID)); in testMarkStagedSessionSuccessful_throwRemoteException() 527 stagedSessionInfo.sessionId = TEST_SESSION_ID; in getFakeStagedSessionInfo() 535 stagedSessionInfo.sessionId = TEST_SESSION_ID; in getFakeUnknownSessionInfo() 543 params.sessionId = TEST_SESSION_ID; in testParamsWithChildren()
|
/aosp14/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
H A D | AudioMixingRuleUnitTests.java | 66 private static final int TEST_SESSION_ID = 1234; field in AudioMixingRuleUnitTests 73 .excludeMixRule(RULE_MATCH_AUDIO_SESSION_ID, TEST_SESSION_ID) in testConstructValidRule() 82 isAudioMixExcludeSessionCriterion(TEST_SESSION_ID))); in testConstructValidRule() 206 .addMixRule(RULE_MATCH_AUDIO_SESSION_ID, TEST_SESSION_ID) in sessionIdRuleCompatibleWithInjectorMix() 212 containsInAnyOrder(isAudioMixSessionCriterion(TEST_SESSION_ID))); in sessionIdRuleCompatibleWithInjectorMix()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
H A D | LocalMediaManagerTest.java | 74 private static final String TEST_SESSION_ID = "session_id"; field in LocalMediaManagerTest 436 when(info.getId()).thenReturn(TEST_SESSION_ID); in getActiveMediaSession_verifyCorrectSession() 441 .matches(TEST_SESSION_ID); in getActiveMediaSession_verifyCorrectSession() 547 when(info.getId()).thenReturn(TEST_SESSION_ID); in adjustSessionVolume_verifyCorrectSessionVolume() 551 mLocalMediaManager.adjustSessionVolume(TEST_SESSION_ID, 10); in adjustSessionVolume_verifyCorrectSessionVolume()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
H A D | MediaOutputControllerTest.java | 110 private static final String TEST_SESSION_ID = "test_session_id"; field in MediaOutputControllerTest 786 when(mRemoteSessionInfo.getId()).thenReturn(TEST_SESSION_ID); in getActiveRemoteMediaDevice_isSystemSession_returnSession() 800 when(mRemoteSessionInfo.getId()).thenReturn(TEST_SESSION_ID); in getActiveRemoteMediaDevice_notSystemSession_returnEmpty()
|