/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 159 int sessionId = stageSingleApk( in testInstallStagedApk_Commit() local 162 waitForIsReadyBroadcast(sessionId); in testInstallStagedApk_Commit() 163 assertSessionReady(sessionId); in testInstallStagedApk_Commit() 164 storeSessionId(sessionId); in testInstallStagedApk_Commit() 170 int sessionId = retrieveLastSessionId(); in testInstallStagedApk_VerifyPostReboot() local 171 assertSessionApplied(sessionId); in testInstallStagedApk_VerifyPostReboot() 177 int sessionId = retrieveLastSessionId(); in testInstallStagedApk_AbandonSessionIsNoop() local 178 assertSessionApplied(sessionId); in testInstallStagedApk_AbandonSessionIsNoop() 181 getPackageInstaller().abandonSession(sessionId); in testInstallStagedApk_AbandonSessionIsNoop() 182 assertSessionApplied(sessionId); in testInstallStagedApk_AbandonSessionIsNoop() [all …]
|
D | ApexShimValidationTest.java | 78 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 …]
|
D | LocalIntentSender.java | 62 int sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, -1); in prettyPrint() local 70 + "}", intent, sessionId, status, message); in prettyPrint()
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | PredictionService.java | 47 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 …]
|
D | ServiceReporter.java | 79 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/ |
D | MediaDrmMockTest.java | 192 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 …]
|
D | MediaDrmClearkeyTest.java | 187 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 …]
|
D | PostProcTestBase.java | 61 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/ |
D | CtsContentCaptureService.java | 230 ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument 232 + mIgnoreOrphanSessionEvents + ", ctx=" + context + ", session=" + sessionId); in onCreateContentCaptureSession() 234 mAllSessions.add(sessionId); in onCreateContentCaptureSession() 237 final Session session = mOpenSessions.get(sessionId); in onCreateContentCaptureSession() 239 throw new IllegalStateException("Already contains session for " + sessionId in onCreateContentCaptureSession() 242 mUnfinishedSessionLatches.put(sessionId, new CountDownLatch(1)); in onCreateContentCaptureSession() 243 mOpenSessions.put(sessionId, new Session(sessionId, context)); in onCreateContentCaptureSession() 248 public void onDestroyContentCaptureSession(ContentCaptureSessionId sessionId) { in onDestroyContentCaptureSession() argument 250 + mIgnoreOrphanSessionEvents + ", session=" + sessionId + ")"); in onDestroyContentCaptureSession() 253 final Session session = getExistingSession(sessionId); in onDestroyContentCaptureSession() [all …]
|
/cts/libs/rollback/src/com/android/cts/rollback/lib/ |
D | Install.java | 104 int sessionId = createEmptyInstallSession(/*multiPackage*/false, app.isApex()); in createInstallSession() local 105 PackageInstaller.Session session = getPackageInstaller().openSession(sessionId); in createInstallSession() 119 return sessionId; in createInstallSession() 126 final int sessionId; in commit() local 129 sessionId = createEmptyInstallSession(/*multiPackage*/ true, /*isApex*/false); in commit() 130 session = getPackageInstaller().openSession(sessionId); in commit() 136 sessionId = createInstallSession(mTestApps[0]); in commit() 137 session = getPackageInstaller().openSession(sessionId); in commit() 152 Utils.waitForSessionReady(sessionId); in commit()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 457 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/ |
D | poc.cpp | 40 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/ |
D | InstallSessionTransferTest.java | 65 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()
|
D | InstallSessionParamsUnitTest.java | 183 private SessionInfo getSessionInfo(int sessionId) { in getSessionInfo() argument 189 if (sessionInfo.getSessionId() == sessionId) { in getSessionInfo() 228 int sessionId; in checkSessionParams() local 230 sessionId = createSession(params); in checkSessionParams() 243 SessionInfo info = getSessionInfo(sessionId); in checkSessionParams()
|
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | BaseInstallMultiple.java | 88 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/appsecurity/src/android/appsecurity/cts/ |
D | BaseInstallMultiple.java | 147 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/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 127 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/classloaders/useslibrary/src/android/classloaders/cts/ |
D | BaseInstallMultiple.java | 141 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/ |
D | BaseInstallMultiple.java | 141 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/ |
D | BasePackageInstallTest.java | 169 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/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 314 final int sessionId = packageInstaller.createSession(params); in createSessionId() local 316 return sessionId; in createSessionId() 318 final PackageInstaller.Session session = packageInstaller.openSession(sessionId); in createSessionId() 329 return sessionId; in createSessionId() 332 private static PackageInstaller.Session getSessionOrFail(int sessionId) throws Exception { in getSessionOrFail() argument 335 return packageInstaller.openSession(sessionId); in getSessionOrFail() 338 private static PackageInstaller.SessionInfo getSessionInfoOrFail(int sessionId) in getSessionInfoOrFail() argument 342 return packageInstaller.getSessionInfo(sessionId); in getSessionInfoOrFail()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9539/ |
D | poc.cpp | 123 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main() argument 125 session1 = sessionId; in main() 136 cas->openSession([&](Status status, const hidl_vec<uint8_t> &sessionId) { in main() argument 138 session2 = sessionId; in main()
|
/cts/hostsidetests/devicepolicy/app/ContentCaptureService/src/com/android/cts/devicepolicy/contentcaptureservice/ |
D | SimpleContentCaptureService.java | 48 ContentCaptureSessionId sessionId) { in onCreateContentCaptureSession() argument 49 Log.d(TAG, "onCreateContentCaptureSession(): " + sessionId); in onCreateContentCaptureSession()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | MultiUserDeviceTest.java | 87 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/securitybulletin/securityPatch/CVE-2017-0479/ |
D | poc.cpp | 59 audio_session_t sessionId = (audio_session_t)(128); in main() local 81 io, sessionId, opPackageName, getpid(), in main()
|