Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 56) sorted by relevance

123

/system/extras/tests/pagingtest/
Dthrashing_test.c34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test()
36 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
43 for (size_t i = 0; i < ARRAY_SIZE(fds); i++) { in thrashing_test()
60 for (size_t j = 0; j < ARRAY_SIZE(fds); j++) { in thrashing_test()
73 (filesize * ARRAY_SIZE(fds) * test_runs * USEC_PER_SEC) / in thrashing_test()
79 for (size_t i = 0; i < ARRAY_SIZE(bufs) && bufs[i] != NULL; i++) { in thrashing_test()
83 for (size_t i = 0; i < ARRAY_SIZE(fds) && fds[i] >= 0; i++) { in thrashing_test()
Dpagingtest.h8 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/bt/tools/hci/
Dmain.c81 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x03; in set_discoverable()
83 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_discoverable()
126 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x01; in set_pcm_loopback()
128 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_pcm_loopback()
153 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_sco_route()
204 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command()
212 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage()
/system/bt/osi/test/
Dlist_test.cc74 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
85 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
87 EXPECT_EQ(list_back(list), &x[ARRAY_SIZE(x) - 1]); in TEST_F()
96 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
109 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
123 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_prepend(list, &x[i]); in TEST_F()
125 int i = ARRAY_SIZE(x) - 1; in TEST_F()
167 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
184 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
/system/media/alsa_utils/
Dalsa_device_profile.c33 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
241 for (index = 0; index < ARRAY_SIZE(std_sample_rates) && in profile_enum_sample_rates()
242 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates()
255 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats()
258 const int table_size = ARRAY_SIZE(pcm_format_value_map); in profile_enum_sample_formats()
274 if (num_written == ARRAY_SIZE(profile->formats) - 1) { in profile_enum_sample_formats()
299 for (index = 0; index < ARRAY_SIZE(std_channel_counts) && in profile_enum_channel_counts()
300 num_counts < ARRAY_SIZE(profile->channel_counts) - 1; in profile_enum_channel_counts()
430 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs()
463 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs()
[all …]
Dalsa_format.c24 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask()
91 int table_size = ARRAY_SIZE(pcm_format_value_map); in get_pcm_format_for_mask()
Dalsa_logging.c26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask()
/system/chre/util/include/chre/util/
Dmacros.h23 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
24 #define ARRAY_END(array) (array + ARRAY_SIZE(array))
/system/chre/apps/audio_world/
Daudio_world.cc96 char fftStr[ARRAY_SIZE(gKissFftOutput) + 1]; in handleAudioDataEvent()
97 fftStr[ARRAY_SIZE(gKissFftOutput)] = '\0'; in handleAudioDataEvent()
99 for (size_t i = 0; i < ARRAY_SIZE(gKissFftOutput); i++) { in handleAudioDataEvent()
/system/netd/server/dns/
DDnsTlsTransport.cpp160 return kDnsSafeChars[(rnd % ARRAY_SIZE(kDnsSafeChars))]; in validate()
163 arc4random_buf(rnd, ARRAY_SIZE(rnd)); in validate()
181 const int qlen = ARRAY_SIZE(query); in validate()
/system/chre/variant/android/
Dstatic_nanoapps.cc38 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/netd/netutils_wrappers/
DNetUtilsWrapper.h17 #define ARRAY_SIZE(x) (sizeof((x)) / (sizeof(((x)[0])))) macro
DNetUtilsWrapperTest-1.0.cpp63 ASSERT_LE(pieces.size(), ARRAY_SIZE(argv)); in TEST()
/system/netd/client/
DFwmarkClient.cpp28 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
97 message.msg_iovlen = ARRAY_SIZE(iov); in send()
/system/vold/
DVoldUtil.h25 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/chre/variant/simulator/
Dstatic_nanoapps.cc38 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/extras/tests/fstest/
Drecovery_test.cpp39 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
219 return android_fork_execvp_ext(ARRAY_SIZE(umount_argv), umount_argv, in unmountCache()
232 return android_fork_execvp_ext(ARRAY_SIZE(mountall_argv), mountall_argv, in mountAll()
/system/chre/core/
Dstatic_nanoapps.cc35 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
/system/chre/platform/linux/
Dpreloaded_nanoapps.cc39 for (size_t i = 0; i < ARRAY_SIZE(preloadedNanoapps); i++) { in loadPreloadedNanoapps()
/system/chre/platform/slpi/
Dpreloaded_nanoapps.cc34 const size_t kPreloadedNanoappCount = ARRAY_SIZE(kPreloadedNanoappList);
/system/bt/osi/include/
Dosi.h25 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/system/extras/ioshark/
Dcompile_ioshark.c40 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) macro
480 ARRAY_SIZE(open_flags_map)); in map_open_flags()
486 ARRAY_SIZE(open_flags_map)); in map_open_flags()
499 ARRAY_SIZE(lseek_action_map)); in map_lseek_action()
505 ARRAY_SIZE(lseek_action_map)); in map_lseek_action()
513 ARRAY_SIZE(fileop_map)); in map_syscall()
/system/netd/server/
DSockDiag.cpp132 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
203 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
363 if (int ret = sendDumpRequest(proto, family, extensions, states, iov, ARRAY_SIZE(iov))) { in getLiveTcpInfos()
422 if (int ret = destroyLiveSockets(shouldDestroy, "UID", iov, ARRAY_SIZE(iov))) { in destroySockets()
521 if (int ret = destroyLiveSockets(shouldDestroy, "permission change", iov, ARRAY_SIZE(iov))) { in destroySocketsLackingPermission()
DNetdConstants.h53 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/extras/puncture_fs/
Dpuncture_fs.c31 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
193 if (android_fork_execvp_ext(ARRAY_SIZE(rm_bin_argv), rm_bin_argv, in puncture_fs()

123