Home
last modified time | relevance | path

Searched refs:sessionId (Results 1 – 25 of 44) sorted by relevance

12

/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java194 int sessionId = stageSingleApk(TestApp.A1).assertSuccessful().getSessionId(); in testInstallStagedApk_Commit() local
196 waitForIsReadyBroadcast(sessionId); in testInstallStagedApk_Commit()
197 assertSessionReady(sessionId); in testInstallStagedApk_Commit()
198 storeSessionId(sessionId); in testInstallStagedApk_Commit()
204 int sessionId = retrieveLastSessionId(); in testInstallStagedApk_VerifyPostReboot() local
205 assertSessionApplied(sessionId); in testInstallStagedApk_VerifyPostReboot()
211 int sessionId = retrieveLastSessionId(); in testInstallStagedApk_AbandonSessionIsNoop() local
212 assertSessionApplied(sessionId); in testInstallStagedApk_AbandonSessionIsNoop()
215 abandonSession(sessionId); in testInstallStagedApk_AbandonSessionIsNoop()
216 assertSessionApplied(sessionId); in testInstallStagedApk_AbandonSessionIsNoop()
[all …]
DApexShimValidationTest.java78 int sessionId = stageApex("com.android.apex.cts.shim.v2_additional_file.apex"); in testRejectsApexWithAdditionalFile_Commit() local
81 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithAdditionalFile_Commit()
87 int sessionId = stageApex("com.android.apex.cts.shim.v2_additional_folder.apex"); in testRejectsApexWithAdditionalFolder_Commit() local
90 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithAdditionalFolder_Commit()
96 int sessionId = stageApex("com.android.apex.cts.shim.v2_with_post_install_hook.apex"); in testRejectsApexWithPostInstallHook_Commit() local
99 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithPostInstallHook_Commit()
105 int sessionId = stageApex("com.android.apex.cts.shim.v2_with_pre_install_hook.apex"); in testRejectsApexWithPreInstallHook_Commit() local
108 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWithPreInstallHook_Commit()
114 int sessionId = stageApex("com.android.apex.cts.shim.v2_wrong_sha.apex"); in testRejectsApexWrongSHA_Commit() local
117 assertThat(info.getSessionId()).isEqualTo(sessionId); in testRejectsApexWrongSHA_Commit()
[all …]
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DPredictionService.java47 AppPredictionSessionId sessionId) { in onCreatePredictionSession() argument
49 mReporter.onCreatePredictionSession(context, sessionId); in onCreatePredictionSession()
53 public void onAppTargetEvent(AppPredictionSessionId sessionId, AppTargetEvent event) { in onAppTargetEvent() argument
54 mReporter.onAppTargetEvent(sessionId, event); in onAppTargetEvent()
58 public void onLaunchLocationShown(AppPredictionSessionId sessionId, String launchLocation, in onLaunchLocationShown() argument
60 mReporter.onLocationShown(sessionId, launchLocation, targetIds); in onLaunchLocationShown()
64 public void onSortAppTargets(AppPredictionSessionId sessionId, List<AppTarget> targets, in onSortAppTargets() argument
66 mReporter.onSortAppTargets(sessionId, targets, callback); in onSortAppTargets()
71 public void onRequestPredictionUpdate(AppPredictionSessionId sessionId) { in onRequestPredictionUpdate() argument
72 mReporter.onRequestPredictionUpdate(sessionId); in onRequestPredictionUpdate()
[all …]
DServiceReporter.java79 void assertActiveSession(AppPredictionSessionId sessionId) { in assertActiveSession() argument
80 assertTrue(mSessions.containsKey(sessionId)); in assertActiveSession()
83 AppPredictionContext getPredictionContext(AppPredictionSessionId sessionId) { in getPredictionContext() argument
84 assertTrue(mSessions.containsKey(sessionId)); in getPredictionContext()
85 return mSessions.get(sessionId); in getPredictionContext()
89 AppPredictionSessionId sessionId) { in onCreatePredictionSession() argument
91 assertNotNull(sessionId); in onCreatePredictionSession()
92 assertFalse(mSessions.containsKey(sessionId)); in onCreatePredictionSession()
93 mSessions.put(sessionId, context); in onCreatePredictionSession()
105 void onAppTargetEvent(AppPredictionSessionId sessionId, AppTargetEvent event) { in onAppTargetEvent() argument
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java192 byte[] sessionId = openSession(md); in testOpenCloseSession()
193 md.closeSession(sessionId); in testOpenCloseSession()
202 byte[] sessionId = {0x05, 0x6, 0x7, 0x8}; in testBadSession()
205 md.closeSession(sessionId); in testBadSession()
218 byte[] sessionId = null; in testNullSession()
221 md.closeSession(sessionId); in testNullSession()
234 byte[] sessionId = openSession(md); in testGetKeyRequest()
249 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequest()
261 md.closeSession(sessionId); in testGetKeyRequest()
270 byte[] sessionId = openSession(md); in testGetKeyRequestNoOptionalParameters()
[all …]
DMediaDrmClearkeyTest.java187 byte[] sessionId, byte[] drmInitData, int keyType, byte[][] clearKeyIds) { in getKeys() argument
190 drmRequest = drm.getKeyRequest(sessionId, drmInitData, initDataType, in getKeys()
226 mKeySetId = drm.provideKeyResponse(sessionId, jsonResponse); in getKeys()
266 public void onEvent(MediaDrm md, byte[] sessionId, int event, in startDrm()
296 public void onKeyStatusChange(MediaDrm md, byte[] sessionId, in startDrm()
300 assertTrue(Arrays.equals(sessionId, mSessionId)); in startDrm()
357 private void closeSession(MediaDrm drm, byte[] sessionId) { in closeSession() argument
358 drm.closeSession(sessionId); in closeSession()
484 private boolean queryKeyStatus(@NonNull final MediaDrm drm, @NonNull final byte[] sessionId) { in queryKeyStatus() argument
485 final HashMap<String, String> keyStatus = drm.queryKeyStatus(sessionId); in queryKeyStatus()
[all …]
DPostProcTestBase.java61 int sessionId = am.generateAudioSessionId(); in getSessionId() local
62 assertTrue("Could not generate session id", sessionId>0); in getSessionId()
63 return sessionId; in getSessionId()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCtsContentCaptureService.java231 ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument
233 + mIgnoreOrphanSessionEvents + ", ctx=" + context + ", session=" + sessionId); in onCreateContentCaptureSession()
235 mAllSessions.add(sessionId); in onCreateContentCaptureSession()
238 final Session session = mOpenSessions.get(sessionId); in onCreateContentCaptureSession()
240 throw new IllegalStateException("Already contains session for " + sessionId in onCreateContentCaptureSession()
243 mUnfinishedSessionLatches.put(sessionId, new CountDownLatch(1)); in onCreateContentCaptureSession()
244 mOpenSessions.put(sessionId, new Session(sessionId, context)); in onCreateContentCaptureSession()
249 public void onDestroyContentCaptureSession(ContentCaptureSessionId sessionId) { in onDestroyContentCaptureSession() argument
251 + mIgnoreOrphanSessionEvents + ", session=" + sessionId + ")"); in onDestroyContentCaptureSession()
254 final Session session = getExistingSession(sessionId); in onDestroyContentCaptureSession()
[all …]
DLoginActivity.java100 final ContentCaptureSessionId sessionId = session.id; in assertJustInitialViewsAppeared() local
101 assertRightActivity(session, sessionId, activity); in assertJustInitialViewsAppeared()
104 assertSessionId(sessionId, activity.mUsernameLabel); in assertJustInitialViewsAppeared()
105 assertSessionId(sessionId, activity.mUsername); in assertJustInitialViewsAppeared()
106 assertSessionId(sessionId, activity.mPassword); in assertJustInitialViewsAppeared()
107 assertSessionId(sessionId, activity.mPasswordLabel); in assertJustInitialViewsAppeared()
131 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in assertJustInitialViewsAppeared()
132 assertViewAppeared(events, 6, sessionId, activity.mUsernameLabel, rootId); in assertJustInitialViewsAppeared()
133 assertViewAppeared(events, 7, sessionId, activity.mUsername, rootId); in assertJustInitialViewsAppeared()
134 assertViewAppeared(events, 8, sessionId, activity.mPasswordLabel, rootId); in assertJustInitialViewsAppeared()
[all …]
DLoginActivityTest.java300 final ContentCaptureSessionId sessionId = session.id; in testSimpleLifecycle_changeContextOnCreate() local
301 assertRightActivity(session, sessionId, activity); in testSimpleLifecycle_changeContextOnCreate()
331 assertViewAppeared(events, 6, sessionId, rootView, grandpa1.getAutofillId()); in testSimpleLifecycle_changeContextOnCreate()
332 assertViewAppeared(events, 7, sessionId, activity.mUsernameLabel, rootId); in testSimpleLifecycle_changeContextOnCreate()
333 assertViewAppeared(events, 8, sessionId, activity.mUsername, rootId); in testSimpleLifecycle_changeContextOnCreate()
334 assertViewAppeared(events, 9, sessionId, activity.mPasswordLabel, rootId); in testSimpleLifecycle_changeContextOnCreate()
335 assertViewAppeared(events, 10, sessionId, activity.mPassword, rootId); in testSimpleLifecycle_changeContextOnCreate()
358 final ContentCaptureSessionId sessionId = session.id; in testTextChanged() local
360 assertRightActivity(session, sessionId, activity); in testTextChanged()
399 final ContentCaptureSessionId sessionId = session.id; in testTextChangeBuffer() local
[all …]
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java142 int sessionId = createSession(); in commit() local
144 InstallUtils.openPackageInstallerSession(sessionId)) { in commit()
157 InstallUtils.waitForSessionReady(sessionId); in commit()
159 return sessionId; in commit()
170 int sessionId; in createSession() local
172 sessionId = createEmptyInstallSession(/*multiPackage*/ true, /*isApex*/false); in createSession()
174 InstallUtils.openPackageInstallerSession(sessionId)) { in createSession()
184 sessionId = createSingleInstallSession(mTestApps[0]); in createSession()
186 return sessionId; in createSession()
220 int sessionId = createEmptyInstallSession(/*multiPackage*/false, app.isApex()); in createSingleInstallSession() local
[all …]
DInstallUtils.java86 public static void waitForSessionReady(int sessionId) { in waitForSessionReady() argument
93 if (info != null && info.getSessionId() == sessionId) { in waitForSessionReady()
111 PackageInstaller.SessionInfo info = installer.getSessionInfo(sessionId); in waitForSessionReady()
152 public static PackageInstaller.Session openPackageInstallerSession(int sessionId) in openPackageInstallerSession() argument
154 return getPackageInstaller().openSession(sessionId); in openPackageInstallerSession()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp457 PlaybackParams& params, const AMediaDrmSessionId& sessionId, Uuid uuid) { in playContent() argument
467 crypto = AMediaCrypto_new(&uuid[0], sessionId.ptr, sessionId.length); in playContent()
598 JNIEnv* env, const AMediaObjects& aMediaObjects, const AMediaDrmSessionId& sessionId, in acquireLicense() argument
608 &sessionId, kClearkeyPssh, sizeof(kClearkeyPssh), in acquireLicense()
633 status = AMediaDrm_provideKeyResponse(aMediaObjects.getDrm(), &sessionId, in acquireLicense()
643 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in acquireLicense()
724 AMediaDrmSessionId sessionId; in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative() local
725 status = AMediaDrm_openSession(aMediaObjects.getDrm(), &sessionId); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
732 acquireLicense(env, aMediaObjects, sessionId, KEY_TYPE_STREAMING); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
754 AMediaDrm_closeSession(aMediaObjects.getDrm(), &sessionId); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testClearKeyPlaybackNative()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9344/
Dpoc.cpp40 std::vector<uint8_t> sessionId; in thread1() local
41 sessionId.push_back(1); in thread1()
43 returnStatus = descramblerBase->setMediaCasSession(sessionId); in thread1()
54 std::vector<uint8_t> sessionId; in main() local
70 [&status, &sessionId](Status _status, in main()
73 sessionId = _sessionId; in main()
90 returnStatus = descramblerBase->setMediaCasSession(sessionId); in main()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionTransferTest.java65 int sessionId) { in getSessionInfo() argument
69 if (sessionInfo.sessionId == sessionId) { in getSessionInfo()
123 int sessionId = installer.createSession(params); in createSession() local
124 return installer.openSession(sessionId); in createSession()
137 int sessionId = installer.createSession(params); in transferSession() local
138 Session session = installer.openSession(sessionId); in transferSession()
144 SessionInfo info = getSessionInfo(installer, sessionId); in transferSession()
150 assertThat(getSessionInfo(installer, sessionId)).isNull(); in transferSession()
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DBaseInstallMultiple.java88 int sessionId = -1; in run() local
91 sessionId = Integer.parseInt(result.substring(start + 1, end)); in run()
96 if (sessionId == -1) { in run()
110 cmd.append(' ').append(sessionId); in run()
121 cmd.append(' ').append(sessionId); in run()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java127 int sessionId = mPackageInstaller.createSession(params); in installPackage() local
128 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
140 mSession.commit(getCommitCallback(sessionId)); in installPackage()
144 private IntentSender getCommitCallback(int sessionId) { in getCommitCallback() argument
146 String action = ACTION_INSTALL_COMMIT + "." + sessionId; in getCommitCallback()
155 sessionId, in getCommitCallback()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseInstallMultiple.java147 int sessionId = -1; in run() local
150 sessionId = Integer.parseInt(result.substring(start + 1, end)); in run()
154 if (sessionId == -1) { in run()
169 cmd.append(' ').append(sessionId); in run()
182 cmd.append(' ').append(sessionId); in run()
192 cmd.append(' ').append(sessionId); in run()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DBaseInstallMultiple.java141 int sessionId = -1; in run() local
144 sessionId = Integer.parseInt(result.substring(start + 1, end)); in run()
148 if (sessionId == -1) { in run()
163 cmd.append(' ').append(sessionId); in run()
174 cmd.append(' ').append(sessionId); in run()
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/
DBaseInstallMultiple.java141 int sessionId = -1; in run() local
144 sessionId = Integer.parseInt(result.substring(start + 1, end)); in run()
148 if (sessionId == -1) { in run()
163 cmd.append(' ').append(sessionId); in run()
174 cmd.append(' ').append(sessionId); in run()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java169 int sessionId = mPackageInstaller.createSession(params); in installPackage() local
170 mSession = mPackageInstaller.openSession(sessionId); in installPackage()
182 mSession.commit(getCommitCallback(sessionId)); in installPackage()
186 private IntentSender getCommitCallback(int sessionId) { in getCommitCallback() argument
188 String action = ACTION_INSTALL_COMMIT + "." + sessionId; in getCommitCallback()
197 sessionId, in getCommitCallback()
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java155 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndAbandonSessionForSingleApk() local
157 = InstallUtils.openPackageInstallerSession(sessionId)) { in testOpenAndAbandonSessionForSingleApk()
174 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndCommitSessionForSingleApk() local
176 = InstallUtils.openPackageInstallerSession(sessionId)) { in testOpenAndCommitSessionForSingleApk()
190 int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in testOpenSingleSessionWithParameters() local
192 = InstallUtils.openPackageInstallerSession(sessionId)) { in testOpenSingleSessionWithParameters()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9539/
Dpoc.cpp139 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main() argument
141 session1 = sessionId; in main()
152 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main() argument
154 session2 = sessionId; in main()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DMultiUserDeviceTest.java87 final String sessionId = Long.toString(SystemClock.elapsedRealtimeNanos()); in testConnectingToTheSameUserIme() local
102 sessionId); in testConnectingToTheSameUserIme()
103 return new ReplyReceivingInputConnection(original, sessionId, resultQueue); in testConnectingToTheSameUserIme()
/cts/hostsidetests/devicepolicy/app/ContentCaptureService/src/com/android/cts/devicepolicy/contentcaptureservice/
DSimpleContentCaptureService.java48 ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument
49 Log.d(TAG, "onCreateContentCaptureSession(): " + sessionId); in onCreateContentCaptureSession()

12