Based on observing it's values, xiaomi.sensor.aod reports
the following events:
4.0: Bright environment
5.0: Dark environment
Change-Id: Ie589066bd860a7fed3989092c21aee73686ecea4
Signed-off-by: Arian <arian.kulmer@web.de>
* Use standard sensor type
* Ignore non-wakeup sensor variant
* Ignore events that do not properly match a pickup
[LinkBoi00] Adapt sensor name for our device
Change-Id: I2bab89362aa225344a69c4969096ea9a61ef3033
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
* MediaTek ship their own modified task_profiles and
use the V30 cgroups configuration.
Change-Id: I15245ea87b00925597db65f1564e808a094c937a
Signed-off-by: bengris32 <bengris32@protonmail.ch>
This firmware fixes the a2dp crash that was worked around by commit [1]
[1]: e7f12ea3db
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Change-Id: Ibf7816de894e17c59b6b62b9039c74742ccd8b55
* Rearrange power service packages
* Cleanup unneeded power service blobs
Change-Id: I33c6c35164e00f4018d966828fa08dcf6677ca6e
Signed-off-by: bengris32 <bengris32@protonmail.ch>
* 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