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

Commit 18142aed authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: Update language to comply with Android's inclusive language guidance

See https://source.android.com/setup/contribute/respectful-code for reference

BUG: 161896447
Test: all changes are in comments, so just build
Change-Id: I53a4a4c2ade03dcde940e6611f7e6b46d12ffe71

Change-Id: I90ebaea4731c6ca95f312b2176792d50dea862ad
parent 3fd4dee8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
/**
 * Dummy file needed to get Android Studio to scan this folder.
 * Unused file required to get Android Studio to scan this folder.
 */

int g_DoNotUseThisVariable = 0;
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@

namespace aaudio {

// Arbitrary limits for sanity checks. TODO remove after debugging.
// Arbitrary limits for range checks.
#define MAX_SHARED_MEMORIES (32)
#define MAX_MMAP_OFFSET_BYTES (32 * 1024 * 8)
#define MAX_MMAP_SIZE_BYTES (32 * 1024 * 8)
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ public:
    AudioFloatInputPort input;

    /**
     * Dummy processor. The work happens in the read() method.
     * Do nothing. The work happens in the read() method.
     *
     * @param framePosition index of first frame to be processed
     * @param numFrames
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ int32_t AAudioServiceStreamShared::calculateBufferCapacity(int32_t requestedCapa
    }
    int32_t capacityInFrames = numBursts * framesPerBurst;

    // Final sanity check.
    // Final range check.
    if (capacityInFrames > MAX_FRAMES_PER_BUFFER) {
        ALOGE("calculateBufferCapacity() calc capacity %d > max %d",
              capacityInFrames, MAX_FRAMES_PER_BUFFER);