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

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

?? deviceimpl.java

?? JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                    // children and notify the bus                    if(Windows.debugEnum) System.out.println(" >> BEFORE <<  a different EXTERNAL HUB was connected to this (root)hub. Former Hub ID:" + oldDev.getUniqueDeviceID());                       if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> TO DO << remove all former chlidren of the hub and the hub itself too. Add the new hub.");                    removeAllChildren(oldDev.getChildren());                    bus.removeDevice(oldDev);                    // add the new hub                    // 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,devPath,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                    else                        dev = new NonJUSB(usb,this,devPath,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                    hub.children[portIndex-1] = dev;                    bus.addDevice(dev,devAddress);                    }                   else{                     // the device is still the same one                     // check if the children are identical                     // add it again as a child of this hub.                     hub.children[portIndex-1] = oldDev;                      if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> BEFORE <<  the same one : Check now if its children changed.");                                            checkChildren(oldDev);                                        }                }                else{                    // there was no hub attached before                    // add this new hub 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 hub. This includes also all children, which are attached to this new hub.");                    if(friendlyDeviceName != null && friendlyDeviceName.startsWith(Windows.A_JUSB_DRIVER))                        dev = new JUSB(usb,this,devPath,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                    else                        dev = new NonJUSB(usb,this,devPath,devAddress,driverKeyName,friendlyDeviceName,uniqueID,portIndex);                                        hub.children[portIndex-1] = dev;                    bus.addDevice(dev,devAddress);                 }                                         }else if(devType == NO_DEVICE_CONNECTED){                // there is no device connected to this port                                //check if there was before a device connected to this port                if(Windows.debugEnum) System.out.print("DeviceImpl.enumerateHubPorts() >>> NOW on Port["+portIndex+"]<< No device connected" );                               if(oldChildren != null){                 oldDev = oldChildren[portIndex-1];                   }                else oldDev = null;                              if(oldDev != null ){                    // we had a device connected to the bus                    // but not anymore. remove it                    //check whether the device was a hub or just a simple device                    if(oldDev.getChildren() == null){                        if(Windows.debugEnum) System.out.println(" >> BEFORE <<  a DEVICE was connected to this (root)hub.Former Device ID:" + oldDev.getUniqueDeviceID());                        //just one device                        bus.removeDevice(oldDev);                    }                    else{                      if(Windows.debugEnum) System.out.println(" >> BEFORE <<  an EXTERNAL HUB was connected to this (root)hub. Former Hub ID:" + oldDev.getUniqueDeviceID());                       // it's a hub. remove the hub and all its children                       if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> TO DO << cremove all former chlidren of the hub and the hub itself too." );                       removeAllChildren(oldDev.getChildren());                       bus.removeDevice(oldDev);                    }                 }                 else  if(Windows.debugEnum) System.out.println(" >> BEFORE << also no connection");                                 // add null to the bus                hub.children[portIndex-1] = null;                if(Windows.debugDeviceImpl)                    System.out.println("DeviceImpl.enumerateHubPorts() >>> EnumPort:" + portIndex + "  Address:" + this.getAddress() + "  Device: null");                            }else{                if(Windows.debugDeviceImpl)                    System.out.println("DeviceImpl.enumerateHubPorts() >>> EnumPort:" + portIndex + "  Address:" + this.getAddress() + "  Device: null");                              throw new USBException("Unknown Device Type! Device Error Reason: " + devType,devType);            }        }// end for          // at this point we did enuerate all Devices but only if the hub.getAddress is 0        // this is used for synchronization while scanning the bus        if(hub.getAddress() == 0) bus.setFinishEnumerating();     }        /** Returns the device path of that device     * @return The device path or null     */        public String getDevicePath(){        return this.usbDevicePath;    }        /** Returns the friendly device name     * @return The friendly device name or null     */        public String getDeviceFriendlyName(){     return this.friendlyDeviceName;       }        /** Returns the unique ID     * @return The unique ID String or null     */        public String getUniqueDeviceID(){     return this.uniqueDevID;       }        private DeviceImpl [] getChildren(){      return children;    }        /** Removes all the children from the bus     * @param children All the children of this hub     */        synchronized void removeAllChildren(DeviceImpl children[]){     DeviceImpl dev;       if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> remove all children of this hub! numOfChildren= " + children.length);     for(int i=0; i < children.length; i++){                dev = children[i];       if(dev != null){          if(dev.getChildren() != null){              if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> there was a HUB on Port[ "+ dev.getHubPortNum()+ "]. remove it from the list! Device: " + dev.getUniqueDeviceID() + " Addr[" + dev.getAddress() + "]");              removeAllChildren(dev.getChildren());          }          else{              if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> there was a DEVICE on Port[ "+ dev.getHubPortNum()+ "]. remove it from the list! Device: " + dev.getUniqueDeviceID() + " Addr[" + dev.getAddress() + "]");              usb.removeDevice(dev);          }       }       else{         if(Windows.debugEnum) System.out.println("DeviceImpl.enumerateHubPorts() >>> The " + i + ".th DEVICE was null");       }     }    }        /**     * The hub is identical, we therefore have to check if the children     * are still the same and when not doing the necessary changes.     * We get a current handle to the hub and let enumerate the hub      * recursivly.     *     */    void checkChildren(DeviceImpl hub) throws IOException{       int hubHandle = hub.openHandle(hub.getDevicePath());      if(hubHandle == USBException.ERROR_INVALID_HANDLE)                throw new USBException("INVALID_HANDLE_VALUE for external hub ",hubHandle);                  if(Windows.debugDeviceImpl) System.out.println("DeviceImpl.checkChildren() >>> External Hub (hubHandle:" + hubHandle + "numPorts:" + this.numPorts+")");      this.enumerateHubPorts(usb, hubHandle,hub,hub.getNumPorts());      // close the hub handle      this.closeHandle(hubHandle);    }        /** For debugging purposes */        synchronized void showAllChildren(DeviceImpl children[]){     DeviceImpl dev;       if(Windows.debugEnum) System.out.println("DeviceImpl.checkChildren() >>> show all children of this hub! numOfChildren= " + children.length);     for(int i=0; i < children.length; i++){                dev = children[i];       if(dev != null){          if(dev.getChildren() != null){              if(Windows.debugEnum) System.out.println("DeviceImpl.checkChildren() >>> there is a HUB on Port[ "+ dev.getHubPortNum()+ "].  Device: " + dev.getUniqueDeviceID() + " Addr[" + dev.getAddress() + "]");              showAllChildren(dev.getChildren());          }          else{              if(Windows.debugEnum) System.out.println("DeviceImpl.checkChildren() >>> there is a DEVICE on Port[ "+ dev.getHubPortNum()+ "]. Device: " + dev.getUniqueDeviceID() + " Addr[" + dev.getAddress() + "]");          }       }       else{         if(Windows.debugEnum) System.out.println("DeviceImpl.checkChildren() >>> The " + i + ".th DEVICE was null");       }     }    }       private void printDevices(DeviceImpl [] dev) {        try{        if(dev != null){                int length;            if(dev.length < 7) length = dev.length;            else length = 8;            for(int i = 0; i < length; i++){               if(dev[i] != null){                   if(dev[i].getAddress() == 0)        System.out.println(" [ROOT]          numOfPort:" + dev[i].getNumPorts()+"  Address:" + dev[i].getAddress());                   else if(dev[i].getNumPorts() > 0)   System.out.println(" [EXTERNAL HUB]  numOfPort:" + dev[i].getNumPorts()+"  Address:" + dev[i].getAddress() + "  UniqueID[" + dev[i].getUniqueDeviceID() + "]");                   else System.out.println(" [USB DEVICE]                 Address:" + dev[i].getAddress() + "  UniqueID[" + dev[i].getUniqueDeviceID() + "]");                }               else System.out.println(" [NULL] ");            }          }        }catch(Exception e){	    e.printStackTrace ();        }    }       /**     * print a Byte Array to String     * main purpose is for debugging matters     * name: The name of the array, just for clarifying the output     * radix: 0: decimal 2: binary (default 2)     * numOfByteLine: the number of Byte printed at one line     */    public void printByteArray(byte buf[], String title,int radix, int numOfBytesLine){              if(buf != null){        String temp = null;       if(radix != 0 && radix != 2 && radix!=16) radix = 2;              if(title != null) System.out.println(title);       for(int i=0; i<buf.length; i++){                      if(radix == 2){                temp = Integer.toBinaryString((int)buf[i]);                if(temp.length() > 8){                    temp = temp.substring(temp.length() - 8, temp.length());                }                else if(temp.length() < 8){                    for(int k=temp.length(); k < 8; k++)                       temp = "0" + temp;                 }           }                      if(radix == 16){                temp = Integer.toHexString((int)buf[i]);                if(temp.length() > 2){                    temp = temp.substring(temp.length() - 2, temp.length());                }                if(temp.length() < 2){                    for(int k=temp.length(); k < 2; k++)                       temp = "0" + temp;                 }           }                                 if(radix == 0) System.out.print(buf[i] + "   ");           else System.out.print(temp + "   ");                      if(i > 0 && (i % numOfBytesLine) == 0) System.out.println();       }              System.out.println();        }       else System.out.println("Buffer is Empty: buf == null!!!");     }            /** Not implemented yet!<br>     * Returns always null!     */    public String getSpeed() {        return null;    }    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲永久精品国产| 欧美日本在线播放| 大胆欧美人体老妇| 国产成人h网站| 国产激情一区二区三区桃花岛亚洲| 日韩av电影免费观看高清完整版 | 国产精品第一页第二页第三页| 日本一区二区三区国色天香| 国产精品看片你懂得| 综合久久国产九一剧情麻豆| 亚洲人成伊人成综合网小说| 亚洲在线成人精品| 美女视频黄a大片欧美| 美脚の诱脚舐め脚责91| 国产另类ts人妖一区二区| 国产精品小仙女| 91蝌蚪porny| av一区二区三区四区| 国产精品亚洲视频| 一区二区三区四区乱视频| 日韩一级免费观看| 国产欧美中文在线| 亚洲国产综合人成综合网站| 男女男精品视频| 成人av综合在线| 欧美日韩国产美女| 国产三级精品三级| 蜜桃久久久久久| 色天使久久综合网天天| 欧美日韩精品专区| 中文字幕亚洲电影| 成人午夜av电影| 欧美日韩精品一区视频| 欧美成人国产一区二区| 亚洲va国产天堂va久久en| www.日韩在线| 国产精品久久精品日日| 成年人网站91| 91精品国产入口在线| 精品国产麻豆免费人成网站| 亚洲国产成人精品视频| 色综合天天综合网国产成人综合天 | 色婷婷综合久久久| 中文字幕永久在线不卡| 午夜激情一区二区| 欧美性xxxxxxxx| 国产99精品视频| 成人激情av网| 国产精品麻豆一区二区| 成人av电影在线网| 国产精品成人免费| 国产91丝袜在线18| 亚洲精品欧美激情| av激情综合网| 日韩精品成人一区二区在线| 久久久精品国产免费观看同学| 国产成人在线色| 亚洲电影一区二区三区| 欧美大胆一级视频| 欧美日本一道本在线视频| 国产精品一区二区你懂的| 洋洋成人永久网站入口| 亚洲精选一二三| 一区二区三区日韩精品视频| 亚洲丝袜另类动漫二区| 高清不卡一二三区| 国产一区二区三区最好精华液| 另类小说综合欧美亚洲| 日韩欧美一区二区在线视频| 欧美日韩综合色| 欧美日本免费一区二区三区| 欧美剧在线免费观看网站| 色狠狠av一区二区三区| 欧美日韩国产一区二区三区地区| 在线观看视频一区二区欧美日韩| 久久9热精品视频| 日韩福利电影在线观看| 一区二区三区在线观看欧美| 成人精品一区二区三区中文字幕| 国内精品在线播放| 不卡区在线中文字幕| 欧美亚洲动漫精品| 在线电影院国产精品| 欧美精品一区二区久久婷婷| 国产91在线观看| 91啪亚洲精品| 欧美成人性福生活免费看| 国产精品久久久久久亚洲伦| 亚洲国产综合在线| 裸体健美xxxx欧美裸体表演| 精品无人码麻豆乱码1区2区 | 一区二区三区中文在线| 视频一区欧美精品| 国产精品小仙女| 亚洲一区二区精品3399| 久久精品国产77777蜜臀| 99久久综合精品| 欧美人妖巨大在线| 久久久久久久久久久久久久久99| 亚洲伦理在线精品| 久草这里只有精品视频| 国产精品欧美精品| 日日摸夜夜添夜夜添精品视频| 91免费国产在线观看| 这里只有精品免费| 丝袜美腿亚洲一区| 51精品国自产在线| 亚洲激情欧美激情| 欧美亚洲国产bt| 欧美日韩三级一区二区| 亚洲国产美国国产综合一区二区 | 日韩欧美卡一卡二| 国产精品成人一区二区艾草| 日韩高清在线电影| 欧美视频精品在线| 91国偷自产一区二区开放时间 | 99天天综合性| 有坂深雪av一区二区精品| 国产一区二区在线电影| 精品久久久久久久一区二区蜜臀| 九九精品视频在线看| 欧美日韩一区不卡| 青草av.久久免费一区| 日韩一区二区三区三四区视频在线观看 | 最新不卡av在线| 成人avav在线| 一级日本不卡的影视| 色悠久久久久综合欧美99| 亚洲福利视频导航| 日韩欧美国产一区在线观看| 亚洲一级不卡视频| 日韩欧美专区在线| 国产精品系列在线观看| |精品福利一区二区三区| 一区二区三区欧美| 精品国产一区a| 成人一级视频在线观看| 欧洲精品中文字幕| 日本亚洲免费观看| 亚洲私人黄色宅男| 精品国产免费一区二区三区香蕉 | 欧美日韩一区二区三区在线 | 美女视频免费一区| 亚洲国产综合视频在线观看| 日韩欧美色综合| 欧美日韩一区二区三区免费看 | 一区二区欧美精品| 亚洲特级片在线| 欧美少妇性性性| 日韩精品国产欧美| 亚洲精品免费在线观看| 亚洲码国产岛国毛片在线| 一区免费观看视频| 亚洲综合免费观看高清在线观看| 一区二区在线观看视频在线观看| 国产精品网曝门| 亚洲天天做日日做天天谢日日欢| 中文字幕第一区第二区| 欧美国产日韩精品免费观看| 国产婷婷一区二区| 国产精品国产三级国产aⅴ入口| 26uuu国产在线精品一区二区| 精品国产sm最大网站免费看| 久久一夜天堂av一区二区三区 | 中文字幕在线一区免费| 国产色综合久久| 亚洲欧美在线高清| 亚洲综合激情另类小说区| 天天色天天操综合| 国产一区二区在线免费观看| 91香蕉视频mp4| 777奇米四色成人影色区| 欧美大片在线观看一区二区| 国产精品久久久久久久久久久免费看| 综合自拍亚洲综合图不卡区| 日本麻豆一区二区三区视频| 国产精品中文字幕欧美| 在线观看免费一区| 日韩免费福利电影在线观看| 中文字幕欧美一区| 日本女人一区二区三区| 久久亚洲综合色一区二区三区| 国产女同性恋一区二区| 亚洲444eee在线观看| 国产成人午夜视频| 日韩黄色片在线观看| 色香蕉久久蜜桃| 精品国产123| 日本亚洲天堂网| 日本道色综合久久| 亚洲欧洲美洲综合色网| 国产一区二区三区免费| 欧美精品777| 亚洲国产成人porn| 欧美色涩在线第一页| 1024国产精品| 色婷婷精品大在线视频| 中文字幕一区二区三区蜜月 | 亚洲免费观看高清完整版在线观看| 国产精品资源在线看|