Merge "HwBinder.setTrebleTestingOverride"
This commit is contained in:
@@ -95,6 +95,15 @@ public abstract class HwBinder implements IHwBinder {
|
|||||||
boolean retry)
|
boolean retry)
|
||||||
throws RemoteException, NoSuchElementException;
|
throws RemoteException, NoSuchElementException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This allows getService to bypass the VINTF manifest for testing only.
|
||||||
|
*
|
||||||
|
* Disabled on user builds.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static native final void setTrebleTestingOverride(
|
||||||
|
boolean testingOverride);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures how many threads the process-wide hwbinder threadpool
|
* Configures how many threads the process-wide hwbinder threadpool
|
||||||
* has to process incoming requests.
|
* has to process incoming requests.
|
||||||
|
|||||||
@@ -339,6 +339,10 @@ static jobject JHwBinder_native_getService(
|
|||||||
return JHwRemoteBinder::NewObject(env, service);
|
return JHwRemoteBinder::NewObject(env, service);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JHwBinder_native_setTrebleTestingOverride(JNIEnv*, jclass, jboolean testingOverride) {
|
||||||
|
hardware::details::setTrebleTestingOverride(testingOverride);
|
||||||
|
}
|
||||||
|
|
||||||
void JHwBinder_native_configureRpcThreadpool(JNIEnv *, jclass,
|
void JHwBinder_native_configureRpcThreadpool(JNIEnv *, jclass,
|
||||||
jlong maxThreads, jboolean callerWillJoin) {
|
jlong maxThreads, jboolean callerWillJoin) {
|
||||||
CHECK(maxThreads > 0);
|
CHECK(maxThreads > 0);
|
||||||
@@ -368,6 +372,9 @@ static JNINativeMethod gMethods[] = {
|
|||||||
{ "getService", "(Ljava/lang/String;Ljava/lang/String;Z)L" PACKAGE_PATH "/IHwBinder;",
|
{ "getService", "(Ljava/lang/String;Ljava/lang/String;Z)L" PACKAGE_PATH "/IHwBinder;",
|
||||||
(void *)JHwBinder_native_getService },
|
(void *)JHwBinder_native_getService },
|
||||||
|
|
||||||
|
{ "setTrebleTestingOverride", "(Z)V",
|
||||||
|
(void *)JHwBinder_native_setTrebleTestingOverride },
|
||||||
|
|
||||||
{ "configureRpcThreadpool", "(JZ)V",
|
{ "configureRpcThreadpool", "(JZ)V",
|
||||||
(void *)JHwBinder_native_configureRpcThreadpool },
|
(void *)JHwBinder_native_configureRpcThreadpool },
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user