Automated import from //branches/cupcake/...@141862,141862

This commit is contained in:
Jaikumar Ganesh
2009-03-24 18:32:43 -07:00
committed by The Android Open Source Project
parent c8405b6d02
commit c3dd32d79c

View File

@@ -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();
}