Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/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.java397 private @NonNull byte[] openSession(MediaDrm drm) { in openSession() method in MediaDrmClearkeyTest
403 mSessionId = drm.openSession(); in openSession()
435 mSessionId = openSession(drm); in testClearKeyPlayback()
453 mSessionId = openSession(drm); in testClearKeyPlayback()
486 mSessionId = openSession(drm); in testReleaseOfflineLicense()
521 mSessionId = openSession(drm); in testReleaseOfflineLicense()
531 mSessionId = openSession(drm); in testReleaseOfflineLicense()
575 mSessionId = openSession(drm); in testQueryKeyStatus()
629 mSessionId = openSession(drm); in testOfflineKeyManagement()
990 mSessionId = openSession(drm); in testGetNumberOfSessions()
[all …]
DMediaCasTest.java305 Session session = mediaCas.openSession(); in testClearKeyApis()
316 Session streamSession = mediaCas.openSession(); in testClearKeyApis()
389 Session session = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
394 Session streamSession = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
459 Session invalidSession = mediaCas.openSession(); in testClearKeyExceptions()
475 Session session = mediaCas.openSession(); in testClearKeyExceptions()
563 Session session = mediaCas.openSession(); in testResourceLostEvent()
568 Session streamSession = mediaCas.openSession(); in testResourceLostEvent()
750 mediaCas.openSession(intent, scramblingMode); in testOpenSessionEcho()
DMediaDrmTest.java79 byte[] sid = drm.openSession(); in testGetLogMessages()
132 sid = drm.openSession(); in testPlaybackComponent()
171 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()
/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 testCommitSession()
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/BlobStore/src/com/android/cts/blob/
DBlobStoreManagerTest.java152 assertThat(mBlobStoreManager.openSession(sessionId)).isNotNull(); in testGetCreateSession()
186 assertThrows(IllegalArgumentException.class, () -> mBlobStoreManager.openSession(-1)); in testOpenSession_invalidArguments()
202 assertThat(mBlobStoreManager.openSession(sessionId)).isNotNull(); in testAbandonSession()
206 assertThrows(SecurityException.class, () -> mBlobStoreManager.openSession(sessionId)); in testAbandonSession()
219 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenReadWriteSession()
244 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession_fromAnotherPkg()
251 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession_fromAnotherPkg()
271 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSessionAndAbandon()
284 assertThrows(SecurityException.class, () -> mBlobStoreManager.openSession(sessionId)); in testOpenSessionAndAbandon()
301 session = mBlobStoreManager.openSession(sessionId); in testCloseSession()
[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/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java318 session = reader.openSession(); in testATR()
345 session = reader.openSession(); in testOpenBasicChannelNullAid()
375 session = reader.openSession(); in testOpenBasicChannelNonNullAid()
429 session = reader.openSession(); in testSelectableAid()
465 session = reader.openSession(); in testNonSelectableAid()
490 session = reader.openSession(); in testSecurityExceptionInTransmit()
523 session = reader.openSession(); in internalTransmitApdu()
544 session = reader.openSession(); in internalTransmitApduWithoutP2()
/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/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/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/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/BlobStore/aidl/com/android/cts/blob/
DICommandReceiver.aidl26 void openSession(long sessionId); in openSession() method
/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/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()
DChecksumsTest.java500 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsInvalidSignature()
683 Session session = installer.openSession(sessionId); in testInstallerChecksumsUpdate()
749 Session session = installer.openSession(sessionId); in testInstallerChecksumsUpdate()
865 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsUpdate()
931 Session session = installer.openSession(sessionId); in testInstallerSignedChecksumsUpdate()
1122 Session session = installer.openSession(sessionId); in testInstallerChecksumsDuplicate()
1174 Session session = installer.openSession(sessionId); in installApkWithChecksums()
1201 Session session = installer.openSession(sessionId); in installApkWithChecksumsIncrementally()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java106 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
/cts/tests/tests/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt96 val session = pi.openSession(sessionId) in <lambda>()
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java263 InstallUtils.getPackageInstaller().openSession(sessionId)) { in createSingleInstallSession()

12