diff options
| author | 2023-06-20 16:43:37 -0700 | |
|---|---|---|
| committer | 2023-06-20 16:43:37 -0700 | |
| commit | 1d1d512a0ca7db66fb4ba03db386d79d46b94b43 (patch) | |
| tree | 69067af254f7f6e3269d0986c1d6b1dccb8eb535 | |
| parent | d136af5b6fc7d457126753092791283ff7933aef (diff) | |
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
| -rw-r--r-- | services/sensorservice/SensorService.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sensorservice/SensorService.h b/services/sensorservice/SensorService.h index 0aa1bcbd72..545f6c25d5 100644 --- a/services/sensorservice/SensorService.h +++ b/services/sensorservice/SensorService.h @@ -61,7 +61,7 @@ // For older HALs which don't support batching, use a smaller socket buffer size. #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 // at 200 Hz. The cap also applies to all requests when the mic toggle is flipped to on, regardless |