summaryrefslogtreecommitdiff
path: root/sysprop/hardware.sysprop
diff options
context:
space:
mode:
author Arjun Dhaliwal <arjundhaliwal@google.com> 2024-11-04 10:56:54 -0800
committer Arjun Dhaliwal <arjundhaliwal@google.com> 2024-11-04 23:42:02 +0000
commit605bc9acad352320d59b96d6f60003393a1703c3 (patch)
tree5ac30d8c7b83385fcbd59dbd1e29881e1779eb8e /sysprop/hardware.sysprop
parent342ed20dfd1c8303d499cdee94e25c960a01b14f (diff)
osi: Use CLOCK_MONOTONIC on platforms that can't wake on BT
Some devices (such as TVs) are not wired up to be woken by the controller. These devices might run into unforeseen issues going to sleep with timers armed. This commit adds a sysprop (bluetooth.hardware.wakeup_supported) to specify that the platform is wired up like that, and makes all alarms on those platforms monotonic, so they do not count up during suspend. Bug: 343826774 Test: m -j128 com.android.btservices & QA testing Flag: EXEMPT, behaviour controlled by sysprop Change-Id: Ie720ea3c20cba317eb3536c49604c9c8b9c2d80f
Diffstat (limited to 'sysprop/hardware.sysprop')
-rw-r--r--sysprop/hardware.sysprop10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysprop/hardware.sysprop b/sysprop/hardware.sysprop
new file mode 100644
index 0000000000..07c09134bb
--- /dev/null
+++ b/sysprop/hardware.sysprop
@@ -0,0 +1,10 @@
+module: "android.sysprop.bluetooth.hardware"
+owner: Platform
+
+prop {
+ api_name: "wakeup_supported"
+ type: Boolean
+ scope: Internal
+ access: Readonly
+ prop_name: "bluetooth.hardware.wakeup_supported"
+}