Home | History | Annotate | Download | only in installd

Lines Matching full:c_str

138         return StringPrintf("%s/%s", GetOtaDirectoryPrefix().c_str(), target_slot_.c_str());
227 int result = setenv(ASEC_MOUNTPOINT_ENV_NAME, asec_mountpoint_.c_str(), 0);
233 if (!init_globals_from_data_and_root(GetAndroidData().c_str(), GetAndroidRoot().c_str())) {
240 if (access(GetOtaDirectoryPrefix().c_str(), R_OK) < 0) {
296 environ_.push_back(StringPrintf("BOOTCLASSPATH=%s", boot_classpath_.c_str()));
297 environ_.push_back(StringPrintf("ANDROID_DATA=%s", GetOTADataDirectory().c_str()));
298 environ_.push_back(StringPrintf("ANDROID_ROOT=%s", android_root_.c_str()));
301 putenv(const_cast<char*>(e.c_str()));
320 if (access(art_path.c_str(), F_OK) == 0 && access(oat_path.c_str(), F_OK) == 0) {
333 if (access(dalvik_cache.c_str(), F_OK) != 0) {
339 if (access(isa_path.c_str(), F_OK) != 0) {
352 if (access(preopted_boot_art_path.c_str(), F_OK) == 0) {
365 if (mkdir(path.c_str(), 0711) == 0) {
384 if (mkdir(path.c_str(), 0711) == 0) {
392 DIR* c_dir = opendir(dir.c_str());
404 std::string file = StringPrintf("%s/%s", dir.c_str(), name);
414 if (unlink(file.c_str()) != 0) {
429 cmd.push_back(StringPrintf("--output-image-file=%s", art_path.c_str()));
452 cmd.push_back(StringPrintf("--image=%s", art_path.c_str()));
454 cmd.push_back(StringPrintf("--dex-file=%s", boot_part.c_str()));
456 cmd.push_back(StringPrintf("--oat-file=%s", oat_path.c_str()));
492 StringPrintf("dalvik.vm.isa.%s.variant", isa).c_str(),
497 StringPrintf("dalvik.vm.isa.%s.features", isa).c_str(),
541 if (StartsWith(package_parameters_[kApkPathIndex], android_root_.c_str())) {
548 if (access(path.c_str(), F_OK) == 0) {
602 const char* program = arg_vector[0].c_str();
606 char* arg_str = const_cast<char*>(arg.c_str());
628 command_line.c_str(), strerror(errno));
638 command_line.c_str(), pid, got_pid, strerror(errno));
643 command_line.c_str());
693 out.push_back(StringPrintf("%s%s", prefix, value->c_str()));
763 file_name.c_str(),
764 gOps.GetTargetSlot().c_str());
792 path_component.c_str(),
794 name_component.c_str(),
795 gOps.GetTargetSlot().c_str());
800 strcpy(path, new_path.c_str());
822 gOps.GetOTADataDirectory().c_str(),
825 from_src.c_str(),
831 strcpy(path, assembled_path.c_str());