/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceBlobFixture.java | 46 import org.json.JSONArray; 47 import org.json.JSONException; 48 import org.json.JSONObject; 102 JSONObject json = new JSONObject(); in asJSONObject() local 104 json = addOwner(json, owner, shouldAddHarmlessJunk); in asJSONObject() 105 json = addBuyer(json, buyer, shouldAddHarmlessJunk); in asJSONObject() 106 json = addName(json, name, shouldAddHarmlessJunk); in asJSONObject() 107 json = addActivationTime(json, activationTime, shouldAddHarmlessJunk); in asJSONObject() 108 json = addExpirationTime(json, expirationTime, shouldAddHarmlessJunk); in asJSONObject() 109 json = addDailyUpdateUri(json, dailyUpdateUri, shouldAddHarmlessJunk); in asJSONObject() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/ |
D | AttributedTrigger.java | 22 import org.json.JSONException; 23 import org.json.JSONObject; 69 public AttributedTrigger(JSONObject json) throws JSONException { in AttributedTrigger() argument 70 mTriggerId = json.getString(JsonKeys.TRIGGER_ID); in AttributedTrigger() 71 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.PRIORITY)) { in AttributedTrigger() 72 mPriority = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.PRIORITY); in AttributedTrigger() 76 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA)) { in AttributedTrigger() 78 json.getString(TriggerSpecs.FlexEventReportJsonKeys.TRIGGER_DATA)); in AttributedTrigger() 82 if (!json.isNull(TriggerSpecs.FlexEventReportJsonKeys.VALUE)) { in AttributedTrigger() 83 mValue = json.getLong(TriggerSpecs.FlexEventReportJsonKeys.VALUE); in AttributedTrigger() [all …]
|
D | TriggerSpec.java | 21 import org.json.JSONArray; 22 import org.json.JSONException; 23 import org.json.JSONObject; 102 JSONObject json = new JSONObject(); in encodeJSON() local 103 json.put( in encodeJSON() 112 json.put("event_report_windows", windows); in encodeJSON() 113 json.put( in encodeJSON() 116 json.put("summary_buckets", new JSONArray(mSummaryBuckets)); in encodeJSON() 117 return json; in encodeJSON() 139 private static List<Long> getLongListFromJSON(JSONObject json, String key) in getLongListFromJSON() argument [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/ |
D | InternalFrequencyCapFiltersTest.java | 26 import org.json.JSONException; 27 import org.json.JSONObject; 63 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyWins() local 64 json.remove(FrequencyCapFilters.WIN_EVENTS_FIELD_NAME); in testJsonSerializationEmptyWins() 65 assertThat(FrequencyCapFilters.fromJson(json).getKeyedFrequencyCapsForWinEvents()) in testJsonSerializationEmptyWins() 73 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyImpressions() local 74 json.remove(FrequencyCapFilters.IMPRESSION_EVENTS_FIELD_NAME); in testJsonSerializationEmptyImpressions() 75 assertThat(FrequencyCapFilters.fromJson(json).getKeyedFrequencyCapsForImpressionEvents()) in testJsonSerializationEmptyImpressions() 83 JSONObject json = originalFilters.toJson(); in testJsonSerializationEmptyViews() local 84 json.remove(FrequencyCapFilters.VIEW_EVENTS_FIELD_NAME); in testJsonSerializationEmptyViews() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/registration/ |
D | FetcherUtilTest.java | 45 import org.json.JSONArray; 46 import org.json.JSONException; 47 import org.json.JSONObject; 377 String json = "[{" in testAreValidAttributionFilters_filterSet_valid() local 381 JSONArray filters = new JSONArray(json); in testAreValidAttributionFilters_filterSet_valid() 392 String json = in testAreValidAttributionFilters_removeSizeConstraints_valid() local 397 JSONArray filters = new JSONArray(json); in testAreValidAttributionFilters_removeSizeConstraints_valid() 408 String json = "{" in testAreValidAttributionFilters_filterMap_valid() local 412 JSONObject filters = new JSONObject(json); in testAreValidAttributionFilters_filterMap_valid() 424 String json = in areValidAttributionFilters_lookbackWindowAllowedAndValid_returnsTrue() local [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ |
D | ScenarioLoader.java | 28 import org.json.JSONArray; 29 import org.json.JSONException; 30 import org.json.JSONObject; 57 JSONObject json = new JSONObject(ScenarioLoader.loadTextResource(scenarioPath)); in load() local 65 variables.putAll(ScenarioLoader.parseSubstitutions(json, substitutionVariables)); in load() 66 return ScenarioLoader.parseScenario(json, variables); in load() 69 private static Scenario parseScenario(JSONObject json, Map<String, String> variables) in parseScenario() argument 73 JSONArray mocks = json.getJSONArray(FIELD_MOCKS); in parseScenario() 109 private static Scenario.Request parseRequest(JSONObject json, Map<String, String> variables) { in parseRequest() argument 112 String rawPath = getStringWithSubstitutions(json.getString("path"), variables); in parseRequest() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | Message.java | 19 import org.json.JSONException; 20 import org.json.JSONObject; 165 JSONObject json = new JSONObject(); in toString() local 168 json.put("handle", mHandle); in toString() 169 json.put("subject", mSubject); in toString() 170 json.put("datetime", mDateTime); in toString() 171 json.put("sender_name", mSenderName); in toString() 172 json.put("sender_addressing", mSenderAddressing); in toString() 173 json.put("replyto_addressing", mReplytoAddressing); in toString() 174 json.put("recipient_name", mRecipientName); in toString() [all …]
|
D | Bmessage.java | 21 import org.json.JSONException; 22 import org.json.JSONObject; 145 JSONObject json = new JSONObject(); in toString() local 148 json.put("status", mBmsgStatus); in toString() 149 json.put("type", mBmsgType); in toString() 150 json.put("folder", mBmsgFolder); in toString() 151 json.put("charset", mBbodyCharset); in toString() 152 json.put("message", mMessage); in toString() 157 return json.toString(); in toString()
|
D | EventReport.java | 24 import org.json.JSONException; 25 import org.json.JSONObject; 212 JSONObject json = new JSONObject(); in toString() local 215 json.put("type", mType); in toString() 217 json.put("datetime", mDateTime); in toString() 219 json.put("handle", mHandle); in toString() 220 json.put("folder", mFolder); in toString() 221 json.put("old_folder", mOldFolder); in toString() 222 json.put("msg_type", mMsgType); in toString() 227 return json.toString(); in toString()
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/ |
D | SensorMetadata.java | 23 import org.json.JSONException; 24 import org.json.JSONObject; 121 static SensorMetadata buildFromJson(JSONObject json) { in buildFromJson() argument 122 String name = readStringFromJSON(NAME_KEY, json); in buildFromJson() 123 String units = readStringFromJSON(UNITS_KEY, json); in buildFromJson() 125 if (json.has(CONVERSION_KEY)) { in buildFromJson() 127 JSONObject conversionObject = json.getJSONObject(CONVERSION_KEY); in buildFromJson() 135 } else if (json.has(MAPPING_KEY)) { in buildFromJson() 137 Map<Integer, String> mapping = readMappingFromJSON(MAPPING_KEY, json); in buildFromJson() 143 String translationString = readStringFromJSON(TRANSLATION_KEY, json); in buildFromJson() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncSourceFetcher.java | 47 import org.json.JSONArray; 48 import org.json.JSONException; 49 import org.json.JSONObject; 112 JSONObject json, in parseCommonSourceParams() argument 117 if (json.isNull(SourceHeaderContract.DESTINATION) in parseCommonSourceParams() 118 && json.isNull(SourceHeaderContract.WEB_DESTINATION)) { in parseCommonSourceParams() 123 if (!json.isNull(SourceHeaderContract.SOURCE_EVENT_ID)) { in parseCommonSourceParams() 125 FetcherUtil.extractUnsignedLong(json, SourceHeaderContract.SOURCE_EVENT_ID); in parseCommonSourceParams() 133 if (!json.isNull(SourceHeaderContract.EXPIRY)) { in parseCommonSourceParams() 136 new UnsignedLong(json.getString(SourceHeaderContract.EXPIRY)), in parseCommonSourceParams() [all …]
|
D | AsyncTriggerFetcher.java | 53 import org.json.JSONArray; 54 import org.json.JSONException; 55 import org.json.JSONObject; 170 JSONObject json = new JSONObject(registrationHeaderStr); in parseTrigger() local 171 if (!json.isNull(TriggerHeaderContract.EVENT_TRIGGER_DATA)) { in parseTrigger() 174 json.getJSONArray(TriggerHeaderContract.EVENT_TRIGGER_DATA)); in parseTrigger() 183 if (!json.isNull(TriggerHeaderContract.AGGREGATABLE_TRIGGER_DATA)) { in parseTrigger() 186 json.getJSONArray(TriggerHeaderContract.AGGREGATABLE_TRIGGER_DATA)); in parseTrigger() 194 if (!json.isNull(TriggerHeaderContract.AGGREGATABLE_VALUES)) { in parseTrigger() 196 json.getJSONObject(TriggerHeaderContract.AGGREGATABLE_VALUES))) { in parseTrigger() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceBlob.java | 60 import org.json.JSONArray; 61 import org.json.JSONException; 62 import org.json.JSONObject; 117 JSONObject json = new JSONObject(); in toJSONObject() local 118 json.put(mName, mToJSONObject.apply(mValue)); in toJSONObject() 119 return json; in toJSONObject() 126 void fromJSONObject(JSONObject json, String key) throws JSONException { in fromJSONObject() argument 128 this.mValue = mFromJSONObject.apply(json, key); in fromJSONObject() 177 public void overrideFromJSONObject(JSONObject json) throws JSONException { in overrideFromJSONObject() argument 178 LinkedHashSet<String> jsonKeySet = new LinkedHashSet<>(Lists.newArrayList(json.keys())); in overrideFromJSONObject() [all …]
|
D | ReadFiltersFromJsonStrategyFactory.java | 32 import org.json.JSONArray; 33 import org.json.JSONException; 34 import org.json.JSONObject; 106 public void readAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in readAdCounterKeys() argument 109 if (json.has(AD_COUNTERS_KEY)) { in readAdCounterKeys() 110 JSONArray counterKeys = json.getJSONArray(AD_COUNTERS_KEY); in readAdCounterKeys() 119 public void readFrequencyCapFilters(JSONObject json, AdFilters.Builder builder) in readFrequencyCapFilters() argument 121 if (json.has(FREQUENCY_CAP_FIELD_NAME)) { in readFrequencyCapFilters() 123 FrequencyCapFilters.fromJson(json.getJSONObject(FREQUENCY_CAP_FIELD_NAME))); in readFrequencyCapFilters() 132 public void readAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in readAdCounterKeys() argument [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/ |
D | AdDataConversionStrategyFactory.java | 34 import org.json.JSONArray; 35 import org.json.JSONException; 36 import org.json.JSONObject; 72 public void fromJsonAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) in fromJsonAdCounterKeys() argument 75 if (json.has(AD_COUNTER_KEYS_FIELD_NAME)) { in fromJsonAdCounterKeys() 76 JSONArray counterKeys = json.getJSONArray(AD_COUNTER_KEYS_FIELD_NAME); in fromJsonAdCounterKeys() 85 public void fromJsonFilters(JSONObject json, AdFilters.Builder builder) in fromJsonFilters() argument 87 if (json.has(FREQUENCY_CAP_FIELD_NAME)) { in fromJsonFilters() 89 FrequencyCapFilters.fromJson(json.getJSONObject(FREQUENCY_CAP_FIELD_NAME))); in fromJsonFilters() 120 public void fromJsonAdCounterKeys(JSONObject json, DBAdData.Builder adDataBuilder) { in fromJsonAdCounterKeys() argument [all …]
|
/packages/services/Car/tests/BugReportApp/libs/ |
D | google-http-client-android-1.30.1.jar | ... google/api/client/extensions/android/json/
META-INF/maven/
META-INF ... |
D | google-http-client-jackson2-1.30.1.jar | ... client/
com/google/api/client/json/
com/google/api/client/json |
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | AuctionEncryptionKeyFixture.java | 28 import org.json.JSONArray; 29 import org.json.JSONException; 30 import org.json.JSONObject; 102 JSONObject json = new JSONObject(); in getAuctionResponseBodySingleKey() local 103 json.put("keys", new JSONArray().put(getAuctionKeyJson(AUCTION_KEY_1))); in getAuctionResponseBodySingleKey() 104 return json.toString(); in getAuctionResponseBodySingleKey() 138 JSONObject json = new JSONObject(); in getDefaultAuctionResponseBody() local 139 json.put( in getDefaultAuctionResponseBody() 147 return json.toString(); in getDefaultAuctionResponseBody() 152 JSONObject json = new JSONObject(); in getDeterministicAuctionResponseBody() local [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/ |
D | TriggerSpecTest.java | 25 import org.json.JSONArray; 26 import org.json.JSONException; 27 import org.json.JSONObject; 44 JSONObject json = new JSONObject(); in getJson() local 46 json.put("trigger_data", new JSONArray(triggerData)); in getJson() 54 json.put("event_report_windows", windows); in getJson() 57 json.put("summary_window_operator", summaryWindowOperator); in getJson() 60 json.put("summary_buckets", new JSONArray(summaryBucket)); in getJson() 62 return json; in getJson() 76 JSONObject json = getValidBaselineTestCase(); in testEqualsWithDefaultValuePass() local [all …]
|
/packages/apps/Car/DebuggingRestrictionController/libs/ |
D | google-http-client-jackson2-1.36.0.jar | ... client/
com/google/api/client/json/
com/google/api/client/json ... |
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | UpdateProcessingOrchestratorTest.java | 48 import org.json.JSONArray; 49 import org.json.JSONException; 50 import org.json.JSONObject; 165 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleInsert() local 166 json.put(TEST_PROCESSOR, new JSONObject()); in testUpdatesProcessorSingleInsert() 179 ADTECH, PACKAGE, NOW, json, DEV_CONTEXT, mUpdateSignalsApiCalledStats); in testUpdatesProcessorSingleInsert() 195 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleInsertJsonArray() local 196 json.put(TEST_PROCESSOR, new JSONArray()); in testUpdatesProcessorSingleInsertJsonArray() 209 ADTECH, PACKAGE, NOW, json, DEV_CONTEXT, mUpdateSignalsApiCalledStats); in testUpdatesProcessorSingleInsertJsonArray() 227 JSONObject json = new JSONObject(); in testUpdatesProcessorSingleRemove() local [all …]
|
/packages/services/DeviceAsWebcam/res/raw/ |
D | README.md | 7 - `physical_camera_mapping.json`: 15 ```json 45 ```json 54 - `physical_camera_zoom_ratio_ranges.json`: 59 physical camera listed in `physical_camera_mapping.json` is different from the 61 if `physical_camera_mapping,json` contains a corresponding entry. The format of 64 ```json 83 ```json 92 - `ignored_cameras.json`: 96 from. `ignored_cameras.json` provides a way to ignore a predetermined set of [all …]
|
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/ |
D | FrequencyCapFilters.java | 30 import org.json.JSONArray; 31 import org.json.JSONException; 32 import org.json.JSONObject; 275 public static FrequencyCapFilters fromJson(JSONObject json) throws JSONException { in fromJson() argument 277 if (json.has(WIN_EVENTS_FIELD_NAME)) { in fromJson() 279 jsonArrayToFcapList(json.getJSONArray(WIN_EVENTS_FIELD_NAME))); in fromJson() 281 if (json.has(IMPRESSION_EVENTS_FIELD_NAME)) { in fromJson() 283 jsonArrayToFcapList(json.getJSONArray(IMPRESSION_EVENTS_FIELD_NAME))); in fromJson() 285 if (json.has(VIEW_EVENTS_FIELD_NAME)) { in fromJson() 287 jsonArrayToFcapList(json.getJSONArray(VIEW_EVENTS_FIELD_NAME))); in fromJson() [all …]
|
/packages/modules/NeuralNetworks/tools/systrace_parser/ |
D | parse_systrace.py | 24 def produce_stats(trace, print_detail=False, total_times=False, per_execution=False, json=False): argument 38 if json: 49 if json and printed_one: 52 print_stats(tracker_map, print_detail, total_times, per_execution, json, 63 if json and printed_one: 65 print_stats(tracker_map, print_detail, total_times, per_execution, json, starting_mark, sep) 66 if json: 78 produce_stats(trace, args.print_detail, args.total_times, args.per_execution, args.json)
|
/packages/apps/ThemePicker/src/com/android/customization/model/color/ |
D | ColorOption.java | 35 import org.json.JSONException; 36 import org.json.JSONObject; 171 JSONObject json; in getJsonPackages() local 173 json = new JSONObject(); in getJsonPackages() 175 json = new JSONObject(mPackagesByCategory); in getJsonPackages() 177 removeNullValues(json); in getJsonPackages() 181 json.put(TIMESTAMP_FIELD, System.currentTimeMillis()); in getJsonPackages() 186 return json; in getJsonPackages() 189 private void removeNullValues(JSONObject json) { in removeNullValues() argument 190 Iterator<String> keys = json.keys(); in removeNullValues() [all …]
|