* Since commit eb57617 [1], the legacy callback interfaces in the Android
AudioTrack system have been deprecated and replaced by a newer callback
interface. Consequently, the user parameter, which was previously part
of the constructor, has been incorporated into this new interface.
* To address the resulting build issues, update the function signatures
to match the new methods. Although AOSP provides a wrapper [2] for this
purpose, it's declared within an anonymous namespace, effectively making
it private to its own translation unit. To work around this limitation,
provide a local copy of the wrapper instead.
* Also format the shim with `clang-format`.
- [1]: eb57617e55
- [2]: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/av/media/libaudioclient/AudioTrack.cpp;l=289;bpv=1
Change-Id: Ieae7df3f5f003538a0319cc77051322a989b93a8
* E init : Control message: Could not find 'android.frameworks.sensorservice@1.0::ISensorManager/default' for ctl.interface_start from pid: 516 (/system/bin/hwservicemanager)
Change-Id: If696de35b0d70e1f67d72be456347c6c7fd691f7
This variable is always false or empty now.
Remove it so we can mark it as deprecated later.
Bug: 241346584
Test: Presubmit
Change-Id: I57cbe875f556bb853d4ea9b1d458c9c554c6bfa5
* libsensorndkbridge was converted to use AIDL, yay...
Change-Id: I7611acbc48093646c614cd8066c9dc40bdd7f9a2
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Add power consumed by audio and video hardware to power profile.
Attribute these power to specific app.
Bug: 70531798
Test: PowerProfileTest
Test: BatteryStatsHelperTest
Test: PowerCalculatorTest
Change-Id: I4811efa14ce97983258cd59bfd328181fe95baf4
* Main carrier config from MtkCarrierConfig asset default_v2.9.3.xml,
with vendor specific settings appended to the end.
Change-Id: I7bcb5f9714720e3b42b5b1e5dc13cfe4233ac874
Signed-off-by: bengris32 <bengris32@protonmail.ch>
* ui::Size was changed going from VNDK32 to VNDK33 [1] and
ui::Size::INVALID constant was removed. However, all we need
to do is set INVALID to a Size with a width/height of -1.
[1]: 6d043c5c5c
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I4a224c6c3f622152a8bdc9f70bca18263af068cd
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.
Bug: 161456198
Test: m
Merged-In: Id16039722fd70d4e2e934a0988f13a768ce833ec
Change-Id: Id16039722fd70d4e2e934a0988f13a768ce833ec
* Allowing any process full sysfs, cgroup, mnt_vendor_file access is
inherently dangerous, instead we will label and allow access to only
the nodes that batterysecret needs to access.
Change-Id: Ia7bbe32a581bc22c1c38726cdaf9d8509d11f883
Signed-off-by: bengris32 <bengris32@protonmail.ch>
* We can no longer use the MediaTek boot control implementation
due to legal issues. Switch to the AOSP one.
Change-Id: I1d983fd7148ca40a00c3cf21b6773d2c5ecb78f4
Signed-off-by: bengris32 <bengris32@protonmail.ch>