亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? deviceimpl.java

?? JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    public String getDriverKeyName(){        return this.driverKeyName;    }            /**     * Returns the name of an external Hub     */    private native String getExternalHubName(int hubHandle,int portIndex);        /**     * Returns the byte stream for the DeviceDescriptor     */    public native byte[] getDeviceDescriptor(int hubHandle,int portIndex);    /**     * Returns the byte stream for the DeviceDescriptor     */    public native byte[] getConfigurationDescriptor(int hubHandle,int portIndex);             /**     * Returns identifier which is unique to a usbdevice     * This string is only valid for usb devices! It is not      * used for roothub and hubs.     */    private native String getUniqueDeviceID(int hubHandle,int portIndex);          /** Returns the device connected to this hub's specific port(origin one), or null     * @param port The port number of the hub beginning at one to the number of ports the hub     * provides     */        public Device getChild(int port) throws java.io.IOException {        if(children == null) return null;        else return children[port-1];    }        /** Returns the default configuration from the device. The default configuration is     * is always configuration at index zero.     */        public Configuration getConfiguration() throws java.io.IOException {        return this.configuration;    }        /** Not implemented for all devices. So far it will return always null!     * @return Always null!     */        public Configuration getConfiguration(int index) throws java.io.IOException {        return null;    }        /** Returns the device dscriptor of the device */        public DeviceDescriptor getDeviceDescriptor() {        return this.descriptor;    }        /** Returns the hub the device is connected to */        public Device getHub() {        return this.hub;    }        /** Returns the port number of the hub where the device is connected to     * @return The port number; value between 1..126     */        public int getHubPortNum() {        return this.hubPortNumber;    }        /** Returns the number of port the hub provides.     * @return The number of ports this hub supports<br>     * 0 if it is a device     */        public int getNumPorts() {        return (children == null) ? 0 : children.length;    }          /** The friendly device name of this device       * @return The frinedly device name or null if it does not exist       */    public String getFriendlyDeviceName(){     return this.friendlyDeviceName;       }      // enumerate the hub    /** EnumerateHubPorts does iterates over all the ports of this hub and creates     * depending on the driver the device uses either a NonJusb or a JUSB object     * @param bus The bus the device is conected to     * @param hubHandle The Windows OS hub handle for this hub     * @param hub The hub device itself     * @param numPorts The number of ports this hub supports     */        synchronized void enumerateHubPorts(USB bus, int hubHandle,DeviceImpl hub, int numPorts)    throws IOException, USBException{                DeviceImpl oldDev;        DeviceImpl [] oldChildren = null;        if(hub != null){          if(hub.getAddress() != 0){              if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> oldChildren of an external hub");             oldChildren = hub.getChildren();             if(Windows.debugEnum) printDevices(oldChildren);           }          else{            if( this.oldDevices != null) {                if(this.oldDevices[0] != null){                    if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> oldChildren of the root hub");                    oldChildren = oldDevices[0].getChildren();                    if(Windows.debugEnum) printDevices(oldChildren);                 }            }            else if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> no oldDevices: This happens when running the first time");          }        }        else if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> we have no children, because we do not have a hub");                        //iterate over the port to discover what is connected to each one        if(numPorts > 0) hub.children = new DeviceImpl[numPorts];        else children = null;          if(Windows.debugDeviceImpl) System.out.println("DeviceImpl.enumerateHubPorts() >>> hubHandle=" + hubHandle +"  address=" + this.getAddress() + " numPorts=" + numPorts);        DeviceImpl dev;        //  caution: Ports are numbered from 1 to n and not 0 to n!!!        for(int portIndex=1; portIndex < numPorts + 1; portIndex++){                        if(Windows.debugEnum && this.oldDevices != null && bus.getBusNum()==1){                System.out.println("DeviceImpl.enumerateHubPorts() >>> oldDevices:" );                printDevices(this.oldDevices);             }            int devType =  getAttachedDeviceType(hubHandle,portIndex);                        if(Windows.debugDeviceImpl){                    System.out.print("DeviceImpl.enumerateHubPorts() >>> getAttachedDeviceType: portIndex:" + portIndex + "  Device Type:");                    if(devType == USB_DEVICE)                        System.out.println(" USB Device");                    else  if(devType == EXTERNAL_HUB)                        System.out.println(" External Hub");                    else  if(devType == NO_DEVICE_CONNECTED)                        System.out.println(" No device connected");                    else System.out.println(" Somethibg else --> " + devType);                                }                                                 // get some information about the attached device            String driverKeyName = null;            String friendlyDeviceName = null;            String uniqueID = null;                        if(devType == USB_DEVICE || devType == EXTERNAL_HUB){                driverKeyName = getDriverKeyNameOfDeviceOnPort(hubHandle,portIndex);                                if(driverKeyName == null){                    // we have an external hub                    friendlyDeviceName = null;                 }                else {                    // we have a device                    friendlyDeviceName = getFriendlyDeviceName(driverKeyName);                 }                                uniqueID = this.getUniqueDeviceID(hubHandle, portIndex);                if(Windows.debugDeviceImpl) System.out.println("DeviceImpl.enumerateHubPorts() >>> on Port["+portIndex+"]<< Device connected" );                if(Windows.debugDeviceImpl) System.out.println("--- DriverKeyName      : " + driverKeyName );                if(Windows.debugDeviceImpl) System.out.println("--- friendlyDeviceName : " + friendlyDeviceName );                if(Windows.debugDeviceImpl) System.out.println("--- UniqueID           : " + uniqueID );            }                                    if(devType == USB_DEVICE){                // the device on portIndex is a USB Device                 if(Windows.debugEnum) System.out.print("DeviceImpl.enumerateHubPorts() >>> NOW on Port["+portIndex+"]<< Device connected" );                                //String driverKeyName = getDriverKeyNameOfDeviceOnPort(hubHandle,portIndex);                //String uniqueID = this.getUniqueDeviceID(hubHandle, portIndex);                if(uniqueID == null) throw new USBException("Could not get the uniqueID of the device! May be Error in native jusb.cpp::getUniqueDeviceID -->  DeviceIoControl (check with external debugger: Sysinternals)");                                int devAddress = Integer.parseInt(uniqueID.substring(8,uniqueID.indexOf('&')));                                if(Windows.debugDeviceImpl)                    System.out.println("DeviceImpl.enumerateHubPorts() >>> USB_DEVICE:Port:" + portIndex + "  Address:" + this.getAddress() + "  DriverKeyName:" + driverKeyName + " <<<<<<<<<<    deviceAddress = " + devAddress);                                // check if this device was already on the bus                if(this.oldDevices != null) oldDev = this.oldDevices[devAddress];                else oldDev = null;                                if(oldDev != null ){                   if(!oldDev.getUniqueDeviceID().equals(uniqueID)){                    // we have a devive, but it is not identical to                    // that device we just found on the bus                    if(Windows.debugEnum) System.out.println(" >> BEFORE <<  a different DEVICE was connected to this (root)hub. Former Device ID:" + oldDev.getUniqueDeviceID());                    if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>>  TO DO << remove the former device. Add the new device.");                    bus.removeDevice(oldDev);                    // add the new one to the bus                    // depending on the friendlyDeviceName we create either a JSUB instance or a NonJUSB instance                    if(friendlyDeviceName != null && friendlyDeviceName.startsWith(Windows.A_JUSB_DRIVER))                        dev = new JUSB(usb,this,null,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                    else                        dev = new NonJUSB(usb,this,null,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                                            hub.children[portIndex-1] = dev;                    bus.addDevice(dev, devAddress);                    }                   else{                     // the device is still the same one                     // add it again as a child of this hub.                     if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> BEFORE <<  the same one");                                            hub.children[portIndex-1] = oldDev;                     }                }                else{                    // there was no device attached before                    // add this new device now to the bus                    if(Windows.debugEnum) System.out.println(" >> BEFORE <<   no connection");                    if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> TO DO << Add the new device.");                     // depending on the friendlyDeviceName we create either a JSUB instance or a NonJUSB instance                    if(friendlyDeviceName != null && friendlyDeviceName.startsWith(Windows.A_JUSB_DRIVER))                        dev = new JUSB(usb,this,null,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                    else                        dev = new NonJUSB(usb,this,null,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                                        hub.children[portIndex-1] = dev;                    bus.addDevice(dev, devAddress);                                     }                                                            }else if(devType == EXTERNAL_HUB){                //this device is an external hub                // add this external hub to the bus                 if(Windows.debugEnum) System.out.print("DeviceImpl.enumerateHubPorts() >>> NOW on Port["+portIndex+"]<< External hub connected" );                               String hubName = getExternalHubName(hubHandle,portIndex);                //String uniqueID = this.getUniqueDeviceID(hubHandle, portIndex);                if(uniqueID == null) throw new USBException("Could not get the uniqueID of the device! May be Error in native jusb.cpp::getUniqueDeviceID -->  DeviceIoControl (check with external debugger: Sysinternals)");                                int devAddress = Integer.parseInt(uniqueID.substring(8,uniqueID.indexOf('&')));                                if(Windows.debugDeviceImpl)                    System.out.println("DeviceImpl.enumerateHubPorts() >>> EXTERNAL_HUB:Port:" + portIndex + "  Address:" + this.getAddress() + "  <<<<<<<<<<    deviceAddress = " + devAddress);                                String devPath = "\\\\.\\" + hubName;                if(Windows.debugDeviceImpl)                    System.out.println("DeviceImpl.enumerateHubPorts() >>> External Hub Name:" + devPath);                                                // check if this hub was already on the bus                                if(this.oldDevices != null) oldDev = this.oldDevices[devAddress];                else oldDev = null;                                if(oldDev != null ){                   if(!oldDev.getUniqueDeviceID().equals(uniqueID)){                    // we have a hub, but it is not identical to                    // that device we just found on the bus.                    // Therefore we have to remove the hub and all its

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲欧美在线| 国产乱色国产精品免费视频| 久久伊99综合婷婷久久伊| 欧美日韩免费观看一区三区| 成人高清免费在线播放| 国产很黄免费观看久久| 黑人精品欧美一区二区蜜桃 | 中文字幕一区二区三区视频| 欧美zozozo| 亚洲福利视频一区二区| 欧美高清hd18日本| 美日韩一区二区| 日日夜夜精品视频免费| 天天亚洲美女在线视频| 亚洲成人av中文| 亚洲一区在线视频| 亚洲国产成人91porn| 亚洲一卡二卡三卡四卡五卡| 一卡二卡三卡日韩欧美| 亚洲成人高清在线| 欧美精品自拍偷拍| 日韩一级片在线播放| 欧美一级艳片视频免费观看| 91精品国产一区二区| 精品国产一区二区精华| xnxx国产精品| 成人欧美一区二区三区视频网页| 国产精品传媒在线| 亚洲国产综合91精品麻豆| 亚洲成人动漫在线观看| 日精品一区二区| 国产拍揄自揄精品视频麻豆| 国产精品视频一二| 亚洲小说欧美激情另类| 青青草97国产精品免费观看无弹窗版 | 亚洲人快播电影网| 午夜精品久久久久久久久| 久久精品国产免费看久久精品| 国产一区在线精品| 91亚洲大成网污www| 欧美理论片在线| 久久午夜电影网| 亚洲美女屁股眼交3| 奇米一区二区三区| 粉嫩一区二区三区性色av| 欧洲一区在线电影| 久久久久亚洲蜜桃| 亚洲电影你懂得| 国产成人精品亚洲777人妖| 在线观看日韩电影| 久久免费偷拍视频| 三级影片在线观看欧美日韩一区二区| 六月丁香综合在线视频| 色婷婷国产精品综合在线观看| 欧美一区二区日韩| 亚洲男人的天堂在线观看| 国产在线一区二区| 欧美日韩国产一区| 国产精品对白交换视频| 精品一区二区免费在线观看| 色婷婷狠狠综合| 国产欧美日韩在线看| 美美哒免费高清在线观看视频一区二区| 国产成人亚洲综合a∨婷婷| 欧美日韩国产综合久久| 最新国产の精品合集bt伙计| 九九九精品视频| 欧美老年两性高潮| 91福利精品第一导航| 久久嫩草精品久久久精品| 日韩av电影天堂| 色一情一乱一乱一91av| 久久国产成人午夜av影院| 欧美三级日韩在线| 亚洲综合久久av| 欧美最猛黑人xxxxx猛交| 日韩一区欧美一区| 99精品欧美一区| 日韩美女视频19| 色就色 综合激情| 亚洲精品成人悠悠色影视| 一本久久a久久免费精品不卡| 丁香激情综合五月| 国产拍揄自揄精品视频麻豆| 国产麻豆一精品一av一免费 | 国产午夜亚洲精品不卡| 国产一区二区剧情av在线| 欧美成人一级视频| 天堂成人免费av电影一区| www.欧美.com| 精品国产一区二区三区久久影院| 色哟哟精品一区| 一色桃子久久精品亚洲| 欧美va在线播放| 亚洲麻豆国产自偷在线| 国产传媒久久文化传媒| 欧美日本韩国一区二区三区视频 | 亚洲成a人v欧美综合天堂| 99久久免费精品| 欧美国产视频在线| 蜜桃精品在线观看| 欧美三级日韩三级国产三级| 136国产福利精品导航| 成人理论电影网| 久久人人97超碰com| 男人的j进女人的j一区| 欧美三级在线视频| 亚洲色图在线视频| 精品一区二区在线播放| 久久久夜色精品亚洲| 免费成人在线观看视频| 91精品黄色片免费大全| 香蕉乱码成人久久天堂爱免费| 色狠狠一区二区| 亚洲区小说区图片区qvod| 国产在线国偷精品产拍免费yy| 久久亚洲一区二区三区四区| 日韩成人伦理电影在线观看| 欧美日韩国产经典色站一区二区三区| 67194成人在线观看| 一区二区免费在线| 8x福利精品第一导航| 一区二区成人在线| 欧美在线短视频| 久久亚洲一区二区三区明星换脸| 日本久久一区二区三区| 亚洲精品自拍动漫在线| 99综合电影在线视频| 亚洲男人的天堂在线观看| 国产a区久久久| 伊人婷婷欧美激情| 欧美亚洲尤物久久| 亚洲国产综合在线| 精品理论电影在线观看| 精品久久久三级丝袜| 亚洲综合成人网| 在线观看av一区| 午夜精品久久久久久久久久| 日本不卡高清视频| 久久综合色8888| 91在线国产福利| 亚洲一区二区高清| 丁香婷婷综合五月| 亚洲自拍偷拍av| 日韩精品一区二区三区四区视频| 国产呦精品一区二区三区网站| 欧美高清一级片在线| 美女免费视频一区二区| 国产清纯在线一区二区www| 91福利资源站| 久久69国产一区二区蜜臀| 国产日韩欧美制服另类| 欧美在线观看禁18| 免费成人av在线播放| 亚洲精品视频免费观看| 日韩欧美一区电影| 麻豆精品一区二区综合av| 轻轻草成人在线| 一区二区三区资源| 久久亚洲精精品中文字幕早川悠里 | 水野朝阳av一区二区三区| 久久先锋影音av鲁色资源网| 9久草视频在线视频精品| 亚洲成a人在线观看| 中文字幕精品一区二区三区精品| 欧美日韩大陆一区二区| 成人国产视频在线观看| 精品一区二区三区香蕉蜜桃| 亚洲精品一二三| 亚洲国产精品精华液ab| 欧美大白屁股肥臀xxxxxx| 欧洲一区二区av| 成人国产一区二区三区精品| 亚洲影院久久精品| 日韩欧美视频一区| 欧美日本韩国一区二区三区视频| 国产成人av在线影院| 精品一区二区在线免费观看| 亚洲成人免费看| 亚洲视频一二三区| 国产亚洲欧美日韩日本| 精品国产a毛片| 成人av在线网| 免费在线观看成人| 亚州成人在线电影| 亚洲成年人网站在线观看| 一区二区三区中文字幕精品精品 | 国产成人免费高清| 麻豆一区二区三区| 日韩av中文字幕一区二区三区| 一区二区三区自拍| 亚洲精品va在线观看| 国产精品久久夜| 制服丝袜在线91| 99精品国产99久久久久久白柏| 欧美中文字幕一区| 欧美三级在线看| 欧美午夜精品久久久久久超碰| 色综合久久久久久久久久久| 色婷婷一区二区|