Home
last modified time | relevance | path

Searched refs:ObjectReader (Results 1 – 25 of 66) sorted by relevance

123

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DObjectReader.java42 public class ObjectReader class
169 protected ObjectReader(ObjectMapper mapper, DeserializationConfig config) { in ObjectReader() method in ObjectReader
177 protected ObjectReader(ObjectMapper mapper, DeserializationConfig config, in ObjectReader() method in ObjectReader
199 protected ObjectReader(ObjectReader base, DeserializationConfig config, in ObjectReader() method in ObjectReader
223 protected ObjectReader(ObjectReader base, DeserializationConfig config) in ObjectReader() method in ObjectReader
241 protected ObjectReader(ObjectReader base, JsonFactory f) in ObjectReader() method in ObjectReader
261 protected ObjectReader(ObjectReader base, TokenFilter filter) { in ObjectReader() method in ObjectReader
298 protected ObjectReader _new(ObjectReader base, JsonFactory f) { in _new()
299 return new ObjectReader(base, f); in _new()
307 protected ObjectReader _new(ObjectReader base, DeserializationConfig config) { in _new()
[all …]
DObjectMapper.java718 protected ObjectReader _newReader(DeserializationConfig config) { in _newReader()
719 return new ObjectReader(this, config); in _newReader()
728 protected ObjectReader _newReader(DeserializationConfig config, in _newReader()
731 return new ObjectReader(this, config, valueType, valueToUpdate, schema, injectableValues); in _newReader()
3939 public ObjectReader reader() {
3950 public ObjectReader reader(DeserializationFeature feature) {
3961 public ObjectReader reader(DeserializationFeature first,
3976 public ObjectReader readerForUpdating(Object valueToUpdate) {
3988 public ObjectReader readerFor(JavaType type) {
3999 public ObjectReader readerFor(Class<?> type) {
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDataFormatReaders.java34 protected final ObjectReader[] _readers;
64 public DataFormatReaders(ObjectReader... detectors) { in DataFormatReaders()
69 public DataFormatReaders(Collection<ObjectReader> detectors) { in DataFormatReaders()
70 this(detectors.toArray(new ObjectReader[detectors.size()])); in DataFormatReaders()
73 private DataFormatReaders(ObjectReader[] detectors, in DataFormatReaders()
103 public DataFormatReaders with(ObjectReader[] readers) { in with()
124 ObjectReader[] r = new ObjectReader[len]; in with()
134 ObjectReader[] r = new ObjectReader[len]; in withType()
217 ObjectReader bestMatch = null; in _findFormat()
219 for (ObjectReader f : _readers) { in _findFormat()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dobject_reader.cc35 absl::Status ObjectReader::ReadNonConstantTensor( in ReadNonConstantTensor()
104 absl::Status ObjectReader::ReadValue(uint32_t idx, Value** value) { in ReadValue()
112 absl::Status ObjectReader::ReadValueByTensorIdx(uint32_t tensor_idx, in ReadValueByTensorIdx()
120 int ObjectReader::GetNumberOfRuntimeInputs() const { in GetNumberOfRuntimeInputs()
124 absl::Status ObjectReader::GetTensorDims(uint32_t idx, in GetTensorDims()
138 absl::Status ObjectReader::AddOutput(const Node* node, int id) { in AddOutput()
151 absl::Status ObjectReader::AddOutputs(const Node* node) { in AddOutputs()
158 absl::Status ObjectReader::AddInput(const Node* node, uint32_t idx) { in AddInput()
164 absl::Status ObjectReader::AddUpdate(const Node* node, uint32_t idx) { in AddUpdate()
211 TfLiteTensor* ObjectReader::GetInputTensor(int index) const { in GetInputTensor()
[all …]
Dmodel_builder.cc61 ObjectReader* reader, in GetFullyConnectedAttributes()
117 absl::Status ParseInputsWithConstTensor(Node* node, ObjectReader* reader, in ParseInputsWithConstTensor()
189 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
217 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
246 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
376 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
472 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
549 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
612 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
783 GraphFloat32* graph, ObjectReader* reader) final { in Parse()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/
DObjectReaderTest.java101 ObjectReader r = MAPPER.reader().with(nodes); in testNodeHandling()
118 ObjectReader reader = MAPPER.readerFor(int[].class) in testParserFeaturesComments()
173 ObjectReader r = MAPPER.reader(); in testFeatureSettings()
196 ObjectReader r2 = r.with(StreamReadFeature.IGNORE_UNDEFINED); in testFeatureSettings()
198 ObjectReader r3 = r2.without(StreamReadFeature.IGNORE_UNDEFINED); in testFeatureSettings()
204 final ObjectReader r = MAPPER.reader(); in testFeatureSettingsDeprecated()
214 ObjectReader r2 = r.withFeatures(JsonParser.Feature.IGNORE_UNDEFINED, in testFeatureSettingsDeprecated()
219 ObjectReader r3 = r2.withoutFeatures(JsonParser.Feature.IGNORE_UNDEFINED, in testFeatureSettingsDeprecated()
227 ObjectReader r = MAPPER.reader(); in testMiscSettings()
244 ObjectReader newR = r.forType(MAPPER.constructType(String.class)); in testMiscSettings()
[all …]
DTestJDKSerialization.java108 ObjectReader r = jdkDeserialize(bytes); in testEnumHandlers()
141 ObjectReader origReader = MAPPER.readerFor(MyPojo.class); in testObjectReader()
145 ObjectReader anyReader = MAPPER.readerFor(AnyBean.class); in testObjectReader()
150 ObjectReader reader2 = jdkDeserialize(readerBytes); in testObjectReader()
154 ObjectReader anyReader2 = jdkDeserialize(jdkSerialize(anyReader)); in testObjectReader()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/validate/
DFullStreamReadTest.java11 import com.fasterxml.jackson.databind.ObjectReader;
106 ObjectReader strictWithComments = strict.reader() in testMapperFailOnTrailing()
157 ObjectReader strictWithComments = strict.reader() in testMapperFailOnTrailingWithNull()
170 ObjectReader R = MAPPER.reader(); in testReaderAcceptTrailing()
176 ObjectReader rColl = R.forType(List.class); in testReaderAcceptTrailing()
184 ObjectReader strictR = MAPPER.reader().with(DeserializationFeature.FAIL_ON_TRAILING_TOKENS); in testReaderFailOnTrailing()
185 ObjectReader strictRForList = strictR.forType(List.class); in testReaderFailOnTrailing()
234 ObjectReader strictRWithComments = strictR.with(JsonReadFeature.ALLOW_JAVA_COMMENTS); in testReaderFailOnTrailing()
242 ObjectReader strictR = MAPPER.reader().with(DeserializationFeature.FAIL_ON_TRAILING_TOKENS); in testReaderFailOnTrailingWithNull()
243 ObjectReader strictRForList = strictR.forType(List.class); in testReaderFailOnTrailingWithNull()
[all …]
/external/jackson-databind/src/test/java/perf/
DObjectReaderTestBase.java72 final ObjectReader jsonReader = mapper1.reader() in doTest()
74 final ObjectReader arrayReader = mapper2.reader() in doTest()
113 final ObjectReader jsonReader = mapper1.reader() in doTest()
116 final ObjectReader arrayReader = mapper2.reader() in doTest()
185 protected double testDeser1(int reps, byte[] input, ObjectReader reader) throws Exception { in testDeser1()
188 protected double testDeser2(int reps, byte[] input, ObjectReader reader) throws Exception { in testDeser2()
192 protected final double _testDeser(int reps, byte[] input, ObjectReader reader) throws Exception in _testDeser()
204 protected double testDeser1(int reps, String input, ObjectReader reader) throws Exception { in testDeser1()
208 protected double testDeser2(int reps, String input, ObjectReader reader) throws Exception { in testDeser2()
212 protected final double _testDeser(int reps, String input, ObjectReader reader) throws Exception in _testDeser()
DManualReadPerfUntypedStream.java43 protected double testDeser1(int reps, byte[] input, ObjectReader reader) throws IOException { in testDeser1()
48 protected double testDeser2(int reps, byte[] input, ObjectReader reader) throws IOException { in testDeser2()
52 …protected final double _testRawDeser(int reps, byte[] json, ObjectReader reader) throws IOException in _testRawDeser()
DManualReadPerfUntypedReader.java43 protected double testDeser1(int reps, String input, ObjectReader reader) throws IOException { in testDeser1()
48 protected double testDeser2(int reps, String input, ObjectReader reader) throws IOException { in testDeser2()
52 …protected final double _testRawDeser(int reps, String json, ObjectReader reader) throws IOException in _testRawDeser()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DEnumAltIdTest.java14 import com.fasterxml.jackson.databind.ObjectReader;
82 protected final ObjectReader READER_DEFAULT = MAPPER.reader();
83 protected final ObjectReader READER_IGNORE_CASE = MAPPER_IGNORE_CASE.reader();
98 ObjectReader r = READER_DEFAULT.forType(LowerCaseEnum.class) in testFailWhenCaseSensitiveAndToStringIsUpperCase()
115 ObjectReader r = MAPPER_IGNORE_CASE.readerFor(LowerCaseEnum.class) in testEnumDesIgnoringCaseWithUpperCaseToString()
136 ObjectReader r = READER_IGNORE_CASE.forType(new TypeReference<EnumSet<TestEnum>>() { }); in testIgnoreCaseInEnumSet()
176 ObjectReader reader = MAPPER.readerFor(MyEnum2352_1.class); in testEnumWithAlias()
189 ObjectReader reader = MAPPER.readerFor(MyEnum2352_2.class) in testEnumWithAliasAndToStringSupported()
203 ObjectReader reader = MAPPER.readerFor(MyEnum2352_3.class) in testEnumWithAliasAndDefaultForUnknownValueEnabled()
DEnumDefaultReadTest.java65 final ObjectReader r = MAPPER.reader(); in testWithoutCustomFeatures()
98 ObjectReader r = MAPPER.reader() in testWithFailOnNumbers()
132 ObjectReader r = MAPPER.reader() in testWithReadUnknownAsDefault()
167 ObjectReader r = MAPPER.reader() in testWithFailOnNumbersAndReadUnknownAsDefault()
210 private <T> void _verifyOkDeserialization(ObjectReader reader, String fromValue, in _verifyOkDeserialization()
217 private <T> void _verifyFailingDeserialization(final ObjectReader reader, in _verifyFailingDeserialization()
DEnumAliasDeser2352Test.java51 ObjectReader reader = MAPPER.readerFor(MyEnum2352_1.class); in testEnumWithAlias()
64 ObjectReader reader = MAPPER.readerFor(MyEnum2352_2.class) in testEnumWithAliasAndToStringSupported()
78 ObjectReader reader = MAPPER.readerFor(MyEnum2352_3.class) in testEnumWithAliasAndDefaultForUnknownValueEnabled()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DTestPropertyCreatorSubtypesExternalPropertyMissingProperty.java125 private final ObjectReader BOX_READER_PASS;
126 private final ObjectReader BOX_READER_FAIL;
184 private void checkOrangeBox(ObjectReader reader) throws Exception { in checkOrangeBox()
194 private void checkAppleBox(ObjectReader reader) throws Exception { in checkAppleBox()
204 private void checkOrangeBoxEmpty(ObjectReader reader, String json) throws Exception { in checkOrangeBoxEmpty()
214 private void checkAppleBoxEmpty(ObjectReader reader, String json) throws Exception { in checkAppleBoxEmpty()
224 private void checkOrangeBoxNull(ObjectReader reader, String json) throws Exception { in checkOrangeBoxNull()
230 private void checkAppleBoxNull(ObjectReader reader, String json) throws Exception { in checkAppleBoxNull()
236 private void checkBoxJsonMappingException(ObjectReader reader, String json) throws Exception { in checkBoxJsonMappingException()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/
DTestFormatDetection.java9 private final ObjectReader READER = objectReader();
29 ObjectReader detecting = READER.forType(POJO.class); in testSimpleWithJSON()
38 ObjectReader detecting = READER.forType(POJO.class); in testSequenceWithJSON()
56 ObjectReader r2 = READER.forType(JsonNode.class); in testSequenceWithJSON()
77 ObjectReader detecting = READER.forType(POJO.class); in testInvalid()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/
DUnwrapSingleArrayScalarsTest.java13 import com.fasterxml.jackson.databind.ObjectReader;
36 private final ObjectReader NO_UNWRAPPING_READER = MAPPER.reader();
37 private final ObjectReader UNWRAPPING_READER = MAPPER.reader()
49 final ObjectReader r = UNWRAPPING_READER.forType(BooleanBean.class); in testBooleanPrimitiveArrayUnwrap()
86 ObjectReader r = UNWRAPPING_READER.forType(IntBean.class); in testIntPrimitiveArrayUnwrap()
113 final ObjectReader unwrapR = UNWRAPPING_READER.forType(LongBean.class); in testLongPrimitiveArrayUnwrap()
114 final ObjectReader noUnwrapR = NO_UNWRAPPING_READER.forType(LongBean.class); in testLongPrimitiveArrayUnwrap()
149 final ObjectReader unwrapR = UNWRAPPING_READER.forType(DoubleBean.class); in testDoubleAsArray()
150 final ObjectReader noUnwrapR = NO_UNWRAPPING_READER.forType(DoubleBean.class); in testDoubleAsArray()
380 ObjectReader r = NO_UNWRAPPING_READER.forType(BigDecimal.class); in testBigDecimal()
DUnwrapSingleArrayMiscTest.java25 ObjectReader r = UNWRAPPING_MAPPER.readerFor(IntWrapper.class); in testSimplePOJOUnwrapping()
46 ObjectReader r = UNWRAPPING_MAPPER.readerFor(Map.class); in testSimpleMapUnwrapping()
60 ObjectReader r = UNWRAPPING_MAPPER.readerFor(new TypeReference<EnumMap<ABC,Integer>>() { }); in testEnumMapUnwrapping()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestCreatorNullPrimitives.java9 import com.fasterxml.jackson.databind.ObjectReader;
46 final ObjectReader r = MAPPER.readerFor(JsonEntity.class) in testCreatorNullPrimitive()
60 final ObjectReader r = MAPPER.readerFor(NestedJsonEntity.class) in testCreatorNullPrimitiveInNestedObject()
DFailOnNullCreatorTest.java26 private final ObjectReader POINT_READER = objectMapper().readerFor(Person.class);
37 ObjectReader r = POINT_READER.with(DeserializationFeature.FAIL_ON_NULL_CREATOR_PROPERTIES); in testRequiredNonNullParam()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceEmptyArrayTest.java25 private final ObjectReader DEFAULT_READER = DEFAULT_MAPPER.reader();
26 private final ObjectReader READER_WITH_ARRAYS = DEFAULT_READER
224 private void _verifyToNullCoercion(ObjectReader r, Class<?> cls) throws Exception { in _verifyToNullCoercion()
235 private void _verifyToEmptyCoercion(ObjectReader r, Class<?> cls, Object exp) throws Exception { in _verifyToEmptyCoercion()
246 private void _verifyFailForEmptyArray(ObjectReader r, Class<?> targetType) throws Exception in _verifyFailForEmptyArray()
DCoerceToBooleanTest.java12 import com.fasterxml.jackson.databind.ObjectReader;
66 final ObjectReader r = DEFAULT_MAPPER.readerFor(BooleanPOJO.class); in testToBooleanCoercionSuccessPojo()
81 final ObjectReader br = DEFAULT_MAPPER.readerFor(Boolean.class); in testToBooleanCoercionSuccessRoot()
88 final ObjectReader atomicR = DEFAULT_MAPPER.readerFor(AtomicBoolean.class); in testToBooleanCoercionSuccessRoot()
226 final ObjectReader r = LEGACY_NONCOERCING_MAPPER.readerFor(targetType); in _verifyBooleanCoerceFail()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/node/
DInternalNodeMapper.java6 import com.fasterxml.jackson.databind.ObjectReader;
24 private final static ObjectReader NODE_READER = JSON_MAPPER.readerFor(JsonNode.class);
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DNullHandlingTest.java113 ObjectReader reader = mapper.readerFor(AnySetter.class); in testAnySetterNulls()
134 ObjectReader reader = mapper.readerFor(String.class); in testCustomRootNulls()
158 ObjectReader reader = mapper.readerFor(type); in testListOfNulls()
181 ObjectReader reader = mapper.readerFor(type); in testMapOfNulls()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DTestPolymorphicWithDefaultImpl.java211 ObjectReader reader = MAPPER.reader().without( in testInvalidTypeId511()
234 ObjectReader reader = MAPPER.readerFor(CallRecord.class).without( in testUnknownTypeIDRecovery()
263 ObjectReader r = MAPPER.readerFor(AsPropertyWrapper.class) in testWithoutEmptyStringAsNullObject1533()
276 ObjectReader r = MAPPER.readerFor(AsPropertyWrapper.class) in testWithEmptyStringAsNullObject1533()

123