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

Commit 453695c1 authored by Aditi Katragadda's avatar Aditi Katragadda
Browse files

Randomize media ID to correct lost audio focus fix

This change explicitly disables the feature flag for tests that only test the old pre-flagged behavior. These tests will be removed when the flag is removed.

Tag: #stability
Bug: 215263047
Bug: 332367017
Flag: EXEMPT, test change only
Test: atest BrowseTreeTest.java
Test: atest AvrcpControllerStateMachineTest.java
Change-Id: Ib68afb5a17b677660ce00147e846bddf8b6008f5
parent ba2e6728
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -473,6 +473,7 @@ public class AvrcpControllerStateMachineTest {
    /** Get the root of the device */
    @Test
    public void testGetDeviceRootNode_flagRandomDeviceIdDisabled_rootNodeMatchesUuidFormat() {
        mSetFlagsRule.disableFlags(Flags.FLAG_RANDOMIZE_DEVICE_LEVEL_MEDIA_IDS);
        setUpConnectedState(true, true);
        final String rootName = "__ROOT__" + mTestDevice.getAddress().toString();
        // Get the root of the device
+1 −0
Original line number Diff line number Diff line
@@ -114,6 +114,7 @@ public class BrowseTreeTest {

    @Test
    public void findBrowseNodeByIDForDevice() {
        mSetFlagsRule.disableFlags(Flags.FLAG_RANDOMIZE_DEVICE_LEVEL_MEDIA_IDS);
        BrowseTree browseTree = new BrowseTree(mTestDevice);
        final String deviceId = BrowseTree.ROOT + mTestDevice.getAddress().toString();
        assertThat(browseTree.findBrowseNodeByID(deviceId)).isEqualTo(browseTree.mRootNode);