diff options
author | Brian Orr <brianorr@google.com> | 2021-08-11 19:11:45 +0000 |
---|---|---|
committer | Brian Orr <brianorr@google.com> | 2021-08-11 23:59:25 +0000 |
commit | ab1e0271287465c071b9b6ba89e6845fd7161063 (patch) | |
tree | 642e46e0ca778bf77b958c4973aaa8f6e030740e /media | |
parent | b6bd2054b05bb47779c041675f34828517288d73 (diff) | |
parent | 1cb4fdb115b920ff5df88c33047243bef48224a6 (diff) |
Merge SP1A.210811.001
Change-Id: I5aa7cf27a3a3cc16830c9947a826e30a0da481c4
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioManagerInternal.java | 11 | ||||
-rw-r--r-- | media/java/android/media/AudioSystem.java | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/media/java/android/media/AudioManagerInternal.java b/media/java/android/media/AudioManagerInternal.java index c827932194ae..cb887f2d523d 100644 --- a/media/java/android/media/AudioManagerInternal.java +++ b/media/java/android/media/AudioManagerInternal.java @@ -38,6 +38,17 @@ public abstract class AudioManagerInternal { public abstract void updateRingerModeAffectedStreamsInternal(); + /** + * Notify the UID of the currently active {@link android.service.voice.HotwordDetectionService}. + * + * <p>The caller is expected to take care of any performance implications, e.g. by using a + * background thread to call this method.</p> + * + * @param uid UID of the currently active service or {@link android.os.Process#INVALID_UID} if + * none. + */ + public abstract void setHotwordDetectionServiceUid(int uid); + public abstract void setAccessibilityServiceUids(IntArray uids); /** diff --git a/media/java/android/media/AudioSystem.java b/media/java/android/media/AudioSystem.java index 54185daa5380..8a4b2d56feb0 100644 --- a/media/java/android/media/AudioSystem.java +++ b/media/java/android/media/AudioSystem.java @@ -1794,6 +1794,13 @@ public class AudioSystem public static native int setAssistantUid(int uid); /** + * Communicate UID of the current {@link android.service.voice.HotwordDetectionService} to audio + * policy service. + * @hide + */ + public static native int setHotwordDetectionServiceUid(int uid); + + /** * @hide * Communicate UIDs of active accessibility services to audio policy service. */ |