Home
last modified time | relevance | path

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

123

/cts/tests/tests/os/src/android/os/cts/
DPerformanceHintManagerTest.java27 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/
DInstallSessionTransferTest.java36 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/
DBlankActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
27 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DChildlessActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
33 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DNullTextViewActivity.java18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
84 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DChildlessActivityTest.java47 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 …]
DResizingEditActivity.java18 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
36 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DBlankWithTitleActivityTest.java22 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
60 final Session session = service.getOnlyFinishedSession(); in testSimpleSessionLifecycle()
80 final Session session = service.getOnlyFinishedSession(); in testSimpleSessionLifecycle_noAnimation()
DBlankWithTitleActivity.java20 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
35 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DCtsContentCaptureService.java92 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 …]
DCustomViewActivity.java30 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()
DAppKilledTest.java24 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
51 final Session session = service.getOnlyFinishedSession(); in testDoIt()
DAssertions.java37 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 …]
DDataSharingActivity.java21 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
93 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
DLoginActivity.java29 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/
DStubTvInputService.java29 public Session onCreateSession(String inputId) { in onCreateSession()
33 private static class StubSessionImpl extends Session {
DFaultyTvInputService.java29 public Session onCreateSession(String inputId) { in onCreateSession()
38 public static class FaultySession extends Session {
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java29 public Session onCreateSession(String inputId) { in onCreateSession()
33 private static class StubSessionImpl extends Session {
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java162 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/
DMediaCasTest.java21 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/
DDataCleanupTest.java54 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()
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()
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java156 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/
DInstall.java175 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/
DAccessControlTest.java31 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()

123