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

Skip to content
Commit 6e57a2bc authored by Avichal Rakesh's avatar Avichal Rakesh
Browse files

cameraservice: Add metrics for extension sessions

We want to log camera extension usage in cameraservice. This CL adds
the scaffolding for it. Specifically, it does the following:

  - Adds CameraExtensionSessionStats.aidl: This is used as the interface
    that CameraExtensionSession, CameraService, and CameraServiceProxy
    use to parcel extension metrics around.

  - Adds 'reportExtensionStats' to ICameraService: To keep the details
    of extensions away from cameraservice, CameraExtensionSession is
    responsible for collecting and reporting the stats. CameraService
    simply maps the reported stats to the current camera session and
    passes it to CameraServiceProxy when the session is closed.

    Some additional safeguards are added for this function because
    CameraExtensionSession can potentially report stats after the
    session has already been closed from cameraservice.

Bug: 261470491
Test: No functional change.
      `atest CtsCameraTestCases` passes.
      `statsd_testdrive 227` confirms that extension metrics are logged
          correctly.
Change-Id: I4a9897fc2b09cabb7618e94f8484757735c5e1f3
parent 1df77b62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment