OSDN Git Service

Updating Force Use toggling for Communication use case
authorJohan Gustavsson <johan1.gustavsson.x@sonymobile.com>
Fri, 1 Mar 2013 14:53:30 +0000 (15:53 +0100)
committerEric Laurent <elaurent@google.com>
Wed, 21 Aug 2013 16:35:20 +0000 (09:35 -0700)
commit7337bee7839238f244fad31112a45389f6ef907c
treef869cafc487a4441bf772437f9bc98491d83c238
parentb06b8b02674bb6d93f10a5c512aad8694867aa5c
Updating Force Use toggling for Communication use case

setForceUse toggling is shaky when toggling either through
setSpeakerphoneOn and setBluetoothScoOn. Depending on call sequence
an application may unintentionally trigger a routing use case it
does not want.
The main root cause is that neither of these calls take the
previous state into account. A call to setSpeakerPhoneOn will for
example partly disable any active BT SCO routing.

Change-Id: I436ee5a8da2d9ea5a2e4e89eec083c8118a5ff7e
media/java/android/media/AudioService.java