Dock changes:Docking station intents

Docking station intents for dock switch driver.
Add DockObserver and updated Intent.java and systemserver.jave

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>

	modified:   core/java/android/content/Intent.java
	new file:   services/java/com/android/server/DockObserver.java
	modified:   services/java/com/android/server/SystemServer.java

Docking station updates

Add constants for the dock

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Dan Murphy
2009-08-12 15:15:43 -05:00
committed by Mike Lockwood
parent 56e7ba2928
commit c9f4eaf438
3 changed files with 163 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ class ServerThread extends Thread {
BluetoothDeviceService bluetooth = null;
BluetoothA2dpService bluetoothA2dp = null;
HeadsetObserver headset = null;
DockObserver dock = null;
// Critical services...
try {
@@ -325,6 +326,14 @@ class ServerThread extends Thread {
Log.e(TAG, "Failure starting HeadsetObserver", e);
}
try {
Log.i(TAG, "Starting DockObserver");
// Listen for dock station changes
dock = new DockObserver(context);
} catch (Throwable e) {
Log.e(TAG, "Failure starting DockObserver", e);
}
try {
Log.i(TAG, "Starting Backup Service");
ServiceManager.addService(Context.BACKUP_SERVICE, new BackupManagerService(context));