Home
last modified time | relevance | path

Searched defs:json (Results 1 – 25 of 81) sorted by relevance

1234

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/
DFetcherUtilTest.java377 String json = "[{" in testAreValidAttributionFilters_filterSet_valid() local
392 String json = in testAreValidAttributionFilters_removeSizeConstraints_valid() local
408 String json = "{" in testAreValidAttributionFilters_filterMap_valid() local
424 String json = in areValidAttributionFilters_lookbackWindowAllowedAndValid_returnsTrue() local
443 String json = in areValidAttributionFilters_validlLookbackWindowA_removeSizeConstrains_returnsTrue() local
462 String json = in areValidAttributionFilters_lookbackWindowAllowedButInvalid_returnsFalse() local
482 String json = in areValidAttributionFilters_invalidLookbackWindow_removeSizeConstraints_returnsFalse() local
501 String json = in areValidAttributionFilters_lookbackWindowDisllowed_returnsFalse() local
521 String json = in areValidAttributionFilters_lookbackWindowDisllowed_removeSizeConstraints_returnsFalse() local
539 String json = in areValidAttributionFilters_zeroLookbackWindow_returnsFalse() local
[all …]
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DInternalFrequencyCapFiltersTest.java63 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyWins() local
73 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyImpressions() local
83 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyViews() local
93 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyClicks() local
103 JSONObject json = originalFilters.toJson(); in testJsonSerializationNonStringKeyedFrequencyCap() local
112 JSONObject json = new JSONObject(); in testJsonSerializationWrongType() local
121 JSONObject json = originalFilters.toJson(); in testJsonSerializationUnrelatedKey() local
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/
DCustomAudienceBlobFixture.java102 JSONObject json = new JSONObject(); in asJSONObject() local
124 public static JSONObject addOwner(JSONObject json, String owner, boolean shouldAddHarmlessJunk) in addOwner()
139 JSONObject json, AdTechIdentifier adTechIdentifier, boolean shouldAddHarmlessJunk) in addBuyer()
154 public static JSONObject addName(JSONObject json, String name, boolean shouldAddHarmlessJunk) in addName()
169 JSONObject json, Instant activationTime, boolean shouldAddHarmlessJunk) in addActivationTime()
188 JSONObject json, Instant expirationTime, boolean shouldAddHarmlessJunk) in addExpirationTime()
207 JSONObject json, Uri dailyUpdateUri, boolean shouldAddHarmlessJunk) in addDailyUpdateUri()
223 JSONObject json, Uri biddingLogicUri, boolean shouldAddHarmlessJunk) in addBiddingLogicUri()
239 JSONObject json, String userBiddingSignals, boolean shouldAddHarmlessJunk) in addUserBiddingSignals()
256 JSONObject json, DBTrustedBiddingData trustedBiddingData, boolean shouldAddHarmlessJunk) in addTrustedBiddingData()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DReadFiltersFromJsonStrategyFactory.java106 public void readAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in readAdCounterKeys()
119 public void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) in readFrequencyCapFilters()
132 public void readAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in readAdCounterKeys()
138 public void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) in readFrequencyCapFilters()
148 public void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) in readAppInstallFilters()
161 public void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) in readAppInstallFilters()
DReadFrequencyCapFiltersFromJsonStrategy.java29 void readAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) throws JSONException; in readAdCounterKeys()
32 void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in readFrequencyCapFilters()
DCustomAudienceBlob.java117 JSONObject json = new JSONObject(); in toJSONObject() local
126 void fromJSONObject(JSONObject json, String key) throws JSONException { in fromJSONObject()
177 public void overrideFromJSONObject(JSONObject json) throws JSONException { in overrideFromJSONObject()
285 JSONObject json = new JSONObject(); in asJSONObject() local
633 JSONObject json = new JSONObject(); in getTrustedBiddingDataAsJSONObject() local
642 private TrustedBiddingData getTrustedBiddingDataFromJSONObject(JSONObject json, String key) { in getTrustedBiddingDataFromJSONObject()
DReadAppInstallFiltersFromJsonStrategy.java29 void readAppInstallFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in readAppInstallFilters()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/
DScenarioLoader.java57 JSONObject json = new JSONObject(ScenarioLoader.loadTextResource(scenarioPath)); in load() local
69 private static Scenario parseScenario(JSONObject json, Map<String, String> variables) in parseScenario()
109 private static Scenario.Request parseRequest(JSONObject json, Map<String, String> variables) { in parseRequest()
131 JSONObject json, Map<String, String> variables) { in parseResponse()
168 JSONObject json, Map<String, String> substitutionVariables) throws JSONException { in parseSubstitutions()
188 private static boolean parseBooleanOptionalOrDefault(String field, JSONObject json) { in parseBooleanOptionalOrDefault()
196 private static int parseIntegerOptionalOrDefault(String field, JSONObject json) { in parseIntegerOptionalOrDefault()
204 private static Map<String, String> parseHeaders(JSONObject json) { in parseHeaders()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DUpdateProcessingOrchestratorTest.java165 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleInsert() local
195 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleInsertJsonArray() local
227 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleRemove() local
252 JSONObject json = new JSONObject(); in testUpdatesProcessorTwoInserts() local
301 JSONObject json = new JSONObject(); in testUpdatesProcessorTwoInsertsSameKey() local
339 JSONObject json = new JSONObject(); in testUpdatesProcessorTwoDeletesSameKey() local
366 JSONObject json = new JSONObject(); in testUpdatesProcessorNoEncoderUpdates() local
379 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleEncoderUpdate() local
DSignalsIntakeE2ETest.java272 String json = in testPutNoNetwork() local
584 String json = in testBadAppend() local
629 String json = in testCollision() local
704 String json = in baseTestNoConsent() local
725 private void setupAndRunUpdateSignals(String json) throws Exception { in setupAndRunUpdateSignals()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataConversionStrategyFactory.java72 public void fromJsonAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in fromJsonAdCounterKeys()
85 public void fromJsonFilters(JSONObject json, AdFilters.Builder builder) in fromJsonFilters()
120 public void fromJsonAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) { in fromJsonAdCounterKeys()
125 public void fromJsonFilters(JSONObject json, AdFilters.Builder builder) in fromJsonFilters()
153 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson()
174 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson()
217 public void fromJson(@NonNull JSONObject json, @NonNull DBAdData.Builder adDataBuilder) in fromJson()
259 public void fromJson(@NonNull JSONObject json, @NonNull DBAdData.Builder adDataBuilder) in fromJson()
299 public DBAdData.Builder fromJson(JSONObject json) throws JSONException { in fromJson()
341 public DBAdData.Builder fromJson(JSONObject json) throws JSONException { in fromJson()
DFrequencyCapFiltersConversionStrategy.java44 void fromJsonAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in fromJsonAdCounterKeys()
48 void fromJsonFilters(JSONObject json, AdFilters.Builder builder) throws JSONException; in fromJsonFilters()
DAdDataConversionStrategy.java44 DBAdData.Builder fromJson(JSONObject json) throws JSONException; in fromJson()
/packages/services/Car/tests/BugReportApp/libs/
Dgoogle-http-client-jackson2-1.30.1.jar ... client/ com/google/api/client/json/ com/google/api/client/json
Dgoogle-http-client-android-1.30.1.jar ... google/api/client/extensions/android/json/ META-INF/maven/ META-INF ...
/packages/apps/Car/DebuggingRestrictionController/libs/
Dgoogle-http-client-jackson2-1.36.0.jar ... client/ com/google/api/client/json/ com/google/api/client/json ...
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DAuctionEncryptionKeyFixture.java102 JSONObject json = new JSONObject(); in getAuctionResponseBodySingleKey() local
138 JSONObject json = new JSONObject(); in getDefaultAuctionResponseBody() local
152 JSONObject json = new JSONObject(); in getDeterministicAuctionResponseBody() local
158 JSONObject json = new JSONObject(); in getDefaultAuctionResponseBodyWithOneKey() local
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/
DKeyedFrequencyCapTest.java348 JSONObject json = toSerialize.toJson(); in testJsonSerializationInvalidKeyThrows() local
361 JSONObject json = toSerialize.toJson(); in testJsonSerializationMissingAdCounterKey() local
372 JSONObject json = toSerialize.toJson(); in testJsonSerializationMissingMaxCount() local
383 JSONObject json = toSerialize.toJson(); in testJsonSerializationMissingIntervalInSeconds() local
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DSensorMetadata.java121 static SensorMetadata buildFromJson(JSONObject json) { in buildFromJson()
156 private static String readStringFromJSON(String key, JSONObject json) { in readStringFromJSON()
176 private static float readFloatFromJSON(String key, JSONObject json) throws JSONException { in readFloatFromJSON()
199 private static Map<Integer, String> readMappingFromJSON(String key, JSONObject json) in readMappingFromJSON()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DTriggerSpecTest.java44 JSONObject json = new JSONObject(); in getJson() local
76 JSONObject json = getValidBaselineTestCase(); in testEqualsWithDefaultValuePass() local
154 JSONObject json = in triggerSpecBuilder_validJson_success() local
DTriggerSpecsUtil.java24 public static TriggerSpec[] triggerSpecArrayFrom(String json) throws JSONException { in triggerSpecArrayFrom()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DAttributedTrigger.java69 public AttributedTrigger(JSONObject json) throws JSONException { in AttributedTrigger()
196 JSONObject json = new JSONObject(); in encodeToJson() local
213 JSONObject json = new JSONObject(); in encodeToJsonFlexApi() local
DTriggerSpec.java102 JSONObject json = new JSONObject(); in encodeJSON() local
139 private static List<Long> getLongListFromJSON(JSONObject json, String key) in getLongListFromJSON()
158 private static List<UnsignedLong> getTriggerDataArrayFromJSON(JSONObject json, String key) in getTriggerDataArrayFromJSON()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleNotificationDataManager.java68 String json = gson.toJson(info); in putNotificationInfo() local
94 String json = getSharedPreferences(mContext).getString(locale, ""); in getNotificationInfo() local
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAdSelectionSignals.java159 JSONObject json = new JSONObject(mSignals); in containsAdCost() local
172 JSONObject json = new JSONObject(mSignals); in containsDataVersion() local

1234