Home
last modified time | relevance | path

Searched refs:packageInstaller (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPackageInstallerTest.java29 private PackageInstaller packageInstaller; field in ShadowPackageInstallerTest
33 packageInstaller = in setUp()
39 assertThat(packageInstaller.getAllSessions()).isEmpty(); in shouldBeNoInProcessSessionsOnRobolectricStartup()
45 packageInstaller.registerSessionCallback(mockCallback, new Handler()); in packageInstallerCreateAndAbandonSession()
47 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerCreateAndAbandonSession()
49 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in packageInstallerCreateAndAbandonSession()
54 packageInstaller.abandonSession(sessionId); in packageInstallerCreateAndAbandonSession()
56 assertThat(packageInstaller.getSessionInfo(sessionId)).isNull(); in packageInstallerCreateAndAbandonSession()
57 assertThat(packageInstaller.getAllSessions()).isEmpty(); in packageInstallerCreateAndAbandonSession()
65 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerOpenSession()
[all …]
DShadowPackageManagerTest.java127 PackageInstaller packageInstaller = in packageInstallerCreateSession() local
131 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerCreateSession()
133 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in packageInstallerCreateSession()
138 packageInstaller.abandonSession(sessionId); in packageInstallerCreateSession()
140 assertThat(packageInstaller.getSessionInfo(sessionId)).isNull(); in packageInstallerCreateSession()
146 PackageInstaller packageInstaller = in packageInstallerOpenSession() local
150 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerOpenSession()
152 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in packageInstallerOpenSession()