Searched refs:packageInstaller (Results 1 – 2 of 2) sorted by relevance
29 private PackageInstaller packageInstaller; field in ShadowPackageInstallerTest33 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 …]
127 PackageInstaller packageInstaller = in packageInstallerCreateSession() local131 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() local150 int sessionId = packageInstaller.createSession(createSessionParams("packageName")); in packageInstallerOpenSession()152 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in packageInstallerOpenSession()