Searched refs:getFutureInstance (Results 1 – 3 of 3) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/ |
D | JavaScriptSandboxProviderTest.java | 92 ThrowingRunnable getFutureInstance = in testJsSandboxProviderCreateFailsIfSandboxNotSupported() local 93 () -> mJsSandboxProvider.getFutureInstance(mApplicationContext).get(); in testJsSandboxProviderCreateFailsIfSandboxNotSupported() 94 Exception futureException = assertThrows(ExecutionException.class, getFutureInstance); in testJsSandboxProviderCreateFailsIfSandboxNotSupported() 116 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance() 117 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesOnlyOneInstance() 137 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed() 142 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed() 164 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderDestroysOnlyIfCurrentInstance() 167 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderDestroysOnlyIfCurrentInstance() 191 mJsSandboxProvider.getFutureInstance(mApplicationContext).get(5, TimeUnit.SECONDS); in testJsSandboxProviderDestroysOnlyIfCurrentInstanceOnlyOnce()
|
D | JSScriptEngineTest.java | 166 when(mMockSandboxProvider.getFutureInstance(sContext)).thenReturn(futureInstance); in setup() 182 ThrowingRunnable getFutureInstance = in testProviderFailsIfJSSandboxNotAvailableInWebViewVersion() local 185 .getFutureInstance(sContext) in testProviderFailsIfJSSandboxNotAvailableInWebViewVersion() 188 Exception futureException = assertThrows(ExecutionException.class, getFutureInstance); in testProviderFailsIfJSSandboxNotAvailableInWebViewVersion() 212 ThrowingRunnable getFutureInstance = in testEngineFailsIfJSSandboxNotAvailableInWebViewVersion() local 227 Exception futureException = assertThrows(ExecutionException.class, getFutureInstance); in testEngineFailsIfJSSandboxNotAvailableInWebViewVersion()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/js/ |
D | JSScriptEngine.java | 114 public FluentFuture<JavaScriptSandbox> getFutureInstance(Context context) { in getFutureInstance() method in JSScriptEngine.JavaScriptSandboxProvider 373 jsSandboxProvider.getFutureInstance(mContext); 469 ClosingFuture.from(mJsSandboxProvider.getFutureInstance(mContext)) 630 .getFutureInstance(mContext) 648 .getFutureInstance(mContext) 659 .getFutureInstance(mContext) 676 .getFutureInstance(mContext)
|