Combine the USB accessory support library with the platform feature

Also renamed the support library to com.android.future.usb.accessory.jar

Change-Id: Id6226991ce73f75dfedc497adf1c25bffb670243
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2011-03-02 12:53:28 -08:00
parent 3dee21eb0f
commit b547fc297f
8 changed files with 12 additions and 30 deletions

View File

@@ -17,4 +17,6 @@
<!-- This is the standard feature indicating that the device supports USB accessories. -->
<permissions>
<feature name="android.hardware.usb.accessory" />
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
</permissions>

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<permissions>
<library name="com.google.android.usb"
file="/system/framework/com.google.android.usb.jar" />
</permissions>

View File

@@ -22,6 +22,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under,src)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE:= com.google.android.usb
LOCAL_MODULE:= com.android.future.usb.accessory
include $(BUILD_JAVA_LIBRARY)

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.google.android.usb;
package com.android.future.usb;
/**
* A class representing a USB accessory.

View File

@@ -15,7 +15,7 @@
*/
package com.google.android.usb;
package com.android.future.usb;
import android.content.Context;
import android.content.Intent;

View File

@@ -7,7 +7,7 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files)
LOCAL_PACKAGE_NAME := AccessoryChatGB
LOCAL_JAVA_LIBRARIES := com.google.android.usb
LOCAL_JAVA_LIBRARIES := com.android.future.usb.accessory
# Force an old SDK version to make sure we aren't using newer UsbManager APIs
LOCAL_SDK_VERSION := 8

View File

@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.accessorychat">
package="com.android.accessorychat">
<application>
<uses-library android:name="com.google.android.usb" />
<uses-library android:name="com.android.future.usb.accessory" />
<activity android:name="AccessoryChat" android:label="Accessory Chat GB">
<intent-filter>
@@ -19,5 +19,5 @@
android:resource="@xml/accessory_filter" />
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
<uses-sdk android:minSdkVersion="10" />
</manifest>

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.google.android.accessorychat;
package com.android.accessorychat;
import android.app.Activity;
import android.content.BroadcastReceiver;
@@ -31,8 +31,8 @@ import android.util.Log;
import android.widget.EditText;
import android.widget.TextView;
import com.google.android.usb.UsbAccessory;
import com.google.android.usb.UsbManager;
import com.android.future.usb.UsbAccessory;
import com.android.future.usb.UsbManager;
import java.io.FileDescriptor;
import java.io.FileInputStream;