Automated import from //branches/cupcake/...@141862,141862
This commit is contained in:
committed by
The Android Open Source Project
parent
c8405b6d02
commit
c3dd32d79c
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user