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

Commit aca04275 authored by Avichal Rakesh's avatar Avichal Rakesh Committed by Android (Google) Code Review
Browse files

Merge changes from topic "309543399-ext-hal" into main

* changes:
  ExternalCameraHAL: Add ANDROID_SENSOR_READOUT_TIMESTAMP key.
  camera: Make readoutTimestamp visible to HALs
parents 2e0cae4d 1fb9ba49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ aidl_interface {
        "android.hardware.common-V2",
        "android.hardware.common.fmq-V1",
        "android.hardware.camera.common-V1",
        "android.hardware.camera.metadata-V2",
        "android.hardware.camera.metadata-V3",
        "android.hardware.graphics.common-V5",
    ],
    backend: {
+4 −1
Original line number Diff line number Diff line
@@ -497,6 +497,9 @@ status_t ExternalCameraDevice::initDefaultCharsKeys(
    const int32_t maxLatency = ANDROID_SYNC_MAX_LATENCY_UNKNOWN;
    UPDATE(ANDROID_SYNC_MAX_LATENCY, &maxLatency, 1);

    const uint8_t sensorReadoutTimestamp = ANDROID_SENSOR_READOUT_TIMESTAMP_NOT_SUPPORTED;
    UPDATE(ANDROID_SENSOR_READOUT_TIMESTAMP, &sensorReadoutTimestamp, 1);

    /* Other sensor/RAW related keys:
     * android.sensor.info.colorFilterArrangement -> no need if we don't do RAW
     * android.sensor.info.physicalSize           -> not available
+1 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ enum CameraMetadataTag {
  ANDROID_SENSOR_OPAQUE_RAW_SIZE_MAXIMUM_RESOLUTION,
  ANDROID_SENSOR_PIXEL_MODE,
  ANDROID_SENSOR_RAW_BINNING_FACTOR_USED,
  ANDROID_SENSOR_READOUT_TIMESTAMP,
  ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE = android.hardware.camera.metadata.CameraMetadataSectionStart.ANDROID_SENSOR_INFO_START /* 983040 */,
  ANDROID_SENSOR_INFO_SENSITIVITY_RANGE,
  ANDROID_SENSOR_INFO_COLOR_FILTER_ARRANGEMENT,
+43 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *//*
 * Autogenerated from camera metadata definitions in
 * /system/media/camera/docs/metadata_definitions.xml
 * *** DO NOT EDIT BY HAND ***
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.camera.metadata;
@Backing(type="int") @VintfStability
enum SensorReadoutTimestamp {
  ANDROID_SENSOR_READOUT_TIMESTAMP_NOT_SUPPORTED,
  ANDROID_SENSOR_READOUT_TIMESTAMP_HARDWARE,
}
+7 −0
Original line number Diff line number Diff line
@@ -1590,6 +1590,13 @@ enum CameraMetadataTag {
     * @see ANDROID_SENSOR_INFO_BINNING_FACTOR
     */
    ANDROID_SENSOR_RAW_BINNING_FACTOR_USED,
    /**
     * android.sensor.readoutTimestamp [static, enum, java_public]
     *
     * <p>Whether or not the camera device supports readout timestamp and
     * {@code onReadoutStarted} callback.</p>
     */
    ANDROID_SENSOR_READOUT_TIMESTAMP,
    /**
     * android.sensor.info.activeArraySize [static, int32[], public]
     *
Loading