You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: add misc APIs needed for AntennaPod
This commit is contained in:
10
src/api-impl/android/media/audiofx/AudioEffect.java
Normal file
10
src/api-impl/android/media/audiofx/AudioEffect.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package android.media.audiofx;
|
||||
|
||||
public class AudioEffect {
|
||||
|
||||
public static class Descriptor {}
|
||||
|
||||
public static Descriptor[] queryEffects() {
|
||||
return new Descriptor[0];
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import android.content.Context;
|
||||
import android.media.AudioAttributes;
|
||||
import android.media.MediaDescription;
|
||||
import android.media.MediaMetadata;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
|
||||
public class MediaSession {
|
||||
@@ -72,6 +73,14 @@ public class MediaSession {
|
||||
|
||||
public void setPlaybackToLocal(AudioAttributes audioAttributes) {}
|
||||
|
||||
public void setExtras(Bundle extras) {}
|
||||
|
||||
public void setSessionActivity(PendingIntent pendingIntent) {}
|
||||
|
||||
public boolean isActive() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected native void nativeSetState(int state, long actions, long position, long updateTime, String title, String subTitle, String artUrl);
|
||||
protected native void nativeSetCallback(Callback callback);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package android.media.session;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class PlaybackState {
|
||||
|
||||
public int state;
|
||||
@@ -43,10 +45,23 @@ public class PlaybackState {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder addCustomAction(CustomAction action) {return this;}
|
||||
|
||||
public PlaybackState build() {
|
||||
return state;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class CustomAction {
|
||||
|
||||
public static class Builder {
|
||||
public Builder(String action, CharSequence label, int icon) {}
|
||||
|
||||
public Builder setExtras(Bundle extras) {return this;}
|
||||
|
||||
public CustomAction build() {return new CustomAction();}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user