Searched defs:ARRAYSIZE (Results 1 - 16 of 16) sorted by relevance

/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/
H A Dutils.h35 #ifndef ARRAYSIZE
36 #define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) macro
/external/chromium_org/third_party/webrtc/examples/android/media_demo/jni/
H A Djni_helpers.h47 #define ARRAYSIZE(instance) \ macro
/external/chromium_org/third_party/cld/base/
H A Dmacros.h24 // COMPILE_ASSERT(ARRAYSIZE(content_type_names) == CONTENT_NUM_TYPES,
114 // cases, you have to use the unsafe ARRAYSIZE() macro below. This is
134 // ARRAYSIZE performs essentially the same calculation as arraysize,
140 // The expression ARRAYSIZE(a) is a compile-time constant of type
143 // ARRAYSIZE catches a few type errors. If you see a compiler error
147 // when using ARRAYSIZE, you are (wrongfully) giving it a pointer.
148 // You should only use ARRAYSIZE on statically allocated arrays.
153 // ARRAYSIZE(arr) works by inspecting sizeof(arr) (the # of bytes in
175 // Starting with Visual C++ 2005, WinNT.h includes ARRAYSIZE.
177 #define ARRAYSIZE( macro
[all...]
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dstack_trace_table_test.cc11 #undef ARRAYSIZE // may be defined on, eg, windows macro
12 #define ARRAYSIZE(a) ( sizeof(a) / sizeof(*(a)) ) macro
41 CheckTracesAndReset(&table, k1, ARRAYSIZE(k1));
61 CheckTracesAndReset(&table, k2, ARRAYSIZE(k2));
69 CheckTracesAndReset(&table, k3, ARRAYSIZE(k3));
78 CheckTracesAndReset(&table, k4, ARRAYSIZE(k4));
93 CheckTracesAndReset(&table, k5, ARRAYSIZE(k5));
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dstack_trace_table_test.cc11 #undef ARRAYSIZE // may be defined on, eg, windows macro
12 #define ARRAYSIZE(a) ( sizeof(a) / sizeof(*(a)) ) macro
41 CheckTracesAndReset(&table, k1, ARRAYSIZE(k1));
61 CheckTracesAndReset(&table, k2, ARRAYSIZE(k2));
69 CheckTracesAndReset(&table, k3, ARRAYSIZE(k3));
78 CheckTracesAndReset(&table, k4, ARRAYSIZE(k4));
93 CheckTracesAndReset(&table, k5, ARRAYSIZE(k5));
/external/chromium_org/third_party/re2/util/
H A Dtest.h34 #define ARRAYSIZE arraysize macro
/external/chromium_org/url/
H A Durl_canon_icu_unittest.cc13 // Some implementations of base/basictypes.h may define ARRAYSIZE.
16 #ifndef ARRAYSIZE
17 #define ARRAYSIZE ARRAYSIZE_UNSAFE macro
64 for (size_t i = 0; i < ARRAYSIZE(icu_cases); i++) {
121 for (size_t i = 0; i < ARRAYSIZE(query_cases); i++) {
H A Dgurl_unittest.cc10 // Some implementations of base/basictypes.h may define ARRAYSIZE.
13 #ifndef ARRAYSIZE
14 #define ARRAYSIZE ARRAYSIZE_UNSAFE macro
235 for (size_t i = 0; i < ARRAYSIZE(valid_cases); i++) {
247 for (size_t i = 0; i < ARRAYSIZE(invalid_cases); i++) {
302 for (size_t i = 0; i < ARRAYSIZE(resolve_cases); i++) {
334 for (size_t i = 0; i < ARRAYSIZE(cases); i++) {
353 for (size_t i = 0; i < ARRAYSIZE(cases); i++) {
372 for (size_t i = 0; i < ARRAYSIZE(cases); i++) {
404 for (size_t i = 0; i < ARRAYSIZE(replace_case
[all...]
H A Durl_parse_unittest.cc11 // Some implementations of base/basictypes.h may define ARRAYSIZE.
14 #ifndef ARRAYSIZE
15 #define ARRAYSIZE ARRAYSIZE_UNSAFE macro
204 for (size_t i = 0; i < ARRAYSIZE(count_cases); i++) {
512 for (size_t i = 0; i < ARRAYSIZE(file_cases); i++) {
H A Durl_canon_unittest.cc15 // Some implementations of base/basictypes.h may define ARRAYSIZE.
18 #ifndef ARRAYSIZE
19 #define ARRAYSIZE ARRAYSIZE_UNSAFE macro
126 for (size_t i = 0; i < ARRAYSIZE(utf_cases); i++) {
185 for (size_t i = 0; i < ARRAYSIZE(utf_cases); i++) {
902 for (size_t i = 0; i < ARRAYSIZE(user_info_cases); i++) {
971 for (size_t i = 0; i < ARRAYSIZE(port_cases); i++) {
1155 for (size_t i = 0; i < ARRAYSIZE(query_cases); i++) {
1312 for (size_t i = 0; i < ARRAYSIZE(cases); i++) {
1651 for (size_t i = 0; i < ARRAYSIZE(case
[all...]
/external/regex-re2/util/
H A Dtest.h34 #define ARRAYSIZE arraysize macro
/external/chromium_org/third_party/libusb/src/libusb/os/
H A Dwindows_common.h57 #ifndef ARRAYSIZE
58 #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) macro
/external/chromium_org/third_party/ots/test/
H A Dcff_type2_charstring_test.cc16 #define ARRAYSIZE(a) (sizeof(a) / sizeof(a[0])) macro
175 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
183 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
191 EXPECT_FALSE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
201 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
209 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
217 EXPECT_FALSE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
227 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
235 EXPECT_TRUE(ValidateCharStrings(char_string, ARRAYSIZE(char_string)));
243 EXPECT_FALSE(ValidateCharStrings(char_string, ARRAYSIZE(char_strin
[all...]
/external/dhcpcd/
H A Ddhcpcd_test.cpp26 #define ARRAYSIZE(x) sizeof((x)) / sizeof((x)[0]) macro
79 memset(dhcpmsgs, 0, ARRAYSIZE(dhcpmsgs) * sizeof(struct dhcp_message));
/external/android-clat/
H A Dclatd_test.cpp36 #define ARRAYSIZE(x) sizeof((x)) / sizeof((x)[0]) macro
779 reassemble_packet(kIPv4Fragments, kIPv4FragLengths, ARRAYSIZE(kIPv4Fragments),
788 reassemble_packet(kIPv6Fragments, kIPv6FragLengths, ARRAYSIZE(kIPv6Fragments),
861 for (i = 0; i < ARRAYSIZE(DATA); i++) {
895 ARRAYSIZE(kIPv4Fragments), "IPv4->IPv6 fragment translation");
899 ARRAYSIZE(kIPv6Fragments), "IPv6->IPv4 fragment translation");
/external/chromium_org/third_party/libusb/src/libusb/
H A Dlibusbi.h69 #if !defined(ARRAYSIZE)
70 #define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0])) macro

Completed in 522 milliseconds