diff options
author | Jaikumar Ganesh <> | 2009-03-24 21:05:50 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-24 21:05:50 -0700 |
commit | 83557ec4f12b200a1d6f6ea13359a491bd952595 (patch) | |
tree | 364c10e1e47f7941e1a11c67a1ddb8fada4ab8ec /core | |
parent | 708c17b4168404042852e480f25a91a02cf14247 (diff) | |
download | frameworks_base-83557ec4f12b200a1d6f6ea13359a491bd952595.zip frameworks_base-83557ec4f12b200a1d6f6ea13359a491bd952595.tar.gz frameworks_base-83557ec4f12b200a1d6f6ea13359a491bd952595.tar.bz2 |
Automated import from //branches/master/...@141865,141865
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/bluetooth/HeadsetBase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/HeadsetBase.java b/core/java/android/bluetooth/HeadsetBase.java index fd2d2ab..f31e7a2 100644 --- a/core/java/android/bluetooth/HeadsetBase.java +++ b/core/java/android/bluetooth/HeadsetBase.java @@ -105,7 +105,7 @@ public class HeadsetBase { /* Process an incoming AT command line */ - protected synchronized void handleInput(String input) { + protected void handleInput(String input) { acquireWakeLock(); long timestamp; @@ -267,13 +267,13 @@ public class HeadsetBase { } private native boolean sendURCNative(String urc); - private void acquireWakeLock() { + private synchronized void acquireWakeLock() { if (!mWakeLock.isHeld()) { mWakeLock.acquire(); } } - private void releaseWakeLock() { + private synchronized void releaseWakeLock() { if (mWakeLock.isHeld()) { mWakeLock.release(); } |