Home
last modified time | relevance | path

Searched refs:session2 (Results 1 – 12 of 12) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeSwitchingTest.java63 var session2 = MockImeSession.create( in testSwitchingIme()
70 var stream2 = session2.openEventStream(); in testSwitchingIme()
87 expectCommand(stream2, session2.callSwitchInputMethod(session1.getImeId()), TIMEOUT); in testSwitchingIme()
106 var session2 = MockImeSession.create( in testImeRemainsVisibleAfterSwitchingIme()
113 var stream2 = session2.openEventStream(); in testImeRemainsVisibleAfterSwitchingIme()
143 expectCommand(stream2, session2.callSwitchInputMethod(session1.getImeId()), TIMEOUT); in testImeRemainsVisibleAfterSwitchingIme()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9539/
Dpoc.cpp151 hidl_vec<uint8_t> session2; in main() local
154 session2 = sessionId; in main()
180 FAIL_CHECK(descrambler->setMediaCasSession(session2) == Status::OK); in main()
192 FAIL_CHECK(cas->closeSession(session2) == Status::OK); in main()
/cts/tests/tests/hardware/src/android/hardware/lights/cts/
DLightsManagerTest.java157 LightsManager.LightsSession session2 = mManager.openSession(HIGH_PRIORITY)) { in testControlLights_firstCallerWinsContention()
161 session2.requestLights(new Builder().addLight(mLights.get(0), STATE_RED).build()); in testControlLights_firstCallerWinsContention()
171 session2.close(); in testControlLights_firstCallerWinsContention()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaCommunicationManagerTest.java150 MediaSession2 session2 = new MediaSession2.Builder(mContext) in testManagerSessionCallback() local
156 Session2Token token2 = session2.getToken(); in testManagerSessionCallback()
162 session2.close(); in testManagerSessionCallback()
DMediaSessionManagerTest.java520 try (MediaSession2 session2 = new MediaSession2.Builder(context) in testGetSession2TokensWithTwoSessions() argument
527 session2Token = session2.getToken(); in testGetSession2TokensWithTwoSessions()
DMediaSession2Test.java158 MediaSession2 session2 = builder.build(); in testBuilder_createSessionWithDupId()
DMediaSessionTest.java1073 try (MediaSession2 session2 = new MediaSession2.Builder(mContext).build()) { in testSessionCreationLimitWithMediaSession2Release() argument
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserMockImeTest.java114 var session2 = MockImeSession.create(instrumentation.getContext(), uiAutomation, in testProfileSwitching()
117 var stream2 = session2.openEventStream(); in testProfileSwitching()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplaySecurityTests.java395 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay() local
403 isUidAccessibleOnDisplay(session2), in testDisplayHasAccess_UIDCanPresentOnPrivateDisplay()
429 final ActivitySession session2 = virtualDisplayLauncher.launchActivityOnDisplay( in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay() local
434 isUidAccessibleOnDisplay(session2), in testDisplayHasAccess_NoAccessWhenUIDNotPresentOnPrivateDisplay()
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmMockTest.java503 byte[] session2 = openSession(md); in testMultipleSessions()
506 assertFalse(Arrays.equals(session1, session2)); in testMultipleSessions()
507 assertFalse(Arrays.equals(session2, session3)); in testMultipleSessions()
510 md.closeSession(session2); in testMultipleSessions()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DChildlessActivityTest.java176 final Session session2 = service.getFinishedSession(sessionId2); in testLaunchAnotherActivity() local
177 activity2.assertDefaultEvents(session2); in testLaunchAnotherActivity()
234 final Session session2 = service.getFinishedSession(sessionId2); in testLaunchAnotherActivity_onTopOfIt() local
235 activity2.assertDefaultEvents(session2); in testLaunchAnotherActivity_onTopOfIt()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java2119 var session2 = packageInstaller.getSessionInfo(packageInstaller.createSession(params2)); in testInvalidInstallSessionParamsPackageNames() local
2120 assertThat(session2.getAppPackageName()).isEqualTo("android.com"); in testInvalidInstallSessionParamsPackageNames()
2121 assertThat(session2.getInstallerPackageName()).isEqualTo(mContext.getPackageName()); in testInvalidInstallSessionParamsPackageNames()
2122 packageInstaller.openSession(session2.sessionId).abandon(); in testInvalidInstallSessionParamsPackageNames()