Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java30 import android.content.pm.PackageInstaller.Session;
104 private void writeApk(@NonNull Session session, @NonNull String name) throws IOException { in writeApk()
117 private Session createSession() throws Exception { in createSession()
138 Session session = installer.openSession(sessionId); in transferSession()
183 Session session = createSession(); in transferToInvalidNewOwner()
199 Session session = createSession(); in transferToOwnerWithoutInstallPermission()
216 Session session = createSession(); in transferWithOpenWrite()
234 Session session = createSession(); in transferSessionWithInvalidApk()
256 Session session = createSession(); in transferWithApkFromWrongPackage()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java96 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testInstallTwoApksDowngradeFail()
130 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testFailInconsistentMultiPackageCommit()
152 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testFailInconsistentMultiPackageCommit()
168 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testChildFailurePropagated()
191 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testEarlyFailureFailsAll()
215 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in testInvalidStateScenarios()
223 PackageInstaller.Session childSession = getSessionOrFail(childSessionId); in testInvalidStateScenarios()
238 PackageInstaller.Session toAbandonSession = getSessionOrFail(toAbandonSessionId); in testInvalidStateScenarios()
268 final PackageInstaller.Session parentSession = getSessionOrFail(parentSessionId); in installMultiPackage()
279 PackageInstaller.Session childSession = getSessionOrFail(childSessionId); in installMultiPackage()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java79 private final ArrayMap<ContentCaptureSessionId, Session> mOpenSessions = new ArrayMap<>();
84 private final ArrayMap<ContentCaptureSessionId, Session> mFinishedSessions = new ArrayMap<>();
237 final Session session = mOpenSessions.get(sessionId); in onCreateContentCaptureSession()
243 mOpenSessions.put(sessionId, new Session(sessionId, context)); in onCreateContentCaptureSession()
253 final Session session = getExistingSession(sessionId); in onDestroyContentCaptureSession()
277 final Session session = getExistingSession(sessionId); in onContentCaptureEvent()
307 public Session getFinishedSession(@NonNull ContentCaptureSessionId sessionId) in getFinishedSession()
312 final Session session = mFinishedSessions.get(sessionId); in getFinishedSession()
325 public Session getOnlyFinishedSession() throws InterruptedException { in getOnlyFinishedSession()
400 private Session getExistingSession(@NonNull ContentCaptureSessionId sessionId) { in getExistingSession()
[all …]
DAssertions.java34 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
57 public static void assertRightActivity(@NonNull Session session, in assertRightActivity()
66 public static void assertRightActivity(@NonNull Session session, in assertRightActivity()
79 public static void assertMainSessionContext(@NonNull Session session, in assertMainSessionContext()
87 public static void assertMainSessionContext(@NonNull Session session, in assertMainSessionContext()
108 public static void assertChildSessionContext(@NonNull Session session) { in assertChildSessionContext()
123 public static void assertChildSessionContext(@NonNull Session session, in assertChildSessionContext()
132 public static void assertRightRelationship(@NonNull Session parent, @NonNull Session child) { in assertRightRelationship()
262 public static void assertNoViewLevelEvents(@NonNull Session session, in assertNoViewLevelEvents()
275 public static void assertNoEvents(@NonNull Session session, in assertNoEvents()
[all …]
DCustomViewActivity.java26 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
90 public void assertDefaultEvents(@NonNull Session session) { in assertDefaultEvents()
104 public List<ContentCaptureEvent> assertInitialViewsAppeared(Session session, in assertInitialViewsAppeared()
114 private List<ContentCaptureEvent> assertJustInitialViewsAppeared(@NonNull Session session, in assertJustInitialViewsAppeared()
DAppKilledTest.java23 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
40 final Session session = service.getOnlyFinishedSession(); in testDoIt()
DAbstractContentCaptureActivity.java21 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
96 public abstract void assertDefaultEvents(@NonNull Session session); in assertDefaultEvents()
DCustomViewActivityTest.java40 import android.contentcaptureservice.cts.CtsContentCaptureService.Session;
103 final Session session = service.getOnlyFinishedSession(); in testLifecycle()
142 final Session session = service.getOnlyFinishedSession(); in testVirtualView_wrongWay()
221 final Session session = service.getOnlyFinishedSession(); in testVirtualView_oneLevel()
335 final Session session = service.getOnlyFinishedSession(); in testVirtualView_multipleLevels()
400 final Session session = service.getOnlyFinishedSession(); in testVirtualView_batchDisappear()
509 final Session session = service.getOnlyFinishedSession(); in testDisabledByFlagSecure()
/cts/tests/tests/media/src/android/media/cts/
DMediaCasTest.java21 import android.media.MediaCas.Session;
186 public void onSessionEvent(MediaCas MediaCas, MediaCas.Session session, in testEnumeratePlugins()
261 Session session = mediaCas.openSession(); in testClearKeyApis()
268 Session streamSession = mediaCas.openSession(); in testClearKeyApis()
338 Session session = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
343 Session streamSession = mediaCas.openSession(); in testClearKeySessionClosedAfterRelease()
408 Session invalidSession = mediaCas.openSession(); in testClearKeyExceptions()
424 Session session = mediaCas.openSession(); in testClearKeyExceptions()
499 private final MediaCas.Session mSession;
513 TestEventListener(MediaCas mediaCas, MediaCas.Session session, int event, in TestEventListener()
[all …]
/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 {
DStubTunerTvInputService.java79 public Session onCreateSession(String inputId) { in onCreateSession()
83 static class StubSessionImpl extends Session {
DHardwareSessionTest.java116 public Session onCreateSession(String inputId) { in onCreateSession()
/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/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java31 import android.se.omapi.Session;
239 Session session = null; in testATR()
264 Session session = null; in testOpenBasicChannelNullAid()
293 Session session = null; in testOpenBasicChannelNonNullAid()
344 Session session = null; in testSelectableAid()
379 Session session = null; in testNonSelectableAid()
403 Session session = null; in testSecurityExceptionInTransmit()
436 Session session = null; in internalTransmitApdu()
457 Session session = null; in internalTransmitApduWithoutP2()
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java31 import android.se.omapi.Session;
248 Session session = null; in testSelectableAid()
276 Session session = null; in testUnauthorisedAid()
303 Session session = null; in testTransmitAPDU()
333 Session session = null; in testUnauthorisedAPDU()
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java31 import android.se.omapi.Session;
249 Session session = null; in testSelectableAid()
277 Session session = null; in testUnauthorisedAid()
304 Session session = null; in testTransmitAPDU()
334 Session session = null; in testUnauthorisedAPDU()
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/
DAccessControlTest.java31 import android.se.omapi.Session;
251 Session session = null; in testSelectableAid()
279 Session session = null; in testUnauthorisedAid()
306 Session session = null; in testTransmitAPDU()
336 Session session = null; in testUnauthorisedAPDU()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DInstall.java105 PackageInstaller.Session session = getPackageInstaller().openSession(sessionId); in createInstallSession()
127 final PackageInstaller.Session session; in commit()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java453 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in testNonStagedInstallApkWithSameNameAsApexShouldFail()
673 Pair<Integer, PackageInstaller.Session> sessionPair = in stageDowngradeSingleApk()
685 Pair<Integer, PackageInstaller.Session> sessionPair = in stageSingleApk()
693 private static Pair<Integer, PackageInstaller.Session>
699 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in prepareSingleApkStagedSession()
708 PackageInstaller.Session multiPackageSession = packageInstaller.openSession( in stageMultipleApks()
711 Pair<Integer, PackageInstaller.Session> sessionPair = in stageMultipleApks()
772 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in installNonStaged()
778 private static void writeApk(PackageInstaller.Session session, String apkFileName) in writeApk()
DApexShimValidationTest.java150 PackageInstaller.Session session = installer.openSession(sessionId); in stageApex()
158 private static void writeApex(PackageInstaller.Session session, String apkFileName) in writeApex()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java237 public Session onCreateSession(String inputId) { in onCreateSession()
238 Session session = new MockSessionImpl(this); in onCreateSession()
243 private static class MockSessionImpl extends Session {
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java31 private PackageInstaller.Session mSession;
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt131 protected fun startInstallationViaSession(): PackageInstaller.Session { in <lambda>()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java56 private PackageInstaller.Session mSession;

12