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

Method name

core/java/android/util/JsonWriter.java:284–291  ·  view source on GitHub ↗

Encodes the property name. @param name the name of the forthcoming value. May not be null. @return this writer.

(String name)

Source from the content-addressed store, hash-verified

282 * @return this writer.
283 */
284 public JsonWriter name(String name) throws IOException {
285 if (name == null) {
286 throw new NullPointerException("name == null");
287 }
288 beforeName();
289 string(name);
290 return this;
291 }
292
293 /**
294 * Encodes {@code value}.

Callers 15

testTwoNamesMethod · 0.95
testNameWithoutValueMethod · 0.95
testNullNameMethod · 0.95
testNullStringValueMethod · 0.95
testObjectsInArraysMethod · 0.95
testArraysInObjectsMethod · 0.95
testRepeatedNameMethod · 0.95
testPrettyPrintObjectMethod · 0.95
testPrettyPrintArrayMethod · 0.95
handleChunkMethod · 0.45
handleChunkMethod · 0.45

Calls 2

beforeNameMethod · 0.95
stringMethod · 0.95

Tested by 10

testTwoNamesMethod · 0.76
testNameWithoutValueMethod · 0.76
testNullNameMethod · 0.76
testNullStringValueMethod · 0.76
testObjectsInArraysMethod · 0.76
testArraysInObjectsMethod · 0.76
testRepeatedNameMethod · 0.76
testPrettyPrintObjectMethod · 0.76
testPrettyPrintArrayMethod · 0.76