Home
last modified time | relevance | path

Searched refs:jsonArg (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAdSelectionConfigArgumentUtilTest.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
86 jsonArg( in testConversionToScriptArgument()
89 jsonArg( in testConversionToScriptArgument()
95 jsonArg("buyer1", "{\"buyer_signals\":1}"), in testConversionToScriptArgument()
96 jsonArg("buyer2", "{\"buyer_signals\":2}"))), in testConversionToScriptArgument()
DAdDataArgumentUtilTest.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
171 jsonArg( in testConversionToScriptArgument()
185 jsonArg( in testConversionToScriptArgumentWithCopier()
201 jsonArg( in testConversionToScriptArgumentWithAdCounterKeys()
DAdWithBidArgumentUtilTest.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
179 jsonArg( in testConversionToScriptArgument()
198 jsonArg( in testConversionToScriptArgumentWithCopier()
222 jsonArg( in testConversionToScriptArgumentWithAdCounterKeys()
DCustomAudienceBiddingSignalsArgumentUtilTest.java20 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
100 jsonArg( in matchCustomAudienceSignals()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdSelectionConfigArgumentUtil.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
65 jsonArg(buyerSignal.getKey().toString(), buyerSignal.getValue().toString())); in asScriptArgument()
78 jsonArg( in asScriptArgument()
81 jsonArg(SELLER_SIGNALS_FIELD_NAME, adSelectionConfig.getSellerSignals().toString()), in asScriptArgument()
DAdSelectionScriptEngine.java20 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
297 .add(jsonArg(AUCTION_SIGNALS_ARG_NAME, auctionSignals.toString())) in generateBids()
298 .add(jsonArg(PER_BUYER_SIGNALS_ARG_NAME, perBuyerSignals.toString())) in generateBids()
300 jsonArg( in generateBids()
303 .add(jsonArg(CONTEXTUAL_SIGNALS_ARG_NAME, contextualSignals.toString())) in generateBids()
385 .add(jsonArg(AUCTION_SIGNALS_ARG_NAME, auctionSignals)) in generateBidsV3()
386 .add(jsonArg(PER_BUYER_SIGNALS_ARG_NAME, perBuyerSignals)) in generateBidsV3()
387 .add(jsonArg(TRUSTED_BIDDING_SIGNALS_ARG_NAME, trustedBiddingSignals)) in generateBidsV3()
388 .add(jsonArg(CONTEXTUAL_SIGNALS_ARG_NAME, contextualSignals)) in generateBidsV3()
434 .add(jsonArg(SELLER_SIGNALS_ARG_NAME, sellerSignals.toString()))
[all …]
DAdDataArgumentUtil.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
87 jsonArg(METADATA_FIELD_NAME, adData.getMetadata())); in asScriptArgument()
104 jsonArg(METADATA_FIELD_NAME, adData.getMetadata())); in asRecordArgument()
DReportImpressionScriptEngine.java20 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
223 .add(jsonArg(CONTEXTUAL_SIGNALS_ARG_NAME, contextualSignals.toString())) in reportResult()
293 .add(jsonArg(AD_SELECTION_SIGNALS_ARG_NAME, adSelectionSignals.toString()))
294 .add(jsonArg(PER_BUYER_SIGNALS_ARG_NAME, perBuyerSignals.toString()))
295 .add(jsonArg(SIGNALS_FOR_BUYER_ARG_NAME, signalsForBuyer.toString()))
296 .add(jsonArg(CONTEXTUAL_SIGNALS_ARG_NAME, contextualSignals.toString()))
DCustomAudienceBiddingSignalsArgumentUtil.java19 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
70 jsonArg( in asScriptArgument()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/js/
DJSScriptArgumentTest.java20 import static com.android.adservices.service.js.JSScriptArgument.jsonArg;
66 JSScriptArgument arg = jsonArg("jsonArg", jsonValue); in testJsonArg()
100 assertThrows(JSONException.class, () -> jsonArg("jsonArg", jsonValue)); in testJsonArgFailsForInvalidJson()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/js/
DJSScriptArgument.java53 public static JSScriptJsonArgument jsonArg(String name, String value) throws JSONException { in jsonArg() method in JSScriptArgument
75 public static JSScriptJsonArgument jsonArg(String name, AdSelectionSignals value) in jsonArg() method in JSScriptArgument
91 mapArg.add(jsonArg(signal.getKey(), signal.getValue())); in stringMapToRecordArg()