/*
 UVCServiceInformationProfile.java
 Copyright (c) 2015 NTT DOCOMO,INC.
 Released under the MIT license
 http://opensource.org/licenses/mit-license.php
 */
package org.deviceconnect.android.deviceplugin.uvc.profile;


import org.deviceconnect.android.profile.DConnectProfileProvider;
import org.deviceconnect.android.profile.ServiceInformationProfile;

/**
 * UVC ServiceInformation Profile.
 *
 * @author NTT DOCOMO, INC.
 */
public class UVCServiceInformationProfile extends ServiceInformationProfile{

    public UVCServiceInformationProfile(final DConnectProfileProvider provider) {
        super(provider);
    }
}

@@ -213,16 +213,210 @@
 file;%0A%0A%0A
+import android.content.Intent;%0Aimport android.os.Bundle;%0A%0Aimport org.deviceconnect.android.deviceplugin.uvc.UVCDeviceManager;%0Aimport org.deviceconnect.android.deviceplugin.uvc.UVCDeviceService;%0A
 import o
@@ -703,108 +703,677 @@
    p
-ublic UVCServiceInformationProfile(final DConnectProfileProvider provider) %7B%0A        super(provider)
+rivate static final String PARAM_USB = %22usb%22;%0A%0A    private final UVCDeviceManager mDeviceMgr;%0A%0A    public UVCServiceInformationProfile(final DConnectProfileProvider provider) %7B%0A        super(provider);%0A        mDeviceMgr = ((UVCDeviceService) provider).getDeviceManager();%0A    %7D%0A%0A    @Override%0A    protected boolean onGetInformation(final Intent request, final Intent response,%0A                                       final String serviceId) %7B%0A        super.onGetInformation(request, response, serviceId);%0A        Bundle connect = response.getBundleExtra(PARAM_CONNECT);%0A        connect.putBoolean(PARAM_USB, mDeviceMgr.getDevice(serviceId) != null);%0A        return true
 ;%0A  

Implement Service Information API of UVC Device Plug-in.