diff options
| author | 2023-10-06 11:39:34 -0700 | |
|---|---|---|
| committer | 2023-10-13 11:43:52 -0700 | |
| commit | 60f9c514eb92fc45016402dace4aeb459dd4e7e1 (patch) | |
| tree | 7639ba9ef5d1cb086d09c4a87405c434a482ac46 /libs/androidfw/misc.cpp | |
| parent | 67863693041062e428d0b2de023466775b06c98e (diff) | |
Add all the derived state needed for rest to unlock feature to SideFpsSensorInteractor
This is code will be reused by SideFpsController as well to show the SFPS indicator
SideFpsSensorInteractor provides
1. sensorLocation that provides location of the sensor relative to the left, top of the screen
2. isProlongedTouchRequiredForAuthentication - is rest to unlock enabled
3. authenticationDuration - rest duration for authentication
4. isAvailable - whether SFPS is available
This also handles display changes (felix folds/unfolds) or display rotation changes
Note: SensorInternal provides (???, 0) for sensors along vertical edge (in Rotation_0) or (0, ???) for sensors along horizontal edge (in Rotation_0).
Bug: 277165756
Test: atest SideFpsSensorInteractorTest
Change-Id: I74abe73f57b0c03046f76bfbf98b4da70e1d9a02
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions