Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d1d512a authored by Chris Kuiper's avatar Chris Kuiper
Browse files

Increase sensors registration history to 500

Due to an increase in sensor registrations, the current 200 limit
often covers barely 30 mins. This increases the size to 500.

Bug: 162781290
Test: adb shell dumpsys sensorservice.
Change-Id: I858b3277b903bfa5024182152b95783d05f125d7
parent d136af5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@
// For older HALs which don't support batching, use a smaller socket buffer size.
// For older HALs which don't support batching, use a smaller socket buffer size.
#define SOCKET_BUFFER_SIZE_NON_BATCHED (4 * 1024)
#define SOCKET_BUFFER_SIZE_NON_BATCHED (4 * 1024)


#define SENSOR_REGISTRATIONS_BUF_SIZE 200
#define SENSOR_REGISTRATIONS_BUF_SIZE 500


// Apps that targets S+ and do not have HIGH_SAMPLING_RATE_SENSORS permission will be capped
// Apps that targets S+ and do not have HIGH_SAMPLING_RATE_SENSORS permission will be capped
// at 200 Hz. The cap also applies to all requests when the mic toggle is flipped to on, regardless
// at 200 Hz. The cap also applies to all requests when the mic toggle is flipped to on, regardless