Lines Matching refs:deviceName
73 private boolean isBlackListed(String deviceName) {
76 if (deviceName.startsWith(mHostBlacklist[i])) {
98 private void usbDeviceAdded(String deviceName, int vendorID, int productID,
107 if (isBlackListed(deviceName) ||
113 if (mDevices.get(deviceName) != null) {
114 Slog.w(TAG, "device already on mDevices list: " + deviceName);
154 UsbDevice device = new UsbDevice(deviceName, vendorID, productID,
156 mDevices.put(deviceName, device);
162 private void usbDeviceRemoved(String deviceName) {
164 UsbDevice device = mDevices.remove(deviceName);
194 public ParcelFileDescriptor openDevice(String deviceName) {
196 if (isBlackListed(deviceName)) {
199 UsbDevice device = mDevices.get(deviceName);
203 "device " + deviceName + " does not exist or is restricted");
206 return nativeOpenDevice(deviceName);
220 private native ParcelFileDescriptor nativeOpenDevice(String deviceName);