Home
last modified time | relevance | path

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

12

/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.cpp89 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
90 strncpy(path + trimmed_len, name, name_len); in boot_info_open_partition()
/system/chre/apps/test/chqts/src/shared/
Dnano_string.h31 char *strncpy(char *dest, const char *src, size_t len);
Dnano_string_test.cc119 ::strncpy(expected, str, len); in testStrncpy()
120 nanoapp_testing::strncpy(actual, str, len); in testStrncpy()
Dnano_string.cc55 char *strncpy(char *dest, const char *src, size_t len) { in strncpy() function
/system/extras/tests/crypto/
Dget_dm_versions.c21 strncpy(io->name, name, sizeof(io->name)); in ioctl_init()
/system/core/fs_mgr/liblp/
Dutility.cpp179 strncpy(device->partition_name, name.c_str(), sizeof(device->partition_name)); in UpdateBlockDevicePartitionName()
187 strncpy(group->name, name.c_str(), sizeof(group->name)); in UpdatePartitionGroupName()
195 strncpy(partition->name, name.c_str(), sizeof(partition->name)); in UpdatePartitionName()
/system/core/logd/
DLogAudit.cpp345 strncpy(newstr + 1 + str_len, str, prefix_len); in logPrint()
346 strncpy(newstr + 1 + str_len + prefix_len, ecomm, suffix_len); in logPrint()
347 strncpy(newstr + 1 + str_len + prefix_len + suffix_len, in logPrint()
/system/netd/server/
DOffloadUtils.cpp57 strncpy(ifr.ifr_name, interface.c_str(), sizeof(ifr.ifr_name)); in hardwareAddressType()
360 strncpy(req.options.name.str, name, sizeof(req.options.name.str)); in tcFilterAddDevBpf()
/system/security/identity/
DUtil.cpp92 strncpy(tempName, tempNameStr.c_str(), sizeof tempName); in fileSetContents()
/system/bt/service/hal/
Dfake_bluetooth_interface.cc110 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/bt/service/ipc/
Dipc_handler_linux.cc88 strncpy(address.sun_path, path.value().c_str(), in Run()
/system/core/libprocessgroup/
Dsched_policy.cpp94 strncpy(thread_name, p, (q - p)); in set_sched_policy()
/system/core/adb/client/pairing/tests/
Dpairing_server.cpp358 strncpy(info.name, name->data(), name->size()); in connectionEventsWorker()
359 strncpy(info.guid, guid->data(), guid->size()); in connectionEventsWorker()
/system/extras/tests/fstest/
Drecovery_test.cpp53 strncpy(test_file_, file_name, FILENAME_MAX); in DataFileVerifier()
/system/bt/service/test/
Dipc_linux_unittest.cc95 strncpy(address.sun_path, kTestSocketPath, sizeof(address.sun_path) - 1); in ConnectToTestSocket()
/system/core/liblog/
Dproperties.cpp182 strncpy(last_tag, tag, len); in __android_log_level()
187 strncpy(key + sizeof(log_namespace) - 1, tag, len); in __android_log_level()
/system/bt/osi/src/
Dthread.cc84 strncpy(ret->name, name, THREAD_NAME_MAX); in thread_new_sized()
/system/update_engine/common/
Dtest_utils.cc119 strncpy(reinterpret_cast<char*>(device_info.lo_file_name), in SetLoopDeviceStatus()
/system/media/camera/docs/
Dcamera_metadata_tag_info.mako102 strncpy(dst, msg, size - 1);
/system/core/libsysutils/src/
DNetlinkEvent.cpp416 strncpy(dst, "0.0.0.0", sizeof(dst)); in parseRtMessage()
418 strncpy(dst, "::", sizeof(dst)); in parseRtMessage()
/system/memory/lmkd/
Dstatslog.cpp276 strncpy(procp->taskname, taskname, LINE_MAX - 1); in stats_store_taskname()
/system/core/libdiskconfig/
Ddiskconfig.c43 strncpy(tmp, str, sizeof(tmp)); in parse_len()

12