Home
last modified time | relevance | path

Searched refs:openSession (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmMockTest.java192 byte[] sessionId = openSession(md); in testOpenCloseSession()
234 byte[] sessionId = openSession(md); in testGetKeyRequest()
270 byte[] sessionId = openSession(md); in testGetKeyRequestNoOptionalParameters()
302 byte[] sessionId = openSession(md); in testGetKeyRequestOffline()
334 byte[] sessionId = openSession(md); in testGetKeyRequestRelease()
363 byte[] sessionId = openSession(md); in testProvideKeyResponse()
380 byte[] sessionId = openSession(md); in testRemoveKeys()
395 byte[] sessionId = openSession(md); in testRestoreKeys()
401 sessionId = openSession(md); in testRestoreKeys()
412 byte[] sessionId = openSession(md); in testQueryKeyStatus()
[all …]
DMediaDrmClearkeyTest.java417 private @NonNull byte[] openSession(MediaDrm drm) { in openSession() method in MediaDrmClearkeyTest
423 mSessionId = drm.openSession(); in openSession()
455 mSessionId = openSession(drm); in testClearKeyPlayback()
473 mSessionId = openSession(drm); in testClearKeyPlayback()
506 mSessionId = openSession(drm); in testReleaseOfflineLicense()
542 mSessionId = openSession(drm); in testReleaseOfflineLicense()
552 mSessionId = openSession(drm); in testReleaseOfflineLicense()
596 mSessionId = openSession(drm); in testQueryKeyStatus()
651 mSessionId = openSession(drm); in testOfflineKeyManagement()
1017 mSessionId = openSession(drm); in testGetNumberOfSessions()
[all …]
DMediaDrmTest.java78 byte[] sid = drm.openSession(); in testGetLogMessages()
133 sid = drm.openSession(); in testPlaybackComponent()
172 byte[] sid = drm.openSession(level); in testRequiresSecureDecoder()
DMediaDrmMetricsTest.java92 byte[] sid1 = drm.openSession(); in testGetMetricsSession()
94 byte[] sid2 = drm.openSession(); in testGetMetricsSession()
146 byte[] sid = drm.openSession(); in testGetMetricsGetKeyRequest()
DMediaDrmCodecTest.java105 byte[] sessionId = drm.openSession(); in testCryptoError()
157 byte[] sessionId = drm.openSession(); in testCryptoErrorLostSessionState()
/cts/tests/tests/hardware/src/android/hardware/lights/cts/
DLightsManagerTest.java82 try (LightsManager.LightsSession session = mManager.openSession()) { in testControlLightsPermissionIsRequiredToUseLights()
92 try (LightsManager.LightsSession session = mManager.openSession(HIGH_PRIORITY)) { in testControlSingleLight()
112 try (LightsManager.LightsSession session = mManager.openSession(HIGH_PRIORITY)) { in testControlMultipleLights()
137 try (LightsManager.LightsSession session = mManager.openSession(HIGH_PRIORITY)) { in testControlLights_onlyEffectiveForLifetimeOfClient()
156 try (LightsManager.LightsSession session1 = mManager.openSession(HIGH_PRIORITY); in testControlLights_firstCallerWinsContention()
157 LightsManager.LightsSession session2 = mManager.openSession(HIGH_PRIORITY)) { in testControlLights_firstCallerWinsContention()
183 try (LightsManager.LightsSession session = mManager.openSession(HIGH_PRIORITY)) { in testClearLight()
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/
DDataCleanupTest.java54 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCreateSession()
63 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession()
72 mBlobStoreManager.openSession(sessionId); in testOpenSession_shouldThrow()
78 () -> mBlobStoreManager.openSession(sessionId)); in testOpenSession_shouldThrow()
92 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCommitBlob()
132 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testRecommitBlob()
DDataPersistenceTest.java52 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCreateSession()
70 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSessionAndWrite()
80 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCommitSessionAndAcquireLease()
DAtomTest.java71 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in commitBlob()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DSessionAbandonBehaviorTest.java233 private PackageInstaller.Session openSession(int sessionId) throws IOException { in openSession() method in SessionAbandonBehaviorTest
252 PackageInstaller.Session session = openSession(sessionId); in openSessionForWrite()
298 final PackageInstaller.Session session = openSession(sessionId); in abandon_stagedSession_openedSession_canNotGetNames()
315 final PackageInstaller.Session session = openSession(sessionId); in abandon_nonStagedSession_openedSession_canNotGetNames()
376 () -> InstallUtils.getPackageInstaller().openSession(sessionId)); in abandon_stagedSession_canNotOpenAgain()
392 () -> InstallUtils.getPackageInstaller().openSession(sessionId)); in abandon_nonStagedSession_canNotOpenAgain()
470 final PackageInstaller.Session childSession = openSession(firstChildSession); in abandon_stagedParentSession_openedChildSession_getNamesShouldReturnEmptyList()
498 final PackageInstaller.Session childSession = openSession(firstChildSession); in abandon_nonStagedParentSession_openedChildSession_canNotGetNames()
576 () -> InstallUtils.getPackageInstaller().openSession(firstChildSession)); in abandon_stagedParentSession_childSession_canNotOpenAgain()
594 () -> InstallUtils.getPackageInstaller().openSession(firstChildSession)); in abandon_nonStagedParentSession_childSession_canNotOpenAgain()
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java320 session = reader.openSession(); in testATR()
347 session = reader.openSession(); in testOpenBasicChannelNullAid()
377 session = reader.openSession(); in testOpenBasicChannelNonNullAid()
431 session = reader.openSession(); in testSelectableAid()
467 session = reader.openSession(); in testNonSelectableAid()
492 session = reader.openSession(); in testSecurityExceptionInTransmit()
525 session = reader.openSession(); in internalTransmitApdu()
547 session = reader.openSession(); in internalTransmitApduWithoutP2()
729 session = reader.openSession(); in testCloseChannels()
773 sessionA = reader.openSession(); in testCloseSessions()
[all …]
/cts/tests/BlobStore/helper-app/src/com/android/cts/blob/helper/
DBlobStoreTestService.java63 try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) { in commit()
91 public void openSession(long sessionId) { in openSession() method in BlobStoreTestService.CommandReceiver
95 try (BlobStoreManager.Session session = blobStoreManager.openSession(sessionId)) { in openSession()
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java159 assertThat(mBlobStoreManager.openSession(sessionId)).isNotNull(); in testGetCreateSession()
193 assertThrows(IllegalArgumentException.class, () -> mBlobStoreManager.openSession(-1)); in testOpenSession_invalidArguments()
209 assertThat(mBlobStoreManager.openSession(sessionId)).isNotNull(); in testAbandonSession()
213 assertThrows(SecurityException.class, () -> mBlobStoreManager.openSession(sessionId)); in testAbandonSession()
226 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenReadWriteSession()
251 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession_fromAnotherPkg()
258 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession_fromAnotherPkg()
278 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSessionAndAbandon()
291 assertThrows(SecurityException.class, () -> mBlobStoreManager.openSession(sessionId)); in testOpenSessionAndAbandon()
308 session = mBlobStoreManager.openSession(sessionId); in testCloseSession()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp130 static void openSession() { in openSession() function
142 drmPlugin->openSession([&](Status status, const hidl_vec<uint8_t> &id) { in openSession()
201 openSession(); in main()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaCasTest.java322 Session session = mediaCas.openSession(); in testClearKeyApis()
333 Session streamSession = mediaCas.openSession(); in testClearKeyApis()
413 Session session = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
418 Session streamSession = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
484 Session invalidSession = mediaCas.openSession(); in testClearKeyExceptions()
500 Session session = mediaCas.openSession(); in testClearKeyExceptions()
599 Session session = mediaCas.openSession(); in testResourceLostEvent()
604 Session streamSession = mediaCas.openSession(); in testResourceLostEvent()
792 mediaCas.openSession(intent, scramblingMode); in testOpenSessionEcho()
/cts/tests/BlobStore/aidl/com/android/cts/blob/
DICommandReceiver.aidl26 void openSession(long sessionId); in openSession() method
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java271 session = reader.openSession(); in testSelectableAid()
299 session = reader.openSession(); in testUnauthorisedAid()
326 session = reader.openSession(); in testTransmitAPDU()
356 session = reader.openSession(); in testUnauthorisedAPDU()
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/
DAccessControlTest.java273 session = reader.openSession(); in testSelectableAid()
301 session = reader.openSession(); in testUnauthorisedAid()
328 session = reader.openSession(); in testTransmitAPDU()
358 session = reader.openSession(); in testUnauthorisedAPDU()
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java270 session = reader.openSession(); in testSelectableAid()
298 session = reader.openSession(); in testUnauthorisedAid()
325 session = reader.openSession(); in testTransmitAPDU()
355 session = reader.openSession(); in testUnauthorisedAPDU()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9539/
Dpoc.cpp139 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main()
152 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionTest.kt80 val session = pi.openSession(sessionId) in sessionWithImmutablePendingIntent()
251 val session = pi.openSession(sessionId) in withPrivilegedPermissions_canAccessResolvedPath()
274 val session = pi.openSession(sessionId) in withoutPrivilegedPermissions_cannotAccessResolvedPath()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9344/
Dpoc.cpp69 auto returnVoid = cas->openSession( in main()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java135 return installer.openSession(sessionId); in createSession()
149 Session session = installer.openSession(sessionId); in transferSession()
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/
DBackgroundReceiver.java108 final Session session = packageInstaller.openSession(sessionId); in sendInstallCommit()
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DVirtualDeviceDrmTest.java121 byte[] sessionId = drm.openSession(securityLevel); in getSecurityLevel()

123