Lines Matching refs:installer_
998 installer_ = std::make_unique<PrepareTestApexForInstall>( in SetUp()
1000 if (!installer_->Prepare()) { in SetUp()
1003 ASSERT_EQ(NameProvider::GetPackageName(), installer_->package); in SetUp()
1007 std::string path = stage_package ? installer_->test_installed_file in SetUp()
1008 : installer_->test_file; in SetUp()
1010 IsActive(installer_->package, installer_->version, path); in SetUp()
1016 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
1022 if (installer_ != nullptr) { in TearDown()
1024 service_->deactivatePackage(installer_->test_installed_file); in TearDown()
1026 service_->deactivatePackage(installer_->test_file); in TearDown()
1030 installer_.reset(); in TearDown()
1037 std::unique_ptr<PrepareTestApexForInstall> installer_; member in android::apex::ApexServiceActivationTest
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()
1083 << GetDebugStr(installer_.get()); in TEST_F()
1087 Result<bool> active = IsActive(installer_->package, installer_->version, in TEST_F()
1088 installer_->test_installed_file); in TEST_F()
1096 std::string(kApexRoot) + "/" + installer_->package; in TEST_F()
1118 installer_->package + "@" + in TEST_F()
1119 std::to_string(installer_->version); in TEST_F()
1132 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1133 << GetDebugStr(installer_.get()); in TEST_F()
1140 if (info.moduleName == installer_->package) { in TEST_F()
1146 ASSERT_EQ(installer_->package, match.moduleName); in TEST_F()
1147 ASSERT_EQ(installer_->version, static_cast<uint64_t>(match.versionCode)); in TEST_F()
1148 ASSERT_EQ(installer_->test_installed_file, match.modulePath); in TEST_F()
1152 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1153 << GetDebugStr(installer_.get()); in TEST_F()
1155 Result<ApexInfo> active = GetActivePackage(installer_->package); in TEST_F()
1158 ASSERT_EQ(installer_->package, active->moduleName); in TEST_F()
1159 ASSERT_EQ(installer_->version, static_cast<uint64_t>(active->versionCode)); in TEST_F()
1160 ASSERT_EQ(installer_->test_installed_file, active->modulePath); in TEST_F()
1164 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1165 << GetDebugStr(installer_.get()); in TEST_F()
1172 db.ForallMountedApexes(installer_->package, in TEST_F()
1179 << "Haven't found " << installer_->test_installed_file in TEST_F()
1184 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1195 ASSERT_EQ(installer_->test_installed_file, mounted_apex->full_path); in TEST_F()
1215 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1216 << GetDebugStr(installer_.get()); in TEST_F()
1219 Result<bool> active = IsActive(installer_->package, installer_->version, in TEST_F()
1220 installer_->test_installed_file); in TEST_F()
1226 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1244 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1245 << GetDebugStr(installer_.get()); in TEST_F()
1248 Result<bool> active = IsActive(installer_->package, installer_->version, in TEST_F()
1249 installer_->test_installed_file); in TEST_F()
1267 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1291 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1292 << GetDebugStr(installer_.get()); in TEST_F()
1299 db.ForallMountedApexes(installer_->package, in TEST_F()
1306 << "Haven't found " << installer_->test_installed_file in TEST_F()
1311 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1317 ASSERT_EQ(installer_->test_installed_file, mounted_apex->full_path); in TEST_F()
1329 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1330 << GetDebugStr(installer_.get()); in TEST_F()
1333 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1339 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1352 installer_.reset(); in TEST_F()
1503 installer_ = std::make_unique<PrepareTestApexForInstall>( in SetUp()
1505 if (!installer_->Prepare()) { in SetUp()
1508 ASSERT_EQ("com.android.apex.cts.shim", installer_->package); 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()
1525 installer_.reset(); in TearDown()
1534 std::unique_ptr<PrepareTestApexForInstall> installer_; member in android::apex::ApexSameGradeOfPreInstalledVersionTest
1568 ASSERT_TRUE(installer_ != nullptr); in SetUp()
1572 installer_.reset(); in TearDown()
1576 std::unique_ptr<PrepareTestApexForInstall> installer_; member in android::apex::ApexServiceDeactivationTest
1581 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1606 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1607 << GetDebugStr(installer_.get()); in TEST_F()
1612 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1616 installer_.reset(); // Skip TearDown deactivatePackage. in TEST_F()
1620 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1621 << GetDebugStr(installer_.get()); in TEST_F()
1624 installer_->package + "@" + std::to_string(installer_->version); in TEST_F()
1631 IsOk(service_->deactivatePackage(installer_->test_installed_file))); in TEST_F()
1641 installer_.reset(); // Skip TearDown deactivatePackage. in TEST_F()
2897 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
2898 << GetDebugStr(installer_.get()); in TEST_F()
2905 installer_->test_installed_file, in TEST_F()
2916 ASSERT_EQ(installer_->test_installed_file, active_apex->modulePath); in TEST_F()
2967 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
2968 << GetDebugStr(installer_.get()); in TEST_F()
3006 IsOk(service_->activatePackage(installer_->test_installed_file))); in TEST_F()