Loading android/app/src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java +5 −6 Original line number Diff line number Diff line Loading @@ -116,9 +116,7 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen * Called when connection is accepted from remote, to retrieve the first * Header then wait for user confirmation */ public void preStart() { if (D) Log.d(TAG, "acquire full WakeLock"); mWakeLock.acquire(); public void preStart(Handler handler) { try { if (D) Log.d(TAG, "Create ServerSession with transport " + mTransport.toString()); mSession = new ServerSession(mTransport, this, null); Loading Loading @@ -298,6 +296,9 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); if (needConfirm) { if (V) Log.d(TAG, "acquire full WakeLock"); mWakeLock.acquire(); Intent in = new Intent(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION); in.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); mContext.sendBroadcast(in); Loading @@ -306,11 +307,9 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen if (V) Log.v(TAG, "insert contentUri: " + contentUri); if (V) Log.v(TAG, "mLocalShareInfoId = " + mLocalShareInfoId); if (V) Log.v(TAG, "acquire partial WakeLock"); synchronized (this) { if (mWakeLock.isHeld()) { if (V) Log.v(TAG, "acquire partial WakeLock"); mPartialWakeLock.acquire(); mWakeLock.release(); } Loading Loading
android/app/src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java +5 −6 Original line number Diff line number Diff line Loading @@ -116,9 +116,7 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen * Called when connection is accepted from remote, to retrieve the first * Header then wait for user confirmation */ public void preStart() { if (D) Log.d(TAG, "acquire full WakeLock"); mWakeLock.acquire(); public void preStart(Handler handler) { try { if (D) Log.d(TAG, "Create ServerSession with transport " + mTransport.toString()); mSession = new ServerSession(mTransport, this, null); Loading Loading @@ -298,6 +296,9 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); if (needConfirm) { if (V) Log.d(TAG, "acquire full WakeLock"); mWakeLock.acquire(); Intent in = new Intent(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION); in.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName()); mContext.sendBroadcast(in); Loading @@ -306,11 +307,9 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen if (V) Log.v(TAG, "insert contentUri: " + contentUri); if (V) Log.v(TAG, "mLocalShareInfoId = " + mLocalShareInfoId); if (V) Log.v(TAG, "acquire partial WakeLock"); synchronized (this) { if (mWakeLock.isHeld()) { if (V) Log.v(TAG, "acquire partial WakeLock"); mPartialWakeLock.acquire(); mWakeLock.release(); } Loading