Automated import from //branches/donutburger/...@141864,141864

This commit is contained in:
Jaikumar Ganesh
2009-03-24 21:02:13 -07:00
committed by The Android Open Source Project
parent 0577b26b7f
commit 5903c97794

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