Home
last modified time | relevance | path

Searched refs:createSession (Results 1 – 25 of 65) sorted by relevance

123

/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DPackageInstallerEnumerationTests.java65 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 …]
DLauncherAppsEnumerationTests.java245 .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()
DInstallMultiple.java72 final int sessionId = createSession(); in run()
77 private int createSession() { in createSession() method in InstallMultiple
/cts/tests/tests/os/src/android/os/cts/
DPerformanceHintManagerTest.java75 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/
DAtomicInstallTest.java159 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 …]
DSessionAbandonBehaviorTest.java267 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/
DPreapprovalInstallTest.kt98 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 …]
DInstallPreVerifiedDomainsTest.kt67 val (sessionId, session) = createSession(0, false, null) in testSetPreVerifiedDomainsAfterSessionCommit()
108 val (sessionId, session) = createSession(0, false, null) in createSessionWithPreVerifiedDomains()
DSessionTestInstant.kt37 pm.packageInstaller.createSession( in instantAppsCannotCreateInstallSessions()
DUpdateOwnershipEnforcementTest.kt71 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()
DPackageInstallerTestBase.kt204 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>()
DSessionTest.kt78 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()
DInstallAppMetadataTest.kt144 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/
DInstallSessionTransferTest.java128 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/
Dandroid_os_cts_PerformanceHintManagerTest.cpp53 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/
DBaseBlobStoreDeviceTest.java56 protected long createSession(BlobHandle blobHandle) throws Exception { in createSession() method in BaseBlobStoreDeviceTest
57 final long sessionId = mBlobStoreManager.createSession(blobHandle); in createSession()
DDataCleanupTest.java52 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()
DAtomTest.java70 final long sessionId = createSession(blobData.getBlobHandle()); in commitBlob()
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java226 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/
DBlobStoreManagerTest.java157 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/
DInstallUtilTest.java162 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/
DMainActivity.java39 packageInstaller.createSession(params); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorTest.java56 int sessionId = createSession(myPackage); in testOnlyOwnerCanSee()
71 private int createSession(String packageName) throws Exception { in createSession() method in SessionInspectorTest
DSessionInspectorActivity.java49 getPackageManager().getPackageInstaller().createSession(params); in onCreate()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_0044.java68 final int sessionId = packageInstaller.createSession(params); in testPocCVE_2024_0044()

123