Skip to content
Snippets Groups Projects
  1. Oct 13, 2023
    • Chandru S's avatar
      Add all the derived state needed for rest to unlock feature to SideFpsSensorInteractor · 60f9c514
      Chandru S authored
      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
      60f9c514
  2. Oct 12, 2023
  3. Oct 11, 2023
Loading