summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
3 daysMerge "Add deps for new aconfig flagging storage" into mainHEADmastermainTed Bauer
3 daysAdd deps for new aconfig flagging storageTed Bauer
Aconfig flagging storage is migrating to a new underlying storage, which has new dependencies. Add the dependencies as a defaults. Bug: 328444881 Test: m Change-Id: I00fbd22d44b0c53d68b4a0c2631dec5fa3d6827c
9 daysMerge "Migrate Test Targets to New Android Ownership Model" into mainRonish Kalia
10 daysMigrate Test Targets to New Android Ownership ModelAditya Choudhary
This CL is created as a best effort to migrate test targets to the new Android ownership model. It is based on historical data from repository history and insights from git blame. Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary attribution in this CL, please create a new CL to fix that. For detailed guidelines and further information on the migration please refer to the link below, go/new-android-ownership-model Bug: 304529413 Test: N/A Change-Id: Ie96d6c330935afac19c68757ba6403434501f3da
2024-03-22Merge "camera: Fix incorrectly generated ndk enums" into mainJayant Chowdhary
2024-03-21camera: Fix incorrectly generated ndk enumsJayant Chowdhary
Some enums which had fwk-only tags incorrectly generated values for the ndk. Fix these. Bug: 330368203 Test: build Merged-In: I8b7210b46c41c2c6f49dbd08202c91e77bb7ac15 Change-Id: I4f664989504cfa03dfba763f60545785cd801347 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2024-03-14Merge "audio_utils: Add CommandThread for command serialization" into mainAndy Hung
2024-03-14Merge "media: Fix Android.bp format" into mainAndy Hung
2024-03-13audio_utils: Add CommandThread for command serializationAndy Hung
Test: atest audio_commandthread_tests Bug: 326031258 Merged-In: I41ef7728d2bddb4a569fb44eda82a6152e01f1b3 Change-Id: I41ef7728d2bddb4a569fb44eda82a6152e01f1b3
2024-03-13media: Fix Android.bp formatAndy Hung
As PREUPLOAD.cfg applies to the top level of the project (ignored below) we apply this to everything in system/media. $ find . -name Android.bp | xargs ../../prebuilts/build-tools/linux-x86/bin/bpfmt -s -w Note that bpfmt has a -s sort option. Test: treehugger Test: repo upload --dry-run . Bug: 328311629 Merged-In: I35357c80b863c66e02e36310cf0de6ff0db92ab5 Change-Id: I35357c80b863c66e02e36310cf0de6ff0db92ab5
2024-03-13Merge "audio mutex: Minor updates" into mainAndy Hung
2024-03-13Merge "audio_utils: Optimize power energy computation" into mainAndy Hung
2024-03-13Merge "power: Use intrinsic optimizations" into mainAndy Hung
2024-03-13Merge "audio_utils: Add power benchmark" into mainAndy Hung
2024-03-12audio mutex: Minor updatesAndy Hung
Fix clang warnings. Zero initialize instead of default initialize. Test: compiles Bug: 324511705 Merged-In: I8c616385ceb24f02c401c719082f66e7d11061ef Change-Id: I8c616385ceb24f02c401c719082f66e7d11061ef
2024-03-12audio_utils: Optimize power energy computationAndy Hung
Tweak the intrinsic choices to obtain better performance. Test: atest power_tests Test: atest audio_power_benchmark Bug: 323611666 Merged-In: I42d40372dac6a8f5fc6602f08a5fe1576142558d Change-Id: I42d40372dac6a8f5fc6602f08a5fe1576142558d
2024-03-12power: Use intrinsic optimizationsAndy Hung
Use general intrinsic_utils library for more portable optimization. Test: atest audio_power_benchmark Test: atest power_tests Bug: 323610467 Merged-In: I9a7df0257fc83ba7bf22316247170d1bd95c2700 Change-Id: I9a7df0257fc83ba7bf22316247170d1bd95c2700
2024-03-12audio_utils: Add power benchmarkAndy Hung
Test: atest audio_power_benchmark Bug: 323413292 Merged-In: I90cee2596b68c351167bfd07f64c3599c205da5e Change-Id: I90cee2596b68c351167bfd07f64c3599c205da5e
2024-03-12Merge "ChannelMix: Add AUDIO_CHANNEL_OUT_9POINT1POINT6 support" into mainAndy Hung
2024-03-12Merge "audio_utils: Fix 7.1.4 channel mix TOP_BACK_LEFT/RIGHT" into mainAndy Hung
2024-03-12Merge "audio mutex: Track waiting through condition_variable" into mainAndy Hung
2024-03-12Merge changes Iebad14ab,I662e8789 into mainAndy Hung
* changes: audio mutex: Refine metadata visibility audio mutex: Optimize data access
2024-03-12Merge "audio mutex: Add additional tests and benchmarks" into mainAndy Hung
2024-03-11ChannelMix: Add AUDIO_CHANNEL_OUT_9POINT1POINT6 supportAndy Hung
Some spatializers may request this. Test: atest channelmix_benchmark Test: atest channels_tests Bug: 279662519 Bug: 323279237 Merged-In: I02b199b194848f4369b7af163d275be51ac70a4c Change-Id: I02b199b194848f4369b7af163d275be51ac70a4c
2024-03-11audio_utils: Fix 7.1.4 channel mix TOP_BACK_LEFT/RIGHTAndy Hung
Should go into the same destination channel, not BACK_LEFT/BACK_RIGHT. Add a test to catch the issue. Test: atest channels_tests Bug: 323277496 Merged-In: Ib512179c341d9cff264318428ad140364504da9f Change-Id: Ib512179c341d9cff264318428ad140364504da9f
2024-03-11audio mutex: Track waiting through condition_variableAndy Hung
Add tid metadata when we know the notification thread of a condition_variable wait. Test: atest audio_mutex_benchmark Test: atest audio_mutex_tests Bug: 322424558 Merged-In: I6e04529c7be7da16819dc5b9ab046b9416e1bb9a Change-Id: I6e04529c7be7da16819dc5b9ab046b9416e1bb9a
2024-03-11audio mutex: Refine metadata visibilityAndy Hung
Issue explicit memory barriers to ensure complier issues writes for mutex metadata in a timely manner. The C++17 standard only states "Implementations should make atomic stores visible to atomic loads within a reasonable amount of time." This forces the visibilty issue. Test: atest audio_mutex_tests Test: atest audio_mutex_benchmark Test: atest CtsMediaAudioTestCases Bug: 321302216 Merged-In: Iebad14abef09308fc87f9ebde3cca99649d525fc Change-Id: Iebad14abef09308fc87f9ebde3cca99649d525fc
2024-03-11audio mutex: Optimize data accessAndy Hung
Distinguish between statistics (multiple writer) and thread_local (single writer) memory access to optimize data access. Test: atest audio_mutex_tests Test: atest audio_mutex_benchmark Test: atest CtsMediaAudioTestCases Bug: 321302216 Merged-In: I662e878933031111b68b21917223b64c2eee9d05 Change-Id: I662e878933031111b68b21917223b64c2eee9d05
2024-03-11audio mutex: Add additional tests and benchmarksAndy Hung
Add priority_inheritance parameter for audio mutex creation and use in testing and benchmark comparisons. Test: atest audio_mutex_tests Test: atest audio_mutex_benchmark Bug: 321302216 Merged-In: I6b74c70239e9949b4a9ecd52b497db818a9b56b1 Change-Id: I6b74c70239e9949b4a9ecd52b497db818a9b56b1
2024-03-08Merge "audio_mutex_tests: Verify timed try_lock waits long enough" into mainAndy Hung
2024-03-08Merge changes I2c97098d,I64bdf857 into mainAndy Hung
* changes: PowerLog: Balance memory for multiple levels PowerLog: Allow second level multiresolution
2024-03-08Merge "PowerLog: Prepare for multiresolution mode." into mainAndy Hung
2024-03-08Merge "audio_mutex: add nodiscard to RAII locks" into mainAndy Hung
2024-03-08Merge "audio_mutex: Add APM mutex order" into mainAndy Hung
2024-03-07audio_mutex_tests: Verify timed try_lock waits long enoughAndy Hung
This also requires bionic fix 5e19b185fdccbccca76e2925d3b0a1c6c80ad937 Test: atest audio_mutex_tests Bug: 312787238 Merged-In: I1f40f9c0eb389952af84e78a2687e4dcf9b5d31d Change-Id: I1f40f9c0eb389952af84e78a2687e4dcf9b5d31d
2024-03-07PowerLog: Balance memory for multiple levelsAndy Hung
Test: atest powerlog_tests Test: adb shell showmap '$(pgrep audioserver)' Bug: 319566420 Merged-In: I2c97098da680febd7a2b568e01dc661390720ca7 Change-Id: I2c97098da680febd7a2b568e01dc661390720ca7
2024-03-07PowerLog: Allow second level multiresolutionAndy Hung
And update tests. Test: adb shell dumpsys media.audio_flinger Test: atest powerlog_tests Bug: 271143713 Merged-In: I64bdf857a900168f6c865964b200f2b31e4d6a95 Change-Id: I64bdf857a900168f6c865964b200f2b31e4d6a95
2024-03-07PowerLog: Prepare for multiresolution mode.Andy Hung
Fix energy computation when split across boundaries. Improve time accuracy. Add PowerLogBase helper class. Test: adb shell dumpsys media.audio_flinger Test: atest powerlog_tests Bug: 271143713 Merged-In: I4bdbc44fcde4eace14151dfe36b1627e3546e26a Change-Id: I4bdbc44fcde4eace14151dfe36b1627e3546e26a
2024-03-07audio_mutex: add nodiscard to RAII locksAndy Hung
Test: instrumented check that warning is issued. Bug: 317903066 Merged-In: I499b97f1429f0f59ba93dc4a13e1f3e249d7c2a1 Change-Id: I499b97f1429f0f59ba93dc4a13e1f3e249d7c2a1
2024-03-07audio_mutex: Add APM mutex orderAndy Hung
Test: atest CtsMediaAudioTestCases Bug: 315063959 Merged-In: Ie1409e8d78e8c03c5413a6763e33bc0dde20d861 Change-Id: Ie1409e8d78e8c03c5413a6763e33bc0dde20d861
2024-03-07Merge "Merge Android 14 QPR2 to AOSP main" into mainXin Li
2024-03-06Merge Android 14 QPR2 to AOSP mainXin Li
Bug: 319669529 Merged-In: I1c97efb388f7590f843f8eb22dd58ac71ec2227f Change-Id: I918e0c50f2097a2e42b6078f783ef30741a53b59
2024-02-16Merge "Add getRange util from effect capability definition" into main am: ↵temp_319669529Shunkai Yao
76167db6a8 Original change: https://android-review.googlesource.com/c/platform/system/media/+/2959499 Change-Id: I1c97efb388f7590f843f8eb22dd58ac71ec2227f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-15Merge "Add getRange util from effect capability definition" into mainShunkai Yao
2024-02-14Merge "audio: add audio_channel_mask_contains_stereo" into main am: 745cbb066dEric Laurent
Original change: https://android-review.googlesource.com/c/platform/system/media/+/2954025 Change-Id: I1c149d7f8f5f808c37358ee3f89e8df34c58411b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14Merge "Use vector instead of std::basic_string<uint8_t>" into main am: ↵Ryan Prichard
e7519a879d Original change: https://android-review.googlesource.com/c/platform/system/media/+/2954455 Change-Id: Id2afe98467ef88832459161d34780702bdb0752b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14Merge "audio: add audio_channel_mask_contains_stereo" into mainEric Laurent
2024-02-13Add getRange util from effect capability definitionShunkai Yao
Bug: 273373363 Test: atest EffectsFactoryHalInterfaceTest Change-Id: I69ea86869086ab33a92e387291117b400ad1db8d
2024-02-12Merge "Use vector instead of std::basic_string<uint8_t>" into mainRyan Prichard
2024-02-08Use vector instead of std::basic_string<uint8_t>Ryan Prichard
In newer versions of libc++, std::char_traits<T> is no longer defined for non-character types, and a result, std::basic_string<uint8_t> is also no longer defined. See https://discourse.llvm.org/t/deprecating-std-string-t-for-non-character-t/66779. Also: in copyToByteString, stop truncating a std::string that contains a NUL char. Bug: 175635923 Test: m MODULES-IN-system-media-audio_utils Test: /data/nativetest64/metadata_tests/metadata_tests Change-Id: I80f7ad14c296ea06daed71be54819da9ed8a4f48