summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-03-15 13:34:06 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-15 13:34:06 -0700
commit3b7871c242bea5834c657c25fbb89c382566f66f (patch)
tree9e2d5b2ae812aad05b97b11b1642286fd26dd20e /libs
parentbdabdda8954a70625368fbfe6bb283a9200bf2f8 (diff)
parentad5f83e91b6812a6dee4fea7646fa9061d9f9597 (diff)
downloadframeworks_base-3b7871c242bea5834c657c25fbb89c382566f66f.zip
frameworks_base-3b7871c242bea5834c657c25fbb89c382566f66f.tar.gz
frameworks_base-3b7871c242bea5834c657c25fbb89c382566f66f.tar.bz2
Merge "USB Manager string clean up:" into honeycomb-mr1
Diffstat (limited to 'libs')
-rw-r--r--libs/usb/tests/AccessoryChat/AndroidManifest.xml2
-rw-r--r--libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/libs/usb/tests/AccessoryChat/AndroidManifest.xml b/libs/usb/tests/AccessoryChat/AndroidManifest.xml
index 37ab29f..802b715 100644
--- a/libs/usb/tests/AccessoryChat/AndroidManifest.xml
+++ b/libs/usb/tests/AccessoryChat/AndroidManifest.xml
@@ -17,7 +17,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.accessorychat">
- <application>
+ <application android:label="Accessory Chat">
<uses-library android:name="com.android.future.usb.accessory" />
<activity android:name="AccessoryChat" android:label="Accessory Chat">
diff --git a/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c b/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c
index c80b7c4..85b52dd 100644
--- a/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c
+++ b/libs/usb/tests/AccessoryChat/accessorychat/accessorychat.c
@@ -67,11 +67,11 @@ static void* write_thread(void* arg) {
}
static void milli_sleep(int millis) {
- struct timespec tm;
+ struct timespec tm;
- tm.tv_sec = 0;
- tm.tv_nsec = millis * 1000000;
- nanosleep(&tm, NULL);
+ tm.tv_sec = 0;
+ tm.tv_nsec = millis * 1000000;
+ nanosleep(&tm, NULL);
}
static void send_string(struct usb_device *device, int index, const char* string) {
@@ -155,7 +155,7 @@ static int usb_device_added(const char *devname, void* client_data) {
send_string(device, ACCESSORY_STRING_MANUFACTURER, "Google, Inc.");
send_string(device, ACCESSORY_STRING_MODEL, "AccessoryChat");
- send_string(device, ACCESSORY_STRING_DESCRIPTION, "Sample Program");
+ send_string(device, ACCESSORY_STRING_DESCRIPTION, "Accessory Chat");
send_string(device, ACCESSORY_STRING_VERSION, "1.0");
send_string(device, ACCESSORY_STRING_URI, "http://www.android.com");
send_string(device, ACCESSORY_STRING_SERIAL, "1234567890");