summaryrefslogtreecommitdiff
path: root/system/stack/mmc
AgeCommit message (Collapse)Author
2025-03-18OWNER freeze window William Escande
Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: I9c8322fca831c81a158bac4765f79db00ddb061b
2025-03-13stack: Inline methods from stack_metrics_logging.h Henri Chataing
Bug: 401588157 Test: m com.android.bt Flag: EXEMPT, no logical change Change-Id: I1cf4a5e3664f4afc3eb2cfebbf23642c568403a4
2025-03-04Delete duplicate headers hci/address.h, hci/class_of_device.h Henri Chataing
Copied when the pdl library was created but the originals were never removed Bug: 331817295 Test: m com.android.bt Flag: EXEMPT, dead code removal Change-Id: Ide574ac023cfb94539466b241b78595a80141dff
2025-02-25system/common: Remove location parameter from MessageLoopThread Henri Chataing
This change was already applied to do_in_jni_thread and do_in_main_thread. Removing the parameter from MessageLoopThread will bring the API closed to os::Handler. Bug: 331817295 Test: m com.android.bt Flag: EXEMPT, no logical change Change-Id: Iaadaf638de318acba695a49ebe51b69edbd12e0b
2024-12-27Merge "Revert^2 "OWNER remove freeze window"" into main Treehugger Robot
2024-12-27Revert^2 "OWNER remove freeze window" William Escande
This reverts commit a6f7fa1da0e5ca8b6a0f1734bfa089d542f2afba. Reason for revert: Prebuilt as landed Change-Id: I40a2bd6b29b924f51f9823381485f3adcf249b42
2024-12-20Merge "Revert "OWNER remove freeze window"" into main Treehugger Robot
2024-12-20Revert "OWNER remove freeze window" Thomas Girardier
This reverts commit 5616c5a9624baea932bd552ecedd772ceaf9068b. Reason for revert: Freezing Bluetooth during holiday period and transition to Mainline since it is now built from source. Change-Id: I56fe54154296ef1bcee7e92f77a462036ef8008b
2024-12-12system: Convert base::StringPrintf to std::format Henri Chataing
Bug: 331817295 Test: m com.android.btservices Flag: EXEMPT, mechanical refactor Change-Id: Ib6933af3c28a1d429ea0cb6e3eae05b53fc9f2b4
2024-12-06OWNER remove freeze window William Escande
This reverts aosp/3387082 Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: I716f0283525750a6fc7cfe85251c1c1b8632f9e6
2024-12-02OWNER freeze window William Escande
Bug: 381884217 Flag: EXEMPT only changing OWNERS Test: m . Change-Id: Iff8ed28793141c2463d2c8a251ff454fc25c448e
2024-11-12Remove 'system/types' from include_dirs Henri Chataing
Bug: 331817295 Test: m com.android.btservices Flag: EXEMPT, build change Change-Id: I259a974e5d0bf389d69876889118de0d5eed9b5e
2024-10-02Remove the init_flags module Henri Chataing
All existing init flags have been migrated to feature flags or removed and the rust module can now be deleted. Bug: 331817295 Test: m com.android.btservices Flag: EXEMPT, dead code removal Change-Id: I38be97fad7f9bd42f432d74e5b8090a08dc4502a
2024-07-07Format: apply clang rules William Escande
Restore SpacesBeforeTrailingComments to 2 to match current style Then run clang-format -i **/**.{c,h,cc,cpp,hpp} Then fix a bunch of typo (reported by gerrit) Then fix unnecessary multiline string Then fix whitespace for disabled clang format (reported by cpplint) This is no-op Bug: 311772251 Test: mmm packages/modules/Bluetooth Flag: Exempt Format only Change-Id: If135447803a40a2a07d4630ba2195e08ef8d250c
2024-04-08Remove legacy header system/include/check.h Henri Chataing
Used to include selectively <base/check.h> or <base/logging.h> depending on the version of libchrome Bug: 331817295 Test: m com.android.btservices Flag: EXEMPT, dead code removal Change-Id: I55c747973f1e354745cbb54f6c605ba6c07d9471
2024-04-05Remove includes of <base/logging.h> Henri Chataing
Convert remaining DLOG, LOG, CHECK_xx occurences in the same pass Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I7ae3e14c84b6ee5dc2ac0babc652c699c7424418
2024-04-05system: Migrate CHECK to log::assert_that Henri Chataing
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I40e01004b3cf81037ed2926397aa18904d7446fe
2024-04-05system: Migrate LOG_ASSERT to log::assert_that Henri Chataing
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I17e25f543ee262f89959146017bafcee6ef95d52
2024-03-21system/stack/mmc: Migrate to libbluetooth_log Henri Chataing
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I58ea52b64f743fe50070d737adabc9627f072913
2024-03-21system/common: Migrate to libbluetooth_log Henri Chataing
Test: m com.android.btservices Bug: 305066880 Flag: EXEMPT, mechanical refactor Change-Id: I04bae75c77e7fd421884f5ff122c794cf229d44e
2024-03-04Floss: fix |bluetooth/log.h| build issues for linux Jeremy Wu
aosp/2953903 made a refactor about the logs while some of the linux components that weren't built by the time. This CL fixes some minor issues to allow the build. Bug: 314227872 Test: m Bluetooth Flag: EXEMPT floss only changes Change-Id: Ice19f179e29b8f232539b7ed0938a5996eee5851
2024-02-15Floss: remove unused library avformat Jeremy Wu
This CL removes the unused library to minimize required package size. Bug: 314227872 Test: m Bluetooth Flag: EXEMPT floss only changes Change-Id: Ia9745b6bdf1ec9cf60f4a65eedced1c945128863
2024-01-16Floss: remove speed optimization in MMC test build Jeremy Wu
The "speed" optimization is only necessary when a fuzzer is involved. Removing this as it is a suspected cause of increased build time. Bug: 317993722 Test: m Bluetooth; time FEATURES=test emerge-$BOARD floss Flag: EXEMPT floss only changes Change-Id: I8900036204456cf95797c8397c4602b635027411
2024-01-10Remove gd/ from message_loop_thread.h Myles Watson
Bug: 301661850 Test: mma -j32 Flag: EXEMPT, inclusion path changes Change-Id: Ib1741d8afc9f80144995121bf05a4a23983a21d1
2023-12-18Remove internal_include directory path from build files Chris Manton
Bug: 315041282 Test: m . Flag: EXEMPT, build file inclusion path removal Change-Id: I45d8e52ae5049b0701d4104ca19174cda8ec8c33
2023-11-28OWNER: use relatif path William Escande
Bug: 311772251 Test: m Bluetooth | no-op change on owner file Change-Id: Iae34d693cca150e7e1ed545f0b881bc12013136a
2023-11-27Prefer errno.h ==> cerrno Chris Manton
Also remove unused inclusion and other misc. reinclusion Bug: 313491963 Test: m . Change-Id: I5e21c1df6d1598b8c04817fa5251023f118cb9b5
2023-11-06Floss: disconnect from DBus in MMC deconstructor Jeremy Wu
There is a connection leak in the constructor. This CL does the appropriate cleanup in the corresponding deconstructor. Bug: 309382806 Tag: #floss Test: atest net_test_stack_btm Test: do profile-switch 257 times Change-Id: I5c909d252fb5762abbd096dcc4496ff980b327b5
2023-10-12Floss: use MMC as default Jeremy Wu
MMC is used to contain experimental codecs into an isolated sandbox. This CL makes MMC default to be applied in Floss. Bug: 294165109 Tag: #floss Test: atest net_test_stack_btm Change-Id: I1fa42ea7a9267ca1238c1f3dd26bb9f0c03d777f
2023-09-14Floss: metrics: add transcode round-trip time metrics for MMC Jennifer
In this patch, the metric is added to Records statistics on the round-trip time for transcoding data using MMC. Bug: 294165109 Tag: #floss Test: m - None Change-Id: Idcc34c93cf6c4497939e3da675ccb81f0500cc3e
2023-09-13Floss: add mmc README.md Jennifer
In this patch, README.md is added for project introduction and describe how to apply MMC to new codec. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I609951bb0167170d73dae2b2b585715ed41875f4
2023-09-11Floss: add HFP LC3 codec server unit tests Jennifer
In this patch, we test hfp_lc3_mmc_encoder and hfp_lc3_mmc_decoder with mocked lc3 codec libraries. Bug: 294165109 Tag: #floss Test: atest - hfp_lc3_mmc_encoder_test, hfp_lc3_mmc_decoder_test Change-Id: I5fcdbc9a52eda321bfdbc17e50765387e1db5043
2023-09-07Floss: add A2DP AAC Encoder support in MMC daemon Jennifer
In this patch, the MMC daemon can accept aac_encoder_param, and create the corresponding |A2dpAacEncoder| instance. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I28a0ce413a1c06efb6e44e80843e6135d738d4aa
2023-09-07Floss: wrap |FFmpegInterface| with |A2dpAacEncoder| Jennifer
In this patch, the third party codec in |FFmpegInterface| is moved to |A2dpAacEncoder|. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I59c7c9e9c67952a98658c8a65206b72fb42caf6d
2023-09-07Floss: add AAC encoder config proto Jennifer
In this patch, |AacEncoderParam| is added for A2DP AAC encoder. Bug: 294165109 Tag: #floss Test: m - None. Change-Id: Iaf23f9de3b35d8c816629bdc850560595260aed3
2023-09-07Floss: replace HFP LC3 codec libraries with CodecClient. Jennifer
In this patch, HFP LC3 codec libraries are replaced by |CodecClient| methods. |CodecClient| inherits |MmcInterface|, and serves as a proxy of codec server. MMC could be built with "USE=${USE} floss floss_mmc". Bug: 294165109 Tag: #floss Test: m - emerge and deploy floss on brya, connect to Pixel Buds, check /var/log/messages to make sure btadapterd works when switch to HFP LC3 codec. Change-Id: I20bae03bf5252909559eb091ea314c2de8472ab4
2023-09-07Floss: use external/lc3 Jennifer
Change the include header and BUILD.gn libs. Bug: 294165109 Tag: #floss Test: m - None. Change-Id: I62e354678591affeb43feb1b3ac2da3f01bf8752
2023-08-30Floss: add MMC DBus service daemon and related conf files. Jennifer
In this patch, MMC DBus service daemon will be invoked when DBus method |CodecInit| or |CodecCleanUp| is called. In |CodecInit|, the daemon creates a socket and makes a worker thread listen on the socket. In |CodecCleanUp|, the daemon shuts down all idle threads. Configuration files are added to set up daemon priveldges and DBus startup. Bug: 294165109 Tag: #floss Test: m - None Change-Id: Ied3b142a006797bc2a922ea9f091d6c187f84bd0
2023-08-30Floss: wrap HFP LC3 codec libraries with codec server Jennifer
In this patch, HFP LC3 codec libraries are placed into |HfpLc3Encoder| and |HfpLc3Decoder|, which inherit |MmcInterface|. Only |init|, |cleanup|, and |transcode| are exposed to user to hide details. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I8790b90d472d260e3ac3bdf651c222572aa91583
2023-08-23Floss: fix typo of Lc3Param Jennifer
In this patch, we removed the typo |dt_hz| and add |dt_us| in Lc3Param. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I6e6d6b0183db49b1d8ede0a43e87b5a1ebbe6a72
2023-08-23Floss: define MMC DBus service proto Jennifer
In this patch, we define |CodecInitRequest| as |CodecInit| input that contains config parameters. |CodecInitResponse| is |CodecInit| output that contains generated socket token and input frame size accepted by the codec server. Bug: 285999597 Tag: #floss Test: m - None Change-Id: I273747d534623fe6ebd25468dea87254ff67de7b
2023-08-23Floss: define MMC interface Jennifer
In this patch, we define common codec methods (init, cleanup, transcode) in |MMCInterface|, a wrapper that routes data to the appropriate receiver or implementation. The caller of codec libraries would use the interface to access basic codec utilities. Bug: 285999597 Tag: #floss Test: m - None Change-Id: I8f6489d60b3afcc276035509a4633ad31b10e1fc
2023-08-18Floss: add corresponding SBC parameters in proto message Jennifer
In this patch, we put SBC parameters into |SbcEncoderParam| and |SbcDecoderParam|. The two messages are used by HFP MSBC encoder and decoder, respectively. It is expected that A2DP SBC encoder and decoder will also use the two messages. Bug: 294165109 Tag: #floss Test: m - None Change-Id: I43591bcf34e091524fd6083b0d9cb436c532f605
2023-08-07Floss: define MMC unified config and codec parameters Jennifer
In this patch, we place config and codec parameters in proto message. |ConfigParam| is the union of different codec messages. The minijailed media codec (MMC) interface takes in |ConfigParam| for initialization. Bug: 285999597 Tag: #floss Test: m - None Change-Id: I74da96e26e2a70798408acf55cebf0b9f137d840