Home
last modified time | relevance | path

Searched defs:jsonObject (Results 1 – 25 of 75) sorted by relevance

123

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/phr/validations/
DFhirPrimitiveTypeValidatorTest.java98 JSONObject jsonObject = in testValidate_r4BooleanValid_true_succeeds() local
108 JSONObject jsonObject = in testValidate_r4BooleanValid_false_succeeds() local
118 JSONObject jsonObject = in testValidate_r4BooleanInvalid_asString_throws() local
139 JSONObject jsonObject = in testValidate_r4BooleanInvalid_objectIsJsonNull_throws() local
161 JSONObject jsonObject = in testValidate_r4CanonicalValid_succeeds() local
174 JSONObject jsonObject = in testValidate_r4CanonicalInvalid_containWhiteSpace_throws() local
192 JSONObject jsonObject = in testValidate_r4CanonicalInvalid_objectIsJsonNull_throws() local
214 JSONObject jsonObject = in testValidate_r4CodeValid_singleWord_succeeds() local
224 JSONObject jsonObject = in testValidate_r4CodeValid_multiWords_succeeds() local
234 JSONObject jsonObject = in testValidate_r4CodeInvalid_emptyString_throws() local
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/attributionreporting/
DAttributionReportingHelperTest.java56 JSONObject jsonObject = AttributionReportingHelper.sourceToJson(source, SCHEMA_PARTIAL); in testSourceToJson_partialSchemaHappyPath() local
104 JSONObject jsonObject = AttributionReportingHelper.sourceToJson(source, SCHEMA_FULL); in testSourceToJson_fullSchemaHappyPath() local
182 JSONObject jsonObject = AttributionReportingHelper.triggerToJson(trigger, SCHEMA_PARTIAL); in testTriggerToJson_happyPath() local
233 JSONObject jsonObject = AttributionReportingHelper.triggerToJson(trigger, SCHEMA_FULL); in testTriggerToJson_fullSchemaHappyPath() local
289 JSONObject jsonObject = in testEventReportToJson_happyPath() local
326 JSONObject jsonObject = in testEventReportToJson_fullSchemaHappyPath() local
374 JSONObject jsonObject = in testAggregatableReportToJson_happyPath() local
418 JSONObject jsonObject = in testAggregatableReportToJson_fullSchemaHappyPath() local
488 JSONObject jsonObject = AttributionReportingHelper.debugReportToJson(debugReport, ""); in testDebugReportToJson_happyPath() local
517 JSONObject jsonObject = in testDebugReportToJson_fullSchemaHappyPath() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelperTest.java58 JSONObject jsonObject = in testCustomAudienceFromJson_happyPath() local
112 JSONObject jsonObject = in testCustomAudienceBackgroundFetchDataFromJson_happyPath() local
165 JSONObject jsonObject = in testGetBackgroundFetchDataFromJson_withoutDailyUpdate_throwsIllegalStateException() local
184 JSONObject jsonObject = in testToAndFromJson_happyPath_success() local
205 JSONObject jsonObject = in testToJson_withNullTrustedBiddingData_fieldNotPresent() local
221 JSONObject jsonObject = in testToJson_withNullUserBiddingSignals_fieldNotPresent() local
236 JSONObject jsonObject = in testToJson_withNullAds_arrayIsEmpty() local
271 JSONObject jsonObject = in testToJson_withEligibleForOnDeviceAuctions_correctOutput() local
287 JSONObject jsonObject = in testToJson_withEligibleForServerAuctions_correctOutput() local
302 JSONObject jsonObject = in testToJson_withEligibleForNoAuctions_correctOutput() local
[all …]
DCustomAudienceViewCommandTest.java129 JSONObject jsonObject = new JSONObject(actualResult.mOut); in testRun_eligibleForOnDeviceAuction_correctValueIsTrue() local
159 JSONObject jsonObject = new JSONObject(actualResult.mOut); in testRun_ineligibleForOnDeviceAuction_correctValueIsFalse() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DEncryptionKeyConverterUtilTest.java83 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_encryption_successVersion3() local
109 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_incorrectVersion() local
121 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_incorrectKeyType() local
133 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_incorrectProtocolType() local
145 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_incorrectKeyIdFormat() local
157 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_incorrectExpirationFormat() local
169 JSONObject jsonObject = new JSONObject(SIGNING_V3_DEFAULT_VALUES); in createEncryptionKeyFromJson_missingFields() local
/packages/modules/Wifi/service/java/com/android/server/wifi/
DHalDeviceManagerUtil.java61 JSONObject jsonObject = new JSONObject(); in staticChipInfoToJson() local
71 static StaticChipInfo jsonToStaticChipInfo(JSONObject jsonObject) throws JSONException { in jsonToStaticChipInfo()
86 JSONObject jsonObject = new JSONObject(); in chipModeToJson() local
96 private static WifiChip.ChipMode jsonToChipMode(JSONObject jsonObject) throws JSONException { in jsonToChipMode()
111 JSONObject jsonObject = new JSONObject(); in chipConcurrencyCombinationToJson() local
121 JSONObject jsonObject) throws JSONException { in jsonToChipConcurrencyCombination()
136 JSONObject jsonObject = new JSONObject(); in chipConcurrencyCombinationLimitToJson() local
143 JSONObject jsonObject) throws JSONException { in jsonToChipConcurrencyCombinationLimit()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DJsonUtilsTest.java40 JSONObject jsonObject = new JSONObject().put(KEY, VALID_VALUE); in testGetStringFromJsonSuccess() local
55 JSONObject jsonObject = new JSONObject().put(KEY, VALID_VALUE); in testGetStringFromJsonThrowsJSONExceptionWhenKeyDoesNotExist() local
65 JSONObject jsonObject = new JSONObject().put(KEY, 1); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsNotString() local
86 JSONObject jsonObject = new JSONObject().put(KEY, 1); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsNotStringCustomError() local
99 JSONObject jsonObject = new JSONObject().put(KEY, innerObject); in testGetStringFromJsonThrowsJSONExceptionWhenValueIsJSONObject() local
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/
DRequestFactoryTest.java89 JSONObject jsonObject = authRequest.getJSONObject(0); in createAuthRequestSuccess() local
108 JSONObject jsonObject = authRequest.getJSONObject(0); in createAuthRequestFailureWrongSimOperator() local
125 JSONObject jsonObject = authRequest.getJSONObject(0); in createAuthRequestFailureNullImsi() local
153 JSONObject jsonObject = getImsiPseudonymRequest.getJSONObject(0); in createGetImsiPseudonymRequestSuccess() local
176 JSONObject jsonObject = getImsiPseudonymRequest.getJSONObject(0); in createGetImsiPseudonymRequestWithEmptyData() local
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/attributionreporting/
DAttributionReportingHelper.java69 JSONObject jsonObject = in sourceToJson() local
120 JSONObject jsonObject = in triggerToJson() local
163 JSONObject jsonObject = in eventReportToJson() local
194 JSONObject jsonObject = in aggregatableReportToJson() local
244 JSONObject jsonObject = in debugReportToJson() local
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/shell/customaudience/
DCustomAudienceHelper.java138 JSONObject jsonObject = in getJsonFromTrustedBiddingData() local
159 JSONObject jsonObject = in getJsonFromAd() local
173 static DBCustomAudience getCustomAudienceFromJson(@NonNull JSONObject jsonObject) in getCustomAudienceFromJson()
195 static DBCustomAudienceBackgroundFetchData getCustomAudienceBackgroundFetchDataFromJson( in getCustomAudienceBackgroundFetchDataFromJson()
215 private static DBTrustedBiddingData getTrustedBiddingDataFromJson(JSONObject jsonObject) in getTrustedBiddingDataFromJson()
232 private static DBAdData getAdFromJson(JSONObject jsonObject) throws JSONException { in getAdFromJson()
/packages/modules/Wifi/tests/hostsidetests/multidevices/com.google.snippet.wifi/aware/
DWifiAwareJsonDeserializer.java108 public static SubscribeConfig jsonToSubscribeConfig(JSONObject jsonObject) in jsonToSubscribeConfig()
182 private static AwarePairingConfig jsonToAwarePairingConfig(JSONObject jsonObject) in jsonToAwarePairingConfig()
214 public static PublishConfig jsonToPublishConfig(JSONObject jsonObject) throws JSONException { in jsonToPublishConfig()
278 public static NetworkRequest jsonToNetworkRequest(JSONObject jsonObject) throws JSONException { in jsonToNetworkRequest()
319 JSONObject jsonObject, WifiAwareNetworkSpecifier.Builder builder in jsonToNetworkSpecifier()
355 private static WifiAwareDataPathSecurityConfig jsonToDataPathSSecurityConfig( in jsonToDataPathSSecurityConfig()
384 public static RangingRequest jsonToRangingRequest( in jsonToRangingRequest()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/rawfhir/
DRawFhirFormatter.kt36 val jsonObject = JSONObject(fhirString) in <lambda>() constant
48 val jsonObject = JSONObject(fhirString) in <lambda>() constant
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DCustomAudienceShellCommandHelper.java61 static CustomAudience fromJson(@NonNull JSONObject jsonObject) throws JSONException { in fromJson()
84 private static TrustedBiddingData getTrustedBiddingDataFromJson(JSONObject jsonObject) in getTrustedBiddingDataFromJson()
110 private static AdData getAdFromJson(JSONObject jsonObject) throws JSONException { in getAdFromJson()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DJsonUtils.java38 public static String getStringFromJson(@NonNull JSONObject jsonObject, @NonNull String key) in getStringFromJson()
70 public static String getStringFromJson( in getStringFromJson()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/download/
DEncryptionKeyConverterUtil.java57 static Optional<EncryptionKey> createEncryptionKeyFromJson(JSONObject jsonObject) { in createEncryptionKeyFromJson()
81 private static Optional<EncryptionKey> convertVersion3Key(JSONObject jsonObject) { in convertVersion3Key()
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/
DFilterMapTest.java99 JSONObject jsonObject = expected.serializeAsJson(mMockFlags); in serializeAsJson_success() local
113 JSONObject jsonObject = expected.serializeAsJson(mMockFlags); in serializeAsJson_lookbackWindowFilterEnabled_success() local
125 JSONObject jsonObject = new JSONObject(); in buildFilterDataV2_lookbackWindowExceedsMaxValue_success() local
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/customaudience/
DCustomAudienceBlobTest.java217 JSONObject jsonObject = in testOverrideFromJSONObject_validValuesWithAuctionServerRequestFlagsEnabled() local
271 JSONObject jsonObject = in testOverrideFromJSONObject_invalidValuesWithAuctionServerRequestFlagsEnabled() local
327 JSONObject jsonObject = in testOverrideFromJSONObject_UnexpectedValuesWithAuctionServerRequestFlagsEnabled() local
543 JSONObject jsonObject = in testOverrideFromJSONObject_UnexpectedValuesWithSellerConfigurationFlagEnabled() local
598 JSONObject jsonObject = in testPriorityValue_overrideSuccess() local
638 JSONObject jsonObject = in testOverrideFromJSONObjectWithComponentAdsComponentAdsEnabled() local
681 JSONObject jsonObject = in testOverrideFromJSONObjectWithComponentAdsComponentAdsEnabledNoComponentAdsInResponse() local
717 JSONObject jsonObject = in testOverrideFromJSONObjectWithComponentAdsComponentAdsDisabled() local
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/
DFilterMap.java202 public Builder buildFilterData(JSONObject jsonObject, Flags flags) throws JSONException { in buildFilterData()
214 public Builder buildFilterData(JSONObject jsonObject) throws JSONException { in buildFilterData()
231 public Builder buildFilterDataV2(JSONObject jsonObject) throws JSONException { in buildFilterDataV2()
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DThemedWallpaperColorResources.kt60 val jsonObject = JSONObject(overlayPackageJson) in fetchThemeStyleFromSetting() constant
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateHistogramContribution.java63 JSONObject jsonObject = new JSONObject(); in toJSONObject() local
130 public AggregateHistogramContribution fromJsonObject(JSONObject jsonObject) in fromJsonObject()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java48 WearHistory(@NonNull JSONObject jsonObject) throws JSONException { in WearHistory()
66 JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath()))); in fromJson() local
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/
DEnrollmentData.java60 JSONObject jsonObject = new JSONObject(); in serialize() local
88 JSONObject jsonObject; in deserialize() local
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/phr/validations/
DFhirObjectTypeValidator.java321 JSONObject jsonObject = in validateFhirObjectStructureAndGetNestedObjects() local
378 JSONObject jsonObject = (JSONObject) fieldObject; in validateObjectIsNonEmptyJSONObject() local
437 String objectPath, int nestingLevel, R4FhirType r4FhirType, JSONObject jsonObject) { in FhirComplexTypeJsonObject()
/packages/modules/Nfc/NfcNci/testutils/src/com/android/nfc/utils/
DPollingFrameConverter.java44 public Object deserialize(JSONObject jsonObject, Type type) throws JSONException { in deserialize()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataOptionalConversionStrategy.java36 void toJson(DBAdData adData, JSONObject jsonObject) throws JSONException; in toJson()

123