Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 263e0e48 authored by Sravan Kumar V's avatar Sravan Kumar V Committed by Linux Build Service Account
Browse files

Bluetooth-OPP:Reduce Looper time to 100 MS .

This change ensure that Handler will send message after 100 milli
seconds . Otherwise, DUT fails to update sent/receive file count
precisely .

Change-Id: I6c54dadd2a5e3244feca2d847ebcc5474ad44c77
parent c11180a6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ class BluetoothOppNotification {
    //    Buffer other updates.
    // 2. Update thread will clear mPendingUpdate.
    // 3. Handler sends a delayed message to self
    // 4. Handler checks if there are any more updates after 1 second.
    // 4. Handler checks if there are any more updates after 100 milliseconds.
    // 5. If there is an update, update it else stop.
    private Handler mHandler = new Handler() {
        public void handleMessage(Message msg) {
@@ -183,10 +183,10 @@ class BluetoothOppNotification {
                            mUpdateNotificationThread = new NotificationUpdateThread();
                            mUpdateNotificationThread.start();
                            if (V) Log.v(TAG, "send delay message");
                            mHandler.sendMessageDelayed(mHandler.obtainMessage(NOTIFY), 1000);
                            mHandler.sendMessageDelayed(mHandler.obtainMessage(NOTIFY), 100);
                        } else if (mPendingUpdate > 0) {
                            if (V) Log.v(TAG, "previous thread is not finished yet");
                            mHandler.sendMessageDelayed(mHandler.obtainMessage(NOTIFY), 1000);
                            mHandler.sendMessageDelayed(mHandler.obtainMessage(NOTIFY), 100);
                        }
                        break;
                    }