Home
last modified time | relevance | path

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

/development/tools/winscope/src/common/
Dobject_utils_test.ts17 import {ObjectUtils} from './object_utils';
28 expect(ObjectUtils.getProperty(obj, 'child0')).toEqual({key0: 'value0'});
29 expect(ObjectUtils.getProperty(obj, 'child0.key0')).toEqual('value0');
30 expect(ObjectUtils.getProperty(obj, 'child1')).toEqual([
34 expect(ObjectUtils.getProperty(obj, 'child1[0]')).toEqual({key1: 'value1'});
35 expect(ObjectUtils.getProperty(obj, 'child1[0].key1')).toEqual('value1');
36 expect(ObjectUtils.getProperty(obj, 'child1[1]')).toEqual(10);
42 ObjectUtils.setProperty(obj, 'child0.key0', 'value0');
49 ObjectUtils.setProperty(obj, 'child1[0].key1', 'value1');
50 ObjectUtils.setProperty(obj, 'child1[1]', 10);
Dobject_utils.ts27 export class ObjectUtils { class
31 const keys = ObjectUtils.parseKeys(path);
54 const keys = ObjectUtils.parseKeys(path);
58 ObjectUtils.initializePropertyArrayIfNeeded(obj, key);
61 ObjectUtils.initializePropertyIfNeeded(obj, key.key);
68 ObjectUtils.initializePropertyArrayIfNeeded(obj, lastKey);
77 const match = ObjectUtils.ARRAY_KEY_REGEX.exec(rawKey);
/development/tools/winscope/src/parsers/perfetto/
Dfake_proto_builder.ts17 import {ObjectUtils} from 'common/object_utils';
39 ObjectUtils.setProperty(this.proto, keyCamelCase, value);