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

Commit 5204d315 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: validate audio data format



Also lots of minor cleanup
Fix underscores in some headers
Refactor getTimestamp()

Bug: 34127069
Bug: 38227780
Test: CTS test_aaudio.cpp
Change-Id: I6fdb50eb00a41688df871018ced91d5f5f055f8a
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 331207d5
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef AAUDIO_AAUDIO_BINDER_CLIENT_H
#ifndef ANDROID_AAUDIO_AAUDIO_BINDER_CLIENT_H
#define AAUDIO_AAUDIO_BINDER_CLIENT_H
#define ANDROID_AAUDIO_AAUDIO_BINDER_CLIENT_H


#include <aaudio/AAudio.h>
#include <aaudio/AAudio.h>
#include "AAudioServiceDefinitions.h"
#include "AAudioServiceDefinitions.h"
@@ -91,4 +91,4 @@ public:


} /* namespace aaudio */
} /* namespace aaudio */


#endif //AAUDIO_AAUDIO_BINDER_CLIENT_H
#endif //ANDROID_AAUDIO_AAUDIO_BINDER_CLIENT_H
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H
#ifndef ANDROID_AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H
#define AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H
#define ANDROID_AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H


#include "binding/AAudioServiceDefinitions.h"
#include "binding/AAudioServiceDefinitions.h"
#include "binding/AAudioStreamRequest.h"
#include "binding/AAudioStreamRequest.h"
@@ -87,4 +87,4 @@ public:


} /* namespace aaudio */
} /* namespace aaudio */


#endif //AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H
#endif //ANDROID_AAUDIO_BINDING_AAUDIO_SERVICE_INTERFACE_H
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef AAUDIO_AAUDIO_SERVICE_MESSAGE_H
#ifndef ANDROID_AAUDIO_AAUDIO_SERVICE_MESSAGE_H
#define AAUDIO_AAUDIO_SERVICE_MESSAGE_H
#define ANDROID_AAUDIO_AAUDIO_SERVICE_MESSAGE_H


#include <stdint.h>
#include <stdint.h>


@@ -64,4 +64,4 @@ typedef struct AAudioServiceMessage_s {


} /* namespace aaudio */
} /* namespace aaudio */


#endif //AAUDIO_AAUDIO_SERVICE_MESSAGE_H
#endif //ANDROID_AAUDIO_AAUDIO_SERVICE_MESSAGE_H
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef BINDING_AAUDIO_STREAM_CONFIGURATION_H
#ifndef ANDROID_BINDING_AAUDIO_STREAM_CONFIGURATION_H
#define BINDING_AAUDIO_STREAM_CONFIGURATION_H
#define ANDROID_BINDING_AAUDIO_STREAM_CONFIGURATION_H


#include <stdint.h>
#include <stdint.h>


@@ -101,4 +101,4 @@ private:


} /* namespace aaudio */
} /* namespace aaudio */


#endif //BINDING_AAUDIO_STREAM_CONFIGURATION_H
#endif //ANDROID_BINDING_AAUDIO_STREAM_CONFIGURATION_H
+3 −3
Original line number Original line Diff line number Diff line
@@ -14,8 +14,8 @@
 * limitations under the License.
 * limitations under the License.
 */
 */


#ifndef BINDING_AAUDIO_STREAM_REQUEST_H
#ifndef ANDROID_BINDING_AAUDIO_STREAM_REQUEST_H
#define BINDING_AAUDIO_STREAM_REQUEST_H
#define ANDROID_BINDING_AAUDIO_STREAM_REQUEST_H


#include <stdint.h>
#include <stdint.h>


@@ -95,4 +95,4 @@ protected:


} /* namespace aaudio */
} /* namespace aaudio */


#endif //BINDING_AAUDIO_STREAM_REQUEST_H
#endif //ANDROID_BINDING_AAUDIO_STREAM_REQUEST_H
Loading