Package 

Class DeviceFilter

    • Method Summary

      Modifier and Type Method Description
      boolean isExclude(UsbDevice device) このDeviceFilterに一致してかつmExcludeがtrueならtrueを返す
      boolean isExclude(UsbDevice device) このDeviceFilterに一致してかつmExcludeがtrueならtrueを返す
      static List<DeviceFilter> getDeviceFilters(Context context, int deviceFilterXmlId) 指定したxmlリソースからDeviceFilterリストを生成する
      static DeviceFilter readEntryOne(Context context, XmlPullParser parser)
      boolean matches(UsbDevice device) 指定したUsbDeviceがこのDeviceFilterにマッチするかどうかを返すmExcludeフラグは別途#isExcludeか自前でチェックすること
      boolean matches(DeviceFilter f) これって要らんかも, equalsでできる気が
      boolean equals(Object obj)
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeviceFilter

        DeviceFilter(int vid, int pid, int clasz, int subclass, int protocol, String manufacturer, String product, String serialNum)
      • DeviceFilter

        DeviceFilter(int vid, int pid, int clasz, int subclass, int protocol, String manufacturer, String product, String serialNum, boolean isExclude)
      • DeviceFilter

        DeviceFilter(UsbDevice device)
      • DeviceFilter

        DeviceFilter(UsbDevice device, boolean isExclude)
    • Method Detail

      • isExclude

         boolean isExclude(UsbDevice device)

        このDeviceFilterに一致してかつmExcludeがtrueならtrueを返す

      • isExclude

         boolean isExclude(UsbDevice device)

        このDeviceFilterに一致してかつmExcludeがtrueならtrueを返す

      • getDeviceFilters

         static List<DeviceFilter> getDeviceFilters(Context context, int deviceFilterXmlId)

        指定したxmlリソースからDeviceFilterリストを生成する

      • matches

         boolean matches(UsbDevice device)

        指定したUsbDeviceがこのDeviceFilterにマッチするかどうかを返すmExcludeフラグは別途#isExcludeか自前でチェックすること

      • matches

         boolean matches(DeviceFilter f)

        これって要らんかも, equalsでできる気が