Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/device/generic/opengl-transport/host/commands/emugen/
DApiGen.cpp71 FILE *fp = fopen(filename.c_str(), "wt"); in genProcTypes()
73 perror(filename.c_str()); in genProcTypes()
78 const char* basename = m_basename.c_str(); in genProcTypes()
94 … fprintf(fp, " (%s_APIENTRY *%s_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
112 … fprintf(fp, " (%s_APIENTRY *%s_dec_%s_proc_t) (", basename, e->name().c_str(), sideString(side)); in genProcTypes()
132 FILE *fp = fopen(filename.c_str(), "wt"); in genFuncTable()
134 perror(filename.c_str()); in genFuncTable()
139 fprintf(fp, "#ifndef __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
140 fprintf(fp, "#define __%s_%s_ftable_t_h\n", m_basename.c_str(), sideString(side)); in genFuncTable()
142 fprintf(fp, "static const struct _%s_funcs_by_name {\n", m_basename.c_str()); in genFuncTable()
[all …]
DEntryPoint.cpp69 field.c_str(), in parse()
70 error.c_str()); in parse()
76 fprintf(stderr, "UNKNOWN retval: %s\n", linestr.c_str()); in parse()
105 field.c_str(), in parse()
106 error.c_str()); in parse()
112 fprintf(stderr, "%d: Unknown type: %s\n", lc, vartype.c_str()); in parse()
134 m_retval.type()->name().c_str(), in print()
135 name_prefix.c_str(), in print()
136 m_name.c_str(), in print()
137 name_suffix.c_str()); in print()
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/unittest/
Dservice_test.cpp65 …std::ofstream offile = modem::DeviceConfig::open_ofstream_crossplat(icfilename.c_str(), std::ofstr… in SetUpTestSuite()
72 ::setenv("CUTTLEFISH_CONFIG_FILE", config_file.c_str(), 1); in SetUpTestSuite()
243 ASSERT_STREQ(response[0].c_str(), expects[0]); in TEST_F()
244 ASSERT_STREQ(response[1].c_str(), expects[1]); in TEST_F()
257 ASSERT_STREQ(response[0].c_str(), (*expects_iter).c_str()); in TEST_F()
276 ASSERT_STREQ(response[0].c_str(), (*expects_iter).c_str()); in TEST_F()
288 ASSERT_STREQ(response[0].c_str(),expect); in TEST_F()
298 ASSERT_STREQ(response[0].c_str(),expect); in TEST_F()
319 ASSERT_STREQ(response[0].c_str(), (*expects_iter).c_str()); in TEST_F()
357 ASSERT_STREQ(response[0].c_str(),expect); in TEST_F()
[all …]
/device/google/gs-common/storage/
Ddump_storage.cpp38 system(cmd.c_str()); in read_buffer()
48 system(cmd.c_str()); in read_buffer()
57 system(cmd.c_str()); in read_buffer()
89 opendir(ufs_err_stats_path.c_str()), closedir); in main()
94 if (!strcmp(ufs_err_stats_path.c_str(), ".") in main()
95 || !strcmp(ufs_err_stats_path.c_str(), "..")) in main()
100 err_stat_path.append(bootdevice.c_str()); in main()
102 err_stat_path.append(ufs_err_stats_path.c_str()); in main()
107 printf("%s:%s\n", ufs_err_stats_path.c_str(), in main()
108 err_stat_atom.c_str()); in main()
[all …]
/device/google/zuma/usb/usb/
DUsb.cpp147 displayPortPartnerPath.c_str()); in enableUsbData()
150 displayPortPartnerPath.c_str()); in enableUsbData()
183 displayPortPartnerPath.c_str()); in enableUsbData()
186 displayPortPartnerPath.c_str()); in enableUsbData()
206 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbData()
240 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbDataWhileDocked()
266 ALOGE("notifyTransactionStatus error %s", ret.getDescription().c_str()); in resetUsbPort()
348 if (ReadFileToString(path.c_str(), &reasons)) { in queryNonCompliantChargerStatus()
349 std::vector<string> reasonsList = Tokenize(reasons.c_str(), "[], \n\0"); in queryNonCompliantChargerStatus()
351 if (!strncmp(reason.c_str(), kComplianceWarningDebugAccessory, in queryNonCompliantChargerStatus()
[all …]
/device/google/zumapro/usb/usb/
DUsb.cpp167 displayPortPartnerPath.c_str()); in enableUsbData()
170 displayPortPartnerPath.c_str()); in enableUsbData()
203 displayPortPartnerPath.c_str()); in enableUsbData()
206 displayPortPartnerPath.c_str()); in enableUsbData()
226 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbData()
260 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbDataWhileDocked()
286 ALOGE("notifyTransactionStatus error %s", ret.getDescription().c_str()); in resetUsbPort()
356 if (ReadFileToString(path.c_str(), &reasons)) { in queryNonCompliantChargerStatus()
357 std::vector<string> reasonsList = Tokenize(reasons.c_str(), "[], \n\0"); in queryNonCompliantChargerStatus()
359 if (!strncmp(reason.c_str(), kComplianceWarningDebugAccessory, in queryNonCompliantChargerStatus()
[all …]
/device/google/gs201/usb/gadget/
DUsbGadget.cpp114 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.getDescription().c_str()); in getCurrentUsbFunctions()
124 ALOGI("current USB speed is %s", current_speed.c_str()); in getUsbSpeed()
148 ALOGE("Call to getUsbSpeedCb failed %s", ret.getDescription().c_str()); in getUsbSpeed()
174 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
183 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
193 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
208 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
217 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
226 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
241 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/zuma/dumpstate/
Ddump_power.cpp139 printf("\n\n%s\n", fileLocation.c_str()); in readContentsOfDir()
143 printf("%s\n", content.c_str()); in readContentsOfDir()
167 dumpFileContent("Power supply property tcpm", fullPath.c_str()); in dumpTcpmPsyUevent()
302 printf("%s\n", content.c_str()); in dumpTcpc()
400 printf("%s: %s", file.c_str(), content.c_str()); in dumpBatteryDefend()
415 DIR *dir = opendir(debugfs.c_str()); in printValuesOfDirectory()
419 printTitle((debugfs + std::string(strMatch) + "/" + std::string(info)).c_str()); in printValuesOfDirectory()
434 printf("%s:\n%s", fileDirectory.c_str(), content.c_str()); in printValuesOfDirectory()
463 dumpFileContent(chg_reg_dump_title.c_str(), chg_reg_dump_file); in dumpChg()
472 dumpFileContent(pmic_reg_dump_title.c_str(), pmic_reg_dump_file.c_str()); in dumpChg()
[all …]
/device/google/zumapro/usb/gadget/
DUsbGadget.cpp115 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.getDescription().c_str()); in getCurrentUsbFunctions()
125 ALOGI("current USB speed is %s", current_speed.c_str()); in getUsbSpeed()
149 ALOGE("Call to getUsbSpeedCb failed %s", ret.getDescription().c_str()); in getUsbSpeed()
175 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
184 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
194 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
209 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
218 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
227 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
242 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/zumapro/dumpstate/
Ddump_power.cpp141 printf("\n\n%s\n", fileLocation.c_str()); in readContentsOfDir()
145 printf("%s\n", content.c_str()); in readContentsOfDir()
295 printf("%s\n", content.c_str()); in dumpTcpc()
384 printf("%s: %s", file.c_str(), content.c_str()); in dumpBatteryDefend()
399 DIR *dir = opendir(debugfs.c_str()); in printValuesOfDirectory()
403 printTitle((debugfs + std::string(strMatch) + "/" + std::string(info)).c_str()); in printValuesOfDirectory()
418 printf("%s:\n%s", fileDirectory.c_str(), content.c_str()); in printValuesOfDirectory()
451 dumpFileContent(chg_reg_dump_title.c_str(), chg_reg_dump_file); in dumpChg()
454 if (isValidDir(pmic_bus.c_str())) { in dumpChg()
468 dumpFileContent(pmic_reg_dump_title.c_str(), pmic_reg_dump.c_str()); in dumpChg()
[all …]
/device/google/zuma/usb/gadget/
DUsbGadget.cpp134 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.getDescription().c_str()); in getCurrentUsbFunctions()
144 ALOGI("current USB speed is %s", current_speed.c_str()); in getUsbSpeed()
168 ALOGE("Call to getUsbSpeedCb failed %s", ret.getDescription().c_str()); in getUsbSpeed()
194 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
203 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
213 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
228 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
237 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
246 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
261 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/trout/hal/sensors/2.1/
Diio_utils.cpp81 if (stat(name.c_str(), &sb) == -1) { in sysfs_opendir()
86 DIR* tmp = opendir(name.c_str()); in sysfs_opendir()
98 FilePtr fp = {fopen(f.c_str(), "r+"), fclose}; in sysfs_write_val()
101 fprintf(fp.get(), fmt.c_str(), value); in sysfs_write_val()
118 FilePtr fp = {fopen(f.c_str(), "r"), fclose}; in sysfs_read_val()
121 const int ret = fscanf(fp.get(), fmt.c_str(), value); in sysfs_read_val()
145 return stat(filename.c_str(), &info); in check_file()
177 char* pch = strtok_r(const_cast<char*>(line.c_str()), " ,", &rest); in get_sampling_frequency_available()
205 char* pch = strtok_r(const_cast<char*>(line.c_str()), " ", &rest); in get_sensor_range()
211 *resolution = atof(range_avail[1].c_str()); in get_sensor_range()
[all …]
/device/google/gs101/usb/gadget/
DUsbGadget.cpp114 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.getDescription().c_str()); in getCurrentUsbFunctions()
124 ALOGI("current USB speed is %s", current_speed.c_str()); in getUsbSpeed()
148 ALOGE("Call to getUsbSpeedCb failed %s", ret.getDescription().c_str()); in getUsbSpeed()
174 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
183 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
193 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
208 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
217 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
226 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
241 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/barbet/usb/gadget/
DUsbGadget.cpp53 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.description().c_str()); in getCurrentUsbFunctions()
80 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
92 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
108 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
124 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
133 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
141 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
161 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
170 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
178 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/redfin/usb/gadget/
DUsbGadget.cpp53 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.description().c_str()); in getCurrentUsbFunctions()
80 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
92 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
108 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
124 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
133 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
141 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
161 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
170 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
178 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/coral/usb/gadget/
DUsbGadget.cpp53 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.description().c_str()); in getCurrentUsbFunctions()
80 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
92 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
108 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
124 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
133 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
141 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
159 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
168 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
176 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/sunfish/usb/gadget/
DUsbGadget.cpp53 ALOGE("Call to getCurrentUsbFunctionsCb failed %s", ret.description().c_str()); in getCurrentUsbFunctions()
80 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
92 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
108 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
124 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
133 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
141 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
161 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
170 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
178 ALOGE("Invalid vendorFunctions set: %s", vendorFunctions.c_str()); in validateAndSetVidPid()
[all …]
/device/google/barbet/dumpstate/
DDumpstateDevice.cpp76 int fdSrc = open(srcFile.c_str(), O_RDONLY); in copyFile()
78 ALOGD("Failed to open source file %s\n", srcFile.c_str()); in copyFile()
82 int fdDest = open(destFile.c_str(), O_WRONLY | O_CREAT, 0666); in copyFile()
84 ALOGD("Failed to open destination file %s\n", destFile.c_str()); in copyFile()
89 ALOGD("Copying %s to %s\n", srcFile.c_str(), destFile.c_str()); in copyFile()
152 DIR *dirp = opendir(srcDir.c_str()); in createTarFile()
154 ALOGD("Unable to open folder %s\n", srcDir.c_str()); in createTarFile()
158 int fdTar = open(tarFile.c_str(), O_WRONLY | O_CREAT, 0666); in createTarFile()
160 ALOGD("Unable to open file %s\n", tarFile.c_str()); in createTarFile()
165 ALOGD("Creating tar file %s\n", tarFile.c_str()); in createTarFile()
[all …]
/device/google/redfin/dumpstate/
DDumpstateDevice.cpp74 int fdSrc = open(srcFile.c_str(), O_RDONLY); in copyFile()
76 ALOGD("Failed to open source file %s\n", srcFile.c_str()); in copyFile()
80 int fdDest = open(destFile.c_str(), O_WRONLY | O_CREAT, 0666); in copyFile()
82 ALOGD("Failed to open destination file %s\n", destFile.c_str()); in copyFile()
87 ALOGD("Copying %s to %s\n", srcFile.c_str(), destFile.c_str()); in copyFile()
150 DIR *dirp = opendir(srcDir.c_str()); in createTarFile()
152 ALOGD("Unable to open folder %s\n", srcDir.c_str()); in createTarFile()
156 int fdTar = open(tarFile.c_str(), O_WRONLY | O_CREAT, 0666); in createTarFile()
158 ALOGD("Unable to open file %s\n", tarFile.c_str()); in createTarFile()
163 ALOGD("Creating tar file %s\n", tarFile.c_str()); in createTarFile()
[all …]
/device/google/sunfish/dumpstate/
DDumpstateDevice.cpp75 int fdSrc = open(srcFile.c_str(), O_RDONLY); in copyFile()
77 ALOGD("Failed to open source file %s\n", srcFile.c_str()); in copyFile()
81 int fdDest = open(destFile.c_str(), O_WRONLY | O_CREAT, 0666); in copyFile()
83 ALOGD("Failed to open destination file %s\n", destFile.c_str()); in copyFile()
88 ALOGD("Copying %s to %s\n", srcFile.c_str(), destFile.c_str()); in copyFile()
151 DIR *dirp = opendir(srcDir.c_str()); in createTarFile()
153 ALOGD("Unable to open folder %s\n", srcDir.c_str()); in createTarFile()
157 int fdTar = open(tarFile.c_str(), O_WRONLY | O_CREAT, 0666); in createTarFile()
159 ALOGD("Unable to open file %s\n", tarFile.c_str()); in createTarFile()
164 ALOGD("Creating tar file %s\n", tarFile.c_str()); in createTarFile()
[all …]
/device/google/gs201/usb/usb/
DUsb.cpp182 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbData()
216 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbDataWhileDocked()
242 ALOGE("notifyTransactionStatus error %s", ret.getDescription().c_str()); in resetUsbPort()
309 if (ReadFileToString(path.c_str(), &reasons)) { in queryNonCompliantChargerStatus()
310 std::vector<string> reasonsList = Tokenize(reasons.c_str(), "[], \n\0"); in queryNonCompliantChargerStatus()
312 if (!strncmp(reason.c_str(), kComplianceWarningDebugAccessory, in queryNonCompliantChargerStatus()
317 if (!strncmp(reason.c_str(), kComplianceWarningBC12, in queryNonCompliantChargerStatus()
322 if (!strncmp(reason.c_str(), kComplianceWarningMissingRp, in queryNonCompliantChargerStatus()
327 if (!strncmp(reason.c_str(), kComplianceWarningOther, in queryNonCompliantChargerStatus()
329 !strncmp(reason.c_str(), kComplianceWarningInputPowerLimited, in queryNonCompliantChargerStatus()
[all …]
/device/google/coral/dumpstate/
DDumpstateDevice.cpp77 int fdSrc = open(srcFile.c_str(), O_RDONLY); in copyFile()
79 ALOGD("Failed to open source file %s\n", srcFile.c_str()); in copyFile()
83 int fdDest = open(destFile.c_str(), O_WRONLY | O_CREAT, 0666); in copyFile()
85 ALOGD("Failed to open destination file %s\n", destFile.c_str()); in copyFile()
90 ALOGD("Copying %s to %s\n", srcFile.c_str(), destFile.c_str()); in copyFile()
153 DIR *dirp = opendir(srcDir.c_str()); in createTarFile()
155 ALOGD("Unable to open folder %s\n", srcDir.c_str()); in createTarFile()
159 int fdTar = open(tarFile.c_str(), O_WRONLY | O_CREAT, 0666); in createTarFile()
161 ALOGD("Unable to open file %s\n", tarFile.c_str()); in createTarFile()
166 ALOGD("Creating tar file %s\n", tarFile.c_str()); in createTarFile()
[all …]
/device/google/gs101/usb/usb/
DUsb.cpp164 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbData()
198 ALOGE("notifyEnableUsbDataStatus error %s", ret.getDescription().c_str()); in enableUsbDataWhileDocked()
224 ALOGE("notifyTransactionStatus error %s", ret.getDescription().c_str()); in resetUsbPort()
360 if (ReadFileToString(path.c_str(), &reasons)) { in queryNonCompliantChargerStatus()
361 std::vector<string> reasonsList = Tokenize(reasons.c_str(), "[], \n\0"); in queryNonCompliantChargerStatus()
363 if (!strncmp(reason.c_str(), kComplianceWarningDebugAccessory, in queryNonCompliantChargerStatus()
368 if (!strncmp(reason.c_str(), kComplianceWarningBC12, in queryNonCompliantChargerStatus()
373 if (!strncmp(reason.c_str(), kComplianceWarningMissingRp, in queryNonCompliantChargerStatus()
378 if (!strncmp(reason.c_str(), kComplianceWarningOther, in queryNonCompliantChargerStatus()
380 !strncmp(reason.c_str(), kComplianceWarningInputPowerLimited, in queryNonCompliantChargerStatus()
[all …]
/device/google/gs-common/camera/
Ddump_camera.cpp37 if (mkdir(cameraDestDir.c_str(), 0777) == -1) { in main()
38 printf("Unable to create folder: %s\n", cameraDestDir.c_str()); in main()
44 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 10, "session-ended-"); in main()
45 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 10, "multicam-"); in main()
46 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 5, "high-drop-rate-"); in main()
47 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 5, "watchdog-"); in main()
48 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 5, "camera-ended-"); in main()
49 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 5, "fatal-error-"); in main()
50 dumpLogs(kGraphStateDumpDir.data(), cameraDestDir.c_str(), 5, in main()
52 dumpLogs(kCameraLogDir.data(), cameraDestDir.c_str(), 10, in main()
/device/google/gs-common/gps/dump/
Ddump_gps.cpp39 if (mkdir(outputDir.c_str(), 0777) == -1) { in main()
40 printf("Unable to create folder: %s\n", outputDir.c_str()); in main()
44 dumpLogs(GPS_TMP_LOG_DIRECTORY, outputDir.c_str(), 1, GPS_LOG_PREFIX); in main()
45 dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), 3, GPS_MCU_LOG_PREFIX); in main()
46 dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), maxFileNum, GPS_LOG_PREFIX); in main()
47 dumpLogs(GPS_MALLOC_LOG_DIRECTORY, outputDir.c_str(), 1, GPS_MALLOC_LOG_PREFIX); in main()
49 copyFile(GPS_VENDOR_CHIP_INFO, concatenatePath(outputDir.c_str(), "chip.info").c_str()); in main()
51 dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), maxFileNum, GPS_RAWLOG_PREFIX); in main()
52 dumpLogs(GPS_LOG_DIRECTORY, outputDir.c_str(), 18, GPS_MEMDUMP_LOG_PREFIX); in main()

12345678910>>...14