/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/ |
D | ScheduleCustomAudienceUpdateTestUtils.java | 60 import org.json.JSONArray; 125 public static final JSONArray CUSTOM_AUDIENCE_TO_LEAVE_JSON_ARRAY = 126 new JSONArray(List.of(LEAVE_CA_1, LEAVE_CA_2)); 149 public static JSONArray getPartialCustomAudienceJsonArray() throws JSONException { in getPartialCustomAudienceJsonArray() 150 return new JSONArray(List.of(getPartialCustomAudience_1(), getPartialCustomAudience_2())); in getPartialCustomAudienceJsonArray() 181 JSONArray joinCustomAudienceArray = new JSONArray(); in createJsonResponsePayload() 204 JSONArray leaveCustomAudienceArray = new JSONArray(); in createJsonResponsePayload() 229 JSONArray joinCustomAudienceArray = new JSONArray(); in createJsonResponsePayloadWithComponentAds() 237 JSONArray leaveCustomAudienceArray = new JSONArray(); in createJsonResponsePayloadWithComponentAds() 258 JSONArray joinCustomAudienceArray = new JSONArray(); in createJsonResponsePayloadWithInvalidExpirationTime() [all …]
|
D | AdditionalScheduleRequestsEnabledStrategyHelperTest.java | 70 import org.json.JSONArray; 267 JSONArray scheduleRequests = new JSONArray(List.of(scheduleRequest_1, scheduleRequest_2)); in testExtractScheduleRequestsFromResponse_Success() 281 JSONArray scheduleRequests = new JSONArray(List.of(new JSONArray(), scheduleRequest)); in testExtractScheduleRequestsFromResponse_UnableToParseOne() 294 JSONArray scheduleRequestArray = new JSONArray(List.of(new JSONArray(), new JSONArray())); in testExtractScheduleRequestsFromResponse_UnableToParseAnything_ReturnsEmptyList() 334 JSONArray partialCustomAudiences = in testExtractPartialCustomAudiencesFromRequest_UnableToParseOne() 335 new JSONArray(List.of(new JSONArray(), partialCustomAudience)); in testExtractPartialCustomAudiencesFromRequest_UnableToParseOne() 353 JSONArray partialCustomAudiences = new JSONArray(List.of(new JSONArray(), new JSONArray())); in testExtractPartialCustomAudiencesFromRequest_UnableToParseAnything_ReturnsEmptyList() 376 scheduleRequest.put(LEAVE_CUSTOM_AUDIENCE_KEY, new JSONArray()); in testExtractPartialCustomAudiencesFromRequest_NoPartialCustomAudiencesKey_ReturnsEmptyList() 402 JSONArray customAudiencesToLeave = new JSONArray(List.of("", LEAVE_CA_1)); in testExtractCustomAudiencesToLeaveFromRequest_UnableToParseOne() 421 JSONArray customAudiencesToLeave = new JSONArray(List.of("", "")); in testExtractCustomAudiencesToLeaveFromRequest_UnableToParseAnything_ReturnsEmptyList() [all …]
|
D | AdditionalScheduleRequestsEnabledStrategyTest.java | 63 import org.json.JSONArray; 123 new JSONArray(customAudienceToLeaveList), in testScheduleRequests_AllowScheduleInResponseTrue_Success() 135 new JSONArray(customAudienceToLeaveList_2), in testScheduleRequests_AllowScheduleInResponseTrue_Success() 138 JSONArray scheduleRequests = new JSONArray(List.of(scheduleRequest, scheduleRequest_2)); in testScheduleRequests_AllowScheduleInResponseTrue_Success() 179 new JSONArray(customAudienceToLeaveList), in testScheduleRequests_AllowScheduleInResponseTrue_OnError_SkippingSchedule() 187 new JSONArray(customAudienceToLeaveList), in testScheduleRequests_AllowScheduleInResponseTrue_OnError_SkippingSchedule() 190 JSONArray scheduleRequests = new JSONArray(List.of(scheduleRequest, scheduleRequest2)); in testScheduleRequests_AllowScheduleInResponseTrue_OnError_SkippingSchedule() 219 new JSONArray(List.of(getScheduleRequest_1()))), in testScheduleRequests_AllowScheduleInResponseFalse_DoesNothing() 232 JSONArray paListJsonArray = getPartialCustomAudienceJsonArray(); in testPrepareFetchUpdateRequestBody_Success() 251 LEAVE_CUSTOM_AUDIENCE_KEY, new JSONArray(List.of(LEAVE_CA_1, LEAVE_CA_2))); in testPrepareFetchUpdateRequestBody_Success()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/registration/ |
D | FetcherUtilTest.java | 45 import org.json.JSONArray; 222 JSONObject obj = new JSONObject().put(KEY, new JSONArray("[\"1\", \"2\"]")); in extractStringArray_stringArray_passes() 230 JSONObject obj = new JSONObject().put(KEY, new JSONArray("[\"1\", \"2\"]")); in extractStringArray_sizeTooBig_fails() 237 JSONObject obj = new JSONObject().put(KEY, new JSONArray("[\"1\", \"2345\"]")); in extractStringArray_stringTooLong_fails() 572 JSONArray filters = new JSONArray(json); in testAreValidAttributionFilters_filterSet_valid() 588 JSONArray filters = new JSONArray(json); in testAreValidAttributionFilters_removeSizeConstraints_valid() 621 JSONArray filters = new JSONArray(json); in areValidAttributionFilters_lookbackWindowAllowedAndValid_returnsTrue() 640 JSONArray filters = new JSONArray(json); in areValidAttributionFilters_validlLookbackWindowA_removeSizeConstraints_returnsTrue() 659 JSONArray filters = new JSONArray(json); in areValidAttributionFilters_lookbackWindowZeroDecimal_returnsTrue() 681 JSONArray filters = new JSONArray(json); in areValidAttributionFilters_lookbackWindowZeroDecimal_removeSizeConstraints_returnsTrue() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/aggregation/ |
D | AggregatableAttributionTriggerTest.java | 33 import org.json.JSONArray; 136 "conversion_subdomain", new JSONArray(Arrays.asList("electronics.megastore"))); in createExampleWithValueConfigs() 137 filterMap.put("product", new JSONArray(Arrays.asList("1234", "2345"))); in createExampleWithValueConfigs() 138 JSONArray filterSet = new JSONArray(); in createExampleWithValueConfigs() 218 filterMap1.put("2", new JSONArray(Arrays.asList("1234", "234"))); in testGetNamedBudgets() 219 JSONArray filterSet1 = new JSONArray(); in testGetNamedBudgets() 228 filterMap2.put("2", new JSONArray(Arrays.asList("5678", "678"))); in testGetNamedBudgets() 229 JSONArray filterSet2 = new JSONArray(); in testGetNamedBudgets() 659 filterMap1.put("1", new JSONArray(Arrays.asList("1234", "234"))); in testExtractNamedBudget_bothNamedBudgetsHaveMatchingFilters() 660 JSONArray filterSet1 = new JSONArray(); in testExtractNamedBudget_bothNamedBudgetsHaveMatchingFilters() [all …]
|
D | AggregateDebugReportingTest.java | 26 import org.json.JSONArray; 90 JSONArray types = new JSONArray(Arrays.asList("source-noised", "source-unknown-error")); in buildFromJson_success() 92 obj.put("debug_data", new JSONArray(Arrays.asList(dataObj))); in buildFromJson_success() 122 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullKeyPiece() 124 obj.put("debug_data", new JSONArray(Arrays.asList(dataObj))); in buildFromJson_nullKeyPiece() 152 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullBudget() 154 obj.put("debug_data", new JSONArray(Arrays.asList(dataObj))); in buildFromJson_nullBudget() 182 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullAggregationCoordinatorOrigin() 184 obj.put("debug_data", new JSONArray(Arrays.asList(dataObj))); in buildFromJson_nullAggregationCoordinatorOrigin() 228 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullDebugDataKeyPiece() [all …]
|
D | AggregateDebugReportDataTest.java | 24 import org.json.JSONArray; 105 JSONArray types = new JSONArray(Arrays.asList("source-noised", "source-unknown-error")); in buildFromJson_success() 121 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullKeyPiece() 134 JSONArray types = new JSONArray(Arrays.asList("source-noised")); in buildFromJson_nullValue()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | AfcServerResponseTest.java | 21 import org.json.JSONArray; 70 public JSONArray buildAvailableFrequencyInfoArray() { in buildAvailableFrequencyInfoArray() 72 JSONArray availableFrequencyInfo = new JSONArray(); in buildAvailableFrequencyInfoArray() 105 private JSONArray buildAvailableChannelInfoArray() { in buildAvailableChannelInfoArray() 114 JSONArray availableChannelInfo = new JSONArray(); in buildAvailableChannelInfoArray() 120 JSONArray channelCfisJSON1 = new JSONArray(); in buildAvailableChannelInfoArray() 121 JSONArray maxEirpsJSON1 = new JSONArray(); in buildAvailableChannelInfoArray() 122 JSONArray channelCfisJSON2 = new JSONArray(); in buildAvailableChannelInfoArray() 123 JSONArray maxEirpsJSON2 = new JSONArray(); in buildAvailableChannelInfoArray() 154 availableSpectrumInquiryResponse.put("availableFrequencyInfo", new JSONArray()); in buildSuccessfulSpectrumInquiryResponseWithEmptyFrequencyInfo() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/attribution/ |
D | XnaSourceCreatorTest.java | 39 import org.json.JSONArray; 76 JSONArray filters = in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 77 new JSONArray( in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 101 new JSONArray( in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 126 new JSONArray( in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 152 new JSONArray(Arrays.asList("key2", "key3")).toString()) in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 176 new JSONArray(Arrays.asList("key2", "key3")).toString()) in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 193 new JSONArray(Collections.singletonList("key1")).toString()) in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 215 new JSONArray(Collections.singletonList("key1")).toString()) in generateDerivedSources_withVarietyOfSources_filtersAndGeneratesSources() 313 JSONArray filters = in generateDerivedSources_sharedDebugKeyDisabled_doesntAddDebugKeyToDerivedSource() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | HalDeviceManagerUtil.java | 23 import org.json.JSONArray; 63 JSONArray availableModesJson = new JSONArray(); in staticChipInfoToJson() 74 JSONArray modesJson = jsonObject.getJSONArray(KEY_AVAILABLE_MODES); in jsonToStaticChipInfo() 88 JSONArray availableCombinationsJson = new JSONArray(); in chipModeToJson() 98 JSONArray availableCombinationsJson = in jsonToChipMode() 112 JSONArray limitsJson = new JSONArray(); in chipConcurrencyCombinationToJson() 123 JSONArray limitsJson = jsonObject.getJSONArray(KEY_CONCURRENCY_LIMITS); in jsonToChipConcurrencyCombination() 138 jsonObject.put(KEY_TYPES, new JSONArray(limit.types)); in chipConcurrencyCombinationLimitToJson() 145 JSONArray limitsJson = jsonObject.getJSONArray(KEY_TYPES); in jsonToChipConcurrencyCombinationLimit()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/response/ |
D | GetImsiPseudonymResponseTest.java | 32 import org.json.JSONArray; 62 JSONArray bodyArray = (new JSONArray()).put(body1).put(body2); in responseBodyCorrectWithRefreshInterval() 85 JSONArray bodyArray = (new JSONArray()).put(body1).put(body2); in responseBodyCorrectWithoutRefreshInterval() 117 JSONArray bodyArray = (new JSONArray()).put(body1).put(body2); in responseBodyInvalidRequest() 138 JSONArray bodyArray = (new JSONArray()).put(body1).put(body2); in responseBodyAuthFailed() 152 JSONArray bodyArray = (new JSONArray()).put(body2); in responseBodyWrongMessageId() 166 JSONArray bodyArray = (new JSONArray()).put(body2); in responseBodyServerError()
|
D | ChallengeResponseTest.java | 26 import org.json.JSONArray; 45 JSONArray bodyArray = (new JSONArray()).put(body1); in responseBodyCorrect() 64 JSONArray bodyArray = (new JSONArray()).put(body1); in responseBodyInvalidRequest() 76 JSONArray bodyArray = (new JSONArray()).put(body1); in responseBodyWrongMessageId()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/signals/updateprocessors/append/ |
D | AppendV0Test.java | 47 import org.json.JSONArray; 75 JSONArray valuesJson = new JSONArray(); in testAppendSingle() 96 JSONArray valuesJson = new JSONArray(); in testAppendMultipleValues() 120 JSONArray valuesJson1 = new JSONArray(); in testAppendMultipleKeys() 124 JSONArray valuesJson2 = new JSONArray(); in testAppendMultipleKeys() 153 JSONArray valuesJson = new JSONArray(); in testOverwriteExisting() 180 JSONArray valuesJson = new JSONArray(); in testOverwriteMultipleExisting() 211 JSONArray valuesJson = new JSONArray(); in testAddToExisting() 238 JSONArray valuesJson = new JSONArray(); in testBadMaxValueThrowsException()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/ |
D | EnrollmentData.java | 34 import org.json.JSONArray; 64 JSONArray moduleStatesArray = getJsonArrFromSparseArr(data.mModuleStates); in serialize() 68 JSONArray userChoicesArray = getJsonArrFromSparseArr(data.mUserChoices); in serialize() 92 JSONArray moduleStatesArray = jsonObject.getJSONArray(MODULE_STATE_JSON_KEY); in deserialize() 96 JSONArray userChoicesArray = jsonObject.getJSONArray(USER_CHOICE_JSON_KEY); in deserialize() 177 private static JSONArray getJsonArrFromSparseArr(SparseIntArray inputArr) throws JSONException { in getJsonArrFromSparseArr() 178 JSONArray jsonArr = new JSONArray(); in getJsonArrFromSparseArr() 188 private static void populateSparseArrFromJsonArr(JSONArray jsonArr, SparseIntArray outputArr) in populateSparseArrFromJsonArr()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/phr/validations/ |
D | FhirResourceValidatorTest.java | 47 import org.json.JSONArray; 548 .set("category", new JSONArray("[\"value\", null, null]")) in testValidateFhirResource_primitiveTypeArrayFieldContainsNull_throws() 573 .set("_category", new JSONArray("[null, null]")) in testValidateFhirResource_primitiveTypeExtensionArrayFieldContainsNull_succeeds() 640 new ImmunizationBuilder().set("status", new JSONArray("[]")).toJson()); in testValidateFhirResource_primitiveTypeFieldIsJSONArray_throws() 691 .set("statusReason", new JSONArray("[{\"text\": \"test\"}]")) in testValidateFhirResource_complexTypeFieldIsArrayNotJSONObject_throws() 743 new JSONArray("[{\"id\": \"123\"}, {\"id\": \"456\"}]")) in testValidateFhirResource_arrayOfPrimitiveTypeExtensions_succeeds() 762 new JSONArray("[{\"id\": \"123\"}, {\"id\": \"456\"}]")) in testValidateFhirResource_arrayOfPrimitiveTypeExtensionsIfNotArray_throws() 788 new JSONArray( in testValidateFhirResource_arrayOfComplexType_succeeds() 804 .set("category", new JSONArray("[\"food\", \"medication\"]")) in testValidateFhirResource_arrayOfPrimitiveType_succeeds() 816 JSONArray extensionJson = in testValidateFhirResource_r4ExtensionMetaValue_succeeds() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/registration/ |
D | AsyncTriggerFetcher.java | 58 import org.json.JSONArray; 466 String eventTriggerData = new JSONArray().toString(); in parseValidateTrigger() 514 && !(maybeValidAggregatableValues instanceof JSONArray); in parseValidateTrigger() 516 (maybeValidAggregatableValues instanceof JSONArray) in parseValidateTrigger() 542 (JSONArray) maybeValidAggregatableValues, in parseValidateTrigger() 577 JSONArray filters = Filter.maybeWrapFilters(json, FilterContract.FILTERS); in parseValidateTrigger() 586 JSONArray notFilters = Filter.maybeWrapFilters(json, FilterContract.NOT_FILTERS); in parseValidateTrigger() 748 if (!(namedBudgetsObj instanceof JSONArray)) { in parseValidateTrigger() 756 JSONArray namedBudgetsArray = (JSONArray) namedBudgetsObj; in parseValidateTrigger() 795 private Optional<String> parseNamedBudgets(JSONArray namedBudgetsArray) throws JSONException { in parseNamedBudgets() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/ |
D | TriggerTest.java | 43 import org.json.JSONArray; 107 JSONArray aggregateTriggerDatas = new JSONArray(); in testEqualsPass() 237 JSONArray aggregateTriggerDataList1 = new JSONArray(); in testEqualsFail() 242 JSONArray aggregateTriggerDataList2 = new JSONArray(); in testEqualsFail() 274 JSONArray attributionConfigList1 = new JSONArray(); in testEqualsFail() 292 JSONArray attributionConfigList2 = new JSONArray(); in testEqualsFail() 555 JSONArray triggerDatas = new JSONArray(); in testParseAggregateTrigger() 558 jsonObject1.put("source_keys", new JSONArray(Arrays.asList("campaignCounts"))); in testParseAggregateTrigger() 564 jsonObject2.put("source_keys", new JSONArray(Arrays.asList("geoValue", "noMatch"))); in testParseAggregateTrigger() 573 JSONArray aggregateDedupKeys = new JSONArray(); in testParseAggregateTrigger() [all …]
|
D | AttributionConfigTest.java | 32 import org.json.JSONArray; 203 "source_type", new JSONArray(Collections.singletonList("navigation"))); in createExampleAttributionConfigJson() 204 JSONArray sourceFilterSet = new JSONArray(); in createExampleAttributionConfigJson() 209 "campaign_type", new JSONArray(Collections.singletonList("product"))); in createExampleAttributionConfigJson() 210 JSONArray sourceNotFilterSet = new JSONArray(); in createExampleAttributionConfigJson() 217 filterDataJson.put("campaign_type", new JSONArray(Collections.singletonList("install"))); in createExampleAttributionConfigJson() 226 sourceFiltersMap.put("source_type", new JSONArray(Collections.singletonList("navigation"))); in createExampleAttributionConfig() 231 "campaign_type", new JSONArray(Collections.singletonList("product"))); in createExampleAttributionConfig() 236 filterDataMap.put("campaign_type", new JSONArray(Collections.singletonList("install"))); in createExampleAttributionConfig()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | ReportUtil.java | 27 import org.json.JSONArray; 54 return new JSONArray( in serializeAttributionDestinations() 66 public static JSONArray serializeUnsignedLongs(@NonNull List<UnsignedLong> unsignedLongs) { in serializeUnsignedLongs() 67 return new JSONArray( in serializeUnsignedLongs() 78 public static JSONArray serializeSummaryBucket(@NonNull Pair<Long, Long> summaryBucket) { in serializeSummaryBucket() 79 JSONArray result = new JSONArray(); in serializeSummaryBucket()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/util/ |
D | Filter.java | 25 import org.json.JSONArray; 149 public List<FilterMap> deserializeFilterSet(@NonNull JSONArray filters) throws JSONException { in deserializeFilterSet() 169 public JSONArray serializeFilterSet(@NonNull List<FilterMap> filterMaps) { in serializeFilterSet() 170 JSONArray serializedFilterMaps = new JSONArray(); in serializeFilterSet() 188 public static JSONArray maybeWrapFilters(@NonNull JSONObject json, @NonNull String key) in maybeWrapFilters() 192 JSONArray filterSet = new JSONArray(); in maybeWrapFilters()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/ |
D | CarrierSpecificServiceEntitlementTest.java | 45 import org.json.JSONArray; 115 when(mRequestFactory.createAuthRequest()).thenReturn(new JSONArray()); in getImsiPseudonymSuccess() 117 .thenReturn(new JSONArray()); in getImsiPseudonymSuccess() 140 when(mRequestFactory.createAuthRequest()).thenReturn(new JSONArray()); in getImsiPseudonymFail() 156 JSONArray bodyArray = (new JSONArray()).put(body); in getAuthHttpResponse() 164 JSONArray bodyArray = (new JSONArray()).put(body); in getAuthFailedHttpResponse() 174 JSONArray bodyArray = (new JSONArray()).put(body); in getGetImsiPseudonymHttpResponse()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/customaudience/ |
D | CustomAudienceHelper.java | 38 import org.json.JSONArray; 141 JSONArray keys = new JSONArray(); in getJsonFromTrustedBiddingData() 146 private static JSONArray getJsonArrayFromAdsList(@Nullable List<DBAdData> ads) in getJsonArrayFromAdsList() 148 JSONArray array = new JSONArray(); in getJsonArrayFromAdsList() 223 private static ImmutableList<DBAdData> getAdsFromJsonArray(JSONArray jsonArray) in getAdsFromJsonArray() 251 private static ImmutableList<String> getStringsFromJsonArray(JSONArray jsonArray) in getStringsFromJsonArray() 260 private static JSONArray getJsonArrayFromIntegerSet(Set<Integer> integerSet) { in getJsonArrayFromIntegerSet() 261 JSONArray jsonArray = new JSONArray(); in getJsonArrayFromIntegerSet() 268 private static ImmutableSet<Integer> getIntegersFromJsonArray(@NonNull JSONArray jsonArray) in getIntegersFromJsonArray()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/reporting/ |
D | DebugReportingJobHandlerTest.java | 52 import org.json.JSONArray; 115 JSONArray debugReportPayload = new JSONArray(); in testSendDebugReportForSuccess() 141 JSONArray debugReportPayload = new JSONArray(); in testSendDebugReportForFailure() 168 JSONArray debugReportPayload1 = new JSONArray(); in testPerformScheduledReportsForMultipleReports() 171 JSONArray debugReportPayload2 = new JSONArray(); in testPerformScheduledReportsForMultipleReports() 198 JSONArray debugReportPayload1 = new JSONArray(); in testPerformScheduledReports_ThreadInterrupted() 201 JSONArray debugReportPayload2 = new JSONArray(); in testPerformScheduledReports_ThreadInterrupted() 232 JSONArray debugReportPayload1 = new JSONArray(); in testPerformScheduledReports_LogZeroRetryCount() 270 JSONArray debugReportPayload1 = new JSONArray(); in testPerformScheduledReports_LogReportNotFound() 308 doReturn(new JSONArray(Collections.singletonList(debugReport.toPayloadJson()))) in performReport_throwsIOException_logsReportingStatus() [all …]
|
D | EventReportPayloadTest.java | 28 import org.json.JSONArray; 151 assertTrue(triggerDebugKeysObj instanceof JSONArray); in toJson_success() 153 ((JSONArray) triggerDebugKeysObj).getString(0)); in toJson_success() 155 ((JSONArray) triggerDebugKeysObj).getString(1)); in toJson_success() 157 assertTrue(eventPayloadReportJson.get("trigger_summary_bucket") instanceof JSONArray); in toJson_success() local 158 JSONArray triggerSummaryBucket = in toJson_success() 176 assertTrue(obj instanceof JSONArray); in toJson_multipleAttributionDestinations_setsDestinationsAsOrderedJSONArray() 177 assertEquals(DESTINATION_1.toString(), ((JSONArray) obj).getString(0)); in toJson_multipleAttributionDestinations_setsDestinationsAsOrderedJSONArray() 178 assertEquals(DESTINATION_2.toString(), ((JSONArray) obj).getString(1)); in toJson_multipleAttributionDestinations_setsDestinationsAsOrderedJSONArray() 263 assertTrue(triggerDebugKeysObj instanceof JSONArray); in testEventPayloadJsonSerializationWithMultipleTriggerDebugKeys() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/signals/updateprocessors/remove/ |
D | RemoveV0Test.java | 35 import org.json.JSONArray; 52 JSONArray updatesJson = new JSONArray(); in testRemoveSingleNotPresent() 64 JSONArray updatesJson = new JSONArray(); in testRemoveSinglePresent() 80 JSONArray updatesJson = new JSONArray(); in testRemoveMultiplePresent()
|