Home
last modified time | relevance | path

Searched refs:mJsSandboxProvider (Results 1 – 2 of 2) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJavaScriptSandboxProviderTest.java69 private JSScriptEngine.JavaScriptSandboxProvider mJsSandboxProvider; field in JavaScriptSandboxProviderTest
91 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()
93 () -> mJsSandboxProvider.getFutureInstance(mApplicationContext).get(); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()
114 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesOnlyOneInstance()
116 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance()
117 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance()
136 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
137 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
140 mJsSandboxProvider.destroyCurrentInstance().get(4, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
142 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/js/
DJSScriptEngine.java84 private final JavaScriptSandboxProvider mJsSandboxProvider; field in JSScriptEngine
339 return FluentFuture.from(mJsSandboxProvider.destroyCurrentInstance())
368 this.mJsSandboxProvider = jsSandboxProvider;
469 ClosingFuture.from(mJsSandboxProvider.getFutureInstance(mContext))
580 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);
589 mJsSandboxProvider.destroyIfCurrentInstance(jsSandbox);
629 return mJsSandboxProvider
647 return mJsSandboxProvider
658 return mJsSandboxProvider
675 return mJsSandboxProvider
[all …]