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

Commit d52de0fa authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by android-build-merger
Browse files

Merge "Limit AVRCP Browsing fetch size" am: a658d1b3 am: 10b99dd4

am: 152e66b5

Change-Id: If9bf3d5a4ec7a8fa7ef2afe1504cb5a6f718f5c9
parents 8a37c063 152e66b5
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -91,8 +91,10 @@ class AvrcpControllerStateMachine extends StateMachine {

    static final int ABS_VOL_TIMEOUT_MILLIS = 1000; //1s
    static final int CMD_TIMEOUT_MILLIS = 5000; // 5s
    // Fetch only 5 items at a time.
    static final int GET_FOLDER_ITEMS_PAGINATION_SIZE = 5;
    // Fetch only 20 items at a time.
    static final int GET_FOLDER_ITEMS_PAGINATION_SIZE = 20;
    // Fetch no more than 1000 items per directory.
    static final int MAX_FOLDER_ITEMS = 1000;

    /*
     * Base value for absolute volume from JNI
@@ -590,7 +592,7 @@ class AvrcpControllerStateMachine extends StateMachine {
                Log.d(STATE_TAG, "startInd " + startInd + " endInd " + endInd);
            }
            mStartInd = startInd;
            mEndInd = endInd;
            mEndInd = Math.min(endInd, MAX_FOLDER_ITEMS);
        }

        @Override