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
diff --git a/camera/Android.bp b/camera/Android.bp
index f27eb31..b3f70f4 100644
--- a/camera/Android.bp
+++ b/camera/Android.bp
@@ -142,14 +142,15 @@
 filegroup {
     name: "libcamera_client_aidl",
     srcs: [
+        "aidl/android/hardware/CameraExtensionSessionStats.aidl",
         "aidl/android/hardware/ICameraService.aidl",
         "aidl/android/hardware/ICameraServiceListener.aidl",
         "aidl/android/hardware/ICameraServiceProxy.aidl",
         "aidl/android/hardware/camera2/ICameraDeviceCallbacks.aidl",
         "aidl/android/hardware/camera2/ICameraDeviceUser.aidl",
-        "aidl/android/hardware/camera2/ICameraOfflineSession.aidl",
         "aidl/android/hardware/camera2/ICameraInjectionCallback.aidl",
         "aidl/android/hardware/camera2/ICameraInjectionSession.aidl",
+        "aidl/android/hardware/camera2/ICameraOfflineSession.aidl",
     ],
     path: "aidl",
 }