Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 461ce2aa authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Merge "HIDL: add APIs used by subclasses to SystemApi"

parents b0707717 4c0d6b62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3605,11 +3605,14 @@ package android.os {
  }

  public abstract class HwBinder implements android.os.IHwBinder {
    ctor public HwBinder();
    method public static final void configureRpcThreadpool(long, boolean);
    method public static void enableInstrumentation();
    method public static final android.os.IHwBinder getService(java.lang.String, java.lang.String) throws java.util.NoSuchElementException, android.os.RemoteException;
    method public static final android.os.IHwBinder getService(java.lang.String, java.lang.String, boolean) throws java.util.NoSuchElementException, android.os.RemoteException;
    method public static final void joinRpcThreadpool();
    method public abstract void onTransact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
    method public final void registerService(java.lang.String) throws android.os.RemoteException;
    method public final void transact(int, android.os.HwParcel, android.os.HwParcel, int) throws android.os.RemoteException;
  }

+25 −3
Original line number Diff line number Diff line
@@ -29,7 +29,13 @@ public abstract class HwBinder implements IHwBinder {

    private static final NativeAllocationRegistry sNativeRegistry;

    /** @hide */
    /**
     * Create and initialize a HwBinder object and the native objects
     * used to allow this to participate in hwbinder transactions.
     *
     * @hide
     */
    @SystemApi
    public HwBinder() {
        native_setup();

@@ -44,12 +50,28 @@ public abstract class HwBinder implements IHwBinder {
            int code, HwParcel request, HwParcel reply, int flags)
        throws RemoteException;

    /** @hide */
    /**
     * Process a hwbinder transaction.
     *
     * @param code interface specific code for interface.
     * @param request parceled transaction
     * @param reply object to parcel reply into
     * @param flags transaction flags to be chosen by wire protocol
     *
     * @hide
     */
    @SystemApi
    public abstract void onTransact(
            int code, HwParcel request, HwParcel reply, int flags)
        throws RemoteException;

    /** @hide */
    /**
     * Registers this service with the hwservicemanager.
     *
     * @param serviceName instance name of the service
     * @hide
     */
    @SystemApi
    public native final void registerService(String serviceName)
        throws RemoteException;