Home
last modified time | relevance | path

Searched refs:JSScriptEngine (Results 1 – 20 of 20) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/
DWebViewSupportUtil.java22 import com.android.adservices.service.js.JSScriptEngine;
58 return JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable() in isJSSandboxAvailable()
59 && JSScriptEngine.getInstance(context, LoggerFactory.getLogger()) in isJSSandboxAvailable()
70 && JSScriptEngine.getInstance(context, LoggerFactory.getLogger()) in isJSIsolateConsoleCallbackAvailable()
80 return JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable() in isWasmSupportAvailable()
81 && JSScriptEngine.getInstance(context, LoggerFactory.getLogger()) in isWasmSupportAvailable()
93 && JSScriptEngine.getInstance(context, LoggerFactory.getLogger()) in isEvaluationWithoutTransactionLimitSupportAvailable()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJSScriptEngineTest.java23 import static com.android.adservices.service.js.JSScriptEngine.JS_SCRIPT_ENGINE_CONNECTION_EXCEPTIO…
24 import static com.android.adservices.service.js.JSScriptEngine.JS_SCRIPT_ENGINE_SANDBOX_DEAD_MSG;
127 private static JSScriptEngine sJSScriptEngine;
133 @Mock JSScriptEngine.JavaScriptSandboxProvider mMockSandboxProvider;
147 if (JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()) { in initJavaScriptSandbox()
149 JSScriptEngine.getInstanceForTesting(sContext, sMockProfiler, sLogger); in initJavaScriptSandbox()
155 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in setup()
184 new JSScriptEngine.JavaScriptSandboxProvider(sMockProfiler, sLogger) in testProviderFailsIfJSSandboxNotAvailableInWebViewVersion()
215 JSScriptEngine.createNewInstanceForTesting( in testEngineFailsIfJSSandboxNotAvailableInWebViewVersion()
217 new JSScriptEngine.JavaScriptSandboxProvider( in testEngineFailsIfJSSandboxNotAvailableInWebViewVersion()
[all …]
DJavaScriptSandboxProviderTest.java69 private JSScriptEngine.JavaScriptSandboxProvider mJsSandboxProvider;
91 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreateFailsIfSandboxNotSupported()
114 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesOnlyOneInstance()
136 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderCreatesNewInstanceAfterFirstIsDestroyed()
162 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderDestroysOnlyIfCurrentInstance()
189 mJsSandboxProvider = new JSScriptEngine.JavaScriptSandboxProvider(mProfilerMock, mLogger); in testJsSandboxProviderDestroysOnlyIfCurrentInstanceOnlyOnce()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/js/
DJSScriptEngine.java64 public class JSScriptEngine { class
66 @VisibleForTesting public static final String TAG = JSScriptEngine.class.getSimpleName();
81 private static JSScriptEngine sSingleton;
255 public static JSScriptEngine getInstance(LoggerFactory.Logger logger) {
263 public static JSScriptEngine getInstance(Context context, LoggerFactory.Logger logger) {
269 new JSScriptEngine(
287 public static JSScriptEngine getInstanceForTesting(
298 new JSScriptEngine(
317 public static JSScriptEngine createNewInstanceForTesting(
322 return new JSScriptEngine(
[all …]
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/appoptout/src/com/android/adservices/tests/permissions/
DPermissionsAppOptOutTest.java41 import com.android.adservices.service.js.JSScriptEngine;
188 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testNoEnrollment_selectAds_adSelectionConfig()
208 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testWithEnrollment_selectAds_adSelectionConfig()
231 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testNoEnrollment_selectAds_adSelectionFromOutcomesConfig()
250 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testWithEnrollment_selectAds_adSelectionFromOutcomesConfig()
272 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testNoEnrollment_reportImpression()
297 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testWithEnrollment_reportImpression()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DJSScriptEngineE2ETest.java25 import com.android.adservices.service.js.JSScriptEngine;
54 private JSScriptEngine mJSScriptEngine;
66 JSScriptEngine.getInstance(sMockLogger).shutdown().get(1, TimeUnit.SECONDS); in setup()
160 mJSScriptEngine = JSScriptEngine.getInstance(sMockLogger); in callAndVerifyJSScriptEngine()
DAdSelectionServiceImplTest.java158 import com.android.adservices.service.js.JSScriptEngine;
341 .spyStatic(JSScriptEngine.class) in setUp()
448 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessWithRegisterAdBeaconDisabled()
576 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled()
704 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled()
825 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessCallbackThrowsErrorAuctionServerDisabled()
953 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionFailureCallbackThrowsErrorAuctionServerDisabled()
1073 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessfullyReportsAdCost()
1204 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessfullyReportsDataVersionHeader()
1348 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testReportImpressionSuccessfullyReportsSellerDataVersionHeader()
[all …]
DFrequencyCapFilteringE2ETest.java94 import com.android.adservices.service.js.JSScriptEngine;
589 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testAdSelectionPersistsAdCounterKeys()
623 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testEmptyHistogramDoesNotFilterAds()
646 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testUpdatedHistogramFiltersAdsForBuyerWithinInterval()
688 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testUpdatedHistogramDoesNotFilterAdsForBuyerOutsideInterval()
728 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testUpdatedHistogramDoesNotFilterAdsForOtherBuyer()
765 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testUpdateHistogramBeyondMaxTotalEventCountDoesNotFilterAds()
885 JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testUpdateHistogramBeyondMaxPerBuyerEventCountDoesNotFilterAds()
DAdSelectionScriptEngineTest.java62 import com.android.adservices.service.js.JSScriptEngine;
213 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in setUp()
DAuctionServerE2ETest.java152 import com.android.adservices.service.js.JSScriptEngine;
356 .spyStatic(JSScriptEngine.class) in setUp()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DSignalsScriptGeneratorTest.java28 import com.android.adservices.service.js.JSScriptEngine;
63 private JSScriptEngine mJSScriptEngine;
67 this.mJSScriptEngine = JSScriptEngine.getInstance(LoggerFactory.getFledgeLogger()); in setUp()
DSignalsScriptEngineTest.java32 import com.android.adservices.service.js.JSScriptEngine;
71 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in setUp()
/packages/modules/AdServices/adservices/tests/cts/endtoends/permissions/valid/src/com/android/adservices/tests/permissions/
DPermissionsValidTest.java41 import com.android.adservices.service.js.JSScriptEngine;
122 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testValidPermissions_selectAds_adSelectionConfig()
141 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testValidPermissions_selectAds_adSelectionFromOutcomesConfig()
160 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in testValidPermissions_reportImpression()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/signals/
DGenerateInputForEncodingCommandTest.java35 import com.android.adservices.service.js.JSScriptEngine;
71 private JSScriptEngine mJSScriptEngine;
85 this.mJSScriptEngine = JSScriptEngine.getInstance(LoggerFactory.getFledgeLogger()); in setUp()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/
DSignalsScriptEngine.java37 import com.android.adservices.service.js.JSScriptEngine;
59 private final JSScriptEngine mJsEngine;
76 mJsEngine = JSScriptEngine.getInstance(sLogger); in SignalsScriptEngine()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DReportImpressionScriptEngine.java45 import com.android.adservices.service.js.JSScriptEngine;
164 private final JSScriptEngine mJsEngine;
179 mJsEngine = JSScriptEngine.getInstance(sLogger); in ReportImpressionScriptEngine()
DAdSelectionScriptEngine.java56 import com.android.adservices.service.js.JSScriptEngine;
242 private final JSScriptEngine mJsEngine;
258 mJsEngine = JSScriptEngine.getInstance(sLogger); in AdSelectionScriptEngine()
DAdSelectionServiceImpl.java106 import com.android.adservices.service.js.JSScriptEngine;
1610 JSScriptEngine jsScriptEngine = JSScriptEngine.getInstance(sLogger); in destroy()
/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/protectedaudience/
DFledgeCtsDebuggableJetpackTest.java46 import com.android.adservices.service.js.JSScriptEngine;
204 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in setup()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/
DKAnonE2ETest.java138 import com.android.adservices.service.js.JSScriptEngine;
364 .spyStatic(JSScriptEngine.class) in setUp()