Merge "HwBinder: get/register checked exceptions." am: 9ec4fec5ca
am: 3290ba072b
Change-Id: I49ee88cca2b2da0eac8d73cf408d2c5bfb409ce9
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -37,6 +37,5 @@ public interface IHwBinder {
|
||||
}
|
||||
|
||||
public boolean linkToDeath(DeathRecipient recipient, long cookie);
|
||||
|
||||
public boolean unlinkToDeath(DeathRecipient recipient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user