Home
last modified time | relevance | path

Searched refs:actual_length (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/chrome/browser/usb/
Dusb_device_handle.cc218 DCHECK_GE(handle->actual_length, 0) << "Negative actual length received"; in TransferComplete()
219 size_t actual_length = in TransferComplete() local
220 static_cast<size_t>(std::max(handle->actual_length, 0)); in TransferComplete()
222 DCHECK(transfer.length >= actual_length) << in TransferComplete()
231 if (actual_length > 0) { in TransferComplete()
235 if (transfer.length >= actual_length && in TransferComplete()
236 actual_length >= LIBUSB_CONTROL_SETUP_SIZE) { in TransferComplete()
240 std::max(actual_length, static_cast<size_t>(1))); in TransferComplete()
243 actual_length); in TransferComplete()
254 if (actual_length == 0) { in TransferComplete()
[all …]
/external/libusb/libusb/
Dsync.c40 usbi_dbg("actual_length=%d", transfer->actual_length); in ctrl_transfer_cb()
120 transfer->actual_length); in libusb_control_transfer()
124 r = transfer->actual_length; in libusb_control_transfer()
149 usbi_dbg("actual_length=%d", transfer->actual_length); in bulk_transfer_cb()
188 *transferred = transfer->actual_length; in do_sync_bulk_transfer()
Dlibusb.h691 unsigned int actual_length; member
748 int actual_length; member
1127 int *actual_length, unsigned int timeout);
1131 int *actual_length, unsigned int timeout);
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dasyncstuntcpsocket.cc123 size_t actual_length = expected_pkt_len + pad_bytes; in ProcessInput() local
125 if (*len < actual_length) { in ProcessInput()
132 *len -= actual_length; in ProcessInput()
134 memmove(data, data + actual_length, *len); in ProcessInput()
/external/chromium_org/third_party/libusb/src/libusb/
Dsync.c40 usbi_dbg("actual_length=%d", transfer->actual_length); in sync_transfer_cb()
126 transfer->actual_length); in libusb_control_transfer()
130 r = transfer->actual_length; in libusb_control_transfer()
181 *transferred = transfer->actual_length; in do_sync_bulk_transfer()
Dlibusb.h1185 unsigned int actual_length; member
1242 int actual_length; member
1712 int *actual_length, unsigned int timeout);
1716 int *actual_length, unsigned int timeout);
/external/kernel-headers/original/linux/
Dusbdevice_fs.h91 unsigned int actual_length; member
102 int actual_length; member
136 compat_int_t actual_length; member
Dusb.h672 unsigned int actual_length; member
864 int actual_length; /* (return) actual transfer length */ member
1023 void *data, int len, int *actual_length, int timeout);
1025 void *data, int len, int *actual_length,
/external/chromium_org/ui/base/l10n/
Dl10n_util_android.cc48 int32_t actual_length = uloc_func(locale.c_str(), in GetLocaleComponent() local
53 DCHECK(actual_length < max_capacity); in GetLocaleComponent()
54 result.resize(actual_length); in GetLocaleComponent()
/external/webrtc/test/testsupport/
Dpacket_reader_unittest.cc30 int actual_length, in VerifyPacketData() argument
33 EXPECT_EQ(expected_length, actual_length); in VerifyPacketData()
36 actual_length)); in VerifyPacketData()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dtestutils.h463 size_t actual_length) in CmpHelperMemEq() argument
465 if ((expected_length == actual_length) in CmpHelperMemEq()
474 size_t buffer_size = actual_length * 2 + 1; in CmpHelperMemEq()
477 reinterpret_cast<const char*>(actual), actual_length); in CmpHelperMemEq()
478 msg << "\n Actual: " << buffer << " [" << actual_length << "]"; in CmpHelperMemEq()
513 #define EXPECT_MEMEQ(expected, expected_length, actual, actual_length) \ argument
515 actual, actual_length)
517 #define ASSERT_MEMEQ(expected, expected_length, actual, actual_length) \ argument
519 actual, actual_length)
/external/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc54 int32_t actual_length = std::min<int32_t>(length, filled_length_ - index); in Get() local
55 return InternalGet(index, b, offset, actual_length); in Get()
89 int32_t actual_length = std::min<int32_t>(length, Size() - index); in Put() local
90 int32_t bytes_written = InternalPut(index, b, offset, actual_length); in Put()
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/
Dbyte_array.cc54 int32_t actual_length = std::min<int32_t>(length, filled_length_ - index); in Get() local
55 return InternalGet(index, b, offset, actual_length); in Get()
89 int32_t actual_length = std::min<int32_t>(length, Size() - index); in Put() local
90 int32_t bytes_written = InternalPut(index, b, offset, actual_length); in Put()
/external/libusb/libusb/os/
Dlinux_usbfs.h77 unsigned int actual_length; member
92 int actual_length; member
Dlinux_usbfs.c1820 if (urb->actual_length > 0) { in handle_bulk_completion()
1824 usbi_dbg("received %d bytes of surplus data", urb->actual_length); in handle_bulk_completion()
1829 memmove(target, urb->buffer, urb->actual_length); in handle_bulk_completion()
1831 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
1851 (urb->status == -EOVERFLOW && urb->actual_length > 0)) in handle_bulk_completion()
1852 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
1866 usbi_dbg("overflow, actual_length=%d", urb->actual_length); in handle_bulk_completion()
1886 } else if (urb->actual_length < urb->buffer_length) { in handle_bulk_completion()
1893 usbi_dbg("short transfer %d/%d --> complete!", urb->actual_length, in handle_bulk_completion()
1958 lib_desc->actual_length = urb_desc->actual_length; in handle_iso_completion()
[all …]
/external/chromium_org/third_party/libusb/src/libusb/os/
Dlinux_usbfs.h80 unsigned int actual_length; member
95 int actual_length; member
Dlinux_usbfs.c2163 if (urb->actual_length > 0) { in handle_bulk_completion()
2165 usbi_dbg("received %d bytes of surplus data", urb->actual_length); in handle_bulk_completion()
2170 memmove(target, urb->buffer, urb->actual_length); in handle_bulk_completion()
2172 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
2185 itransfer->transferred += urb->actual_length; in handle_bulk_completion()
2210 usbi_dbg("overflow, actual_length=%d", urb->actual_length); in handle_bulk_completion()
2234 } else if (urb->actual_length < urb->buffer_length) { in handle_bulk_completion()
2236 urb->actual_length, urb->buffer_length); in handle_bulk_completion()
2334 lib_desc->actual_length = urb_desc->actual_length; in handle_iso_completion()
2396 itransfer->transferred += urb->actual_length; in handle_control_completion()
[all …]
/external/libusb-compat/libusb/
Dcore.c749 int actual_length; in usb_bulk_io() local
753 &actual_length, timeout); in usb_bulk_io()
757 if (r == 0 || (r == LIBUSB_ERROR_TIMEOUT && actual_length > 0)) in usb_bulk_io()
758 return actual_length; in usb_bulk_io()
794 int actual_length; in usb_interrupt_io() local
798 &actual_length, timeout); in usb_interrupt_io()
802 if (r == 0 || (r == LIBUSB_ERROR_TIMEOUT && actual_length > 0)) in usb_interrupt_io()
803 return actual_length; in usb_interrupt_io()
/external/chromium_org/base/i18n/
Dicu_string_conversions.cc281 int actual_length = unorm_normalize( in ConvertToUtf8AndNormalize() local
286 normalized_utf16.assign(buffer.get(), actual_length); in ConvertToUtf8AndNormalize()
/external/chromium/base/i18n/
Dicu_string_conversions.cc282 int actual_length = unorm_normalize( in ConvertToUtf8AndNormalize() local
288 normalized_utf16.resize(actual_length); in ConvertToUtf8AndNormalize()
/external/chromium/chrome/browser/
Dbrowser_keyevents_browsertest.cc177 int actual_length; in CheckResult() local
178 ASSERT_NO_FATAL_FAILURE(GetResultLength(tab_index, &actual_length)); in CheckResult()
179 ASSERT_GE(actual_length, length); in CheckResult()
180 for (int i = 0; i < actual_length; ++i) { in CheckResult()
/external/chromium_org/chrome/browser/
Dbrowser_keyevents_browsertest.cc187 int actual_length; in CheckResult() local
188 ASSERT_NO_FATAL_FAILURE(GetResultLength(tab_index, &actual_length)); in CheckResult()
189 ASSERT_GE(actual_length, length); in CheckResult()
190 for (int i = 0; i < actual_length; ++i) { in CheckResult()
/external/chromium_org/v8/src/
Dprofile-generator.cc115 int actual_length = 0; in GetName() local
118 &actual_length); in GetName()
119 return AddOrDisposeString(data.Detach(), actual_length); in GetName()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-linux.c5280 …"ioctl(USBDEVFS_SUBMITURB).actual_length", (Addr)&vkuu->actual_length, sizeof(vkuu->actual_length)… in PRE()
5287 …actual_length", (Addr)&vkuu->iso_frame_desc[i].actual_length, sizeof(vkuu->iso_frame_desc[i].actua… in PRE()
5302 …"ioctl(USBDEVFS_SUBMITURB).actual_length", (Addr)&vkuu->actual_length, sizeof(vkuu->actual_length)… in PRE()
6379 POST_MEM_WRITE((Addr)&(*vkuu)->actual_length, sizeof((*vkuu)->actual_length)); in POST()
6384 …_MEM_WRITE((Addr)&(*vkuu)->iso_frame_desc[i].actual_length, sizeof((*vkuu)->iso_frame_desc[i].actu… in POST()
6387 POST_MEM_WRITE((Addr)bp, (*vkuu)->iso_frame_desc[i].actual_length); in POST()
6393 POST_MEM_WRITE((Addr)(*vkuu)->buffer, (*vkuu)->actual_length); in POST()
6394 POST_MEM_WRITE((Addr)&(*vkuu)->actual_length, sizeof((*vkuu)->actual_length)); in POST()
/external/libusb/examples/
Ddpfp.c160 transfer->length, transfer->actual_length); in cb_mode_changed()

12