/packages/modules/StatsD/statsd/src/utils/ |
D | DbUtils.cpp | 100 string result = StringPrintf("CREATE TABLE IF NOT EXISTS %s%s", TABLE_NAME_PREFIX.c_str(), in getCreateSqlString() 101 reformatMetricId(metricId).c_str()); in getCreateSqlString() 102 result += StringPrintf("(%s INTEGER,%s INTEGER,%s INTEGER,", COLUMN_NAME_ATOM_TAG.c_str(), in getCreateSqlString() 103 COLUMN_NAME_EVENT_ELAPSED_CLOCK_NS.c_str(), in getCreateSqlString() 104 COLUMN_NAME_EVENT_WALL_CLOCK_NS.c_str()); in getCreateSqlString() 140 if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK) { in createTableIfNeeded() 147 sqlite3_exec(db, zSql.c_str(), nullptr, nullptr, &error); in createTableIfNeeded() 159 if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK) { in isEventCompatible() 163 string zSql = StringPrintf("PRAGMA table_info(metric_%s);", reformatMetricId(metricId).c_str()); in isEventCompatible() 169 ALOGE("Failed to check table schema for metric %lld: %s", (long long)metricId, err.c_str()); in isEventCompatible() [all …]
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | arguments_parser.cpp | 30 AKLOGE("minCount = maxCount = 0 for %s.", mArgumentSpecs[i].getName().c_str()); in validateSpecs() 36 mArgumentSpecs[i].getName().c_str()v ); in validateSpecs() 41 mArgumentSpecs[i].getName().c_str()); in validateSpecs() 51 printf("Usage: %s", commandName.c_str()); in printUsage() 55 printf(" [-%s", optionName.c_str()); in printUsage() 57 printf(" <%s>", spec.getValueName().c_str()); in printUsage() 63 printf(" [<%s>]", argSpec.getName().c_str()); in printUsage() 65 printf(" <%s>", argSpec.getName().c_str()); in printUsage() 67 printf(" [<%s>...]", argSpec.getName().c_str()); in printUsage() 69 printf(" <%s>...", argSpec.getName().c_str()); in printUsage() [all …]
|
/packages/modules/adb/client/ |
D | mdnsresponder_client.cpp | 126 &sdref_, 0, interface_index, kDNSServiceProtocol_IPv4, host_target_.c_str(), in ResolvedService() 132 D("DNSServiceGetAddrInfo(sdref=%p, host_target=%s)", sdref_, host_target_.c_str()); in ResolvedService() 147 android::base::StringPrintf("%s.%s", service_name_.c_str(), reg_type_.c_str()), in ConnectSecureWifiDevice() 149 D("Secure connect to %s regtype %s (%s:%hu) : %s", service_name_.c_str(), reg_type_.c_str(), in ConnectSecureWifiDevice() 150 ip_addr_.c_str(), port_, response.c_str()); in ConnectSecureWifiDevice() 219 service_name.c_str(), reg_type.c_str(), ip_addr.c_str(), port); in AddToServiceRegistry() 224 connect_device(android::base::StringPrintf("%s.%s", service_name.c_str(), in AddToServiceRegistry() 225 reg_type.c_str()), in AddToServiceRegistry() 227 D("Connect to %s regtype %s (%s:%hu) : %s", service_name.c_str(), reg_type.c_str(), in AddToServiceRegistry() 228 ip_addr.c_str(), port, response.c_str()); in AddToServiceRegistry() [all …]
|
D | bugreport.cpp | 84 fprintf(stderr, "\t%s\n", line.c_str()); in Done() 101 destination = android::base::StringPrintf("%s%c%s", dest_dir_.c_str(), in Done() 102 OS_PATH_SEPARATOR, dest_file_.c_str()); in Done() 104 std::vector<const char*> srcs{src_file_.c_str()}; in Done() 107 br_->DoSyncPull(srcs, destination.c_str(), false, line_message_.c_str()) ? 0 : 1; in Done() 109 printf("Bug report copied to %s\n", destination.c_str()); in Done() 115 destination.c_str(), src_file_.c_str()); in Done() 215 bugz_output.c_str(), bugz_version.c_str()); in DoIt() 231 bugz_output.c_str(), status); in DoIt() 234 std::sscanf(bugz_version.c_str(), "%d.%d", &bugz_ver_major, &bugz_ver_minor); in DoIt() [all …]
|
/packages/modules/Bluetooth/system/log/src/ |
D | truncating_buffer_test.cc | 32 EXPECT_STREQ(buffer_1.c_str(), "a"); 33 EXPECT_STREQ(buffer_2.c_str(), "ab"); 44 EXPECT_STREQ(buffer_1.c_str(), "α"); 45 EXPECT_STREQ(buffer_2.c_str(), "α"); 46 EXPECT_STREQ(buffer_3.c_str(), "αβ"); 59 EXPECT_STREQ(buffer_1.c_str(), "ພ"); 60 EXPECT_STREQ(buffer_2.c_str(), "ພ"); 61 EXPECT_STREQ(buffer_3.c_str(), "ພ"); 62 EXPECT_STREQ(buffer_4.c_str(), "ພຮ"); 77 EXPECT_STREQ(buffer_1.c_str(), ""); [all …]
|
/packages/providers/MediaProvider/jni/ |
D | com_android_providers_media_FuseDaemon.cpp | 50 const char* utf_string = utf_chars.c_str(); in convert_object_array_to_string_vector() 67 ScopedLocalRef<jstring> path(env, env->NewStringUTF(string_vector.at(i).c_str())); in convert_string_vector_to_object_array() 101 if (!utf_chars_path.c_str()) { in com_android_providers_media_FuseDaemon_start() 111 daemon->Start(std::move(ufd), utf_chars_path.c_str(), uncached_mode, transcoding_relative_paths, in com_android_providers_media_FuseDaemon_start() 135 if (!utf_chars_path.c_str()) { in com_android_providers_media_FuseDaemon_should_open_with_fuse() 140 return daemon->ShouldOpenWithFuse(fd, for_read, utf_chars_path.c_str()); in com_android_providers_media_FuseDaemon_should_open_with_fuse() 161 if (!utf_chars_path.c_str()) { in com_android_providers_media_FuseDaemon_invalidate_fuse_dentry_cache() 167 daemon->InvalidateFuseDentryCache(utf_chars_path.c_str()); in com_android_providers_media_FuseDaemon_invalidate_fuse_dentry_cache() 178 env->NewStringUTF(result->file_path.c_str()), result->should_redact); in com_android_providers_media_FuseDaemon_check_fd_access() 186 if (!utf_chars_path.c_str()) { in com_android_providers_media_FuseDaemon_initialize_device_id() [all …]
|
D | MediaProviderWrapper.cpp | 72 fid = env->GetFieldID(clazz, actual_field_name.c_str(), type); in CacheField() 81 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in insertFileInternal() 92 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in deleteFileInternal() 104 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isDirAccessAllowedInternal() 117 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in isUidAllowedAccessToDataOrObbPathInternal() 131 ScopedLocalRef<jstring> j_path(env, env->NewStringUTF(path.c_str())); in getFilesInDirectoryInternal() 147 if (d_name.c_str() == nullptr) { in getFilesInDirectoryInternal() 151 } else if (d_name.c_str()[0] == '\0') { in getFilesInDirectoryInternal() 163 if (d_name.c_str() == nullptr) { in getFilesInDirectoryInternal() 169 directory_entries.push_back(std::make_shared<DirectoryEntry>(d_name.c_str(), DT_REG)); in getFilesInDirectoryInternal() [all …]
|
/packages/modules/Bluetooth/system/gd/discovery/device/ |
D | bt_property.cc | 66 bt_property_type_text(property.type).c_str(), in bt_property_text() 71 bt_property_type_text(property.type).c_str(), in bt_property_text() 72 ((const RawAddress*)property.val)->ToString().c_str()); in bt_property_text() 80 "type:%s uuids:%s", bt_property_type_text(property.type).c_str(), oss.str().c_str()); in bt_property_text() 85 bt_property_type_text(property.type).c_str(), in bt_property_text() 91 bt_property_type_text(property.type).c_str(), in bt_property_text() 97 bt_property_type_text(property.type).c_str(), in bt_property_text() 98 (((bt_service_record_t*)property.val)->uuid).ToString().c_str(), in bt_property_text() 105 bt_property_type_text(property.type).c_str(), in bt_property_text() 115 "type:%s addrs:%s", bt_property_type_text(property.type).c_str(), oss.str().c_str()); in bt_property_text() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.cpp | 150 ALOGW("Failed to set power policy group(%s): %s", stringValue.c_str(), in onPropertyEvent() 151 ret.error().message().c_str()); in onPropertyEvent() 158 ALOGW("Failed to apply power policy(%s): %s", stringValue.c_str(), in onPropertyEvent() 159 ret.error().message().c_str()); in onPropertyEvent() 279 ret.error().message().c_str()); in setPowerPolicyGroup() 326 ALOGD("Skip %s, CarPowerPolicyServer is ending", actionTitle.c_str()); in runWithService() 394 ALOGW("getPowerComponentState(%s) failed: %s", toString(componentId).c_str(), in getPowerComponentState() 395 errorMsg.c_str()); in getPowerComponentState() 397 errorMsg.c_str()); in getPowerComponentState() 408 ALOGW("%s", errorMsg.c_str()); in registerPowerPolicyChangeCallback() [all …]
|
D | SilentModeHandler.cpp | 122 ALOGI("Now in forced mode: monitoring %s is disabled", mSilentModeHwStateFilename.c_str()); in init() 140 ALOGW("Unregistering %s from SysfsMonitor failed", mSilentModeHwStateFilename.c_str()); in stopMonitoringSilentModeHwState() 152 silentMode.c_str()) in setSilentMode() 153 .c_str()); in setSilentMode() 173 mSilentModeHwStateFilename.c_str()), in dump() 176 mKernelSilentModeFilename.c_str()), in dump() 198 const char* filename = mSilentModeHwStateFilename.c_str(); in startMonitoringSilentModeHwState() 218 ALOGW("Failed to initialize SysfsMonitor: %s", ret.error().message().c_str()); in startMonitoringSilentModeHwState() 222 ALOGW("Failed to register %s to SysfsMonitor: %s", filename, ret.error().message().c_str()); in startMonitoringSilentModeHwState() 241 if (!ReadFileToString(mSilentModeHwStateFilename.c_str(), &buf)) { in handleSilentModeHwStateChange() [all …]
|
/packages/modules/Bluetooth/system/gd/dumpsys/bundler/ |
D | bundler.cc | 89 if (!LoadBinarySchema(filename.c_str(), &string_schema)) { in CreateBinarySchemaBundle() 90 fprintf(stderr, "Unable to load binary schema from filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 95 fprintf(stderr, "Failed verification on binary schema filename:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 101 … fprintf(stderr, "Unable to find root table for binary flatbuffer schema:%s\n", filename.c_str()); in CreateBinarySchemaBundle() 111 fprintf(stdout, "Bundled binary schema file:%s\n", schema->root_table()->name()->c_str()); in CreateBinarySchemaBundle() 151 …n(), namespaces.end(), [fp](const std::string& s) { fprintf(fp, "namespace %s {\n", s.c_str()); }); in WriteHeaderFile() 153 fprintf(fp, "const unsigned char %sdata_[%zu] = {\n", namespace_prefix.c_str(), data_len); in WriteHeaderFile() 168 namespace_prefix.c_str(), in WriteHeaderFile() 169 namespace_prefix.c_str(), in WriteHeaderFile() 170 namespace_prefix.c_str(), in WriteHeaderFile() [all …]
|
/packages/modules/Connectivity/netbpfload/ |
D | loader.cpp | 458 ALOGW("No %s section could be found in elf object", sectionName.c_str()); in getSectionSymNames() 517 ALOGV("Loaded code section %d (%s)", i, name.c_str()); in readCodeSections() 537 ALOGV("Loaded relo section %d (%s)", i, name.c_str()); in readCodeSections() 612 mapName.c_str(), type, fd_type, mapDef.key_size, fd_key_size, mapDef.value_size, in mapMatchesExpectations() 662 ALOGI("skipping map %s which requires bpfloader min ver 0x%05x", mapNames[i].c_str(), in createMaps() 669 ALOGI("skipping map %s which requires bpfloader max ver 0x%05x", mapNames[i].c_str(), in createMaps() 677 mapNames[i].c_str(), kvers, md[i].min_kver); in createMaps() 684 mapNames[i].c_str(), kvers, md[i].max_kver); in createMaps() 691 ALOGI("skipping map %s which is ignored on %s builds", mapNames[i].c_str(), in createMaps() 692 getBuildType().c_str()); in createMaps() [all …]
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_gatt_client_test.cc | 57 gatt_history_callback(base::StringPrintf("%s", a[0].c_str())); in TEST_F() 61 gatt_history_callback(base::StringPrintf("%s", a[2].c_str())); in TEST_F() 66 ASSERT_STREQ(a[0].c_str(), history[0].entry.c_str()); in TEST_F() 67 ASSERT_STREQ(a[1].c_str(), history[1].entry.c_str()); in TEST_F() 68 ASSERT_STREQ(a[2].c_str(), history[2].entry.c_str()); in TEST_F()
|
D | bta_dm_cust_uuid_test.cc | 46 ASSERT_STREQ(uuid1.ToString().c_str(), curr0.custom_uuid.ToString().c_str()); in TEST_F() 49 ASSERT_STREQ(uuid2.ToString().c_str(), curr1.custom_uuid.ToString().c_str()); in TEST_F() 55 ASSERT_STREQ(Uuid::kEmpty.ToString().c_str(), curr0.custom_uuid.ToString().c_str()); in TEST_F() 58 ASSERT_STREQ(Uuid::kEmpty.ToString().c_str(), curr1.custom_uuid.ToString().c_str()); in TEST_F()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | UidProcStatsCollector.cpp | 106 ALOGD("Comm string `%s` not enclosed in brackets", pidStat->comm.c_str()); in parsePidStatLine() 118 ALOGD("Invalid proc pid stat contents: \"%s\"", line.c_str()); in parsePidStatLine() 323 comm.c_str(), startTimeMillis, cpuTimeMillis, totalCpuCycles, totalMajorFaults, in toString() 346 processStats.toString().c_str()); in toString() 368 std::string pidStatPath = StringPrintf((mPath + kStatFileFormat).c_str(), PID_FOR_INIT); in init() 369 bool isPidStatPathAccessible = access(pidStatPath.c_str(), R_OK) == 0; in init() 371 std::string tidStatPath = StringPrintf((mPath + kTaskDirFormat + kStatFileFormat).c_str(), in init() 373 bool isTidStatPathAccessible = access(tidStatPath.c_str(), R_OK) == 0; in init() 375 std::string pidStatusPath = StringPrintf((mPath + kStatusFileFormat).c_str(), PID_FOR_INIT); in init() 376 bool isPidStatusPathAccessible = access(pidStatusPath.c_str(), R_OK) == 0; in init() [all …]
|
/packages/modules/Bluetooth/system/osi/test/ |
D | wakelock_test.cc | 52 char* buffer = const_cast<char*>(tmp_dir_.c_str()); in SetUp() 59 lock_path_fd = creat(lock_path_.c_str(), S_IRWXU); in SetUp() 60 unlock_path_fd = creat(unlock_path_.c_str(), S_IRWXU); in SetUp() 72 unlink(lock_path_.c_str()); in TearDown() 73 unlink(unlock_path_.c_str()); in TearDown() 74 rmdir(tmp_dir_.c_str()); in TearDown() 86 int lock_fd = open(lock_path_.c_str(), O_RDONLY); in IsFileWakeLockAcquired() 89 int unlock_fd = open(unlock_path_.c_str(), O_RDONLY); in IsFileWakeLockAcquired() 141 wakelock_set_paths(lock_path_.c_str(), unlock_path_.c_str()); in TEST_F()
|
/packages/modules/Connectivity/service/jni/ |
D | com_android_server_connectivity_ClatCoordinator.cpp | 150 if (inet_pton(AF_INET, address.c_str(), &ip) != 1) { in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() 163 address.c_str(), prefixlen); in com_android_server_connectivity_ClatCoordinator_selectIpv4Address() 183 if (iface.c_str() == nullptr) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 189 if (inet_pton(AF_INET, addr4.c_str(), &v4) != 1) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 191 addr4.c_str()); in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 196 if (inet_pton(AF_INET6, prefix64.c_str(), &nat64Prefix) != 1) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 197 jniThrowExceptionFmt(env, "java/io/IOException", "Invalid prefix %s", prefix64.c_str()); in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 202 if (net::clat::generateIpv6Address(iface.c_str(), v4, nat64Prefix, &v6, mark)) { in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 204 "Unable to find global source address on %s for %s", iface.c_str(), in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() 205 prefix64.c_str()); in com_android_server_connectivity_ClatCoordinator_generateIpv6Address() [all …]
|
/packages/modules/Bluetooth/system/gd/os/android/ |
D | system_properties.cc | 33 auto value_len = property_get(property.c_str(), value_array.data(), nullptr); in GetSystemProperty() 48 auto ret = property_set(property.c_str(), value.c_str()); in SetSystemProperty() 59 log::info("ro.vendor.build.fingerprint='{}', length={}", value->c_str(), value->length()); in IsRootCanalEnabled() 80 value->c_str(), in GetAndroidVendorReleaseVersion() 86 log::info("value '{}' cannot be parsed to int", value->c_str()); in GetAndroidVendorReleaseVersion() 88 log::info("value '{}' is empty", value->c_str()); in GetAndroidVendorReleaseVersion() 92 log::info("value '{}' length is {}, which is > 1", value->c_str(), value->length()); in GetAndroidVendorReleaseVersion()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcPidDir.cpp | 38 if (mkdir(path.c_str(), 0700) && errno != EEXIST) { in makeDir() 56 const auto& pidDirRes = makeDir(StringPrintf("%s/%" PRIu32, procDirPath.c_str(), it.first)); in populateProcPidDir() 65 std::string path = StringPrintf((procDirPath + kStatFileFormat).c_str(), pid); in populateProcPidDir() 73 std::string path = StringPrintf((procDirPath + kStatusFileFormat).c_str(), pid); in populateProcPidDir() 81 std::string path = StringPrintf((procDirPath + kSmapsRollupFileFormat).c_str(), pid); in populateProcPidDir() 89 std::string path = StringPrintf((procDirPath + kStatmFileFormat).c_str(), pid); in populateProcPidDir() 96 const auto& taskDirRes = makeDir(StringPrintf((procDirPath + kTaskDirFormat).c_str(), pid)); in populateProcPidDir() 105 StringPrintf((procDirPath + kTaskDirFormat + "/%" PRIu32).c_str(), pid, tid)); in populateProcPidDir() 111 StringPrintf((procDirPath + kTaskDirFormat + kStatFileFormat).c_str(), pid, in populateProcPidDir() 120 .c_str(), in populateProcPidDir()
|
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | files.cc | 38 unlink(temp_path.c_str()); in HandleError() 60 if (std::rename(from.c_str(), to.c_str()) != 0) { in RenameFile() 124 int dir_fd = open(directory_path.c_str(), O_RDONLY | O_DIRECTORY); in WriteToFile() 130 FILE* fp = std::fopen(temp_path.c_str(), "wt"); in WriteToFile() 137 if (std::fprintf(fp, "%s", data.c_str()) < 0) { in WriteToFile() 165 if (chmod(temp_path.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) != 0) { in WriteToFile() 178 if (stat(temp_path.c_str(), &filestat) == 0) { in WriteToFile() 191 if (std::rename(temp_path.c_str(), path.c_str()) != 0) { in WriteToFile() 212 if (remove(path.c_str()) != 0) { in RemoveFile() 222 if (stat(path.c_str(), &file_info) != 0) { in FileCreatedTime()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | Log.cpp | 60 text.push_back(StringPrintf("%s(%s)", mFunc.c_str(), Join(mArgs, ", ").c_str())); in toString() 64 text.push_back(StringPrintf("(%s)", Join(mReturns, ", ").c_str())); in toString() 67 if (!mDuration.empty()) text.push_back(StringPrintf("(%s)", mDuration.c_str())); in toString() 128 mArgs.push_back(StringPrintf("[%s]", Join(val, ", ").c_str())); in arg() 138 mArgs.push_back(StringPrintf("[%s]", Join(val, ", ").c_str())); in arg() 200 ALOG(LOG_INFO, mTag.c_str(), "%s", entry.c_str()); in record() 203 ALOG(LOG_WARN, mTag.c_str(), "%s", entry.c_str()); in record() 206 ALOG(LOG_ERROR, mTag.c_str(), "%s", entry.c_str()); in record()
|
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 90 if (0 == strncmp(fileName + fileNameLength - trainName.length(), trainName.c_str(), in findTrainInfoFileNameLocked() 164 deleteSuffixedFiles(TRAIN_INFO_DIR, trainInfo.trainName.c_str()); in writeTrainInfo() 168 trainInfo.trainName.c_str()); in writeTrainInfo() 170 int fd = open(fileName.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR); in writeTrainInfo() 172 VLOG("Attempt to access %s but failed", fileName.c_str()); in writeTrainInfo() 205 result = write(fd, trainInfo.trainName.c_str(), trainNameSize); in writeTrainInfo() 283 …int fd = open(StringPrintf("%s/%s", TRAIN_INFO_DIR, fileName.c_str()).c_str(), O_RDONLY | O_CLOEXE… in readTrainInfoLocked() 285 VLOG("Failed to open %s", fileName.c_str()); in readTrainInfoLocked() 480 deleteFile(StringPrintf("%s/%s", path, name).c_str()); in deleteAllFiles() 500 deleteFile(StringPrintf("%s/%s", path, name).c_str()); in deleteSuffixedFiles() [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.cpp | 72 ALOGE("%s (%d)", msg.c_str(), code); in exception() 73 return Status::fromExceptionCodeWithMessage(code, msg.c_str()); in exception() 169 VLOG("Could not find a broadcast receiver for %s", key.ToString().c_str()); in __anon3b4d5f610602() 180 VLOG("Failed to send a broadcast for receiver %s", key.ToString().c_str()); in __anon3b4d5f610602() 429 timeoutSec = atoi(utf8Args[1].c_str()); in handleShellCommand() 569 name.assign(args[1].c_str(), args[1].size()); in cmd_trigger_broadcast() 577 name.assign(args[2].c_str(), args[2].size()); in cmd_trigger_broadcast() 586 VLOG("Could not find receiver for %s, %s", args[1].c_str(), args[2].c_str()); in cmd_trigger_broadcast() 589 VLOG("StatsService::trigger broadcast succeeded to %s, %s", args[1].c_str(), in cmd_trigger_broadcast() 590 args[2].c_str()); in cmd_trigger_broadcast() [all …]
|
/packages/modules/StatsD/statsd/tests/storage/ |
D | StorageManager_test.cpp | 115 open(file1.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles() 123 open(file2.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR))); in prepareLocalHistoryTestFiles() 133 TEMP_FAILURE_RETRY(remove(file1.c_str())); in clearLocalHistoryTestFiles() 134 TEMP_FAILURE_RETRY(remove(file2.c_str())); in clearLocalHistoryTestFiles() 135 TEMP_FAILURE_RETRY(remove(file1_history.c_str())); in clearLocalHistoryTestFiles() 136 TEMP_FAILURE_RETRY(remove(file2_history.c_str())); in clearLocalHistoryTestFiles() 140 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(name.c_str(), O_RDONLY | O_CLOEXEC))); in fileExist() 215 StorageManager::deleteSuffixedFiles(TRAIN_INFO_DIR, trainInfo.trainName.c_str()); in TEST() 217 trainInfo.trainName.c_str()); in TEST() 219 int fd = open(fileName.c_str(), O_WRONLY | O_CREAT | O_CLOEXEC, S_IRUSR | S_IWUSR); in TEST() [all …]
|
/packages/services/Car/cpp/bugreport/ |
D | main.cpp | 131 error = writer->StartEntry(name.c_str(), 0); in zipFilesToFd() 137 TEMP_FAILURE_RETRY(open(filepath.c_str(), O_RDONLY | O_NOFOLLOW))); in zipFilesToFd() 150 ALOGE("timed out while reading %s", name.c_str()); in zipFilesToFd() 200 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(zip_path.c_str(), O_RDONLY | O_NOFOLLOW))); in copyFile() 202 ALOGE("Failed to open zip file %s.", zip_path.c_str()); in copyFile() 212 ALOGE("Failed to copy zip file %s to the output_socket.", zip_path.c_str()); in copyFile() 384 std::vector<const char*> args{"-p", "-d", id_as_string.c_str(), filename.c_str(), nullptr}; in takeScreenshotForDisplayId() 385 ALOGI("capturing screen for display (%s) as %s", id_as_string.c_str(), filename.c_str()); in takeScreenshotForDisplayId() 388 ALOGI("Screenshot saved for display: %s", id_as_string.c_str()); in takeScreenshotForDisplayId() 390 ALOGW("Failed to take screenshot for display: %s", id_as_string.c_str()); in takeScreenshotForDisplayId() [all …]
|