UsbAccessory getManufacturer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for UsbAccessory getManufacturer method.

This code example shows how to use the following methods:getManufacturer, getModel, getVersion
            mModel = model;
            mVersion = version;
        } 
 
        public AccessoryFilter(UsbAccessory accessory) {
            mManufacturer = accessory.getManufacturer();
            mModel = accessory.getModel();
            mVersion = accessory.getVersion();
        } 
 
        public static AccessoryFilter read(XmlPullParser parser)
                throws XmlPullParserException, IOException { 
            String manufacturer = null;
            String model = null;
            String version = null;
 
            int count = parser.getAttributeCount();
            for (int i = 0; i < count; i++) {
                String name = parser.getAttributeName(i);
                String value = parser.getAttributeValue(i);
5
CodeRank
This code example shows how to use the following methods:getManufacturer, getModel, getVersion
            mModel = model;
            mVersion = version;
        } 
 
        public AccessoryFilter(UsbAccessory accessory) {
            mManufacturer = accessory.getManufacturer();
            mModel = accessory.getModel();
            mVersion = accessory.getVersion();
        } 
 
        public static AccessoryFilter read(XmlPullParser parser)
                throws XmlPullParserException, IOException { 
            String manufacturer = null;
            String model = null;
            String version = null;
 
            int count = parser.getAttributeCount();
            for (int i = 0; i < count; i++) {
                String name = parser.getAttributeName(i);
                String value = parser.getAttributeValue(i);
4
CodeRank
This code example shows how to use the following methods:getManufacturer, getModel
            mDisplaySourceService = null;
        } 
    } 
 
    private static boolean isSink(UsbAccessory accessory) {
        return MANUFACTURER.equals(accessory.getManufacturer())
                && MODEL.equals(accessory.getModel());
    } 
 
    class TextLogger extends Logger {
        @Override 
        public void log(final String message) {
            Log.d(TAG, message);
 
            mLogTextView.post(new Runnable() {
                @Override 
                public void run() { 
                    mLogTextView.append(message);
                    mLogTextView.append("\n");
                } 
4
CodeRank
getManufacturer Method Overview
Returns the manufacturer name of the accessory.
See Code Examples for other Android UsbAccessory Methods: