Partially fix bug 2111240 Detect docking / undocking event by reporting
to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK
which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY
values. This CL is complemented by an update of the APM to take into
account the FOR_DOCK usage.
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index bc3dd36..29aaa3f 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -282,6 +282,7 @@
         FORCE_BT_SCO,
         FORCE_BT_A2DP,
         FORCE_WIRED_ACCESSORY,
+        FORCE_BT_DOCK,
         NUM_FORCE_CONFIG,
         FORCE_DEFAULT = FORCE_NONE
     };
@@ -291,6 +292,7 @@
         FOR_COMMUNICATION,
         FOR_MEDIA,
         FOR_RECORD,
+        FOR_DOCK,
         NUM_FORCE_USE
     };