Home
last modified time | relevance | path

Searched refs:bufferBytes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp183 jbyte* bufferBytes = NULL; in android_hardware_UsbDeviceConnection_control_request() local
185 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL); in android_hardware_UsbDeviceConnection_control_request()
189 value, index, bufferBytes + start, length, timeout); in android_hardware_UsbDeviceConnection_control_request()
191 if (bufferBytes) { in android_hardware_UsbDeviceConnection_control_request()
192 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0); in android_hardware_UsbDeviceConnection_control_request()
208 jbyte* bufferBytes = NULL; in android_hardware_UsbDeviceConnection_bulk_request() local
210 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL); in android_hardware_UsbDeviceConnection_bulk_request()
213 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes + start, length, timeout); in android_hardware_UsbDeviceConnection_bulk_request()
215 if (bufferBytes) { in android_hardware_UsbDeviceConnection_bulk_request()
216 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0); in android_hardware_UsbDeviceConnection_bulk_request()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java645 long bufferBytes = (long) elements << shift; in copyPixelsFromBuffer() local
648 if (bufferBytes < bitmapBytes) { in copyPixelsFromBuffer()