summaryrefslogtreecommitdiff
path: root/media/java
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2021-03-03 21:41:39 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-03 21:41:39 +0000
commit1af6a12e98c9b2c5317b35ebe2d8c8d269e98dce (patch)
tree4a40de3ab56e53511cca4b5da843de96dad1e693 /media/java
parenteeb577dc441eb72b6969ee23e5218bc22d313dca (diff)
parente085f87400d3044b57e7af85d7e33f1beaefc77c (diff)
Merge "Merge RQ2A.210305.007"
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/SoundPool.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/java/android/media/SoundPool.java b/media/java/android/media/SoundPool.java
index 1bf2863989a5..3f685a4c934e 100644
--- a/media/java/android/media/SoundPool.java
+++ b/media/java/android/media/SoundPool.java
@@ -149,7 +149,8 @@ public class SoundPool extends PlayerBase {
super(attributes, AudioPlaybackConfiguration.PLAYER_TYPE_JAM_SOUNDPOOL);
// do native setup
- if (native_setup(new WeakReference<SoundPool>(this), maxStreams, attributes) != 0) {
+ if (native_setup(new WeakReference<SoundPool>(this),
+ maxStreams, attributes, getCurrentOpPackageName()) != 0) {
throw new RuntimeException("Native setup failed");
}
mAttributes = attributes;
@@ -501,7 +502,7 @@ public class SoundPool extends PlayerBase {
private native final int _load(FileDescriptor fd, long offset, long length, int priority);
private native final int native_setup(Object weakRef, int maxStreams,
- Object/*AudioAttributes*/ attributes);
+ @NonNull Object/*AudioAttributes*/ attributes, @NonNull String opPackageName);
private native final int _play(int soundID, float leftVolume, float rightVolume,
int priority, int loop, float rate);