HwBinder: get/register checked exceptions.

Bug: 33673120
Test: hidl_test_java
Change-Id: Id19b61b252e756a032ae11f7b59bd8eed82edbe9
This commit is contained in:
Steven Moreland
2017-01-04 10:37:59 -08:00
parent 3b72b9768f
commit 20ca2f782b
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);
}