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

Commit e9fa23fe authored by Chad Brubaker's avatar Chad Brubaker
Browse files

resolved conflicts for 1f8749f2 to stage-aosp-master

Change-Id: Idda60a9d39f9be81e0c314f06fc080ad7fa35c7b
parents b5213840 1f8749f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ LOCAL_C_INCLUDES := \

LOCAL_CFLAGS += -Werror -Wno-error=deprecated-declarations -Wall
LOCAL_CLANG := true
LOCAL_SANITIZE := signed-integer-overflow unsigned-integer-overflow

include $(BUILD_SHARED_LIBRARY)
+3 −3
Original line number Diff line number Diff line
@@ -2301,9 +2301,9 @@ status_t AudioTrack::getTimestamp(AudioTimestamp& timestamp)
        // Convert timestamp position from server time base to client time base.
        // TODO The following code should work OK now because timestamp.mPosition is 32-bit.
        // But if we change it to 64-bit then this could fail.
        // If (mPosition - mServer) can be negative then should use:
        //   (int32_t)(mPosition - mServer)
        timestamp.mPosition += mPosition - mServer;
        // Split this out instead of using += to prevent unsigned overflow
        // checks in the outer sum.
        timestamp.mPosition = timestamp.mPosition + static_cast<int32_t>(mPosition) - mServer;
        // Immediately after a call to getPosition_l(), mPosition and
        // mServer both represent the same frame position.  mPosition is
        // in client's point of view, and mServer is in server's point of
+1 −0
Original line number Diff line number Diff line
@@ -338,6 +338,7 @@ void ClientProxy::interrupt()
    }
}

__attribute__((no_sanitize("integer")))
size_t ClientProxy::getMisalignment()
{
    audio_track_cblk_t* cblk = mCblk;