Home
last modified time | relevance | path

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

12

/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/examples/terminal-emulators/
Dterminal-test.c18 #define ARRAYSIZE(x) (sizeof(x) / sizeof(*x)) macro
117 writev(fd_log, iov, ARRAYSIZE(iov)); in LLVMFuzzerTestOneInput()
/external/nos/host/android/hals/keymaster/
Dmacros.h4 #define ARRAYSIZE(a) \ macro
Dimport_wrapped_key.cpp437 for (size_t i = 0; i < ARRAYSIZE(parser_table); i++) { in import_wrapped_key_request()
/external/nos/test/system-test-harness/src/
Dmacros.h4 #define ARRAYSIZE(a) \ macro
Daes-cmac-tests.cc77 for (size_t i = 0; i < ARRAYSIZE(RFC4493_AES_CMAC_DATA); i++) { in TEST_F()
Dcavptests.cc85 size_t test_input_count = ARRAYSIZE(NIST_GCM_DATA); in TEST_F()
Dkeymaster-import-key-tests.cc235 for (size_t i = 0; i < ARRAYSIZE(TEST_RSA_KEYS); i++) { in TEST_F()
/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/libcommon/
Dcommon.h42 #define ARRAYSIZE(x) (sizeof(x) / sizeof(*x)) macro
/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.cpp36 #define ARRAYSIZE(x) sizeof((x)) / sizeof((x)[0]) macro
776 reassemble_packet(kIPv4Fragments, kIPv4FragLengths, ARRAYSIZE(kIPv4Fragments), in TEST_F()
785 reassemble_packet(kIPv6Fragments, kIPv6FragLengths, ARRAYSIZE(kIPv6Fragments), in TEST_F()
858 for (i = 0; i < ARRAYSIZE(DATA); i++) { in TEST_F()
891 ARRAYSIZE(kIPv4Fragments), "IPv4->IPv6 fragment translation"); in TEST_F()
895 ARRAYSIZE(kIPv6Fragments), "IPv6->IPv4 fragment translation"); in TEST_F()
/external/tensorflow/tensorflow/stream_executor/platform/
Dport.h43 #define ARRAYSIZE(a) \ macro
/external/honggfuzz/
Dcmdline.c401 struct option opts[ARRAYSIZE(custom_opts)]; in cmdlineParse()
402 for (unsigned i = 0; i < ARRAYSIZE(custom_opts); i++) { in cmdlineParse()
549 for (size_t i = 0; i < ARRAYSIZE(hfuzz->exe.envs); i++) { in cmdlineParse()
Dmangle.c382 uint64_t choice = util_rndGet(0, ARRAYSIZE(mangleMagicVals) - 1); in mangle_Magic()
575 uint64_t choice = util_rndGet(0, ARRAYSIZE(mangleFuncs) - 1); in mangle_mangleContent()
Dsubproc.c207 for (size_t i = 0; i < ARRAYSIZE(run->global->exe.envs) && run->global->exe.envs[i]; i++) { in subproc_PrepareExecv()
/external/libusb/include/libusb/
Dlibusbi.h73 #if !defined(ARRAYSIZE)
74 #define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0])) macro
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_driver.cc43 #define ARRAYSIZE(a) \ macro
723 CHECK(ARRAYSIZE(options) == ARRAYSIZE(option_values)); in LoadPtx()
730 res = cuModuleLoadDataEx(module, ptx_data, ARRAYSIZE(options), options, in LoadPtx()

12