Last active
August 29, 2015 14:06
-
-
Save muhammadghazali/d5c024ac2eb9c841a3d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE resources [ | |
<!ELEMENT resources (application)> | |
<!ELEMENT application (serviceProfile)+> | |
<!ATTLIST application name CDATA #REQUIRED> | |
<!ELEMENT serviceProfile (supportedTransports, serviceChannel+) > | |
<!ATTLIST application xmlns:android CDATA #IMPLIED> | |
<!ATTLIST serviceProfile xmlns:android CDATA #IMPLIED> | |
<!ATTLIST serviceProfile serviceImpl CDATA #REQUIRED> | |
<!ATTLIST serviceProfile role (PROVIDER | CONSUMER | provider | consumer) #REQUIRED> | |
<!ATTLIST serviceProfile name CDATA #REQUIRED> | |
<!ATTLIST serviceProfile id CDATA #REQUIRED> | |
<!ATTLIST serviceProfile version CDATA #REQUIRED> | |
<!ATTLIST serviceProfile serviceLimit (ANY | ONE_ACCESSORY | ONE_PEERAGENT | any | one_accessory | one_peeragent) #IMPLIED> | |
<!ATTLIST serviceProfile serviceTimeout CDATA #IMPLIED> | |
<!ELEMENT supportedTransports (transport)+> | |
<!ATTLIST supportedTransports xmlns:android CDATA #IMPLIED> | |
<!ELEMENT transport EMPTY> | |
<!ATTLIST transport xmlns:android CDATA #IMPLIED> | |
<!ATTLIST transport type (TRANSPORT_WIFI | TRANSPORT_BT | TRANSPORT_BLE | TRANSPORT_USB | | |
transport_wifi | transport_bt | transport_ble | transport_usb) #REQUIRED> | |
<!ELEMENT serviceChannel EMPTY> | |
<!ATTLIST serviceChannel xmlns:android CDATA #IMPLIED> | |
<!ATTLIST serviceChannel id CDATA #REQUIRED> | |
<!ATTLIST serviceChannel dataRate (LOW | HIGH | low | high) #REQUIRED> | |
<!ATTLIST serviceChannel priority (LOW | MEDIUM | HIGH | low | medium | high) #REQUIRED> | |
<!ATTLIST serviceChannel reliability (ENABLE | DISABLE | enable | disable ) #REQUIRED> | |
]> | |
<resources> | |
<application name="HelloAccessoryProvider" > | |
<serviceProfile | |
id="/system/helloaccessory" | |
name="helloaccessory" | |
role="provider" | |
serviceImpl="com.samsung.android.example.helloaccessoryprovider.service.HelloAccessoryProviderService" | |
version="1.0" | |
serviceLimit="ANY" | |
serviceTimeout="10"> | |
<supportedTransports> | |
<transport type="TRANSPORT_BT" /> | |
</supportedTransports> | |
<serviceChannel | |
id="104" | |
dataRate="high" | |
priority="high" | |
reliability= "enable"/> | |
</serviceProfile> | |
</application> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<application name="HelloAccessoryConsumers" > | |
<serviceProfile | |
id="/system/helloaccessory" | |
name="helloaccessory" | |
role="consumer" | |
version="2.0" > | |
<supportedTransports> | |
<transport type="TRANSPORT_BT" /> | |
</supportedTransports> | |
<serviceChannel | |
id="104" | |
dataRate="low" | |
priority="low" | |
reliability="enable" > | |
</serviceChannel> | |
</serviceProfile> | |
</application> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment