Home
last modified time | relevance | path

Searched refs:ARRAYSIZE (Results 1 – 22 of 22) sorted by relevance

/external/libtextclassifier/native/utils/utf8/
Dunilib-common.cc24 #define ARRAYSIZE(a) sizeof(a) / sizeof(*a) macro
39 constexpr int kNumOpeningBrackets = ARRAYSIZE(kOpeningBrackets);
51 constexpr int kNumClosingBrackets = ARRAYSIZE(kClosingBrackets);
62 constexpr int kNumWhitespaces = ARRAYSIZE(kWhitespaces);
75 constexpr int kNumDecimalDigitRangesEnd = ARRAYSIZE(kDecimalDigitRangesEnd);
85 constexpr int kNumLatinLettersRangesStart = ARRAYSIZE(kLatinLettersRangesStart);
89 constexpr int kNumLatinLettersRangesEnd = ARRAYSIZE(kLatinLettersRangesEnd);
95 ARRAYSIZE(kArabicLettersRangesStart);
98 constexpr int kNumArabicLettersRangesEnd = ARRAYSIZE(kArabicLettersRangesEnd);
104 ARRAYSIZE(kCyrillicLettersRangesStart);
[all …]
/external/webrtc/webrtc/examples/peerconnection/server/
Ddata_socket.cc199 for (size_t i = 0; i < ARRAYSIZE(supported_methods); ++i) { in ParseMethodAndPath()
233 if ((headers + ARRAYSIZE(kContentLength)) < end && in ParseContentLengthAndType()
235 ARRAYSIZE(kContentLength) - 1) == 0) { in ParseContentLengthAndType()
236 headers += ARRAYSIZE(kContentLength) - 1; in ParseContentLengthAndType()
240 } else if ((headers + ARRAYSIZE(kContentType)) < end && in ParseContentLengthAndType()
242 ARRAYSIZE(kContentType) - 1) == 0) { in ParseContentLengthAndType()
243 headers += ARRAYSIZE(kContentType) - 1; in ParseContentLengthAndType()
Dutils.h18 #ifndef ARRAYSIZE
19 #define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0])) macro
Dpeer_channel.cc186 for (; i < ARRAYSIZE(kRequestPaths); ++i) { in Lookup()
191 if (i == ARRAYSIZE(kRequestPaths)) in Lookup()
200 int id = atoi(&args[found + ARRAYSIZE(kPeerId) - 1]); in Lookup()
230 found += ARRAYSIZE(kTargetPeerIdParam) - 1; in IsTargetedRequest()
233 args = found + ARRAYSIZE(kTargetPeerIdParam) - 1; in IsTargetedRequest()
/external/libusb/libusb/
Dstrerror.c64 static const char* usbi_localized_errors[ARRAYSIZE(usbi_locale_supported)][LIBUSB_ERROR_COUNT] = {
166 for (i=0; i<ARRAYSIZE(usbi_locale_supported); i++) { in libusb_setlocale()
170 if (i >= ARRAYSIZE(usbi_locale_supported)) { in libusb_setlocale()
Dlibusbi.h73 #if !defined(ARRAYSIZE)
74 #define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0])) macro
/external/libusb/examples/
Dfxload.c46 #ifndef ARRAYSIZE
47 #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) macro
91 int fx_type = FX_TYPE_UNDEFINED, img_type[ARRAYSIZE(path)]; in main()
203 for (j=0; j<ARRAYSIZE(known_device); j++) { in main()
223 if (j < ARRAYSIZE(known_device)) { in main()
264 for (i=0; i<ARRAYSIZE(path); i++) { in main()
/external/honggfuzz/libhfcommon/
Dcommon.h36 #ifndef ARRAYSIZE
37 #define ARRAYSIZE(x) (sizeof(x) / sizeof(*x)) macro
/external/honggfuzz/examples/terminal-emulators/
Dterminal-test.c18 #define ARRAYSIZE(x) (sizeof(x) / sizeof(*x)) macro
114 writev(fd_log, iov, ARRAYSIZE(iov)); in LLVMFuzzerTestOneInput()
/external/libusb/libusb/os/
Dwindows_common.h65 #ifndef ARRAYSIZE
66 #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) macro
Dwindows_usbdk.c233 char dev_identity[ARRAYSIZE(id->DeviceID) + ARRAYSIZE(id->InstanceID)]; in usbdk_get_session_id_for_device()
Dwindows_winusb.c1374 for (; class_index < ARRAYSIZE(usb_class); class_index++) { in windows_get_device_list()
1379 if (class_index >= ARRAYSIZE(usb_class)) in windows_get_device_list()
2217 ARRAYSIZE(hub_driver_names),
2239 ARRAYSIZE(composite_driver_names),
2261 ARRAYSIZE(winusbx_driver_names),
2283 ARRAYSIZE(hid_driver_names),
/external/honggfuzz/
Dmangle.c430 uint64_t choice = util_rndGet(0, ARRAYSIZE(mangleMagicVals) - 1); in mangle_Magic()
673 uint64_t choice = util_rndGet(0, ARRAYSIZE(mangleMagicVals) - 1); in mangle_MagicPrintable()
934 uint64_t choice = util_rndGet(0, ARRAYSIZE(manglePrintableFuncs) - 1); in mangle_mangleContent()
939 uint64_t choice = util_rndGet(0, ARRAYSIZE(mangleFuncs) - 1); in mangle_mangleContent()
Dcmdline.c146 for (size_t i = 0; i < ARRAYSIZE(hfuzz->exe.envs); i++) { in cmdlineAddEnv()
158 LOG_E("No more space for new envars (max.%zu)", ARRAYSIZE(hfuzz->exe.envs)); in cmdlineAddEnv()
470 struct option opts[ARRAYSIZE(custom_opts)]; in cmdlineParse()
471 for (unsigned i = 0; i < ARRAYSIZE(custom_opts); i++) { in cmdlineParse()
Dsubproc.c236 for (size_t i = 0; i < ARRAYSIZE(run->global->exe.envs) && run->global->exe.envs[i]; i++) { in subproc_PrepareExecv()
/external/webrtc/webrtc/examples/peerconnection/client/
Dmain_wnd.cc56 ::GetWindowTextA(wnd, &text[0], ARRAYSIZE(text)); in GetWindowText()
495 size_t total_width = (ARRAYSIZE(windows) - 1) * kSeparator; in LayoutConnectUI()
497 for (size_t i = 0; i < ARRAYSIZE(windows); ++i) { in LayoutConnectUI()
507 for (size_t i = 0; i < ARRAYSIZE(windows); ++i) { in LayoutConnectUI()
519 for (size_t i = 0; i < ARRAYSIZE(windows); ++i) { in LayoutConnectUI()
/external/android-clat/
Dclatd_test.cpp40 #define ARRAYSIZE(x) sizeof((x)) / sizeof((x)[0]) macro
684 reassemble_packet(kIPv4Fragments, kIPv4FragLengths, ARRAYSIZE(kIPv4Fragments), reassembled, in TEST_F()
693 reassemble_packet(kIPv6Fragments, kIPv6FragLengths, ARRAYSIZE(kIPv6Fragments), reassembled, in TEST_F()
768 for (i = 0; i < ARRAYSIZE(DATA); i++) { in TEST_F()
806 ARRAYSIZE(kIPv4Fragments), "IPv4->IPv6 fragment translation"); in TEST_F()
809 ARRAYSIZE(kIPv6Fragments), "IPv6->IPv4 fragment translation"); in TEST_F()
/external/libusb/include/libusb/
Dlibusbi.h73 #if !defined(ARRAYSIZE)
74 #define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0])) macro
/external/grpc-grpc/third_party/nanopb/
DCHANGELOG.txt5 Generate MIN/MAX/ARRAYSIZE defines for enums (#194)
/external/nanopb-c/
DCHANGELOG.txt66 Generate MIN/MAX/ARRAYSIZE defines for enums (#194)
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationWin32KeyedMutexTests.cpp822 …createShaders(shader, "VS", "vs_4_0", ARRAYSIZE(layout), layout, &m_pVertexShader, "PS", "ps_4_0",… in DX11Operation()
/external/python/cpython2/Modules/
Dposixmodule.c1586 #ifndef ARRAYSIZE
1587 #define ARRAYSIZE(a) (sizeof(a) / sizeof(a[0])) macro