Searched defs:ARRAY_SIZE (Results 1 - 22 of 22) sorted by relevance

/system/netd/netutils_wrappers/
H A DNetUtilsWrapper.h17 #define ARRAY_SIZE(x) (sizeof((x)) / (sizeof(((x)[0])))) macro
/system/vold/
H A DVoldUtil.h25 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/extras/tests/pagingtest/
H A Dpagingtest.h8 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/chre/util/include/chre/util/
H A Dmacros.h23 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
24 #define ARRAY_END(array) (array + ARRAY_SIZE(array))
/system/bt/osi/include/
H A Dosi.h25 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/system/media/alsa_utils/
H A Dalsa_format.c24 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
88 int num_slots = ARRAY_SIZE(mask->bits);
91 int table_size = ARRAY_SIZE(pcm_format_value_map);
H A Dalsa_logging.c26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
33 const size_t num_slots = ARRAY_SIZE(mask->bits);
H A Dalsa_device_proxy.c34 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
106 if (config->format >= 0 && (size_t)config->format < ARRAY_SIZE(format_byte_size_map)) {
H A Dalsa_device_profile.c33 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
241 for (index = 0; index < ARRAY_SIZE(std_sample_rates) &&
242 num_entries < ARRAY_SIZE(profile->sample_rates) - 1;
255 const int num_slots = ARRAY_SIZE(mask->bits);
258 const int table_size = ARRAY_SIZE(pcm_format_value_map);
274 if (num_written == ARRAY_SIZE(profile->formats) - 1) {
299 for (index = 0; index < ARRAY_SIZE(std_channel_counts) &&
300 num_counts < ARRAY_SIZE(profile->channel_counts) - 1;
430 size_t buffSize = ARRAY_SIZE(buffer);
463 size_t buffSize = ARRAY_SIZE(buffe
[all...]
/system/netd/client/
H A DFwmarkClient.cpp28 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
97 message.msg_iovlen = ARRAY_SIZE(iov);
/system/netd/server/
H A DNetdConstants.h53 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
/system/core/storaged/include/
H A Dstoraged.h37 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/system/extras/puncture_fs/
H A 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,
/system/extras/tests/fstest/
H A 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,
232 return android_fork_execvp_ext(ARRAY_SIZE(mountall_argv), mountall_argv,
/system/media/camera/tests/
H A Dcamera_metadata_tests.cpp35 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
269 colorCorrectionGains, ARRAY_SIZE(colorCorrectionGains));
273 ARRAY_SIZE(colorCorrectionGains));
288 colorTransform, ARRAY_SIZE(colorTransform));
292 ARRAY_SIZE(colorTransform));
338 EXPECT_EQ(ARRAY_SIZE(colorCorrectionGains), entry.count);
350 EXPECT_EQ(ARRAY_SIZE(colorTransform), entry.count);
979 colorTransform, ARRAY_SIZE(colorTransform));
/system/core/trusty/storage/tests/
H A Dmain.cpp25 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) macro
543 for (uint i = 0; i < ARRAY_SIZE(handles); ++i) {
551 for (uint i = 0; i < ARRAY_SIZE(handles)-1; i++) {
552 for (uint j = i+1; j < ARRAY_SIZE(handles); j++) {
558 for (uint i = 0; i < ARRAY_SIZE(handles); ++i) {
563 for (uint i = 0; i < ARRAY_SIZE(handles); ++i) {
570 for (uint i = 0; i < ARRAY_SIZE(handles)-1; i++) {
571 for (uint j = i+1; j < ARRAY_SIZE(handles); j++) {
577 for (uint i = 0; i < ARRAY_SIZE(handles); ++i) {
/system/extras/ioshark/
H A Dcompile_ioshark.c40 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) macro
480 ARRAY_SIZE(open_flags_map));
486 ARRAY_SIZE(open_flags_map));
499 ARRAY_SIZE(lseek_action_map));
505 ARRAY_SIZE(lseek_action_map));
513 ARRAY_SIZE(fileop_map));
/system/core/healthd/
H A Dhealthd_mode_charger.cpp67 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
588 battery_animation.num_frames = ARRAY_SIZE(default_animation_frames);
/system/core/logwrapper/
H A Dlogwrap.c35 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro
350 if (TEMP_FAILURE_RETRY(poll(poll_fds, ARRAY_SIZE(poll_fds), -1)) < 0) {
/system/media/audio_utils/tests/
H A Dprimitives_tests.cpp30 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
134 for (size_t i = 0; i < ARRAY_SIZE(testArray); ++i) {
137 for (size_t i = 0; i < ARRAY_SIZE(testArray); ++i) {
140 for (size_t i = 0; i < ARRAY_SIZE(testArray); ++i) {
/system/core/fs_mgr/
H A Dfs_mgr.cpp77 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
207 ARRAY_SIZE(e2fsck_forced_argv), const_cast<char**>(e2fsck_forced_argv), &status,
211 ARRAY_SIZE(e2fsck_argv), const_cast<char**>(e2fsck_argv), &status, true,
232 ret = android_fork_execvp_ext(ARRAY_SIZE(f2fs_fsck_argv),
335 if (!run_tune2fs(argv, ARRAY_SIZE(argv))) {
376 if (!run_tune2fs(argv, ARRAY_SIZE(argv))) {
402 if (!run_tune2fs(argv, ARRAY_SIZE(argv))) {
1242 err = android_fork_execvp_ext(ARRAY_SIZE(mkswap_argv),
/system/core/lmkd/
H A Dlmkd.c76 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) macro
531 if (ntargets > (int)ARRAY_SIZE(lowmem_adj))
621 if (nargs & 0x1 || targets > (int)ARRAY_SIZE(lowmem_adj))

Completed in 3161 milliseconds