/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | PackageInstallerEnumerationTests.java | 66 final Integer[] sessionIds = getSessionInfos(ACTION_GET_SESSION_INFO, QUERIES_NOTHING, in getSessionInfo_queriesNothing_cannotSeeSession() local 68 assertThat(sessionIds, not(hasItemInArray(sessionId))); in getSessionInfo_queriesNothing_cannotSeeSession() 74 final Integer[] sessionIds = getSessionInfos(ACTION_GET_SESSION_INFO, QUERIES_NOTHING_PERM, in getSessionInfo_queriesNothingHasPermission_canSeeSession() local 76 assertThat(sessionIds, hasItemInArray(sessionId)); in getSessionInfo_queriesNothingHasPermission_canSeeSession() 82 final Integer[] sessionIds = getSessionInfos(ACTION_GET_SESSION_INFO, QUERIES_PACKAGE, in getSessionInfo_queriesPackage_canSeeSession() local 84 assertThat(sessionIds, hasItemInArray(sessionId)); in getSessionInfo_queriesPackage_canSeeSession() 90 final Integer[] sessionIds = getSessionInfos(ACTION_GET_SESSION_INFO, QUERIES_NOTHING_Q, in getSessionInfo_queriesNothingTargetsQ_canSeeSession() local 92 assertThat(sessionIds, hasItemInArray(sessionId)); in getSessionInfo_queriesNothingTargetsQ_canSeeSession() 107 final Integer[] sessionIds = getSessionInfos(ACTION_GET_STAGED_SESSIONS, QUERIES_NOTHING, in getStagedSessions_queriesNothing_cannotSeeSession() local 109 assertThat(sessionIds, not(hasItemInArray(sessionId))); in getStagedSessions_queriesNothing_cannotSeeSession() [all …]
|
D | LauncherAppsEnumerationTests.java | 370 final Integer[] sessionIds = getSessionInfos(ACTION_GET_ALL_PACKAGE_INSTALLER_SESSIONS, in getAllPkgInstallerSessions_queriesNothing_cannotSeeSessions() local 372 assertThat(sessionIds, not(hasItemInArray(sessionId))); in getAllPkgInstallerSessions_queriesNothing_cannotSeeSessions() 386 final Integer[] sessionIds = getSessionInfos(ACTION_GET_ALL_PACKAGE_INSTALLER_SESSIONS, in getAllPkgInstallerSessions_queriesNothingHasPermission_canSeeSessions() local 388 assertThat(sessionIds, hasItemInArray(sessionId)); in getAllPkgInstallerSessions_queriesNothingHasPermission_canSeeSessions() 401 final Integer[] sessionIds = getSessionInfos(ACTION_GET_ALL_PACKAGE_INSTALLER_SESSIONS, in getAllPkgInstallerSessions_queriesPackage_canSeeSessions() local 403 assertThat(sessionIds, hasItemInArray(sessionId)); in getAllPkgInstallerSessions_queriesPackage_canSeeSessions() 417 final Integer[] sessionIds = getSessionInfos(ACTION_GET_ALL_PACKAGE_INSTALLER_SESSIONS, in getAllPkgInstallerSessions_queriesNothingTargetsQ_canSeeSessions() local 419 assertThat(sessionIds, hasItemInArray(sessionId)); in getAllPkgInstallerSessions_queriesNothingTargetsQ_canSeeSessions() 433 final Integer[] sessionIds = launcherApps.getAllPackageInstallerSessions().stream() in getAllPkgInstallerSessions_sessionOwner_canSeeSessions() local 437 assertThat(sessionIds, hasItemInArray(sessionId)); in getAllPkgInstallerSessions_sessionOwner_canSeeSessions()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierServiceSwapTest.java | 129 final List<TextClassificationSessionId> sessionIds = in testMultipleActiveSessions() local 131 assertThat(sessionIds).hasSize(2); in testMultipleActiveSessions() 132 assertThat(sessionIds.get(0).getValue()).isNotEqualTo(sessionIds.get(1).getValue()); in testMultipleActiveSessions() 169 final List<TextClassificationSessionId> sessionIds = in serviceOnSuggestConversationActions() local 171 assertThat(sessionIds).hasSize(1); in serviceOnSuggestConversationActions()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | ChildlessActivityTest.java | 166 final List<ContentCaptureSessionId> sessionIds = service.getAllSessionIds(); in testLaunchAnotherActivity() local 167 assertThat(sessionIds).hasSize(2); in testLaunchAnotherActivity() 168 final ContentCaptureSessionId sessionId1 = sessionIds.get(0); in testLaunchAnotherActivity() 170 final ContentCaptureSessionId sessionId2 = sessionIds.get(1); in testLaunchAnotherActivity() 218 final List<ContentCaptureSessionId> sessionIds = service.getAllSessionIds(); in testLaunchAnotherActivity_onTopOfIt() local 219 assertThat(sessionIds).hasSize(2); in testLaunchAnotherActivity_onTopOfIt() 220 final ContentCaptureSessionId sessionId1 = sessionIds.get(0); in testLaunchAnotherActivity_onTopOfIt() 222 final ContentCaptureSessionId sessionId2 = sessionIds.get(1); in testLaunchAnotherActivity_onTopOfIt() 411 final List<ContentCaptureSessionId> sessionIds = service.getAllSessionIds(); in testAddAndRemoveImportantChildOnDifferentSession() local 412 assertThat(sessionIds).containsExactly(mainSessionId, childSessionId).inOrder(); in testAddAndRemoveImportantChildOnDifferentSession()
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | SessionAbandonBehaviorTest.java | 96 AbandonSessionCallBack(CountDownLatch countDownLatch, int[] sessionIds) { in AbandonSessionCallBack() argument 99 for (int sessionId : sessionIds) { in AbandonSessionCallBack() 211 private static List<PackageInstaller.SessionInfo> getAllChildSessions(int[] sessionIds) { in getAllChildSessions() argument 213 for (int sessionId : sessionIds) { in getAllChildSessions()
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 935 List<Integer> sessionIds = retrieveLastSessionIds(); in testMultipleStagedInstall_ApkOnly_VerifyPostReboot() local 936 for (int sessionId: sessionIds) { in testMultipleStagedInstall_ApkOnly_VerifyPostReboot() 961 List<Integer> sessionIds = retrieveLastSessionIds(); in testInstallMultipleStagedSession_PartialFail_ApkOnly_VerifyPostReboot() local 962 for (int sessionId: sessionIds) { in testInstallMultipleStagedSession_PartialFail_ApkOnly_VerifyPostReboot() 1000 List<Integer> sessionIds = retrieveLastSessionIds(); in testFailureReasonPersists_MultipleSession_VerifyPostReboot() local 1001 int failingSessionId = sessionIds.get(0); in testFailureReasonPersists_MultipleSession_VerifyPostReboot() 1002 for (int sessionId: sessionIds) { in testFailureReasonPersists_MultipleSession_VerifyPostReboot() 1522 private void storeSessionIds(List<Integer> sessionIds) throws Exception { in storeSessionIds() argument 1524 writer.write(sessionIds.toString()); in storeSessionIds()
|
/cts/tests/tests/media/drmframework/jni/ |
D | native-mediadrm-jni.cpp | 945 std::list<AMediaDrmSessionId> sessionIds; in testFindSessionIdNative() local 961 sessionIds.push_back(sessionId); in testFindSessionIdNative() 964 for (auto sessionId : sessionIds) { in testFindSessionIdNative()
|