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 stubs and fixes for composeUI
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package android.os;
|
||||
|
||||
public class Binder extends IBinder {
|
||||
public class Binder implements IBinder {
|
||||
|
||||
public void attachInterface(IInterface owner, String descriptor) {}
|
||||
|
||||
@@ -9,4 +9,10 @@ public class Binder extends IBinder {
|
||||
public static long clearCallingIdentity() { return 0; }
|
||||
|
||||
public static void restoreCallingIdentity(long identityToken) {}
|
||||
|
||||
@Override
|
||||
public IInterface queryLocalInterface(String descriptor) { return null; }
|
||||
|
||||
@Override
|
||||
public boolean transact(int code, Parcel data, Parcel reply, int flags) { return false; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package android.os;
|
||||
|
||||
public class IBinder {
|
||||
public interface IBinder {
|
||||
|
||||
public interface DeathRecipient {}
|
||||
|
||||
public IInterface queryLocalInterface(String descriptor);
|
||||
|
||||
public boolean transact(int code, Parcel data, Parcel reply, int flags);
|
||||
}
|
||||
|
||||
@@ -43,4 +43,16 @@ public class Parcel {
|
||||
public void writeParcelable(Parcelable p, int flags) {
|
||||
System.out.println("Parcel.writeParcelable(" + p + ", " + flags + ")");
|
||||
}
|
||||
|
||||
public void writeInterfaceToken(String s) {
|
||||
System.out.println("Parcel.writeInterfaceToken(" + s + ")");
|
||||
}
|
||||
|
||||
public void writeStrongInterface(IInterface i) {
|
||||
System.out.println("Parcel.writeStrongInterface(" + i + ")");
|
||||
}
|
||||
|
||||
public int dataSize() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,8 @@ public interface Parcelable {
|
||||
}
|
||||
|
||||
public static interface ClassLoaderCreator<T> extends Creator<T> {}
|
||||
|
||||
public default void writeToParcel(Parcel dest, int flags) {
|
||||
System.out.println("Parcelable.writeToParcel(" + this + ", " + dest + ", " + flags + ")");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user