/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | PackageInstallerEnumerationTests.java | 65 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothing_cannotSeeSession() 73 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothingHasPermission_canSeeSession() 81 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesPackage_canSeeSession() 89 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothingTargetsQ_canSeeSession() 97 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_sessionOwner_canSeeSession() 106 .createSession(); in getStagedSessions_queriesNothing_cannotSeeSession() 115 .createSession(); in getStagedSessions_queriesNothingHasPermission_canSeeSession() 124 .createSession(); in getStagedSessions_queriesPackage_canSeeSession() 133 .createSession(); in getStagedSessions_queriesNothingTargetsQ_canSeeSession() 142 .createSession(); in getStagedSessions_sessionOwner_canSeeSession() [all …]
|
D | LauncherAppsEnumerationTests.java | 245 .createSession(); in sessionCallback_queriesNothing_cannotSeeSession() 263 .createSession(); in sessionCallback_queriesNothingHasPermission_canSeeSession() 281 .createSession(); in sessionCallback_queriesPackage_canSeeSession() 299 .createSession(); in sessionCallback_queriesNothingTargetsQ_canSeeSession() 317 .createSession(); in sessionCallback_sessionOwner_canSeeSession() 369 .createSession(); in getAllPkgInstallerSessions_queriesNothing_cannotSeeSessions() 385 .createSession(); in getAllPkgInstallerSessions_queriesNothingHasPermission_canSeeSessions() 400 .createSession(); in getAllPkgInstallerSessions_queriesPackage_canSeeSessions() 416 .createSession(); in getAllPkgInstallerSessions_queriesNothingTargetsQ_canSeeSessions() 431 .createSession(); in getAllPkgInstallerSessions_sessionOwner_canSeeSessions()
|
D | InstallMultiple.java | 72 final int sessionId = createSession(); in run() 77 private int createSession() { in createSession() method in InstallMultiple
|
/cts/tests/tests/os/src/android/os/cts/ |
D | PerformanceHintManagerTest.java | 75 private Session createSession() { in createSession() method in PerformanceHintManagerTest 82 Session a = createSession(); in testCreateHintSession() 83 Session b = createSession(); in testCreateHintSession() 103 if (createSession() != null) { in testGetPreferredUpdateRateNanos() 120 Session s = createSession(); in testUpdateTargetWorkDuration() 135 Session s = createSession(); in testUpdateTargetWorkDurationWithNegativeDuration() 152 Session s = createSession(); in testReportActualWorkDuration() 170 Session s = createSession(); in testReportActualWorkDurationWithIllegalArgument() 189 Session s = createSession(); in testSendHint() 201 Session s = createSession(); in testSendHintWithNegativeHint() [all …]
|
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/ |
D | AtomicInstallTest.java | 159 int parentId = Install.multi(TestApp.A1).createSession(); in testRemoveChild() 160 int childBId = Install.single(TestApp.B1).createSession(); in testRemoveChild() 161 int childCId = Install.single(TestApp.C1).createSession(); in testRemoveChild() 242 InstallUtils.getPackageInstaller().createSession(params); in testInvalidStateScenario_MultiSessionCantBeApex() 256 int parentId = Install.single(TestApp.A1).createSession(); in testInvalidStateScenario_AddChildToSingleSessionShouldFail() 257 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_AddChildToSingleSessionShouldFail() 272 int parentId = Install.multi(TestApp.A1).createSession(); in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() 273 int childId = Install.multi(TestApp.B1).createSession(); in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() 288 int parentId = Install.multi(TestApp.A1).createSession(); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() 289 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() [all …]
|
D | SessionAbandonBehaviorTest.java | 267 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_shouldReceiveAbandonCallBack() 281 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_shouldReceiveAbandonCallBack() 296 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_openedSession_canNotGetNames() 313 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_openedSession_canNotGetNames() 330 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_openForWriting_shouldFail() 348 final int sessiondId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_openForWriting_shouldFail() 366 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_canNotOpenAgain() 382 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_canNotOpenAgain() 399 TestApp.B1).setStaged().createSession(); in abandon_stagedParentSession_shouldReceiveAllChildrenAbandonCallBack() 414 final int parentSessionId = Install.multi(TestApp.A1, TestApp.B1).createSession(); in abandon_nonStagedParentSession_shouldReceiveAllChildrenAbandonCallBack() [all …]
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | PreapprovalInstallTest.kt | 98 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in requestUserPreapproval_userAgree_statusSuccess() 177 val session = createSession( in requestUserPreapprovalWithUpdateOwnership_userAgree_statusSuccess() 235 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in requestUserPreapproval_userCancel_statusFailureAborted() 251 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in requestUserPreapproval_alreadyApproved_throwException() 272 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in requestUserPreapproval_userCancel_cannotCommitAgain() 291 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in requestUserPreapproval_doNothingAndCommitLater_installSuccessfully() 333 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in commitPreapprovalSession_success() 355 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in commitPreapprovalSession_usingAnotherLocaleInSplitApk_success() 380 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in commitPreapprovalSession_update_success() 404 val (sessionId, session) = createSession(0 /* flags */, false /* isMultiPackage */, in commitPreapprovalSession_updateUsingCurrentLabel_success() [all …]
|
D | InstallPreVerifiedDomainsTest.kt | 67 val (sessionId, session) = createSession(0, false, null) in testSetPreVerifiedDomainsAfterSessionCommit() 108 val (sessionId, session) = createSession(0, false, null) in createSessionWithPreVerifiedDomains()
|
D | SessionTestInstant.kt | 37 pm.packageInstaller.createSession( in instantAppsCannotCreateInstallSessions()
|
D | UpdateOwnershipEnforcementTest.kt | 71 val (sessionId, session) = createSession( in isRequestUpdateOwnership_notSet_returnFalse() 90 val (sessionId, session) = createSession( in isRequestUpdateOwnership_set_returnTrue() 380 val (sessionId, session) = createSession( in getPendingUserActionReason_notRequestUpdateOwnership_reasonUnspecified() 412 val (sessionId, session) = createSession( in getPendingUserActionReason_notRequestUpdateOwner_reasonRemindOwnership()
|
D | PackageInstallerTestBase.kt | 204 protected fun createSession( in <lambda>() method 228 val sessionId = pi.createSession(sessionParam) in <lambda>() 319 val (_, session) = createSession(installFlags, false, packageSource, paramsBlock) in <lambda>() 338 val (sessionId, session) = createSession(installFlags, true, null) in <lambda>() 340 val (childSessionId, childSession) = createSession(installFlags, false, null) in <lambda>()
|
D | SessionTest.kt | 78 val sessionId = pi.createSession(sessionParam) in sessionWithImmutablePendingIntent() 250 val sessionId = pi.createSession(sessionParam) in withPrivilegedPermissions_canAccessResolvedPath() 273 val sessionId = pi.createSession(sessionParam) in withoutPrivilegedPermissions_cannotAccessResolvedPath()
|
D | InstallAppMetadataTest.kt | 144 val (sessionId, session) = createSession(0, false, null) in installViaSessionWithOnlyAppMetadata() 155 val (sessionId, session) = createSession(0, false, null) in resetAppMetadataInSession() 204 val (sessionId, session) = createSession(0, false, null) in installApkViaSession()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstallSessionTransferTest.java | 128 private Session createSession() throws Exception { in createSession() method in InstallSessionTransferTest 134 int sessionId = installer.createSession(params); in createSession() 148 int sessionId = installer.createSession(params); in transferSession() 194 Session session = createSession(); in transferToInvalidNewOwner() 210 Session session = createSession(); in transferToOwnerWithoutInstallPermission() 227 Session session = createSession(); in transferWithOpenWrite() 243 Session session = createSession(); in transfer_toNullPackageName_shouldFail() 255 Session session = createSession(); in transfer_toEmptyStringPackageName_shouldFail() 267 Session session = createSession(); in transfer_toInvalidPackageName_shouldFail() 279 Session session = createSession(); in transferSessionWithInvalidApk() [all …]
|
/cts/tests/tests/os/jni/ |
D | android_os_cts_PerformanceHintManagerTest.cpp | 53 static SessionWrapper createSession(APerformanceHintManager* manager) { in createSession() function 77 SessionWrapper a = createSession(manager); in nativeTestCreateHintSession() 78 SessionWrapper b = createSession(manager); in nativeTestCreateHintSession() 96 SessionWrapper wrapper = createSession(manager); in nativeTestGetPreferredUpdateRateNanos() 111 SessionWrapper wrapper = createSession(manager); in nativeUpdateTargetWorkDuration() 124 SessionWrapper wrapper = createSession(manager); in nativeUpdateTargetWorkDurationWithNegativeDuration() 137 SessionWrapper wrapper = createSession(manager); in nativeReportActualWorkDuration() 166 SessionWrapper wrapper = createSession(manager); in nativeReportActualWorkDurationWithIllegalArgument() 181 SessionWrapper wrapper = createSession(manager); in nativeTestSetThreadsWithInvalidTid() 199 SessionWrapper wrapper = createSession(manager); in nativeSetPreferPowerEfficiency() [all …]
|
/cts/hostsidetests/blobstore/test-apps/BlobStoreHostTestHelper/src/com/android/cts/device/blob/ |
D | BaseBlobStoreDeviceTest.java | 56 protected long createSession(BlobHandle blobHandle) throws Exception { in createSession() method in BaseBlobStoreDeviceTest 57 final long sessionId = mBlobStoreManager.createSession(blobHandle); in createSession()
|
D | DataCleanupTest.java | 52 final long sessionId = createSession(blobData.getBlobHandle()); in testCreateSession() 90 final long sessionId = createSession(blobData.getBlobHandle()); in testCommitBlob() 130 final long sessionId = createSession(blobHandle); in testRecommitBlob()
|
D | AtomTest.java | 70 final long sessionId = createSession(blobData.getBlobHandle()); in commitBlob()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Install.java | 226 int sessionId = createSession(); in commit() 246 public int createSession() throws IOException { in createSession() method in Install 253 session.addChildSessionId(subInstall.createSession()); in createSession() 318 return installer.createSession(params); in createEmptyInstallSession()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | BlobStoreManagerTest.java | 157 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testGetCreateSession() 188 assertThrows(NullPointerException.class, () -> mBlobStoreManager.createSession(null)); in testGetCreateSession_invalidArguments() 206 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testAbandonSession() 224 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testOpenReadWriteSession() 249 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testOpenSession_fromAnotherPkg() 275 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testOpenSessionAndAbandon() 302 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testCloseSession() 341 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testAllowPublicAccess() 362 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testAllowPublicAccess_abandonedSession() 385 final long sessionId = mBlobStoreManager.createSession(blobData.getBlobHandle()); in testAllowSameSignatureAccess() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 162 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndAbandonSessionForSingleApk() 181 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndCommitSessionForSingleApk() 198 int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in testOpenSingleSessionWithParameters() 209 int parentSessionId = Install.multi(TestApp.A1, TestApp.B1).setStaged().createSession(); in testOpenSessionForMultiPackageSession()
|
/cts/tests/tests/content/TestInstallerApp/src/com/android/cts/testinstallerapp/ |
D | MainActivity.java | 39 packageInstaller.createSession(params); in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/ |
D | SessionInspectorTest.java | 56 int sessionId = createSession(myPackage); in testOnlyOwnerCanSee() 71 private int createSession(String packageName) throws Exception { in createSession() method in SessionInspectorTest
|
D | SessionInspectorActivity.java | 49 getPackageManager().getPackageInstaller().createSession(params); in onCreate()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2024_0044.java | 68 final int sessionId = packageInstaller.createSession(params); in testPocCVE_2024_0044()
|