OSDN Git Service

Add AUDIO_UID_INVALID
authorAndy Hung <hunga@google.com>
Tue, 8 Nov 2016 01:38:17 +0000 (17:38 -0800)
committerAndy Hung <hunga@google.com>
Tue, 8 Nov 2016 02:48:31 +0000 (18:48 -0800)
Test: power manager should show correct uids for audio
Bug: 32713790
Change-Id: Ib6993e2f06b3fbf5a96942088fa1bae30c5f781f

audio/include/system/audio.h

index 0e2780c..e50d93e 100644 (file)
@@ -34,6 +34,9 @@ __BEGIN_DECLS
  * frameworks/base/include/media/AudioSystem.h
  */
 
+/* represents an invalid uid for tracks; the calling or client uid is often substituted. */
+#define AUDIO_UID_INVALID ((uid_t)-1)
+
 /* device address used to refer to the standard remote submix */
 #define AUDIO_REMOTE_SUBMIX_DEVICE_ADDRESS "0"