API stubs and fixes for composeUI

This commit is contained in:
Julian Winkler
2024-11-27 14:59:37 +01:00
committed by Mis012
parent 447784b6d6
commit e9cf5e7002
35 changed files with 559 additions and 24 deletions

View File

@@ -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; }
}

View File

@@ -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);
}

View File

@@ -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;
}
}

View File

@@ -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 + ")");
}
}