Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 75) sorted by relevance

123

/device/google/contexthub/util/nanotool/
Dsensorevent.cpp155 snprintf(buffer, sizeof(buffer), "%" PRIu64 ".%06" PRIu64 " ms", in GetSampleTimeStr()
177 snprintf(buffer, sizeof(buffer), in ToString()
213 snprintf(buffer, sizeof(buffer), " %f @ %s\n", in StringForSample()
230 snprintf(buffer, sizeof(buffer), " %d @ %s\n", in StringForSample()
250 snprintf(buffer, sizeof(buffer), " X:%f Y:%f Z:%f @ %s%s\n", in StringForSample()
294 snprintf(buffer, sizeof(buffer), " X:%f Y:%f Z:%f @ %s%s\n", in StringForSample()
Dlog.cpp83 offset += snprintf(&line[offset], sizeof(line) - offset, "%02x ", in DebugBuf()
85 offset_chars += snprintf( in DebugBuf()
93 offset += snprintf(&line[offset], sizeof(line) - offset, " "); in DebugBuf()
132 snprintf(prefix, sizeof(prefix), "%c %6.03f: ", Log::LevelAbbrev(level), in LogEx()
Dnanomessage.cpp52 snprintf(buffer, sizeof(buffer), format_string, in ToString()
67 snprintf(buffer, sizeof(buffer), format_string, in ToString()
99 snprintf(buffer, sizeof(buffer), format_string, in ToString()
108 snprintf(buffer, sizeof(buffer), "ReadEventResponse %u\n", GetEventType()); in ToString()
225 snprintf(buffer, sizeof(buffer), format_string, in ToString()
/device/generic/goldfish/radio/include/telephony/
Dril_mnc.h53 snprintf(mncStr, sizeof(mncStr), "%03.3u", umnc); in decode()
57 snprintf(mncStr, sizeof(mncStr), "%03.3u", umnc); in decode()
Dril_mcc.h40 snprintf(mccStr, sizeof(mccStr), "%03d", mcc); in decode()
/device/generic/goldfish-opengl/shared/qemupipe/
Dqemu_pipe_guest.cpp55 bufLen = snprintf(buf, sizeof(buf), "pipe:%s:%s", ns, pipeName); in qemu_pipe_open_ns()
57 bufLen = snprintf(buf, sizeof(buf), "pipe:%s", pipeName); in qemu_pipe_open_ns()
/device/google/wahoo/health/
DLearnedCapacityBackupRestore.cpp69 snprintf(strData, kBuffSize, "%d", sw_cap_); in SaveToStorage()
96 snprintf(strData, kBuffSize, "%d", hw_cap_); in SaveToSRAM()
DCycleCountBackupRestore.cpp65 snprintf(strData, kBuffSize, "%d %d %d %d %d %d %d %d", in SaveToStorage()
99 snprintf(strData, kBuffSize, "%d %d %d %d %d %d %d %d", in SaveToSRAM()
/device/google/coral/json-c/
Djson_util.c51 # define snprintf _snprintf macro
53 # error You do not have snprintf on your system.
226 snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64); in json_parse_int64()
Djson_object.c41 # define snprintf _snprintf macro
43 # error You do not have snprintf on your system.
604 size = snprintf(buf, sizeof(buf), "NaN"); in json_object_double_to_json_string()
607 size = snprintf(buf, sizeof(buf), "Infinity"); in json_object_double_to_json_string()
609 size = snprintf(buf, sizeof(buf), "-Infinity"); in json_object_double_to_json_string()
611 size = snprintf(buf, sizeof(buf), "%.17g", jso->o.c_double); in json_object_double_to_json_string()
/device/google/crosshatch/json-c/
Djson_util.c51 # define snprintf _snprintf macro
53 # error You do not have snprintf on your system.
226 snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64); in json_parse_int64()
Djson_object.c41 # define snprintf _snprintf macro
43 # error You do not have snprintf on your system.
604 size = snprintf(buf, sizeof(buf), "NaN"); in json_object_double_to_json_string()
607 size = snprintf(buf, sizeof(buf), "Infinity"); in json_object_double_to_json_string()
609 size = snprintf(buf, sizeof(buf), "-Infinity"); in json_object_double_to_json_string()
611 size = snprintf(buf, sizeof(buf), "%.17g", jso->o.c_double); in json_object_double_to_json_string()
/device/google/bonito/json-c/
Djson_util.c51 # define snprintf _snprintf macro
53 # error You do not have snprintf on your system.
226 snprintf(buf_cmp_start, sizeof(buf_cmp), "%" PRId64, num64); in json_parse_int64()
Djson_object.c41 # define snprintf _snprintf macro
43 # error You do not have snprintf on your system.
604 size = snprintf(buf, sizeof(buf), "NaN"); in json_object_double_to_json_string()
607 size = snprintf(buf, sizeof(buf), "Infinity"); in json_object_double_to_json_string()
609 size = snprintf(buf, sizeof(buf), "-Infinity"); in json_object_double_to_json_string()
611 size = snprintf(buf, sizeof(buf), "%.17g", jso->o.c_double); in json_object_double_to_json_string()
/device/generic/goldfish/qemu-props/
Dqemu-props.cpp127 snprintf(vendortemp, sizeof(vendortemp), "vendor.%s", temp); in main()
185 snprintf(set, sizeof(set), "%s", mesg); in sendMessage()
/device/generic/goldfish/wifi/execns/
Dexecns.cpp94 snprintf(nsPath, sizeof(nsPath), "%s/%s.pid", kNetNsDir, ns); in readNamespacePid()
135 snprintf(nsPath, sizeof(nsPath), "/proc/%s/ns/net", pid.c_str()); in setNetworkNamespace()
223 int printed = snprintf(buffer, sizeof(buffer), in execCommand()
/device/google/coral/dumpstate/
DDumpstateDevice.cpp242 snprintf(cmd, sizeof(cmd), "%s/appid", touch_spi_path); in DumpTouch()
248 snprintf(cmd, sizeof(cmd), "%s/status", touch_spi_path); in DumpTouch()
252 snprintf(cmd, sizeof(cmd), in DumpTouch()
258 snprintf(cmd, sizeof(cmd), in DumpTouch()
264 snprintf(cmd, sizeof(cmd), in DumpTouch()
/device/google/bonito/health/
DLearnedCapacityBackupRestore.cpp60 snprintf(strData, kBuffSize, "%d", sw_cap_); in SaveToStorage()
103 snprintf(strData, kBuffSize, "%d", hw_cap_); in SaveToSRAM()
/device/linaro/poplar/wifi/wpa_supplicant_8_lib/
Ddriver_cmd_nl80211.c133 snprintf(buf, sizeof(buf), "P2P_SET_NOA %d %d %d", count, start, duration); in wpa_driver_set_p2p_noa()
149 snprintf(buf, sizeof(buf), "P2P_SET_PS %d %d %d", legacy_ps, opp_ps, ctwindow); in wpa_driver_set_p2p_ps()
190 pbuf += snprintf(pbuf, buf_len - wpabuf_len(ap_wps_p2p_ie), in wpa_driver_set_ap_wps_p2p_ie()
/device/linaro/dragonboard/qcom/rmtfs/
Dsharedmem.c133 snprintf(path, sizeof(path), "/dev/qcom_rmtfs_uio%d", client_id); in rmtfs_mem_open_uio()
214 snprintf(path, sizeof(path), "/dev/qcom_rmtfs_mem%d", client_id); in rmtfs_mem_open_rfsa()
222 snprintf(path, sizeof(path), "/sys/class/rmtfs/qcom_rmtfs_mem%d/phys_addr", client_id); in rmtfs_mem_open_rfsa()
237 snprintf(path, sizeof(path), "/sys/class/rmtfs/qcom_rmtfs_mem%d/size", client_id); in rmtfs_mem_open_rfsa()
/device/generic/goldfish/qemud/
Dqemud.cpp39 snprintf(header, sizeof(header), "%04x", size); in qemud_channel_send()
/device/generic/goldfish/network/netmgr/
Dfork.cpp38 offset += snprintf(buffer + offset, sizeof(buffer) - offset, in forkAndExec()
/device/generic/goldfish/camera/
DQemuClient.cpp234 snprintf(buf, sizeof(buf), "%s:%s", mCameraServiceName, param); in connectClient()
481 snprintf(query_str, sizeof(query_str), "%s dim=%dx%d pix=%d", in queryStart()
518snprintf(query_str, sizeof(query_str), "%s video=%zu preview=%zu whiteb=%g,%g,%g expcomp=%g time=%… in queryFrame()
584snprintf(query_str, sizeof(query_str), "%s dim=%dx%d pix=%d offset=%" PRIu64 " whiteb=%g,%g,%g exp… in queryFrame()
/device/google/cuttlefish/common/libs/device_config/
Dhost_device_config.cpp132 auto res = snprintf(dest, size, "%s", src); in CopyChars()
168 auto res = snprintf(data_.ril.ipaddr, sizeof(data_.ril.ipaddr), "%s", in InitializeNetworkConfiguration()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c862 snprintf(propName, sizeof propName, "net.eth0.dns%d", nn); in requestOrSendDataCallList()
900 snprintf(cmd, sizeof(cmd), "AT+CGCONTRDP=%d", cid); in requestOrSendDataCallList()
2109 snprintf(cmd, sizeof(cmd), "AT+CCHO=%s", data);
2150 snprintf(cmd, sizeof(cmd), "AT+CCHC=%" PRId32, session_id);
2584 snprintf(cmd, sizeof(cmd), "AT+CPINR=\"%s\"", type);
2680 snprintf(cmd, sizeof(cmd), "AT+CPWD=\"P2\",\"%s\",\"%s\"", strings[0],
2707 snprintf(cmd, sizeof(cmd), "AT+CUSD=1,\"%s\"", ussdRequest);
2892 snprintf(cmd, sizeof(cmd), "AT+CMUT=%d", ((int *)data)[0]);
3009 snprintf(cmd, sizeof(cmd), "AT+CLIR=%d", n);
3081 snprintf(cmd, sizeof(cmd), "AT+CCFCU=%d,%d,%d,%d,\"%s\",%d",
[all …]

123