Home
last modified time | relevance | path

Searched defs:fromJson (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/aosp_15_r20/external/moshi/moshi/src/test/java/com/squareup/moshi/
H A DClassJsonAdapterTest.java48 BasicPizza fromJson = fromJson(BasicPizza.class, "{\"diameter\":13,\"extraCheese\":true}"); in basicClassAdapter() local
64 PrivateFieldsPizza fromJson = in privateFields() local
85 DessertPizza fromJson = fromJson(DessertPizza.class, "{\"diameter\":13,\"chocolate\":true}"); in typeHierarchy() local
112 ExtendsBaseAbcde fromJson = in fieldsAreAlphabeticalAcrossFlattenedHierarchy() local
133 StaticFields fromJson = fromJson(StaticFields.class, "{\"a\":13,\"b\":12}"); in staticFieldsOmitted() local
151 TransientFields fromJson = fromJson(TransientFields.class, "{\"a\":13,\"b\":12}"); in transientFieldsOmitted() local
171 IgnoredFields fromJson = fromJson(IgnoredFields.class, "{\"a\":13,\"b\":12}"); in ignoredFieldsOmitted() local
237 ExtendsTransientBaseA fromJson = fromJson(ExtendsTransientBaseA.class, "{\"a\":11}"); in fieldNameCollisionWithTransientFieldIsOkay() local
253 NoArgConstructor fromJson = fromJson(NoArgConstructor.class, "{\"b\":8}"); in noArgConstructor() local
297 NoArgConstructorWithDefaultField fromJson = in noArgConstructorFieldDefaultsHonored() local
[all …]
H A DMapJsonAdapterTest.java45 Map<String, Boolean> fromJson = in map() local
74 Map<String, Boolean> fromJson = fromJson(String.class, Boolean.class, "{}"); in emptyMap() local
126 Map<String, Integer> fromJson = in orderIsRetained() local
155 Map<Integer, Boolean> fromJson = in mapWithNonStringKeys() local
269 private <K, V> Map<K, V> fromJson(Type keyType, Type valueType, String json) throws IOException { in fromJson() method in MapJsonAdapterTest
H A DCircularAdaptersTest.java64 Team fromJson = in circularAdapters() local
131 public Node fromJson(JsonReader reader) throws IOException { in create() method in CircularAdaptersTest.PrefixingNodeFactory
H A DKotlinExtensionsTest.kt64 override fun fromJson(reader: JsonReader): Int { in addAdapterInferred() method
84 override fun fromJson(reader: JsonReader): List<Int> { in addAdapterInferred_parameterized() method
/aosp_15_r20/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
H A DClockSettings.kt45 fun fromJson(json: JSONObject): ClockSettings { in fromJson() method
84 fun fromJson(jsonObj: JSONObject): ClockFontAxisSetting { in fromJson() method
91 fun fromJson(jsonArray: JSONArray): List<ClockFontAxisSetting> { in fromJson() method
/aosp_15_r20/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DAdDataConversionStrategyFactory.java153 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson() method in AdDataConversionStrategyFactory.AppInstallConversionImpl
174 public void fromJson(JSONObject json, AdFilters.Builder builder) throws JSONException { in fromJson() method in AdDataConversionStrategyFactory.AppInstallConversionNoOp
217 public void fromJson(@NonNull JSONObject json, @NonNull DBAdData.Builder adDataBuilder) in fromJson() method in AdDataConversionStrategyFactory.FilteringEnabledConversionStrategy
259 public void fromJson(@NonNull JSONObject json, @NonNull DBAdData.Builder adDataBuilder) in fromJson() method in AdDataConversionStrategyFactory.AdRenderIdEnabledConversionStrategy
299 public DBAdData.Builder fromJson(JSONObject json) throws JSONException { in fromJson() method in AdDataConversionStrategyFactory.BaseConversionStrategy
341 public DBAdData.Builder fromJson(JSONObject json) throws JSONException { in fromJson() method in AdDataConversionStrategyFactory.CompositeConversionStrategy
/aosp_15_r20/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
H A DPersistence.java102 public static TestCase fromJson(JSONObject object, in fromJson() method in Persistence.TestCase
217 public static Setup fromJson(JSONObject object, in fromJson() method in Persistence.Setup
273 static GenerationIntent fromJson(JSONObject object, Map<String, IntentFlag> table) in fromJson() method
341 public static LaunchIntent fromJson(JSONObject fakeIntent, Map<String, IntentFlag> table) in fromJson() method in Persistence.LaunchIntent
428 public static LaunchFromIntent fromJson(JSONObject object, Map<String, IntentFlag> table) in fromJson() method in Persistence.LaunchFromIntent
605 static StateDump fromJson(JSONObject object) throws JSONException { in fromJson() method in StateDump
703 static TaskState fromJson(JSONObject object) throws JSONException { in fromJson() method in TaskState
754 static ActivityState fromJson(JSONObject object) throws JSONException { in fromJson() method in ActivityState
/aosp_15_r20/external/moshi/moshi/src/main/java/com/squareup/moshi/
H A DJsonAdapter.java48 public abstract @Nullable T fromJson(JsonReader reader) throws IOException; in fromJson() method in JsonAdapter
57 public final @Nullable T fromJson(BufferedSource source) throws IOException { in fromJson() method in JsonAdapter
68 public final @Nullable T fromJson(String string) throws IOException { in fromJson() method in JsonAdapter
H A DStandardJsonAdapters.java287 public T fromJson(JsonReader reader) throws IOException { in fromJson() method in StandardJsonAdapters.EnumJsonAdapter
340 public Object fromJson(JsonReader reader) throws IOException { in fromJson() method in StandardJsonAdapters.ObjectJsonAdapter
/aosp_15_r20/external/aws-sdk-java-v2/services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/internal/serialization/
H A DResumableFileDownloadSerializer.java105 public static ResumableFileDownload fromJson(String bytes) { in fromJson() method in ResumableFileDownloadSerializer
111 public static ResumableFileDownload fromJson(byte[] bytes) { in fromJson() method in ResumableFileDownloadSerializer
117 public static ResumableFileDownload fromJson(InputStream bytes) { in fromJson() method in ResumableFileDownloadSerializer
H A DResumableFileUploadSerializer.java130 public static ResumableFileUpload fromJson(String bytes) { in fromJson() method in ResumableFileUploadSerializer
136 public static ResumableFileUpload fromJson(byte[] string) { in fromJson() method in ResumableFileUploadSerializer
142 public static ResumableFileUpload fromJson(InputStream inputStream) { in fromJson() method in ResumableFileUploadSerializer
/aosp_15_r20/external/moshi/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/
H A DDualKotlinTest.kt90 fun fromJson(string: String): String? = null in nonNullPropertySetToNullFromAdapterFailsWithJsonDataException() method
128 fun fromJson(string: String): String? = null in nonNullPropertyWithJsonNameSetToNullFromAdapterFailsWithJsonDataException() method
166 fun fromJson(string: String): String? = null in nonNullConstructorParameterCalledWithNullFromAdapterFailsWithJsonDataException() method
195 fun fromJson(@Nullable string: String?): String { in delegatesToInstalledAdaptersBeforeNullChecking() method
/aosp_15_r20/external/moshi/kotlin/tests/codegen-only/src/test/kotlin/com/squareup/moshi/kotlin/codegen/
H A DGeneratedAdaptersTest.kt1030 val fromJson = jsonAdapter.fromJson("""{"a":3,"b":4}""")!! in <lambda>() constant
1056 val fromJson = jsonAdapter.fromJson("""[3,4]""")!! in <lambda>() constant
1065 @FromJson fun fromJson(v: List<Int>): CustomFromJsonOnly { in <lambda>() method in CustomFromJsonOnlyAdapter
1078 val fromJson = jsonAdapter.fromJson("""{"a":3,"b":4}""")!! in <lambda>() constant
1107 val fromJson = jsonAdapter.fromJson("""{"a":"3","b":null}""")!! in <lambda>() constant
1117 @FromJson fun fromJson(jsonReader: JsonReader): Nothing? { in <lambda>() method in NothingAdapter
1199 fun fromJson(s: String): String { in <lambda>() method in UppercaseJsonAdapter
1213 override fun fromJson(reader: JsonReader): Boolean? { in <lambda>() method
/aosp_15_r20/external/moshi/kotlin/tests/codegen-only/src/test/kotlin/com/squareup/moshi/kotlin/codegen/annotation/
H A DUppercaseInAnnotationPackage.kt33 fun fromJson(s: String): String { in fromJson() method
/aosp_15_r20/platform_testing/libraries/motion/src/platform/test/motion/golden/
H A DDataPointType.kt40 fun fromJson(jsonValue: Any): DataPoint<T> { in fromJson() method
H A DJsonGoldenSerializer.kt42 fun fromJson(jsonObject: JSONObject, typeRegistry: Map<String, DataPointType<*>>): TimeSeries { in fromJson() method
/aosp_15_r20/external/moshi/examples/src/main/java/com/squareup/moshi/recipes/
H A DMultipleFormats.java59 Card fromJson( in fromJson() method in MultipleFormats.MultipleFormatsCardAdapter
81 Card fromJson(String card) { in fromJson() method in MultipleFormats.CardStringAdapter
/aosp_15_r20/out/soong/.intermediates/frameworks/base/packages/SystemUI/plugin/SystemUIPluginLib/android_common/kapt/gen/stubs/com/android/systemui/plugins/clocks/
DClockFontAxisSetting.java103 …public final com.android.systemui.plugins.clocks.ClockFontAxisSetting fromJson(@org.jetbrains.anno… in fromJson() method in ClockFontAxisSetting.Companion
109 …ava.util.List<com.android.systemui.plugins.clocks.ClockFontAxisSetting> fromJson(@org.jetbrains.an… in fromJson() method in ClockFontAxisSetting.Companion
/aosp_15_r20/tools/tradefederation/core/src/com/android/tradefed/cluster/
DTestResource.java42 static TestResourceParameters fromJson(JSONObject json) { in fromJson() method in TestResource.TestResourceParameters
141 public static TestResource fromJson(JSONObject json) { in fromJson() method in TestResource
/aosp_15_r20/packages/apps/DeviceDiagnostics/DeviceDiagnosticsLib/src/main/java/com/android/devicediagnostics/bluetooth/
DBluetoothHelpers.kt79 fun fromJson(json: String): BluetoothConnectionData { in fromJson() method
/aosp_15_r20/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/
H A DCaseInsensitiveDeserTest.java64 public static Obj1854 fromJson(@JsonProperty("ID") int id, in fromJson() method in CaseInsensitiveDeserTest.Obj1854
88 public static ChildObj1854 fromJson(@JsonProperty("ChildID") String cid) { in fromJson() method in CaseInsensitiveDeserTest.ChildObj1854
/aosp_15_r20/external/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/
H A DServiceAccountJwtAccessCredentials.java143 static ServiceAccountJwtAccessCredentials fromJson(Map<String, Object> json) throws IOException { in fromJson() method in ServiceAccountJwtAccessCredentials
156 static ServiceAccountJwtAccessCredentials fromJson(Map<String, Object> json, URI defaultAudience) in fromJson() method in ServiceAccountJwtAccessCredentials
H A DGdchCredentials.java108 static GdchCredentials fromJson(Map<String, Object> json) throws IOException { in fromJson() method in GdchCredentials
123 static GdchCredentials fromJson(Map<String, Object> json, HttpTransportFactory transportFactory) in fromJson() method in GdchCredentials
/aosp_15_r20/out/soong/.intermediates/external/gson/gson/android_common_apex10000/turbine/
Dgson.jarcom/google/gson/ExclusionStrategy.class <Unknown> package com.google.gson public ...
/aosp_15_r20/out/soong/.intermediates/external/gson/gson/android_common/turbine/
Dgson.jarcom/google/gson/ExclusionStrategy.class <Unknown> package com.google.gson public ...

12345678910>>...12