Home | History | Annotate | Download | only in perfprofd

Lines Matching full:c_str

196   if (access(config.getStringValue("config_directory").c_str(), F_OK) == -1) {
198 config.getStringValue("config_directory").c_str(), strerror(errno));
206 if (access(semaphore_filepath.c_str(), F_OK) == -1) {
212 if (access(pp.c_str(), R_OK|X_OK) == -1) {
213 W_ALOGW("unable to access/execute %s", pp.c_str());
349 DIR* dir = opendir(psdir.c_str());
351 W_ALOGE("Failed to open dir %s (%s)", psdir.c_str(), strerror(errno));
361 if (android::base::ReadFileToString(online_path.c_str(), &contents) &&
362 sscanf(contents.c_str(), "%d", &value) == 1) {
381 int rc = sscanf(pscontents.c_str(), "cpu %lu %lu %lu %lu %lu %lu %lu",
430 sscanf(load.c_str(), "%lf", &fload) == 1) {
458 bool ison = (strstr(disp.c_str(), "PowerManagerService.Display") == 0);
543 FILE *efp = fopen(perf_stderr_path.c_str(), "w");
548 W_ALOGW("unable to open %s for writing", perf_stderr_path.c_str());
555 argv[slot++] = perf_path.c_str();
560 argv[slot++] = data_file_path.c_str();
565 argv[slot++] = p_str.c_str();
577 argv[slot++] = d_str.c_str();
621 DIR* dir = opendir(dest_dir.c_str());
627 remove(file_path.c_str());
633 dest_dir.c_str());
654 FILE *fp = fopen(processed_file_path.c_str(), "r");
659 "%s/perf.data.encoded.%d", dest_dir.c_str(),seq).c_str()) == 0) {
667 fp = fopen(produced_file_path.c_str(), "r");
684 fp = fopen(produced_file_path.c_str(), "w");
686 W_ALOGW("Cannot write %s", produced_file_path.c_str());
694 chmod(produced_file_path.c_str(),
729 if (stat(data_file_path.c_str(), &statb) == 0) { // if file exists...
730 if (unlink(data_file_path.c_str())) { // then try to remove
761 PROFILE_RESULT ret = invoke_perf(perf_path.c_str(),
776 "%s.encoded.%d", data_file_path.c_str(), seq);
777 return encode_to_proto(data_file_path, path.c_str(), config, cpu_utilization);
837 W_ALOGE("unable to write to %s", oomscore_path.str().c_str());