Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 258) sorted by relevance

1234567891011

/system/core/libcutils/
Dsocket_local_client_unix.cpp54 namelen = strlen(name); in socket_make_sockaddr_un()
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
96 namelen = strlen(name); in socket_make_sockaddr_un()
Dfs_config.cpp235 if (len < strlen(suffix)) return len; in strip()
236 if (strncmp(path + len - strlen(suffix), suffix, strlen(suffix))) return len; in strip()
237 return len - strlen(suffix); in strip()
248 size_t len = strlen(target_out_path); in fs_config_open()
301 input.erase(0, strlen(kSystem)); in fs_config_cmp()
302 } else if (input.size() <= strlen(kSystem)) { in fs_config_cmp()
305 pattern.erase(0, strlen(kSystem)); in fs_config_cmp()
327 plen = strlen(path); in fs_config()
374 if (fs_config_cmp(dir, pc->prefix, strlen(pc->prefix), path, plen)) { in fs_config()
386 size_t len = ALIGN(sizeof(*p) + strlen(pc->prefix) + 1, sizeof(uint64_t)); in fs_config_generate()
/system/bt/osi/src/socket_utils/
Dsocket_local_client.cc42 namelen = strlen(name); in osi_socket_make_sockaddr_un()
59 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in osi_socket_make_sockaddr_un()
72 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in osi_socket_make_sockaddr_un()
84 namelen = strlen(name); in osi_socket_make_sockaddr_un()
/system/chre/apps/chqts/src/shared/
Dnano_string_test.cc101 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
106 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
128 testStrncpy(kShortString, ::strlen(kShortString)); in TEST()
132 ASSERT_LT(::strlen(kShortString), kStrncpyMax); in TEST()
137 ASSERT_GT(::strlen(kLongString), kStrncpyMax); in TEST()
146 ASSERT_EQ(::strlen(kExactString), kStrncpyMax); in TEST()
/system/bt/hci/test/
Dpacket_fragmenter_test.cc64 uint16_t data_length = strlen(data); in manufacture_packet_for_fragmentation()
104 int length_remaining = strlen(expected_data) - data_size_sum; in expect_packet_fragmented()
115 length_to_check = strlen(expected_data); in expect_packet_fragmented()
125 EXPECT_TRUE(send_complete == (data_size_sum == strlen(expected_data))); in expect_packet_fragmented()
133 uint16_t data_length = strlen(data); in manufacture_packet_and_then_reassemble()
181 uint16_t expected_data_length = strlen(expected_data); in expect_packet_reassembled()
327 EXPECT_EQ(strlen(small_sample_data), data_size_sum);
337 EXPECT_EQ(strlen(sample_data), data_size_sum);
347 EXPECT_EQ(strlen(small_sample_data), data_size_sum);
358 EXPECT_EQ(strlen(sample_data), data_size_sum);
[all …]
/system/core/debuggerd/crasher/
Dcrasher.cpp165 return strlen(sneaky_null); in strlen_null()
225 if (!strncmp(arg, "wait-", strlen("wait-"))) { in do_action()
228 return do_action(arg + strlen("wait-")); in do_action()
229 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { in do_action()
234 return do_action(arg + strlen("exhaustfd-")); in do_action()
235 } else if (!strncmp(arg, "thread-", strlen("thread-"))) { in do_action()
236 return do_action_on_thread(arg + strlen("thread-")); in do_action()
352 msg.size = strlen("dummy abort message"); in main()
353 memcpy(msg.msg, "dummy abort message", strlen("dummy abort message")); in main()
/system/core/logd/
DLogAudit.cpp203 memmove(cp, cp + 1, strlen(cp + 1) + 1); in logPrint()
221 memmove(pidptr, cp, strlen(cp) + 1); in logPrint()
246 !fastcmp<strcmp>(avcl + strlen(avc), avcr + strlen(avc)); in logPrint()
261 iov[1].iov_len = strlen(last_str); in logPrint()
266 iov[3].iov_len = strlen(resume); in logPrint()
269 iov[3].iov_len = strlen(newline); in logPrint()
288 iov[1].iov_len = strlen(str); in logPrint()
292 iov[3].iov_len = strlen(newline); in logPrint()
311 memmove(timeptr + sizeof(audit_str) - 1 + 3, cp, strlen(cp) + 1); in logPrint()
364 const char* estr = str + strlen(str); in logPrint()
[all …]
DLogKlog.cpp214 char buffer[strlen(priority_message) + strlen(klogdStr) + in LogKlog()
215 strlen(klogd_message) + 20]; in LogKlog()
218 write(fdWrite, buffer, strlen(buffer)); in LogKlog()
268 if (len < (ssize_t)(strlen(real_format) + 5)) return; in calculateCorrection()
316 (((b += strlen(suspendStr)) - cp) < len)) { in sniffTime()
320 (((b += strlen(resumeStr)) - cp) < len)) { in sniffTime()
324 (((b += strlen(healthdStr)) - cp) < len) && in sniffTime()
326 (((b += strlen(batteryStr)) - cp) < len)) { in sniffTime()
333 (((b += strlen(suspendStr)) - cp) < len)) { in sniffTime()
555 uint64_t sig = strtoll(start + strlen(klogdStr), nullptr, 10); in log()
[all …]
DCommandListener.cpp193 y = x, x = strlen(fmt) - 2) { in package_string()
296 if (!strncmp(argv[i], _name, strlen(_name))) { in runCommand()
297 name = argv[i] + strlen(_name); in runCommand()
302 if (!strncmp(argv[i], _format, strlen(_format))) { in runCommand()
303 format = argv[i] + strlen(_format); in runCommand()
308 if (!strncmp(argv[i], _id, strlen(_id))) { in runCommand()
309 id = argv[i] + strlen(_id); in runCommand()
DLogBufferElement.cpp134 size_t retval_len = strlen(retval); in tidToName()
135 size_t name_len = strlen(name); in tidToName()
153 if (!__android_log_is_loggable_len(ANDROID_LOG_INFO, tag, strlen(tag), in populateDroppedMessage()
172 size_t len = strlen(name + 1); in populateDroppedMessage()
/system/extras/toolchain-extras/
Dprofile-extras.cpp95 if (strncmp(prog_basename, "zygote", strlen("zygote")) == 0) { in init_profile_extras()
98 if (strncmp(prog_basename, "app_process", strlen("app_process")) == 0) { in init_profile_extras()
/system/extras/pagecache/
Ddumpcache.c60 info->name = malloc(strlen(fpath) + 1); in get_file_info()
146 strncmp("/dev", mentry->mnt_dir, strlen("/dev")) != 0 && in main()
147 strncmp("/sys", mentry->mnt_dir, strlen("/sys")) != 0 && in main()
148 strncmp("/proc", mentry->mnt_dir, strlen("/proc")) != 0) { in main()
/system/chre/platform/shared/nanoapp/
Dnanoapp_dso_util.cc48 } else if (strlen(appInfo->name) > CHRE_NSL_DSO_NANOAPP_STRING_MAX_LEN) { in validateAppInfo()
50 } else if (strlen(appInfo->vendor) > CHRE_NSL_DSO_NANOAPP_STRING_MAX_LEN) { in validateAppInfo()
/system/core/adb/daemon/
Dtransport_qemu.cpp91 if (WriteFdExactly(fd.get(), _accept_req, strlen(_accept_req))) { in qemu_socket_thread()
100 WriteFdExactly(fd.get(), _start_req, strlen(_start_req)); in qemu_socket_thread()
/system/core/libsysutils/src/
DServiceManager.cpp49 if (strlen(name) > SERVICE_NAME_MAX) { in start()
79 if (strlen(name) > SERVICE_NAME_MAX) { in stop()
/system/core/qemu_pipe/
Dqemu_pipe.cpp52 size_t pipeNameLen = strlen(pipeName); in qemu_pipe_open()
61 if (WriteFully(fd, pipe_prefix, strlen(pipe_prefix)) && in qemu_pipe_open()
/system/nvram/client/
Dnvram_client.c285 (uint8_t*)args[3], strlen(args[3])); in HandleCreateSpace()
291 strlen(args[3])); in HandleDeleteSpace()
301 return device->write_space(device, index, (uint8_t*)args[1], strlen(args[1]), in HandleWriteSpace()
302 (uint8_t*)args[2], strlen(args[2])); in HandleWriteSpace()
319 strlen(args[1]), buffer, &size); in HandleReadSpace()
334 strlen(args[1])); in HandleEnableWriteLock()
340 strlen(args[1])); in HandleEnableReadLock()
/system/core/liblog/
Dproperties.cpp273 int logLevel = __android_log_level(tag, (tag && *tag) ? strlen(tag) : 0, default_prio); in __android_log_is_loggable()
408 cp += strlen(flag); in check_flag()
433 char newkey[strlen("persist.") + strlen(key) + 1]; in __android_logger_property_get_bool()
596 char key_persist[strlen(global_tunable) + strlen(".security") + 1]; in __android_logger_get_buffer_size()
597 char key_ro[strlen(global_default) + strlen(".security") + 1]; in __android_logger_get_buffer_size()
Dlogger_write.cpp425 if (strncmp(tag + 1, "RIL" + 1, strlen("RIL") - 1)) break; in __android_log_buf_write()
429 if (strncmp(tag + 1, "QC_RIL" + 1, strlen("QC_RIL") - 1)) break; in __android_log_buf_write()
433 if (strncmp(tag + 1, "IMS" + 1, strlen("IMS") - 1)) break; in __android_log_buf_write()
470 vec[1].iov_len = strlen(tag) + 1; in __android_log_buf_write()
472 vec[2].iov_len = strlen(msg) + 1; in __android_log_buf_write()
528 TEMP_FAILURE_RETRY(write(2, buf, strlen(buf))); in __android_log_assert()
594 uint32_t len = strlen(payload); in __android_log_bswrite()
615 uint32_t len = strlen(payload); in __android_log_security_bswrite()
/system/bt/osi/src/
Dallocator.cc28 size_t size = strlen(str) + 1; // + 1 for the null terminator in osi_strdup()
42 size_t size = strlen(str); in osi_strndup()
/system/core/healthd/
DBatteryMonitor.cpp307 len = strlen(dmesgline); in update()
425 write(fd, vs, strlen(vs)); in dumpState()
428 write(fd, vs, strlen(vs)); in dumpState()
432 write(fd, vs, strlen(vs)); in dumpState()
437 write(fd, vs, strlen(vs)); in dumpState()
443 write(fd, vs, strlen(vs)); in dumpState()
449 write(fd, vs, strlen(vs)); in dumpState()
454 write(fd, vs, strlen(vs)); in dumpState()
459 write(fd, vs, strlen(vs)); in dumpState()
464 write(fd, vs, strlen(vs)); in dumpState()
/system/extras/ioshark/
Dioshark_bench_subr.c405 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 || in get_blockdev_name()
406 strncmp(dev_name, "angler", strlen("angler")) == 0 || in get_blockdev_name()
407 strncmp(dev_name, "shamu", strlen("shamu")) == 0 || in get_blockdev_name()
408 strncmp(dev_name, "aosp_gobo", strlen("aosp_gobo")) == 0 || in get_blockdev_name()
409 strncmp(dev_name, "full_k37_y33_gms", strlen("full_k37_y33_gms")) == 0 || in get_blockdev_name()
410 strncmp(dev_name, "fugu", strlen("fugu")) == 0) { in get_blockdev_name()
412 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 || in get_blockdev_name()
413 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0 || in get_blockdev_name()
414 strncmp(dev_name, "taimen", strlen("taimen")) == 0 || in get_blockdev_name()
415 strncmp(dev_name, "walleye", strlen("walleye")) == 0) { in get_blockdev_name()
/system/core/adb/client/
Dbugreport.cpp136 SetSrcFile(&line[strlen(BUGZ_BEGIN_PREFIX)]); in ProcessLine()
138 SetSrcFile(&line[strlen(BUGZ_OK_PREFIX)]); in ProcessLine()
140 const char* error_message = &line[strlen(BUGZ_FAIL_PREFIX)]; in ProcessLine()
148 size_t idx1 = line.rfind(BUGZ_PROGRESS_PREFIX) + strlen(BUGZ_PROGRESS_PREFIX); in ProcessLine()
/system/update_engine/payload_consumer/
Dfile_descriptor_utils_unittest.cc138 kExpectedResult, strlen(kExpectedResult), &expected_hash)); in TEST_F()
166 kExpectedOrderedData, strlen(kExpectedOrderedData), &expected_hash)); in TEST_F()
194 kExpectedResult, strlen(kExpectedResult), &expected_hash)); in TEST_F()
/system/core/liblog/tests/
Dliblog_test.cpp1101 data += strlen(data) + 1; in TEST()
1239 data += strlen(data) + 1; in TEST()
1407 123, 123, tag, "nofile", strlen("Hello"), "Hello", NULL); in TEST()
1464 levels[i].level, tag, strlen(tag), levels[j].level); in TEST()
1472 levels[i].level, tag, strlen(tag), levels[j].level)); in TEST()
1481 levels[i].level, tag, strlen(tag), levels[j].level)); in TEST()
1503 levels[i].level, tag, strlen(tag), ANDROID_LOG_DEBUG); in TEST()
1512 levels[i].level, tag, strlen(tag), ANDROID_LOG_DEBUG)); in TEST()
1521 levels[i].level, tag, strlen(tag), ANDROID_LOG_DEBUG)); in TEST()
1531 levels[i].level, tag, strlen(tag), ANDROID_LOG_DEBUG); in TEST()
[all …]

1234567891011