Merge "Add checked exceptions to HwBinder transact."

This commit is contained in:
Treehugger Robot
2017-01-04 04:58:38 +00:00
committed by Gerrit Code Review
7 changed files with 41 additions and 8 deletions

View File

@@ -33,11 +33,14 @@ public abstract class HwBinder implements IHwBinder {
mNativeContext);
}
@Override
public final native void transact(
int code, HwParcel request, HwParcel reply, int flags);
int code, HwParcel request, HwParcel reply, int flags)
throws RemoteException;
public abstract void onTransact(
int code, HwParcel request, HwParcel reply, int flags);
int code, HwParcel request, HwParcel reply, int flags)
throws RemoteException;
public native final void registerService(
ArrayList<String> interfaceChain,

View File

@@ -32,12 +32,15 @@ public class HwRemoteBinder implements IHwBinder {
mNativeContext);
}
@Override
public IHwInterface queryLocalInterface(String descriptor) {
return null;
}
@Override
public native final void transact(
int code, HwParcel request, HwParcel reply, int flags);
int code, HwParcel request, HwParcel reply, int flags)
throws RemoteException;
public native boolean linkToDeath(DeathRecipient recipient, long cookie);
public native boolean unlinkToDeath(DeathRecipient recipient);

View File

@@ -23,7 +23,8 @@ public interface IHwBinder {
public static final int FLAG_ONEWAY = 1;
public void transact(
int code, HwParcel request, HwParcel reply, int flags);
int code, HwParcel request, HwParcel reply, int flags)
throws RemoteException;
public IHwInterface queryLocalInterface(String descriptor);