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

Commit 8ce52e6b authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioSystem: new service cache reduces ANRs and improves performance." into main

parents ed2a497d ce3d1106
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,12 +37,16 @@ cc_fuzz {
    ],
    shared_libs: [
        "com.android.media.aaudio-aconfig-cc",
        "libaconfig_storage_read_api_cc",
        "libaudio_aidl_conversion_common_cpp",
        "libaudioclient_aidl_conversion",
        "libaudiomanager",
        "libaudiopolicy",
        "libbinder",
        "libbinder_ndk",
        "libmediautils",
        "libutils",
        "server_configurable_flags",
    ],
    static_libs: [
        "aaudio-aidl-cpp",
+0 −5
Original line number Diff line number Diff line
@@ -1577,11 +1577,6 @@ status_t AudioRecord::restoreRecord_l(const char *from)
    const int INITIAL_RETRIES = 3;
    int retries = INITIAL_RETRIES;
retry:
    if (retries < INITIAL_RETRIES) {
        // refresh the audio configuration cache in this process to make sure we get new
        // input parameters and new IAudioRecord in createRecord_l()
        AudioSystem::clearAudioConfigCache();
    }
    mFlags = mOrigFlags;

    // if the new IAudioRecord is created, createRecord_l() will modify the