Lines Matching refs:service_

106       service_ = android::interface_cast<IApexService>(binder);  in ApexServiceTest()
120 ASSERT_NE(nullptr, service_.get()); in SetUp()
126 service_->recollectPreinstalledData(kApexPackageBuiltinDirs); in SetUp()
144 android::binder::Status status = service_->getActivePackages(&list); in IsActive()
160 android::binder::Status status = service_->getActivePackages(&list); in IsActive()
175 android::binder::Status status = service_->getAllPackages(&list); in GetAllPackages()
185 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackages()
195 android::binder::Status status = service_->getAllPackages(&list); in GetInactivePackages()
209 android::binder::Status status = service_->getActivePackage(name, &package); in GetActivePackage()
234 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackagesStrings()
250 android::binder::Status status = service_->getAllPackages(&list); in GetFactoryPackages()
444 sp<IApexService> service_; member in android::apex::ApexServiceTest
624 android::binder::Status st = service_->stagePackages({test_file}); in TEST_F()
640 android::binder::Status st = service_->stagePackages({installer.test_file}); in TEST_F()
657 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
673 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
694 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
711 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
731 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
751 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
754 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
768 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
773 ASSERT_TRUE(IsOk(service_->stagePackages({installer2.test_file}))); in TEST_F()
796 ASSERT_TRUE(IsOk(service_->stagePackages(packages))); in TEST_F()
814 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
827 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
844 service_->snapshotCeData(0, 123456, "apex.apexd_test", &result); in TEST_F()
870 service_->restoreCeData(0, 123456, "apex.apexd_test"); in TEST_F()
889 service_->destroyDeSnapshots(8975); in TEST_F()
893 service_->destroyDeSnapshots(123456); in TEST_F()
907 service_->destroyDeSnapshots(8975); in TEST_F()
911 service_->destroyDeSnapshots(123456); in TEST_F()
939 service_->destroyCeSnapshotsNotSpecified(0, retain); in TEST_F()
962 ASSERT_NE(nullptr, service_.get()); in SetUp()
982 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
990 service_->deactivatePackage(installer_->test_installed_file); in TearDown()
992 service_->deactivatePackage(installer_->test_file); in TearDown()
1034 android::binder::Status st = service_->activatePackage(installer_->test_file); in TEST_F()
1048 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1098 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1118 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1130 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1180 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1209 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1229 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1256 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1293 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1303 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1346 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1361 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
1440 ASSERT_NE(nullptr, service_.get()); in SetUp()
1452 ASSERT_TRUE(IsOk(service_->getActivePackage("com.android.apex.cts.shim", in SetUp()
1454 ASSERT_TRUE(IsOk(service_->deactivatePackage(system_shim.modulePath))); in SetUp()
1456 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
1458 IsOk(service_->activatePackage(installer_->test_installed_file))); in SetUp()
1463 service_->deactivatePackage(installer_->test_installed_file); in TearDown()
1469 ASSERT_TRUE(IsOk(service_->activatePackage( in TearDown()
1478 ASSERT_TRUE(IsOk(service_->getAllPackages(&all))); in TEST_F()
1545 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1551 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1559 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1570 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1602 android::binder::Status st = (service_.get()->*fn)(pkgs); in RunPrePost()
1684 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1700 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1706 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123))); in TEST_F()
1707 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1714 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123))) in TEST_F()
1717 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1723 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))) in TEST_F()
1748 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1763 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1766 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1787 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1791 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(456, &session))) in TEST_F()
1815 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1841 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1847 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(10))) in TEST_F()
1850 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1873 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1879 ASSERT_FALSE(IsOk(service_->markStagedSessionReady(666))); in TEST_F()
1882 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(666, &session))); in TEST_F()
1889 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(37))); in TEST_F()
1892 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(37, &session_info))); in TEST_F()
1904 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(73))); in TEST_F()
1907 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(73, &session_info))); in TEST_F()
1919 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(239))); in TEST_F()
1922 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(239, &session_info))); in TEST_F()
1934 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(1543))); in TEST_F()
1937 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(1543, &session_info))); in TEST_F()
1951 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1954 ASSERT_TRUE(IsOk(service_->abortStagedSession(239))); in TEST_F()
1957 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1971 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1974 ASSERT_FALSE(IsOk(service_->abortStagedSession(239))); in TEST_F()
1977 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2039 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2051 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2085 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2097 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2130 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2154 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2173 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2176 ASSERT_TRUE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2194 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2197 ASSERT_FALSE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2207 auto status = service_->unstagePackages( in TEST_F()
2267 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2271 ASSERT_TRUE(IsOk(service_->revertActiveSessions())); in TEST_F()
2289 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2295 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2299 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2304 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2315 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(101))); in TEST_F()
2333 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2340 ASSERT_TRUE(IsOk(service_->resumeRevertIfNeeded())); in TEST_F()
2350 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2366 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2372 ASSERT_TRUE(IsOk(service_->resumeRevertIfNeeded())); in TEST_F()
2381 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2397 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2399 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(53, &session_info))); in TEST_F()
2414 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2416 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(17239, &session_info))); in TEST_F()
2436 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2602 ASSERT_TRUE(IsOk(service_->getAllPackages(&list))); in SetUp()
2623 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2634 const auto& status = service_->stagePackages({installer.test_file}); in TEST_F()
2653 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2668 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2682 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2696 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2707 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2721 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2736 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2753 ASSERT_TRUE(IsOk(service_->activatePackage(kSystemPath))); in TEST_F()
2761 if (auto ret = service_->deactivatePackage(kSystemPath); !ret.isOk()) { in TEST_F()
2780 service_->remountPackages(); in TEST_F()
2791 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
2803 service_->remountPackages(); in TEST_F()
2825 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2861 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()