Lines Matching refs:argv_str
199 std::vector<std::string> argv_str; in ProcessProfiles() local
200 argv_str.push_back(profman_cmd); in ProcessProfiles()
202 argv_str.push_back("--profile-file-fd=" + std::to_string(profiles_fd[k])); in ProcessProfiles()
204 argv_str.push_back("--reference-profile-file-fd=" + std::to_string(reference_profile_fd)); in ProcessProfiles()
205 argv_str.insert(argv_str.end(), extra_args.begin(), extra_args.end()); in ProcessProfiles()
208 return ExecAndReturnCode(argv_str, &error); in ProcessProfiles()
213 std::vector<std::string> argv_str; in GenerateTestProfile() local
214 argv_str.push_back(profman_cmd); in GenerateTestProfile()
215 argv_str.push_back("--generate-test-profile=" + filename); in GenerateTestProfile()
217 return ExecAndReturnCode(argv_str, &error); in GenerateTestProfile()
222 std::vector<std::string> argv_str; in GenerateTestProfileWithInputDex() local
223 argv_str.push_back(profman_cmd); in GenerateTestProfileWithInputDex()
224 argv_str.push_back("--generate-test-profile=" + filename); in GenerateTestProfileWithInputDex()
225 argv_str.push_back("--generate-test-profile-seed=0"); in GenerateTestProfileWithInputDex()
226 argv_str.push_back("--apk=" + GetLibCoreDexFileNames()[0]); in GenerateTestProfileWithInputDex()
227 argv_str.push_back("--dex-location=" + GetLibCoreDexFileNames()[0]); in GenerateTestProfileWithInputDex()
229 return ExecAndReturnCode(argv_str, &error); in GenerateTestProfileWithInputDex()
241 std::vector<std::string> argv_str; in CreateProfile() local
242 argv_str.push_back(profman_cmd); in CreateProfile()
243 argv_str.push_back("--create-profile-from=" + class_names_file.GetFilename()); in CreateProfile()
244 argv_str.push_back("--reference-profile-file=" + filename); in CreateProfile()
245 argv_str.push_back("--apk=" + dex_location); in CreateProfile()
246 argv_str.push_back("--dex-location=" + dex_location); in CreateProfile()
248 EXPECT_EQ(ExecAndReturnCode(argv_str, &error), 0); in CreateProfile()
257 std::vector<std::string> argv_str; in RunProfman() local
258 argv_str.push_back(profman_cmd); in RunProfman()
259 argv_str.insert(argv_str.end(), extra_args.begin(), extra_args.end()); in RunProfman()
260 argv_str.push_back("--profile-file=" + filename); in RunProfman()
261 argv_str.push_back("--apk=" + GetLibCoreDexFileNames()[0]); in RunProfman()
262 argv_str.push_back("--dex-location=" + GetLibCoreDexFileNames()[0]); in RunProfman()
263 argv_str.push_back("--dump-output-to-fd=" + std::to_string(GetFd(output_file))); in RunProfman()
265 EXPECT_EQ(ExecAndReturnCode(argv_str, &error), 0); in RunProfman()
1304 std::vector<std::string> argv_str; in TEST_F() local
1305 argv_str.push_back(profman_cmd); in TEST_F()
1306 argv_str.push_back("--profile-file-fd=" + std::to_string(profile1.GetFd())); in TEST_F()
1307 argv_str.push_back("--profile-file-fd=" + std::to_string(profile2.GetFd())); in TEST_F()
1308 argv_str.push_back("--reference-profile-file-fd=" + std::to_string(reference_profile.GetFd())); in TEST_F()
1309 argv_str.push_back("--apk-fd=" + std::to_string(apk_fd.get())); in TEST_F()
1312 EXPECT_EQ(ExecAndReturnCode(argv_str, &error), ProfileAssistant::kCompile) << error; in TEST_F()
1382 std::vector<std::string> argv_str; in TEST_F() local
1383 argv_str.push_back(profman_cmd); in TEST_F()
1384 argv_str.push_back("--profile-file-fd=" + std::to_string(profile1.GetFd())); in TEST_F()
1385 argv_str.push_back("--reference-profile-file-fd=" + std::to_string(reference_profile.GetFd())); in TEST_F()
1386 argv_str.push_back("--apk-fd=" + std::to_string(apk_fd.get())); in TEST_F()
1387 argv_str.push_back("--copy-and-update-profile-key"); in TEST_F()
1390 ASSERT_EQ(ExecAndReturnCode(argv_str, &error), 0) << error; in TEST_F()
1504 std::vector<std::string> argv_str; in TEST_F() local
1505 argv_str.push_back(profman_cmd); in TEST_F()
1506 argv_str.push_back("--profile-file-fd=" + std::to_string(profile.GetFd())); in TEST_F()
1507 argv_str.push_back("--reference-profile-file-fd=" + std::to_string(reference_profile.GetFd())); in TEST_F()
1508 argv_str.push_back("--apk-fd=" + std::to_string(apk_fd.get())); in TEST_F()
1509 argv_str.push_back("--force-merge"); in TEST_F()
1510 argv_str.push_back("--boot-image-merge"); in TEST_F()
1513 EXPECT_EQ(ExecAndReturnCode(argv_str, &error), ProfileAssistant::kSuccess) << error; in TEST_F()