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: misc stubs and fixes for Spotify II
This commit is contained in:
@@ -23,4 +23,8 @@ public final class Debug {
|
||||
public static long getNativeHeapAllocatedSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static boolean waitingForDebugger() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ package android.os;
|
||||
* processes, by creating a Messenger pointing to a Handler in one process,
|
||||
* and handing that Messenger to another process.
|
||||
*/
|
||||
public final class Messenger {
|
||||
public final class Messenger implements Parcelable {
|
||||
private final IMessenger mTarget;
|
||||
|
||||
/**
|
||||
@@ -83,4 +83,18 @@ public final class Messenger {
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a Messenger from a raw IBinder, which had previously been
|
||||
* retrieved with {@link #getBinder}.
|
||||
*
|
||||
* @param target The IBinder this Messenger should communicate with.
|
||||
*/
|
||||
public Messenger(IBinder target) {
|
||||
mTarget = new IMessenger() {
|
||||
@Override
|
||||
public void send(Message msg) {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
4
src/api-impl/android/os/PersistableBundle.java
Normal file
4
src/api-impl/android/os/PersistableBundle.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package android.os;
|
||||
|
||||
public class PersistableBundle extends BaseBundle {
|
||||
}
|
||||
Reference in New Issue
Block a user