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

Commit 4c015204 authored by Andy Hung's avatar Andy Hung
Browse files

Rename AudioRecord.getTimestamp parameter from timestamp to outTimestamp

Bug: 27952053
Change-Id: I2940de5ef1a67ec9a2ad8e294149243679f7324a
parent fe52f91f
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -874,22 +874,24 @@ public class AudioRecord implements AudioRouting
     * Calling {@link #startRecording()} following a {@link #stop()} will reset
     * the frame count to 0.
     *
     * @param timestamp a reference to a non-null AudioTimestamp instance.
     * @param outTimestamp a caller provided non-null AudioTimestamp instance,
     *        which is updated with the AudioRecord frame delivery information upon success.
     * @param timebase one of
     *        {@link AudioTimestamp#TIMEBASE_BOOTTIME AudioTimestamp.TIMEBASE_BOOTTIME} or
     *        {@link AudioTimestamp#TIMEBASE_MONOTONIC AudioTimestamp.TIMEBASE_MONOTONIC}.
     *        {@link AudioTimestamp#TIMEBASE_MONOTONIC AudioTimestamp.TIMEBASE_MONOTONIC},
     *        used to select the clock for the AudioTimestamp time.
     * @return {@link #SUCCESS} if a timestamp is available,
     *         or {@link #ERROR_INVALID_OPERATION} if a timestamp not available.
     */
     public int getTimestamp(@NonNull AudioTimestamp timestamp,
     public int getTimestamp(@NonNull AudioTimestamp outTimestamp,
             @AudioTimestamp.Timebase int timebase)
     {
         if (timestamp == null ||
         if (outTimestamp == null ||
                 (timebase != AudioTimestamp.TIMEBASE_BOOTTIME
                 && timebase != AudioTimestamp.TIMEBASE_MONOTONIC)) {
             throw new IllegalArgumentException();
         }
         return native_get_timestamp(timestamp, timebase);
         return native_get_timestamp(outTimestamp, timebase);
     }

    /**
@@ -1793,7 +1795,7 @@ public class AudioRecord implements AudioRouting
    private native final void native_enableDeviceCallback();
    private native final void native_disableDeviceCallback();

    private native final int native_get_timestamp(@NonNull AudioTimestamp timestamp,
    private native final int native_get_timestamp(@NonNull AudioTimestamp outTimestamp,
            @AudioTimestamp.Timebase int timebase);

    //---------------------------------------------------------