/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/common/ |
D | WebViewSupportUtil.java | 22 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/ |
D | JSScriptEngineTest.java | 23 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 …]
|
D | JavaScriptSandboxProviderTest.java | 69 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/ |
D | JSScriptEngine.java | 64 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/ |
D | PermissionsAppOptOutTest.java | 41 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/ |
D | JSScriptEngineE2ETest.java | 25 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()
|
D | AdSelectionServiceImplTest.java | 158 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 …]
|
D | FrequencyCapFilteringE2ETest.java | 94 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()
|
D | AdSelectionScriptEngineTest.java | 62 import com.android.adservices.service.js.JSScriptEngine; 213 Assume.assumeTrue(JSScriptEngine.AvailabilityChecker.isJSSandboxAvailable()); in setUp()
|
D | AuctionServerE2ETest.java | 152 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/ |
D | SignalsScriptGeneratorTest.java | 28 import com.android.adservices.service.js.JSScriptEngine; 63 private JSScriptEngine mJSScriptEngine; 67 this.mJSScriptEngine = JSScriptEngine.getInstance(LoggerFactory.getFledgeLogger()); in setUp()
|
D | SignalsScriptEngineTest.java | 32 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/ |
D | PermissionsValidTest.java | 41 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/ |
D | GenerateInputForEncodingCommandTest.java | 35 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/ |
D | SignalsScriptEngine.java | 37 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/ |
D | ReportImpressionScriptEngine.java | 45 import com.android.adservices.service.js.JSScriptEngine; 164 private final JSScriptEngine mJsEngine; 179 mJsEngine = JSScriptEngine.getInstance(sLogger); in ReportImpressionScriptEngine()
|
D | AdSelectionScriptEngine.java | 56 import com.android.adservices.service.js.JSScriptEngine; 242 private final JSScriptEngine mJsEngine; 258 mJsEngine = JSScriptEngine.getInstance(sLogger); in AdSelectionScriptEngine()
|
D | AdSelectionServiceImpl.java | 106 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/ |
D | FledgeCtsDebuggableJetpackTest.java | 46 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/ |
D | KAnonE2ETest.java | 138 import com.android.adservices.service.js.JSScriptEngine; 364 .spyStatic(JSScriptEngine.class) in setUp()
|