Lines Matching refs:IsOk
74 using android::apex::testing::IsOk;
127 ASSERT_TRUE(IsOk(status)); in SetUp()
368 ASSERT_FALSE(IsOk(apex_file)); in Prepare()
560 EXPECT_TRUE(IsOk(st)); in ListSlavesOfDmDevice()
617 ASSERT_FALSE(IsOk(st)); in TEST_F()
633 ASSERT_FALSE(IsOk(st)); 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()
762 ASSERT_TRUE(IsOk(apex)); in TEST_F()
765 ASSERT_TRUE(IsOk(service_->stagePackages({installer2.test_file}))); in TEST_F()
767 ASSERT_TRUE(IsOk(new_apex)); 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()
916 ASSERT_TRUE(IsOk(st)); in TEST_F()
919 ASSERT_TRUE(IsOk(st)); in TEST_F()
949 ASSERT_TRUE(IsOk(st)); in TEST_F()
973 ASSERT_FALSE(IsOk(service_->submitStagedSession(params, &list))) in TEST_F()
1011 ASSERT_TRUE(IsOk(active)); in SetUp()
1016 ASSERT_TRUE(IsOk(service_->stagePackages({installer_->test_file}))); in SetUp()
1069 ASSERT_FALSE(IsOk(st)); in TEST_F()
1082 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1089 ASSERT_TRUE(IsOk(active)); in TEST_F()
1132 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1136 ASSERT_TRUE(IsOk(active)); in TEST_F()
1152 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1156 ASSERT_TRUE(IsOk(active)); 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()
1221 ASSERT_TRUE(IsOk(active)); in TEST_F()
1232 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1238 ASSERT_TRUE(IsOk(block_device)); in TEST_F()
1239 ASSERT_TRUE(IsOk(ReadDevice(*block_device))); in TEST_F()
1244 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) in TEST_F()
1250 ASSERT_TRUE(IsOk(active)); in TEST_F()
1264 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
1273 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1281 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1287 ASSERT_TRUE(IsOk(block_device)); 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()
1392 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1397 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
1403 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1410 ASSERT_TRUE(IsOk(exists)); in TEST_F()
1419 ASSERT_TRUE(IsOk(factory_packages)); in TEST_F()
1448 ASSERT_TRUE(IsOk(active_packages)); in TEST_F()
1451 ASSERT_TRUE(IsOk(inactive_packages)); in TEST_F()
1468 ASSERT_TRUE(IsOk(all_packages)); in TEST_F()
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()
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()
1665 ASSERT_TRUE(IsOk(st)); in RunPrePost()
1667 ASSERT_FALSE(IsOk(st)); in RunPrePost()
1679 ASSERT_TRUE(IsOk(active)); in RunPrePost()
1684 ASSERT_TRUE(IsOk(apex)); 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()
1799 ASSERT_TRUE(IsOk(session1)); in TEST_F()
1801 ASSERT_TRUE(IsOk(session2)); in TEST_F()
1803 ASSERT_TRUE(IsOk(session3)); in TEST_F()
1804 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::VERIFIED))); in TEST_F()
1805 ASSERT_TRUE(IsOk(session2->UpdateStateAndCommit(SessionState::STAGED))); in TEST_F()
1806 ASSERT_TRUE(IsOk(session3->UpdateStateAndCommit(SessionState::SUCCESS))); 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()
1966 ASSERT_TRUE(IsOk(session)); in TEST_F()
1968 IsOk(session->UpdateStateAndCommit(::apex::proto::SessionState::STAGED))); 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()
1981 ASSERT_TRUE(IsOk(session)); in TEST_F()
1982 ASSERT_TRUE(IsOk( 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()
1996 ASSERT_TRUE(IsOk(session)); in TEST_F()
1997 ASSERT_TRUE(IsOk( 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()
2012 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::VERIFIED))); in TEST_F()
2014 ASSERT_TRUE(IsOk(session2->UpdateStateAndCommit(SessionState::STAGED))); 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()
2032 ASSERT_TRUE(IsOk(session1->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
2034 ASSERT_TRUE(IsOk(session2->UpdateStateAndCommit(SessionState::STAGED))); 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()
2069 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(state))); in TEST_F()
2105 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2109 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
2117 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2120 ASSERT_TRUE(IsOk(backups)); in TEST_F()
2144 ASSERT_TRUE(IsOk(CreateDirIfNeeded(std::string(kApexBackupDir), 0700))); in TEST_F()
2151 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2155 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
2163 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2166 ASSERT_TRUE(IsOk(backups)); in TEST_F()
2188 IsOk(CreateDirIfNeeded(std::string(kActiveApexPackagesDataDir), 0755))); in TEST_F()
2190 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
2196 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2199 ASSERT_TRUE(IsOk(backups)); in TEST_F()
2218 ASSERT_TRUE(IsOk(service_->submitStagedSession(params, &list))); in TEST_F()
2222 ASSERT_TRUE(IsOk(backups)); in TEST_F()
2237 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2240 ASSERT_TRUE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2243 ASSERT_TRUE(IsOk(active_packages)); in TEST_F()
2258 ASSERT_TRUE(IsOk(service_->stagePackages(pkgs))); in TEST_F()
2261 ASSERT_FALSE(IsOk(service_->unstagePackages(pkgs))); in TEST_F()
2265 ASSERT_TRUE(IsOk(active_packages)); in TEST_F()
2273 ASSERT_FALSE(IsOk(status)); in TEST_F()
2287 ASSERT_TRUE(IsOk(CreateDirIfNeeded(std::string(kApexBackupDir), 0700))); in PrepareBackup()
2310 ASSERT_TRUE(IsOk(active_pkgs)); in CheckActiveApexContents()
2327 ASSERT_TRUE(IsOk(session)); in TEST_F()
2328 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
2331 ASSERT_TRUE(IsOk(service_->stagePackages({installer.test_file}))); in TEST_F()
2335 ASSERT_TRUE(IsOk(service_->revertActiveSessions())); in TEST_F()
2357 ASSERT_TRUE(IsOk(session)); in TEST_F()
2358 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); 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()
2407 ASSERT_TRUE(IsOk(session)); in TEST_F()
2408 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); 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()
2431 ASSERT_TRUE(IsOk(session)); in TEST_F()
2433 IsOk(session->UpdateStateAndCommit(SessionState::REVERT_IN_PROGRESS))); 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()
2464 ASSERT_TRUE(IsOk(session)); in TEST_F()
2465 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::SUCCESS))); in TEST_F()
2467 ASSERT_TRUE(IsOk(service_->resumeRevertIfNeeded())); in TEST_F()
2471 ASSERT_TRUE(IsOk(active_pkgs)); in TEST_F()
2476 ASSERT_TRUE(IsOk(service_->getSessions(&sessions))); in TEST_F()
2489 ASSERT_TRUE(IsOk(session)); in TEST_F()
2490 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); in TEST_F()
2492 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2494 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(53, &session_info))); in TEST_F()
2506 ASSERT_TRUE(IsOk(session)); in TEST_F()
2507 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::REVERT_FAILED))); in TEST_F()
2509 ASSERT_FALSE(IsOk(service_->revertActiveSessions())); in TEST_F()
2511 ASSERT_TRUE(IsOk(service_->getStagedSessionInfo(17239, &session_info))); in TEST_F()
2523 ASSERT_TRUE(IsOk(session)); in TEST_F()
2524 ASSERT_TRUE(IsOk(session->UpdateStateAndCommit(SessionState::ACTIVATED))); 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()
2897 ASSERT_TRUE(IsOk(service_->activatePackage(installer_->test_installed_file))) 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()
3084 IsOk(service_->calculateSizeForCompressedApex(empty_list, &result))); in TEST_F()
3101 ASSERT_TRUE(IsOk( 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()
3130 ASSERT_TRUE(IsOk(files)); in TEST_F()
3138 ASSERT_TRUE(IsOk(service_->reserveSpaceForCompressedApex(empty_list))); in TEST_F()
3140 ASSERT_TRUE(IsOk(files)); in TEST_F()