Lines Matching refs:service_
109 service_ = android::interface_cast<IApexService>(binder); in ApexServiceTest()
123 ASSERT_NE(nullptr, service_.get()); in SetUp()
129 service_->recollectPreinstalledData(kApexPackageBuiltinDirs); in SetUp()
147 android::binder::Status status = service_->getActivePackages(&list); in IsActive()
163 android::binder::Status status = service_->getActivePackages(&list); in IsActive()
178 android::binder::Status status = service_->getAllPackages(&list); in GetAllPackages()
188 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackages()
198 android::binder::Status status = service_->getAllPackages(&list); in GetInactivePackages()
212 android::binder::Status status = service_->getActivePackage(name, &package); in GetActivePackage()
237 android::binder::Status status = service_->getActivePackages(&list); in GetActivePackagesStrings()
253 android::binder::Status status = service_->getAllPackages(&list); in GetFactoryPackages()
447 sp<IApexService> service_; member in android::apex::ApexServiceTest
616 android::binder::Status st = service_->stagePackages({test_file}); in TEST_F()
632 android::binder::Status st = service_->stagePackages({installer.test_file}); in TEST_F()
649 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
665 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
686 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
703 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
723 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
743 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
746 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
760 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
765 ASSERT_TRUE(IsOk(service_->stagePackages({installer2.test_file}))); in TEST_F()
788 ASSERT_TRUE(IsOk(service_->stagePackages(packages))); in TEST_F()
806 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
819 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
835 service_->snapshotCeData(0, 123456, "apex.apexd_test"); in TEST_F()
854 service_->restoreCeData(0, 123456, "apex.apexd_test"); in TEST_F()
873 service_->destroyDeSnapshots(8975); in TEST_F()
877 service_->destroyDeSnapshots(123456); in TEST_F()
891 service_->destroyDeSnapshots(8975); in TEST_F()
895 service_->destroyDeSnapshots(123456); in TEST_F()
915 android::binder::Status st = service_->destroyCeSnapshots(0, 123456); in TEST_F()
918 st = service_->destroyCeSnapshots(1, 123456); in TEST_F()
948 service_->destroyCeSnapshotsNotSpecified(0, retain); in TEST_F()
973 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
996 ASSERT_NE(nullptr, service_.get()); in SetUp()
1016 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
1024 service_->deactivatePackage(installer_->test_installed_file); in TearDown()
1026 service_->deactivatePackage(installer_->test_file); in TearDown()
1068 android::binder::Status st = service_->activatePackage(installer_->test_file); in TEST_F()
1082 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1132 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1152 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1164 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1215 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1244 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1264 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1291 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1329 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1339 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1382 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1397 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
1501 ASSERT_NE(nullptr, service_.get()); in SetUp()
1513 ASSERT_TRUE(IsOk(service_->getActivePackage("com.android.apex.cts.shim", in SetUp()
1515 ASSERT_TRUE(IsOk(service_->deactivatePackage(system_shim.modulePath))); in SetUp()
1517 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
1519 IsOk(service_->activatePackage(installer_->test_installed_file))); in SetUp()
1524 service_->deactivatePackage(installer_->test_installed_file); in TearDown()
1530 ASSERT_TRUE(IsOk(service_->activatePackage( in TearDown()
1539 ASSERT_TRUE(IsOk(service_->getAllPackages(&all))); in TEST_F()
1606 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1612 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1620 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1631 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1663 android::binder::Status st = (service_.get()->*fn)(pkgs); in RunPrePost()
1745 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1761 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1767 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123))); in TEST_F()
1768 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1775 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(123))) in TEST_F()
1778 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(123, &session))) in TEST_F()
1784 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))) in TEST_F()
1809 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1824 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1827 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
1848 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1852 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(456, &session))) in TEST_F()
1876 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1902 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1908 ASSERT_TRUE(IsOk(service_->markStagedSessionReady(10))) in TEST_F()
1911 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(10, &session))) in TEST_F()
1939 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1945 ASSERT_FALSE(IsOk(service_->markStagedSessionReady(666))); in TEST_F()
1948 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(666, &session))); in TEST_F()
1955 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(37))); in TEST_F()
1958 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(37, &session_info))); in TEST_F()
1970 ASSERT_FALSE(IsOk(service_->markStagedSessionSuccessful(73))); in TEST_F()
1973 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(73, &session_info))); in TEST_F()
1985 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(239))); in TEST_F()
1988 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(239, &session_info))); in TEST_F()
2000 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(1543))); in TEST_F()
2003 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(1543, &session_info))); in TEST_F()
2017 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2020 ASSERT_TRUE(IsOk(service_->abortStagedSession(239))); in TEST_F()
2023 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2037 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2040 ASSERT_FALSE(IsOk(service_->abortStagedSession(239))); in TEST_F()
2043 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2105 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2117 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2151 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2163 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2196 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2218 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2237 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2240 ASSERT_TRUE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2258 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2261 ASSERT_FALSE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2271 auto status = service_->unstagePackages( in TEST_F()
2331 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2335 ASSERT_TRUE(IsOk(service_->revertActiveSessions())); in TEST_F()
2361 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2365 ASSERT_TRUE(IsOk(service_->revertActiveSessions())); in TEST_F()
2384 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2390 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2394 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2399 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2410 ASSERT_TRUE(IsOk(service_->markStagedSessionSuccessful(101))); in TEST_F()
2428 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2435 ASSERT_TRUE(IsOk(service_->resumeRevertIfNeeded())); in TEST_F()
2445 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2461 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2467 ASSERT_TRUE(IsOk(service_->resumeRevertIfNeeded())); in TEST_F()
2476 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2492 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2494 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(53, &session_info))); in TEST_F()
2509 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2511 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(17239, &session_info))); in TEST_F()
2527 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2696 ASSERT_TRUE(IsOk(service_->getAllPackages(&list))); in SetUp()
2717 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2732 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2747 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2761 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2775 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2786 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2800 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2815 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2830 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2840 ASSERT_FALSE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2857 ASSERT_TRUE(IsOk(service_->activatePackage(kSystemPath))); in TEST_F()
2865 if (auto ret = service_->deactivatePackage(kSystemPath); !ret.isOk()) { in TEST_F()
2884 service_->remountPackages(); in TEST_F()
2897 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
2909 service_->remountPackages(); in TEST_F()
2931 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2967 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
3006 IsOk(service_->activatePackage(installer_->test_installed_file))); in TEST_F()
3053 ASSERT_NE(nullptr, service_.get()); in SetUp()
3064 service_->recollectPreinstalledData({kTempPrebuiltDir}); in SetUp()
3065 service_->recollectDataApex(kActiveApexPackagesDataDir, in SetUp()
3084 IsOk(service_->calculateSizeForCompressedApex(empty_list, &result))); in TEST_F()
3102 service_->calculateSizeForCompressedApex(non_empty_list, &result))); in TEST_F()
3123 ASSERT_TRUE(IsOk(service_->calculateSizeForCompressedApex(non_empty_list, in TEST_F()
3128 ASSERT_TRUE(IsOk(service_->reserveSpaceForCompressedApex(non_empty_list))); in TEST_F()
3138 ASSERT_TRUE(IsOk(service_->reserveSpaceForCompressedApex(empty_list))); in TEST_F()