Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 53) sorted by relevance

123

/system/core/libprocessgroup/cgrouprc_format/
Dcgroup_controller.cpp36 strncpy(name_, name.c_str(), sizeof(name_) - 1); in CgroupController()
38 strncpy(path_, path.c_str(), sizeof(path_) - 1); in CgroupController()
/system/libufdt/utils/src/
Dmkdtimg_core.c277 strncpy(options->id, value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
279 strncpy(options->rev, value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
281 strncpy(options->custom[0], value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
283 strncpy(options->custom[1], value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
285 strncpy(options->custom[2], value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
287 strncpy(options->custom[3], value, OPTION_VALUE_SIZE_MAX - 1); in set_dt_options()
337 strncpy(fdt_info->filename, filename, sizeof(fdt_info->filename) - 1); in add_fdt_info()
413 strncpy( in dt_image_writer_add_entry()
/system/extras/boot_control_copy/
Dbootinfo.cpp90 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
91 strncpy(path + trimmed_len, name, name_len); in boot_info_open_partition()
/system/chre/apps/chqts/src/shared/
Dnano_string.h31 char *strncpy(char *dest, const char *src, size_t len);
Dnano_string_test.cc121 ::strncpy(expected, str, len); in testStrncpy()
122 nanoapp_testing::strncpy(actual, str, len); in testStrncpy()
Dnano_string.cc56 char *strncpy(char *dest, const char *src, size_t len) { in strncpy() function
/system/core/fs_mgr/liblp/
Dutility.cpp155 strncpy(device->partition_name, name.c_str(), sizeof(device->partition_name)); in UpdateBlockDevicePartitionName()
163 strncpy(group->name, name.c_str(), sizeof(group->name)); in UpdatePartitionGroupName()
/system/extras/tests/crypto/
Dget_dm_versions.c21 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
/system/core/adb/daemon/
Dreboot_service.cpp60 strncpy(addr.sun_path, "/dev/socket/recovery", sizeof(addr.sun_path) - 1); in reboot_service()
/system/netd/server/
DClatUtils.cpp58 strncpy(ifr.ifr_name, interface.c_str(), sizeof(ifr.ifr_name)); in hardwareAddressType()
339 strncpy(req.options.name.str, NAME, sizeof(req.options.name.str)); in tcFilterAddDevBpf()
/system/core/logd/
DLogAudit.cpp402 strncpy(newstr + 1 + str_len, str, prefix_len); in logPrint()
403 strncpy(newstr + 1 + str_len + prefix_len, ecomm, suffix_len); in logPrint()
404 strncpy(newstr + 1 + str_len + prefix_len + suffix_len, in logPrint()
/system/bt/service/hal/
Dfake_bluetooth_interface.cc109 strncpy(reinterpret_cast<char*>(hal_name.name), name.c_str(), in NotifyAdapterNamePropertyChanged()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp74 strncpy(ifr.ifr_name, "lo", strlen("lo")); in killSockets()
/system/core/libprocessgroup/
Dsched_policy.cpp111 strncpy(thread_name, p, (q - p)); in set_sched_policy()
/system/netd/resolv/
Dres_init.cpp247 strncpy(ext->nsuffix, cp, (size_t) i); in res_setoptions()
253 strncpy(ext->nsuffix2, cp, (size_t) i); in res_setoptions()
Dres_query.cpp365 strncpy(nbuf, name, (size_t) n); in res_nquerydomain()
/system/bt/service/ipc/
Dipc_handler_linux.cc88 strncpy(address.sun_path, path.value().c_str(), in Run()
/system/bt/service/test/
Dipc_linux_unittest.cc95 strncpy(address.sun_path, kTestSocketPath, sizeof(address.sun_path) - 1); in ConnectToTestSocket()
/system/extras/tests/fstest/
Drecovery_test.cpp53 strncpy(test_file_, file_name, FILENAME_MAX); in DataFileVerifier()
/system/core/liblog/
Dproperties.cpp173 strncpy(last_tag, tag, len); in __android_log_level()
178 strncpy(key + sizeof(log_namespace) - 1, tag, len); in __android_log_level()
/system/media/camera/docs/
Dcamera_metadata_tag_info.mako102 strncpy(dst, msg, size - 1);
/system/update_engine/common/
Dtest_utils.cc161 strncpy(reinterpret_cast<char*>(device_info.lo_file_name), in BindToUnusedLoopDevice()
/system/bt/osi/src/
Dthread.cc84 strncpy(ret->name, name, THREAD_NAME_MAX); in thread_new_sized()
/system/nfc/src/nfa/p2p/
Dnfa_p2p_api.cc92 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pRegisterServer()
388 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pConnectByName()
927 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pGetRemoteSap()
/system/core/libsysutils/src/
DNetlinkEvent.cpp389 strncpy(dst, "0.0.0.0", sizeof(dst)); in parseRtMessage()
391 strncpy(dst, "::", sizeof(dst)); in parseRtMessage()

123