Lines Matching full:c_str
126 path.c_str(), product, img_name);
230 printf("%s\tfastboot", serial.c_str());
232 printf("%-22s fastboot", serial.c_str());
277 error.c_str());
293 fprintf(stderr, "error: %s\n", error.c_str());
569 int fd = open(marker_file.c_str(), O_CREAT | O_WRONLY | O_CLOEXEC, 0666);
572 marker_file.c_str(), errno, strerror(errno));
581 if (unlink(marker_file.c_str()) == -1) {
583 marker_file.c_str(), errno, strerror(errno));
586 if (rmdir(dir.c_str()) == -1) {
588 dir.c_str(), errno, strerror(errno));
756 if (!android::base::ParseUint(max_download_size.c_str(), &limit)) {
757 fprintf(stderr, "couldn't parse max-download-size '%s'\n", max_download_size.c_str());
908 if (!android::base::ParseInt(var.c_str(), &count)) return 0;
966 fprintf(stderr, "Slot %s does not exist. supported slots are:\n", slot.c_str());
1000 part.c_str(), slot.c_str());
1017 die("Could not check if partition %s has slot.", part.c_str());
1060 fb_set_active((separator + slot_override).c_str());
1064 fb_set_active((separator + current_slot).c_str());
1105 const char* slot = slot_override.c_str();
1108 slot = secondary.c_str();
1128 if (erase_first && needs_erase(transport, partition.c_str())) {
1129 fb_queue_erase(partition.c_str());
1131 flash_buf(partition.c_str(), &buf);
1155 void* data = load_file(fs_sig.c_str(), &sz);
1171 void* data = load_file(fname.c_str(), &sz);
1194 if (!skip_secondary) slot = secondary.c_str();
1196 slot = slot_override.c_str();
1201 if (load_buf(transport, fname.c_str(), &buf)) {
1208 if (erase_first && needs_erase(transport, partition.c_str())) {
1209 fb_queue_erase(partition.c_str());
1211 flash_buf(partition.c_str(), &buf);
1330 partition, partition_type.c_str(), type_override);
1342 partition, partition_size.c_str(), size_override);
1356 fprintf(stderr, "File system type %s not supported.\n", partition_type.c_str());
1360 partition_type.c_str());
1365 if (!android::base::ParseInt(partition_size.c_str(), &size)) {
1366 fprintf(stderr, "Couldn't parse partition size '%s'.\n", partition_size.c_str());
1585 partition_type.c_str());
1588 fb_queue_erase(partition.c_str());
1620 if (erase_first && needs_erase(transport, partition.c_str())) {
1621 fb_queue_erase(partition.c_str());
1623 fb_perform_format(transport, partition.c_str(), 0,
1688 if (erase_first && needs_erase(transport, partition.c_str())) {
1689 fb_queue_erase(partition.c_str());
1691 do_flash(transport, partition.c_str(), fname.c_str());
1711 fb_queue_flash(partition.c_str(), data, sz);
1739 fb_set_active(slot.c_str());
1788 fb_set_active(next_active.c_str());