Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_UsbDeviceConnection.cpp56 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_hardware_UsbDeviceConnection_open() local
57 struct usb_device* device = usb_device_new(deviceNameStr, fd); in android_hardware_UsbDeviceConnection_open()
61 ALOGE("usb_device_open failed for %s", deviceNameStr); in android_hardware_UsbDeviceConnection_open()
65 env->ReleaseStringUTFChars(deviceName, deviceNameStr); in android_hardware_UsbDeviceConnection_open()
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp290 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_mtp_MtpDevice_open() local
291 if (deviceNameStr == NULL) { in android_mtp_MtpDevice_open()
298 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); in android_mtp_MtpDevice_open()
299 env->ReleaseStringUTFChars(deviceName, deviceNameStr); in android_mtp_MtpDevice_open()