Home
last modified time | relevance | path

Searched refs:protoObj (Results 1 – 1 of 1) sorted by relevance

/development/tools/winscope/src/
Ddecode.js495 function modifyProtoFields(protoObj, displayDefaults) { argument
496 if (!protoObj || protoObj !== Object(protoObj) || !protoObj.$type) {
500 for (const fieldName in protoObj.$type.fields) {
501 if (protoObj.$type.fields.hasOwnProperty(fieldName)) {
502 const fieldProperties = protoObj.$type.fields[fieldName];
503 const field = protoObj[fieldName];
513 protoObj[fieldName] = fieldProperties.defaultValue;
517protoObj[fieldName] = fieldProperties.resolvedType.valuesById[protoObj[fieldProperties.name]];
520 modifyProtoFields(protoObj[fieldName], displayDefaults);