Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDictionaryTests+Int32.m94 GPBInt32UInt32Dictionary *dict = [[GPBInt32UInt32Dictionary alloc] init];
95 XCTAssertNotNil(dict);
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:11]);
98 [dict enumerateKeysAndUInt32sUsingBlock:^(int32_t aKey, uint32_t aValue, BOOL *stop) {
102 [dict release];
106 GPBInt32UInt32Dictionary *dict = [GPBInt32UInt32Dictionary dictionaryWithUInt32:100U forKey:11];
107 XCTAssertNotNil(dict);
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:11]);
[all …]
DGPBDictionaryTests+String.m94 GPBStringUInt32Dictionary *dict = [[GPBStringUInt32Dictionary alloc] init];
95 XCTAssertNotNil(dict);
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:@"foo"]);
98 [dict enumerateKeysAndUInt32sUsingBlock:^(NSString *aKey, uint32_t aValue, BOOL *stop) {
102 [dict release];
106 …GPBStringUInt32Dictionary *dict = [GPBStringUInt32Dictionary dictionaryWithUInt32:100U forKey:@"fo…
107 XCTAssertNotNil(dict);
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:@"foo"]);
[all …]
DGPBDictionaryTests+UInt64.m94 GPBUInt64UInt32Dictionary *dict = [[GPBUInt64UInt32Dictionary alloc] init];
95 XCTAssertNotNil(dict);
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:31ULL]);
98 [dict enumerateKeysAndUInt32sUsingBlock:^(uint64_t aKey, uint32_t aValue, BOOL *stop) {
102 [dict release];
106 …GPBUInt64UInt32Dictionary *dict = [GPBUInt64UInt32Dictionary dictionaryWithUInt32:100U forKey:31UL…
107 XCTAssertNotNil(dict);
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:31ULL]);
[all …]
DGPBDictionaryTests+Int64.m94 GPBInt64UInt32Dictionary *dict = [[GPBInt64UInt32Dictionary alloc] init];
95 XCTAssertNotNil(dict);
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:21LL]);
98 [dict enumerateKeysAndUInt32sUsingBlock:^(int64_t aKey, uint32_t aValue, BOOL *stop) {
102 [dict release];
106 GPBInt64UInt32Dictionary *dict = [GPBInt64UInt32Dictionary dictionaryWithUInt32:100U forKey:21LL];
107 XCTAssertNotNil(dict);
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:21LL]);
[all …]
DGPBDictionaryTests+UInt32.m94 GPBUInt32UInt32Dictionary *dict = [[GPBUInt32UInt32Dictionary alloc] init];
95 XCTAssertNotNil(dict);
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:1U]);
98 [dict enumerateKeysAndUInt32sUsingBlock:^(uint32_t aKey, uint32_t aValue, BOOL *stop) {
102 [dict release];
106 GPBUInt32UInt32Dictionary *dict = [GPBUInt32UInt32Dictionary dictionaryWithUInt32:100U forKey:1U];
107 XCTAssertNotNil(dict);
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:1U]);
[all …]
DGPBDictionaryTests+Bool.m54 GPBBoolUInt32Dictionary *dict = [[GPBBoolUInt32Dictionary alloc] init];
55 XCTAssertNotNil(dict);
56 XCTAssertEqual(dict.count, 0U);
57 XCTAssertFalse([dict getUInt32:NULL forKey:YES]);
58 [dict enumerateKeysAndUInt32sUsingBlock:^(BOOL aKey, uint32_t aValue, BOOL *stop) {
62 [dict release];
66 GPBBoolUInt32Dictionary *dict = [GPBBoolUInt32Dictionary dictionaryWithUInt32:100U forKey:YES];
67 XCTAssertNotNil(dict);
68 XCTAssertEqual(dict.count, 1U);
70 XCTAssertTrue([dict getUInt32:NULL forKey:YES]);
[all …]
DGPBDictionaryTests.pddm69 //% DICTIONARY_CLASS_DECL##VHELPER(KEY_NAME, VALUE_NAME, VALUE_TYPE) *dict = [[GPB##KEY_NAME##VALU…
70 //% XCTAssertNotNil(dict);
71 //% XCTAssertEqual(dict.count, 0U);
72 //%VALUE_NOT_FOUND##VHELPER(VALUE_NAME, dict, KEY1)
73 //% [dict enumerateKeysAnd##VALUE_NAME$u##sUsingBlock:^(KEY_TYPE KisP##aKey, VALUE_TYPE a##VNAME$u…
77 //% [dict release];
81 //% DICTIONARY_CLASS_DECL##VHELPER(KEY_NAME, VALUE_NAME, VALUE_TYPE) *dict = [GPB##KEY_NAME##VALUE…
82 //% XCTAssertNotNil(dict);
83 //% XCTAssertEqual(dict.count, 1U);
84 //%DECLARE_VALUE_STORAGE##VHELPER(VALUE_TYPE, VNAME)TEST_VALUE##VHELPER(VALUE_NAME, dict, VNAME, KE…
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor.py293 self.fields_by_number = dict((f.number, f) for f in fields)
294 self.fields_by_name = dict((f.name, f) for f in fields)
300 self.nested_types_by_name = dict((t.name, t) for t in nested_types)
305 self.enum_types_by_name = dict((t.name, t) for t in enum_types)
306 self.enum_values_by_name = dict(
312 self.extensions_by_name = dict((f.name, f) for f in extensions)
316 self.oneofs_by_name = dict((o.name, o) for o in self.oneofs)
324 self._fields_by_camelcase_name = dict(
620 self.values_by_name = dict((v.name, v) for v in values)
621 self.values_by_number = dict((v.number, v) for v in values)
[all …]
Djson_format.py449 if isinstance(value, dict) and not value:
479 if isinstance(value, dict):
505 if not isinstance(value, dict):
528 if not isinstance(value, dict):
Dmessage.py290 return dict(serialized=self.SerializePartialToString())
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBMessage.m592 id dict = GPBGetObjectIvarWithFieldNoAutocreate(self, field);
593 if (!dict) {
596 dict = CreateMapForField(field, nil);
597 GPBSetRetainedObjectIvarWithFieldInternal(self, field, dict, syntax);
599 return dict;
605 id dict = GPBGetObjectIvarWithFieldNoAutocreate(self, field);
606 if (!dict) {
610 dict = GPBGetObjectIvarWithFieldNoAutocreate(self, field);
611 if (!dict) {
612 dict = CreateMapForField(field, self);
[all …]
DGPBDictionary_PackagePrivate.h468 size_t GPBDictionaryComputeSizeInternalHelper(NSDictionary *dict,
474 GPBCodedOutputStream *outputStream, NSDictionary *dict,
479 BOOL GPBDictionaryIsInitializedInternalHelper(NSDictionary *dict,
/frameworks/ml/nn/tools/systrace_parser/parser/
Doutput.py69 values = dict()
131 output = dict(times=times, self_times=self_times, execution_counts=execution_counts,
Dnaming.py36 subphases = dict(PE=[PHASE_INPUTS_AND_OUTPUTS, PHASE_TRANSFORMATION,
Daggregate.py38 execution_counts = dict()
/frameworks/ml/nn/tools/systrace_parser/parser/test/
Dtest_stats.py11 self.timevars = dict()
32 dict(t1=self.tracker1, t2=self.tracker2),
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dproto_builder_test.py57 self._fields = dict(self.ordered_fields)
Dcontainers.py111 return dict(self.items()) == dict(other.items())
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/jenkins/
Dmake_test_output.py26 tests = defaultdict(dict)
/frameworks/ml/nn/tools/
Dparse_benchmark.py46 data = dict()
/frameworks/rs/
Dbuild_rs.py30 ORIG_ENV = dict(os.environ)
73 env = dict(ORIG_ENV)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/DevTools/
Dpddm.py151 self._macros = dict()
320 args = dict(zip(macro.args, arg_values))
/frameworks/base/tools/localedata/
Dextract_icu_data.py263 script_organized_dict = collections.defaultdict(dict)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/
Dmox.py1032 expected = dict([(element, None) for element in self._expected_seq])
1033 actual = dict([(element, None) for element in actual_seq])
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py147 typesMap = dict()
346 self.SetValue(value[self] if type(value) is dict else value)
698 self.targetOperands = args if type(args) is dict else {i: None for i in args}
985 elif type(feedDict) is dict:
1270 Type.typesMap = dict()

12