Home
last modified time | relevance | path

Searched refs:ADS_KEY (Results 1 – 8 of 8) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataReader.java56 public static final String ADS_KEY = "ads"; field in CustomAudienceUpdatableDataReader
250 if (mResponseObject.has(ADS_KEY)) { in getAdsFromJsonObject()
251 sLogger.v(FIELD_FOUND_LOG_FORMAT, mResponseHash, ADS_KEY); in getAdsFromJsonObject()
253 JSONArray adsJsonArray = mResponseObject.getJSONArray(ADS_KEY); in getAdsFromJsonObject()
265 "Unexpected format parsing " + RENDER_URI_KEY + " in " + ADS_KEY); in getAdsFromJsonObject()
301 ADS_KEY, in getAdsFromJsonObject()
314 sLogger.v(VALIDATED_FIELD_LOG_FORMAT, mResponseHash, ADS_KEY); in getAdsFromJsonObject()
317 sLogger.v(FIELD_NOT_FOUND_LOG_FORMAT, mResponseHash, ADS_KEY); in getAdsFromJsonObject()
DCustomAudienceBlob.java22 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
149 ADS_KEY));
222 case ADS_KEY: in overrideFromJSONObject()
223 this.setAds(this.getAdsFromJSONObject(json, ADS_KEY)); in overrideFromJSONObject()
703 return mFieldsMap.get(ADS_KEY) != null;
710 return (List<AdData>) mFieldsMap.get(ADS_KEY).mValue;
715 if (mFieldsMap.containsKey(ADS_KEY)) {
716 Field<List<AdData>> field = (Field<List<AdData>>) mFieldsMap.get(ADS_KEY);
722 field.mName = ADS_KEY;
725 mFieldsMap.put(ADS_KEY, field);
DCustomAudienceUpdatableData.java321 CustomAudienceUpdatableDataReader.ADS_KEY); in readAds()
329 CustomAudienceUpdatableDataReader.ADS_KEY); in readAds()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DCustomAudienceUpdatableDataFixture.java19 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
92 jsonResponse.put(ADS_KEY, "mismatched schema"); in getMalformedJsonObject()
120 jsonResponse.put(ADS_KEY, adsArray); in getDeeperMalformedJsonObject()
134 jsonResponse.put(ADS_KEY, JSONObject.NULL); in getMalformedNullJsonObject()
314 jsonResponse.put(ADS_KEY, adsJson); in addToJsonObject()
DCustomAudienceBlobFixture.java22 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
322 return addToJSONObject(json, ADS_KEY, adsJson, false); in addAds()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/
DScheduledUpdatesHandlerTest.java21 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
509 responsePayloadJSON.getJSONArray(JOIN_CUSTOM_AUDIENCE_KEY).getJSONObject(0).remove(ADS_KEY); in testPerformScheduledUpdatesDoesNotPersistCAsWithMissingField()
510 responsePayloadJSON.getJSONArray(JOIN_CUSTOM_AUDIENCE_KEY).getJSONObject(1).remove(ADS_KEY); in testPerformScheduledUpdatesDoesNotPersistCAsWithMissingField()
553 responsePayloadJSON.getJSONArray(JOIN_CUSTOM_AUDIENCE_KEY).getJSONObject(0).remove(ADS_KEY); in testPerformScheduledUpdatesThrowsExceptionForMissingFieldWithAuctionServerRequestFlagsEnabled()
554 responsePayloadJSON.getJSONArray(JOIN_CUSTOM_AUDIENCE_KEY).getJSONObject(1).remove(ADS_KEY); in testPerformScheduledUpdatesThrowsExceptionForMissingFieldWithAuctionServerRequestFlagsEnabled()
DCustomAudienceUpdatableDataReaderTest.java21 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
633 .getJSONArray(ADS_KEY) in testGetAdsFromJsonObjectWithMalformedAdRenderId()
DFetchCustomAudienceImplTest.java66 …ort static com.android.adservices.service.customaudience.CustomAudienceUpdatableDataReader.ADS_KEY;
729 validResponse.remove(ADS_KEY); in testImpl_invalidFused_missingField()
757 validResponse.remove(ADS_KEY); in testImpl_invalidFused_missingFieldAuctionServerFlagsEnabled()