HwBinder: get/register checked exceptions.
Bug: 33673120 Test: hidl_test_java Change-Id: Id19b61b252e756a032ae11f7b59bd8eed82edbe9
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