Home
last modified time | relevance | path

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

1234567891011

/system/core/liblog/tests/
Dlogprint_test.cpp29 auto output_size = convertPrintable(nullptr, input, strlen(input)); in TEST()
30 EXPECT_EQ(output_size, strlen(input)); in TEST()
34 output_size = convertPrintable(output, input, strlen(input)); in TEST()
35 EXPECT_EQ(output_size, strlen(input)); in TEST()
43 auto output_size = convertPrintable(nullptr, input, strlen(input)); in TEST()
44 EXPECT_EQ(output_size, strlen(expected_output)); in TEST()
48 output_size = convertPrintable(output, input, strlen(input)); in TEST()
49 EXPECT_EQ(output_size, strlen(expected_output)); in TEST()
55 auto output_size = convertPrintable(nullptr, input, strlen(input)); in TEST()
56 EXPECT_EQ(output_size, strlen(input)); in TEST()
[all …]
/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/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.cpp227 if (len < strlen(suffix)) return len; in strip()
228 if (strncmp(path + len - strlen(suffix), suffix, strlen(suffix))) return len; in strip()
229 return len - strlen(suffix); in strip()
240 size_t len = strlen(target_out_path); in fs_config_open()
318 plen = strlen(path); in fs_config()
365 if (fs_config_cmp(dir, pc->prefix, strlen(pc->prefix), path, plen)) { in fs_config()
/system/chre/apps/test/chqts/src/shared/
Dnano_string_test.cc99 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
104 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST()
126 testStrncpy(kShortString, ::strlen(kShortString)); in TEST()
130 ASSERT_LT(::strlen(kShortString), kStrncpyMax); in TEST()
135 ASSERT_GT(::strlen(kLongString), kStrncpyMax); in TEST()
144 ASSERT_EQ(::strlen(kExactString), kStrncpyMax); in TEST()
/system/core/adb/client/pairing/tests/
Dpairing_connection_test.cpp202 ASSERT_EQ(strlen(peer_info->name), strlen(client_info_.name)); in TEST_F()
203 EXPECT_EQ(::memcmp(peer_info->name, client_info_.name, strlen(client_info_.name)), 0); in TEST_F()
204 ASSERT_EQ(strlen(peer_info->guid), strlen(client_info_.guid)); in TEST_F()
205 EXPECT_EQ(::memcmp(peer_info->guid, client_info_.guid, strlen(client_info_.guid)), 0); in TEST_F()
227 ASSERT_EQ(strlen(peer_info->name), strlen(server_info_.name)); in TEST_F()
228 EXPECT_EQ(::memcmp(peer_info->name, server_info_.name, strlen(server_info_.name)), 0); in TEST_F()
229 ASSERT_EQ(strlen(peer_info->guid), strlen(server_info_.guid)); in TEST_F()
230 EXPECT_EQ(::memcmp(peer_info->guid, server_info_.guid, strlen(server_info_.guid)), 0); in TEST_F()
384 ASSERT_EQ(strlen(peer_info->name), strlen(client_info_.name)); in TEST_F()
385 EXPECT_EQ(::memcmp(peer_info->name, client_info_.name, strlen(client_info_.name)), 0); in TEST_F()
[all …]
/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()
226 if (!strncmp(arg, "wait-", strlen("wait-"))) { in do_action()
229 return do_action(arg + strlen("wait-")); in do_action()
230 } else if (!strncmp(arg, "exhaustfd-", strlen("exhaustfd-"))) { in do_action()
235 return do_action(arg + strlen("exhaustfd-")); in do_action()
236 } else if (!strncmp(arg, "thread-", strlen("thread-"))) { in do_action()
237 return do_action_on_thread(arg + strlen("thread-")); in do_action()
358 msg.size = strlen("dummy abort message"); in main()
359 memcpy(msg.msg, "dummy abort message", strlen("dummy abort message")); in main()
/system/core/logd/
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.cpp308 if (!strncmp(argv[i], _name, strlen(_name))) { in runCommand()
309 name = argv[i] + strlen(_name); in runCommand()
314 if (!strncmp(argv[i], _format, strlen(_format))) { in runCommand()
315 format = argv[i] + strlen(_format); in runCommand()
320 if (!strncmp(argv[i], _id, strlen(_id))) { in runCommand()
321 id = argv[i] + strlen(_id); in runCommand()
DLogAudit.cpp199 memmove(cp, cp + 1, strlen(cp + 1) + 1); in logPrint()
217 memmove(pidptr, cp, strlen(cp) + 1); in logPrint()
232 iov[1].iov_len = strlen(str); in logPrint()
236 iov[3].iov_len = strlen(newline); in logPrint()
254 memmove(timeptr + sizeof(audit_str) - 1 + 3, cp, strlen(cp) + 1); in logPrint()
307 const char* estr = str + strlen(str); in logPrint()
329 str_len = strlen(comm) + 1; in logPrint()
DLogBufferElement.cpp139 size_t retval_len = strlen(retval); in tidToName()
140 size_t name_len = strlen(name); in tidToName()
158 if (!__android_log_is_loggable_len(ANDROID_LOG_INFO, tag, strlen(tag), in populateDroppedMessage()
177 size_t len = strlen(name + 1); in populateDroppedMessage()
/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.cc51 } else if (strlen(appInfo->name) > CHRE_NSL_DSO_NANOAPP_STRING_MAX_LEN) { in validateAppInfo()
53 } else if (strlen(appInfo->vendor) > CHRE_NSL_DSO_NANOAPP_STRING_MAX_LEN) { in validateAppInfo()
/system/core/adb/daemon/
Dtransport_qemu.cpp98 if (WriteFdExactly(fd.get(), _accept_req, strlen(_accept_req))) { in qemu_socket_thread()
107 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/libziparchive/
Dzip_writer_test.cc68 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
69 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
309 ASSERT_EQ(0, writer.WriteBytes(kKeepThis, strlen(kKeepThis))); in TEST_F()
316 ASSERT_EQ(0, writer.WriteBytes(kDropThis, strlen(kDropThis))); in TEST_F()
328 ASSERT_EQ(0, writer.WriteBytes(kReplaceWithThis, strlen(kReplaceWithThis))); in TEST_F()
361 ASSERT_EQ(0, writer.WriteBytes(expected, strlen(expected))); in TEST_F()
372 EXPECT_EQ(strlen(expected), data.compressed_length); in TEST_F()
373 ASSERT_EQ(strlen(expected), data.uncompressed_length); in TEST_F()
384 ASSERT_EQ(0, writer.WriteBytes(kSmall, strlen(kSmall))); in TEST_F()
/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.cpp292 auto len = tag ? strlen(tag) : 0; in __android_log_is_loggable()
427 cp += strlen(flag); in check_flag()
452 char newkey[strlen("persist.") + strlen(key) + 1]; in __android_logger_property_get_bool()
615 char key_persist[strlen(global_tunable) + strlen(".security") + 1]; in __android_logger_get_buffer_size()
616 char key_ro[strlen(global_default) + strlen(".security") + 1]; in __android_logger_get_buffer_size()
/system/core/adb/pairing_connection/tests/
Dpairing_connection_test.cpp351 ASSERT_EQ(strlen(reinterpret_cast<const char*>(client_waiter.peer_info_.data)), in TEST_F()
352 strlen(reinterpret_cast<const char*>(server_info_.data))); in TEST_F()
364 ASSERT_EQ(strlen(reinterpret_cast<const char*>(server_waiter.peer_info_.data)), in TEST_F()
365 strlen(reinterpret_cast<const char*>(client_info_.data))); in TEST_F()
474 ASSERT_EQ(strlen(reinterpret_cast<const char*>(client_waiter.peer_info_.data)), in TEST_F()
475 strlen(reinterpret_cast<const char*>(server_info_.data))); in TEST_F()
493 ASSERT_EQ(strlen(reinterpret_cast<const char*>(server_waiter.peer_info_.data)), in TEST_F()
494 strlen(reinterpret_cast<const char*>(client_info_.data))); in TEST_F()
/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/extras/ioshark/
Dioshark_bench_subr.c399 if (strncmp(dev_name, "bullhead", strlen("bullhead")) == 0 || in get_blockdev_name()
400 strncmp(dev_name, "angler", strlen("angler")) == 0 || in get_blockdev_name()
401 strncmp(dev_name, "shamu", strlen("shamu")) == 0 || in get_blockdev_name()
402 strncmp(dev_name, "aosp_gobo", strlen("aosp_gobo")) == 0 || in get_blockdev_name()
403 strncmp(dev_name, "full_k37_y33_gms", strlen("full_k37_y33_gms")) == 0 || in get_blockdev_name()
404 strncmp(dev_name, "fugu", strlen("fugu")) == 0) { in get_blockdev_name()
406 } else if (strncmp(dev_name, "marlin", strlen("marlin")) == 0 || in get_blockdev_name()
407 strncmp(dev_name, "sailfish", strlen("sailfish")) == 0 || in get_blockdev_name()
408 strncmp(dev_name, "taimen", strlen("taimen")) == 0 || in get_blockdev_name()
409 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()

1234567891011