Lines Matching refs:cmd

309     std::vector<std::string> cmd;  in readPartitions()  local
310 cmd.push_back(kSgdiskPath); in readPartitions()
311 cmd.push_back("--android-dump"); in readPartitions()
312 cmd.push_back(mDevPath); in readPartitions()
315 status_t res = ForkExecvp(cmd, &output); in readPartitions()
420 std::vector<std::string> cmd; in partitionPublic() local
421 cmd.push_back(kSgdiskPath); in partitionPublic()
422 cmd.push_back("--zap-all"); in partitionPublic()
423 cmd.push_back(mDevPath); in partitionPublic()
427 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic()
433 cmd.clear(); in partitionPublic()
434 cmd.push_back(kSgdiskPath); in partitionPublic()
435 cmd.push_back("--new=0:0:-0"); in partitionPublic()
436 cmd.push_back("--typecode=0:0c00"); in partitionPublic()
437 cmd.push_back("--gpttombr=1"); in partitionPublic()
438 cmd.push_back(mDevPath); in partitionPublic()
440 if ((res = ForkExecvp(cmd)) != 0) { in partitionPublic()
459 std::vector<std::string> cmd; in partitionMixed() local
460 cmd.push_back(kSgdiskPath); in partitionMixed()
461 cmd.push_back("--zap-all"); in partitionMixed()
462 cmd.push_back(mDevPath); in partitionMixed()
466 if ((res = ForkExecvp(cmd)) != 0) { in partitionMixed()
497 cmd.clear(); in partitionMixed()
498 cmd.push_back(kSgdiskPath); in partitionMixed()
509 cmd.push_back(StringPrintf("--new=0:0:+%" PRId64 "M", splitMb)); in partitionMixed()
510 cmd.push_back(StringPrintf("--typecode=0:%s", kGptBasicData)); in partitionMixed()
511 cmd.push_back("--change-name=0:shared"); in partitionMixed()
517 cmd.push_back("--new=0:0:+16M"); in partitionMixed()
518 cmd.push_back(StringPrintf("--typecode=0:%s", kGptAndroidMeta)); in partitionMixed()
519 cmd.push_back("--change-name=0:android_meta"); in partitionMixed()
522 cmd.push_back("--new=0:0:-0"); in partitionMixed()
523 cmd.push_back(StringPrintf("--typecode=0:%s", kGptAndroidExpand)); in partitionMixed()
524 cmd.push_back(StringPrintf("--partition-guid=0:%s", partGuid.c_str())); in partitionMixed()
525 cmd.push_back("--change-name=0:android_expand"); in partitionMixed()
527 cmd.push_back(mDevPath); in partitionMixed()
529 if ((res = ForkExecvp(cmd)) != 0) { in partitionMixed()