MCPcopy Create free account
hub / github.com/LineageOS/android_frameworks_base / value

Method value

core/java/android/util/JsonWriter.java:299–306  ·  view source on GitHub ↗

Encodes value. @param value the literal string value, or null to encode a null literal. @return this writer.

(String value)

Source from the content-addressed store, hash-verified

297 * @return this writer.
298 */
299 public JsonWriter value(String value) throws IOException {
300 if (value == null) {
301 return nullValue();
302 }
303 beforeValue(false);
304 string(value);
305 return this;
306 }
307
308 /**
309 * Encodes {@code null}.

Callers 15

testWrongTopLevelTypeMethod · 0.95
testValueWithoutNameMethod · 0.95
testNullStringValueMethod · 0.95
testNonFiniteDoublesMethod · 0.95
testDoublesMethod · 0.95
testLongsMethod · 0.95
testNumbersMethod · 0.95
testBooleansMethod · 0.95
testStringsMethod · 0.95
testArraysInObjectsMethod · 0.95

Calls 8

nullValueMethod · 0.95
beforeValueMethod · 0.95
stringMethod · 0.95
isNaNMethod · 0.80
writeMethod · 0.65
appendMethod · 0.65
toStringMethod · 0.45
equalsMethod · 0.45

Tested by 15

testWrongTopLevelTypeMethod · 0.76
testValueWithoutNameMethod · 0.76
testNullStringValueMethod · 0.76
testNonFiniteDoublesMethod · 0.76
testDoublesMethod · 0.76
testLongsMethod · 0.76
testNumbersMethod · 0.76
testBooleansMethod · 0.76
testStringsMethod · 0.76
testArraysInObjectsMethod · 0.76