Automated import from //branches/donutburger/...@141864,141864
This commit is contained in:
committed by
The Android Open Source Project
parent
0577b26b7f
commit
5903c97794
@@ -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