/system/chre/util/tests/ |
D | buffer_test.cc | 38 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST() 41 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST() 43 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST() 48 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST() 51 EXPECT_TRUE(buffer.copy_array(buf, ARRAY_SIZE(buf))); in TEST() 52 EXPECT_EQ(buffer.size(), ARRAY_SIZE(buf)); in TEST() 54 for (size_t i = 0; i < ARRAY_SIZE(buf); i++) { in TEST() 68 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST() 71 buffer.wrap(buf, ARRAY_SIZE(buf)); in TEST() 79 fillBufferWithSequentialValues(buf, ARRAY_SIZE(buf)); in TEST() [all …]
|
/system/bt/service/test/ |
D | settings_unittest.cc | 49 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 56 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 62 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 68 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 75 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 83 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 90 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F() 97 EXPECT_TRUE(base::CommandLine::Init(ARRAY_SIZE(argv), argv)); in TEST_F()
|
D | ipc_linux_unittest.cc | 87 base::CommandLine::Init(ARRAY_SIZE(argv), argv); in SetUpCommandLine() 124 base::CommandLine::Init(ARRAY_SIZE(argv), argv); in SetUpCommandLine()
|
/system/extras/tests/pagingtest/ |
D | thrashing_test.c | 34 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()
|
D | pagingtest.h | 8 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
|
/system/bt/tools/hci/ |
D | main.c | 82 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x03; in set_discoverable() 84 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_discoverable() 127 if (argv[0][0] == 't') packet[ARRAY_SIZE(packet) - 1] = 0x01; in set_pcm_loopback() 129 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_pcm_loopback() 154 return !write_hci_command(HCI_PACKET_COMMAND, packet, ARRAY_SIZE(packet)); in set_sco_route() 205 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in find_command() 213 for (size_t i = 0; i < ARRAY_SIZE(commands); ++i) in usage()
|
/system/chre/platform/slpi/see/ |
D | see_cal_helper.cc | 32 if (index < ARRAY_SIZE(mCalInfo)) { in applyCalibration() 58 if (index < ARRAY_SIZE(mCalInfo)) { in getBias() 81 if (index < ARRAY_SIZE(mCalInfo)) { in areCalUpdatesEnabled() 92 if (index >= ARRAY_SIZE(mCalInfo)) { in configureCalUpdates() 107 if (calIndex < ARRAY_SIZE(mCalInfo) && mCalInfo[calIndex].suid.has_value()) { in getCalSuidFromSensorType() 117 for (size_t i = 0; i < ARRAY_SIZE(mCalInfo); i++) { in findCalibrationSensors() 136 if (index < ARRAY_SIZE(mCalInfo)) { in updateCalibration() 223 for (; i < ARRAY_SIZE(mCalInfo); i++) { in getCalIndexFromSuid()
|
/system/chre/util/include/chre/util/ |
D | macros.h | 27 #ifndef ARRAY_SIZE 28 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro 32 #define ARRAY_END(array) (array + ARRAY_SIZE(array))
|
/system/bt/include/ |
D | array_utils.h | 18 #ifndef ARRAY_SIZE 19 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) macro
|
/system/bt/osi/test/ |
D | list_test.cc | 74 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/ |
D | alsa_format.c | 24 #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()
|
D | alsa_device_profile.c | 33 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro 278 for (index = 0; index < ARRAY_SIZE(std_sample_rates) && in profile_enum_sample_rates() 279 num_entries < ARRAY_SIZE(profile->sample_rates) - 1; in profile_enum_sample_rates() 293 const int num_slots = ARRAY_SIZE(mask->bits); in profile_enum_sample_formats() 296 const int table_size = ARRAY_SIZE(pcm_format_value_map); in profile_enum_sample_formats() 312 if (num_written == ARRAY_SIZE(profile->formats) - 1) { in profile_enum_sample_formats() 345 for (index = 0; index < ARRAY_SIZE(std_channel_counts) && in profile_enum_channel_counts() 346 num_counts < ARRAY_SIZE(profile->channel_counts) - 1; in profile_enum_channel_counts() 484 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs() 517 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs() [all …]
|
D | alsa_logging.c | 26 #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/apps/audio_world/ |
D | audio_world.cc | 102 char fftStr[ARRAY_SIZE(gKissFftOutput) + 1]; in handleAudioDataEvent() 103 fftStr[ARRAY_SIZE(gKissFftOutput)] = '\0'; in handleAudioDataEvent() 105 for (size_t i = 0; i < ARRAY_SIZE(gKissFftOutput); i++) { in handleAudioDataEvent()
|
/system/chre/variant/android/ |
D | static_nanoapps.cc | 39 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
|
/system/netd/netutils_wrappers/ |
D | NetUtilsWrapper.h | 17 #define ARRAY_SIZE(x) (sizeof((x)) / (sizeof(((x)[0])))) macro
|
D | NetUtilsWrapperTest-1.0.cpp | 63 ASSERT_LE(pieces.size(), ARRAY_SIZE(argv)); in TEST()
|
/system/chre/variant/simulator/ |
D | static_nanoapps.cc | 41 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 41 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro 220 return logwrap_fork_execvp(ARRAY_SIZE(umount_argv), umount_argv, nullptr, in unmountCache() 232 return logwrap_fork_execvp(ARRAY_SIZE(mountall_argv), mountall_argv, nullptr, in mountAll()
|
/system/chre/core/ |
D | static_nanoapps.cc | 56 const size_t kStaticNanoappCount = ARRAY_SIZE(kStaticNanoappList);
|
/system/chre/chpp/include/chpp/ |
D | macros.h | 46 #ifndef ARRAY_SIZE 47 #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) macro
|
/system/bt/osi/include/ |
D | osi.h | 25 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
|
/system/extras/ioshark/ |
D | compile_ioshark.c | 40 #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/ |
D | SockDiag.cpp | 147 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest() 216 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest() 382 if (int ret = sendDumpRequest(proto, family, extensions, states, iov, ARRAY_SIZE(iov))) { in getLiveTcpInfos() 442 if (int ret = destroyLiveSockets(shouldDestroy, "UID", iov, ARRAY_SIZE(iov))) { in destroySockets() 535 if (int ret = destroyLiveSockets(shouldDestroy, "permission change", iov, ARRAY_SIZE(iov))) { in destroySocketsLackingPermission()
|
D | NetdConstants.h | 43 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
|