Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp178 jbyte* bufferBytes = NULL; in android_hardware_UsbDeviceConnection_control_request() local
180 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL); in android_hardware_UsbDeviceConnection_control_request()
184 value, index, bufferBytes + start, length, timeout); in android_hardware_UsbDeviceConnection_control_request()
186 if (bufferBytes) { in android_hardware_UsbDeviceConnection_control_request()
187 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0); in android_hardware_UsbDeviceConnection_control_request()
203 jbyte* bufferBytes = NULL; in android_hardware_UsbDeviceConnection_bulk_request() local
205 bufferBytes = (jbyte*)env->GetPrimitiveArrayCritical(buffer, NULL); in android_hardware_UsbDeviceConnection_bulk_request()
208 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes + start, length, timeout); in android_hardware_UsbDeviceConnection_bulk_request()
210 if (bufferBytes) { in android_hardware_UsbDeviceConnection_bulk_request()
211 env->ReleasePrimitiveArrayCritical(buffer, bufferBytes, 0); in android_hardware_UsbDeviceConnection_bulk_request()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java563 long bufferBytes = (long) elements << shift; in copyPixelsFromBuffer() local
566 if (bufferBytes < bitmapBytes) { in copyPixelsFromBuffer()