Searched refs:getStringFromJson (Results 1 – 9 of 9) sorted by relevance
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/ |
D | EncryptionKeyConverterUtil.java | 19 import static com.android.adservices.service.common.JsonUtils.getStringFromJson; 98 getStringFromJson(jsonObject, KEY_TYPE_KEY) in convertVersion3Key() 100 builder.setEnrollmentId(getStringFromJson(jsonObject, ENROLLMENT_ID_KEY)); in convertVersion3Key() 102 Uri.parse(getStringFromJson(jsonObject, REPORTING_ORIGIN_KEY))); in convertVersion3Key() 103 builder.setEncryptionKeyUrl(getStringFromJson(jsonObject, ENCRYPTION_KEY_URL_KEY)); in convertVersion3Key() 106 getStringFromJson(jsonObject, PROTOCOL_TYPE_KEY) in convertVersion3Key() 109 builder.setBody(getStringFromJson(jsonObject, BODY_KEY)); in convertVersion3Key()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | JsonUtilsTest.java | 20 import static com.android.adservices.service.common.JsonUtils.getStringFromJson; 39 assertEquals(getStringFromJson(jsonObject, KEY), VALID_VALUE); in testGetStringFromJsonSuccess() 58 getStringFromJson(jsonObject, KEY + "otherValue"); in testGetStringFromJsonThrowsJSONExceptionWhenKeyDoesNotExist() 70 getStringFromJson(jsonObject, KEY); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsNotString() 95 getStringFromJson(jsonObject, KEY, CUSTOM_ERROR); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsNotStringCustomError() 110 getStringFromJson(jsonObject, KEY); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsJSONObject()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | JsonUtils.java | 38 public static String getStringFromJson(@NonNull JSONObject jsonObject, @NonNull String key) in getStringFromJson() method in JsonUtils 40 return getStringFromJson(jsonObject, key, String.format(VALUE_NOT_A_STRING, key)); in getStringFromJson() 70 public static String getStringFromJson( in getStringFromJson() method in JsonUtils
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | InteractionUriRegistrationInfo.java | 21 import static com.android.adservices.service.common.JsonUtils.getStringFromJson; 63 .setInteractionKey(getStringFromJson(jsonObject, INTERACTION_KEY_ARG_NAME)) in fromJson() 66 getStringFromJson( in fromJson()
|
D | ReportImpressionScriptEngine.java | 19 import static com.android.adservices.service.common.JsonUtils.getStringFromJson; 535 getStringFromJson( 565 getStringFromJson( 570 getStringFromJson( 650 getStringFromJson( 672 getStringFromJson( 677 getStringFromJson(
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | FetchCustomAudienceReader.java | 122 JsonUtils.getStringFromJson( in getNameFromJsonObject() 199 JsonUtils.getStringFromJson( in getDailyUpdateUriFromJsonObject() 229 JsonUtils.getStringFromJson( in getBiddingLogicUriFromJsonObject()
|
D | ReadAdRenderIdFromJsonStrategyFactory.java | 54 adRenderId = JsonUtils.getStringFromJson(adDataJsonObj, AD_RENDER_ID_KEY); in readId()
|
D | CustomAudienceUpdatableDataReader.java | 183 JsonUtils.getStringFromJson( in getTrustedBiddingDataFromJsonObject()
|
D | CustomAudienceBlob.java | 651 JsonUtils.getStringFromJson( in getTrustedBiddingDataFromJSONObject() 864 return JsonUtils.getStringFromJson(
|