Searched refs:deviceNameStr (Results 1 – 2 of 2) sorted by relevance
56 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_hardware_UsbDeviceConnection_open() local57 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()
290 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_mtp_MtpDevice_open() local291 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()