Merge "HwBinder: get/register checked exceptions." am: 9ec4fec5ca

am: 3290ba072b

Change-Id: I49ee88cca2b2da0eac8d73cf408d2c5bfb409ce9
This commit is contained in:
Steven Moreland
2017-01-06 01:09:26 +00:00
committed by android-build-merger
3 changed files with 20 additions and 14 deletions

View File

@@ -17,6 +17,7 @@
package android.os;
import java.util.ArrayList;
import java.util.NoSuchElementException;
import libcore.util.NativeAllocationRegistry;
/** @hide */
@@ -44,11 +45,13 @@ public abstract class HwBinder implements IHwBinder {
public native final void registerService(
ArrayList<String> interfaceChain,
String serviceName);
String serviceName)
throws RemoteException;
public static native final IHwBinder getService(
String iface,
String serviceName);
String serviceName)
throws RemoteException, NoSuchElementException;
// Returns address of the "freeFunction".
private static native final long native_init();

View File

@@ -37,6 +37,5 @@ public interface IHwBinder {
}
public boolean linkToDeath(DeathRecipient recipient, long cookie);
public boolean unlinkToDeath(DeathRecipient recipient);
}