/cts/tests/tests/os/src/android/os/cts/ |
D | PerformanceHintManagerTest.java | 27 import android.os.PerformanceHintManager.Session; 49 private Session createSession() { in createSession() 56 Session a = createSession(); in testCreateHintSession() 57 Session b = createSession(); in testCreateHintSession() 76 Session s = createSession(); in testUpdateTargetWorkDuration() 83 Session s = createSession(); in testUpdateTargetWorkDurationWithNegativeDuration() 92 Session s = createSession(); in testReportActualWorkDuration() 102 Session s = createSession(); in testReportActualWorkDurationWithIllegalArgument() 112 Session s = createSession(); in testCloseHintSession()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallSessionTransferTest.java | 36 import android.content.pm.PackageInstaller.Session; 115 private void writeApk(@NonNull Session session, @NonNull String name) throws IOException { in writeApk() 128 private Session createSession() throws Exception { in createSession() 149 Session session = installer.openSession(sessionId); in transferSession() 194 Session session = createSession(); in transferToInvalidNewOwner() 210 Session session = createSession(); in transferToOwnerWithoutInstallPermission() 227 Session session = createSession(); in transferWithOpenWrite() 243 Session session = createSession(); in transfer_toNullPackageName_shouldFail() 255 Session session = createSession(); in transfer_toEmptyStringPackageName_shouldFail() 267 Session session = createSession(); in transfer_toInvalidPackageName_shouldFail() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | BlankActivity.java | 20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 27 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | ChildlessActivity.java | 20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 33 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | NullTextViewActivity.java | 18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 84 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | ChildlessActivityTest.java | 47 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 111 final Session session = service.getOnlyFinishedSession(); in testDefaultLifecycle() 173 final Session session1 = service.getFinishedSession(sessionId1); in testLaunchAnotherActivity() 176 final Session session2 = service.getFinishedSession(sessionId2); in testLaunchAnotherActivity() 222 final Session session1 = service.getFinishedSession(sessionId1); in testLaunchAnotherActivity_onTopOfIt() 231 final Session session2 = service.getFinishedSession(sessionId2); in testLaunchAnotherActivity_onTopOfIt() 262 final Session session = service.getOnlyFinishedSession(); in testAddAndRemoveNoImportantChild() 299 final Session session = service.getOnlyFinishedSession(); in testAddAndRemoveImportantChild() 348 final Session session = service.getOnlyFinishedSession(); in testAddImportantChildAfterSessionStarted() 404 final Session mainTestSession = service.getFinishedSession(mainSessionId); in testAddAndRemoveImportantChildOnDifferentSession() [all …]
|
D | ResizingEditActivity.java | 18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 36 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | BlankWithTitleActivityTest.java | 22 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 60 final Session session = service.getOnlyFinishedSession(); in testSimpleSessionLifecycle() 80 final Session session = service.getOnlyFinishedSession(); in testSimpleSessionLifecycle_noAnimation()
|
D | BlankWithTitleActivity.java | 20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 35 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | CtsContentCaptureService.java | 92 private final ArrayMap<ContentCaptureSessionId, Session> mOpenSessions = new ArrayMap<>(); 97 private final ArrayMap<ContentCaptureSessionId, Session> mFinishedSessions = new ArrayMap<>(); 279 final Session session = mOpenSessions.get(sessionId); in onCreateContentCaptureSession() 285 mOpenSessions.put(sessionId, new Session(sessionId, context)); in onCreateContentCaptureSession() 295 final Session session = getExistingSession(sessionId); in onDestroyContentCaptureSession() 330 final Session session = getExistingSession(sessionId); in onContentCaptureEvent() 398 public Session getFinishedSession(@NonNull ContentCaptureSessionId sessionId) in getFinishedSession() 403 final Session session = mFinishedSessions.get(sessionId); in getFinishedSession() 416 public Session getOnlyFinishedSession() throws InterruptedException { in getOnlyFinishedSession() 495 private Session getExistingSession(@NonNull ContentCaptureSessionId sessionId) { in getExistingSession() [all …]
|
D | CustomViewActivity.java | 30 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 94 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents() 108 public List<ContentCaptureEvent> assertInitialViewsAppeared(Session session, in assertInitialViewsAppeared() 118 private List<ContentCaptureEvent> assertJustInitialViewsAppeared(@NonNull Session session, in assertJustInitialViewsAppeared()
|
D | AppKilledTest.java | 24 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 51 final Session session = service.getOnlyFinishedSession(); in testDoIt()
|
D | Assertions.java | 37 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 64 public static void assertRightActivity(@NonNull Session session, in assertRightActivity() 73 public static void assertRightActivity(@NonNull Session session, in assertRightActivity() 86 public static void assertMainSessionContext(@NonNull Session session, in assertMainSessionContext() 94 public static void assertMainSessionContext(@NonNull Session session, in assertMainSessionContext() 124 public static void assertChildSessionContext(@NonNull Session session) { in assertChildSessionContext() 144 public static void assertChildSessionContext(@NonNull Session session, in assertChildSessionContext() 153 public static void assertRightRelationship(@NonNull Session parent, @NonNull Session child) { in assertRightRelationship() 299 public static void assertNoViewLevelEvents(@NonNull Session session, in assertNoViewLevelEvents() 330 public static void assertNoEvents(@NonNull Session session, in assertNoEvents() [all …]
|
D | DataSharingActivity.java | 21 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 93 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
|
D | LoginActivity.java | 29 import android.contentcaptureservice.cts.CtsContentCaptureService.Session; 71 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents() 83 public List<ContentCaptureEvent> assertInitialViewsAppeared(@NonNull Session session, in assertInitialViewsAppeared() 97 public List<ContentCaptureEvent> assertJustInitialViewsAppeared(@NonNull Session session, in assertJustInitialViewsAppeared()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | StubTvInputService.java | 29 public Session onCreateSession(String inputId) { in onCreateSession() 33 private static class StubSessionImpl extends Session {
|
D | FaultyTvInputService.java | 29 public Session onCreateSession(String inputId) { in onCreateSession() 38 public static class FaultySession extends Session {
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
D | StubTvInputService.java | 29 public Session onCreateSession(String inputId) { in onCreateSession() 33 private static class StubSessionImpl extends Session {
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 162 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testRemoveChild() 258 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_AddChildToSingleSessionShouldFail() 274 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() 290 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() 309 try (PackageInstaller.Session parent = openPackageInstallerSession(parentId)) { in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail() 329 try (PackageInstaller.Session parent1 = openPackageInstallerSession(parent1Id); in testInvalidStateScenario_RemoveWrongChildShouldDoNothing() 330 PackageInstaller.Session parent2 = openPackageInstallerSession(parent2Id);) { in testInvalidStateScenario_RemoveWrongChildShouldDoNothing() 346 try (PackageInstaller.Session parentSession = in testInvalidStateScenarios() 349 try (PackageInstaller.Session childSession = in testInvalidStateScenarios() 367 try (PackageInstaller.Session toAbandonSession = in testInvalidStateScenarios()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCasTest.java | 21 import android.media.MediaCas.Session; 225 public void onSessionEvent(MediaCas MediaCas, MediaCas.Session session, in testEnumeratePlugins() 305 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() [all …]
|
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/ |
D | DataCleanupTest.java | 54 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCreateSession() 63 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testOpenSession() 92 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testCommitBlob() 132 try (BlobStoreManager.Session session = mBlobStoreManager.openSession(sessionId)) { in testRecommitBlob()
|
D | DataPersistenceTest.java | 52 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()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 156 try (PackageInstaller.Session session in testOpenAndAbandonSessionForSingleApk() 175 try (PackageInstaller.Session session in testOpenAndCommitSessionForSingleApk() 192 try (PackageInstaller.Session session in testOpenSingleSessionWithParameters() 203 try (PackageInstaller.Session parentSession in testOpenSessionForMultiPackageSession() 213 try (PackageInstaller.Session childSession in testOpenSessionForMultiPackageSession()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Install.java | 175 try (PackageInstaller.Session session = in commit() 198 try (PackageInstaller.Session session = in createSession() 262 try (PackageInstaller.Session session = in createSingleInstallSession()
|
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/ |
D | AccessControlTest.java | 31 import android.se.omapi.Session; 266 Session session = null; in testSelectableAid() 294 Session session = null; in testUnauthorisedAid() 321 Session session = null; in testTransmitAPDU() 351 Session session = null; in testUnauthorisedAPDU()
|