Home
last modified time | relevance | path

Searched refs:forKey (Results 1 – 25 of 71) sorted by relevance

123

/external/protobuf/objectivec/Tests/
DGPBDictionaryTests+Int32.m88 XCTAssertFalse([dict getUInt32:NULL forKey:11]);
98 [dict setUInt32:100U forKey:11];
102 XCTAssertTrue([dict getUInt32:NULL forKey:11]);
103 XCTAssertTrue([dict getUInt32:&value forKey:11]);
105 XCTAssertFalse([dict getUInt32:NULL forKey:12]);
124 XCTAssertTrue([dict getUInt32:NULL forKey:11]);
125 XCTAssertTrue([dict getUInt32:&value forKey:11]);
127 XCTAssertTrue([dict getUInt32:NULL forKey:12]);
128 XCTAssertTrue([dict getUInt32:&value forKey:12]);
130 XCTAssertTrue([dict getUInt32:NULL forKey:13]);
[all …]
DGPBDictionaryTests+String.m88 XCTAssertFalse([dict getUInt32:NULL forKey:@"foo"]);
98 [dict setUInt32:100U forKey:@"foo"];
102 XCTAssertTrue([dict getUInt32:NULL forKey:@"foo"]);
103 XCTAssertTrue([dict getUInt32:&value forKey:@"foo"]);
105 XCTAssertFalse([dict getUInt32:NULL forKey:@"bar"]);
124 XCTAssertTrue([dict getUInt32:NULL forKey:@"foo"]);
125 XCTAssertTrue([dict getUInt32:&value forKey:@"foo"]);
127 XCTAssertTrue([dict getUInt32:NULL forKey:@"bar"]);
128 XCTAssertTrue([dict getUInt32:&value forKey:@"bar"]);
130 XCTAssertTrue([dict getUInt32:NULL forKey:@"baz"]);
[all …]
DGPBDictionaryTests+UInt64.m88 XCTAssertFalse([dict getUInt32:NULL forKey:31ULL]);
98 [dict setUInt32:100U forKey:31ULL];
102 XCTAssertTrue([dict getUInt32:NULL forKey:31ULL]);
103 XCTAssertTrue([dict getUInt32:&value forKey:31ULL]);
105 XCTAssertFalse([dict getUInt32:NULL forKey:32ULL]);
124 XCTAssertTrue([dict getUInt32:NULL forKey:31ULL]);
125 XCTAssertTrue([dict getUInt32:&value forKey:31ULL]);
127 XCTAssertTrue([dict getUInt32:NULL forKey:32ULL]);
128 XCTAssertTrue([dict getUInt32:&value forKey:32ULL]);
130 XCTAssertTrue([dict getUInt32:NULL forKey:33ULL]);
[all …]
DGPBDictionaryTests+UInt32.m88 XCTAssertFalse([dict getUInt32:NULL forKey:1U]);
98 [dict setUInt32:100U forKey:1U];
102 XCTAssertTrue([dict getUInt32:NULL forKey:1U]);
103 XCTAssertTrue([dict getUInt32:&value forKey:1U]);
105 XCTAssertFalse([dict getUInt32:NULL forKey:2U]);
124 XCTAssertTrue([dict getUInt32:NULL forKey:1U]);
125 XCTAssertTrue([dict getUInt32:&value forKey:1U]);
127 XCTAssertTrue([dict getUInt32:NULL forKey:2U]);
128 XCTAssertTrue([dict getUInt32:&value forKey:2U]);
130 XCTAssertTrue([dict getUInt32:NULL forKey:3U]);
[all …]
DGPBDictionaryTests+Int64.m88 XCTAssertFalse([dict getUInt32:NULL forKey:21LL]);
98 [dict setUInt32:100U forKey:21LL];
102 XCTAssertTrue([dict getUInt32:NULL forKey:21LL]);
103 XCTAssertTrue([dict getUInt32:&value forKey:21LL]);
105 XCTAssertFalse([dict getUInt32:NULL forKey:22LL]);
124 XCTAssertTrue([dict getUInt32:NULL forKey:21LL]);
125 XCTAssertTrue([dict getUInt32:&value forKey:21LL]);
127 XCTAssertTrue([dict getUInt32:NULL forKey:22LL]);
128 XCTAssertTrue([dict getUInt32:&value forKey:22LL]);
130 XCTAssertTrue([dict getUInt32:NULL forKey:23LL]);
[all …]
DGPBDictionaryTests+Bool.m57 XCTAssertFalse([dict getUInt32:NULL forKey:YES]);
67 [dict setUInt32:100U forKey:YES];
71 XCTAssertTrue([dict getUInt32:NULL forKey:YES]);
72 XCTAssertTrue([dict getUInt32:&value forKey:YES]);
74 XCTAssertFalse([dict getUInt32:NULL forKey:NO]);
93 XCTAssertTrue([dict getUInt32:NULL forKey:YES]);
94 XCTAssertTrue([dict getUInt32:&value forKey:YES]);
96 XCTAssertTrue([dict getUInt32:NULL forKey:NO]);
97 XCTAssertTrue([dict getUInt32:&value forKey:NO]);
234 [dict setUInt32:100U forKey:YES];
[all …]
DGPBSwiftTests.swift56 msg.mapInt32Int32.setInt32(400, forKey:500) in testProto2Basics()
57 msg.mapInt32Int32.setInt32(401, forKey:501) in testProto2Basics()
58 msg.mapStringString.setObject("foo", forKey:"bar" as NSString) in testProto2Basics()
59 msg.mapStringString.setObject("abc", forKey:"xyz" as NSString) in testProto2Basics()
60 msg.mapInt32Enum.setEnum(Message2_Enum.bar.rawValue, forKey:600) in testProto2Basics()
61 msg.mapInt32Enum.setEnum(Message2_Enum.baz.rawValue, forKey:601) in testProto2Basics()
94 XCTAssertTrue(msg.mapInt32Int32.getInt32(&intValue, forKey: 500)) in testProto2Basics()
96 XCTAssertTrue(msg.mapInt32Int32.getInt32(&intValue, forKey: 501)) in testProto2Basics()
99 XCTAssertEqual(msg.mapStringString.object(forKey: "bar") as? String, "foo") in testProto2Basics()
100 XCTAssertEqual(msg.mapStringString.object(forKey: "xyz") as? String, "abc") in testProto2Basics()
[all …]
DGPBMessageTests+Serialization.m1010 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:1]);
1024 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:2]);
1038 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:2]);
1052 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:1]);
1066 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:0]);
1080 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:1]);
1094 XCTAssertTrue([msg.mapInt32Int32 getInt32:&val forKey:2]);
1122 forKey:0];
1124 forKey:0];
1131 XCTAssertTrue([msg1.knownMapField getEnum:&val forKey:0]);
[all …]
DGPBTestUtilities.m1092 [message.mapInt32Int32 setInt32:(i + 1) forKey:100 + i * 100];
1093 [message.mapInt64Int64 setInt64:(i + 1) forKey:101 + i * 100];
1094 [message.mapUint32Uint32 setUInt32:(i + 1) forKey:102 + i * 100];
1095 [message.mapUint64Uint64 setUInt64:(i + 1) forKey:103 + i * 100];
1096 [message.mapSint32Sint32 setInt32:(i + 1) forKey:104 + i * 100];
1097 [message.mapSint64Sint64 setInt64:(i + 1) forKey:105 + i * 100];
1098 [message.mapFixed32Fixed32 setUInt32:(i + 1) forKey:106 + i * 100];
1099 [message.mapFixed64Fixed64 setUInt64:(i + 1) forKey:107 + i * 100];
1100 [message.mapSfixed32Sfixed32 setInt32:(i + 1) forKey:108 + i * 100];
1101 [message.mapSfixed64Sfixed64 setInt64:(i + 1) forKey:109 + i * 100];
[all …]
DGPBDictionaryTests.pddm82 //% [dict set##VALUE_NAME$u##:VAL1 forKey:KEY1];
243 //% [dict set##VALUE_NAME##:VAL1 forKey:KEY1];
319 //% [dict set##VALUE_NAME##:VAL4 forKey:KEY1];
326 //% [dict set##VALUE_NAME##:VAL2 forKey:KEY4];
546 //% XCTAssertThrowsSpecificNamed([dict setEnum:VAL2 forKey:KEY2], // Unknown
549 //% [dict setRawValue:VAL2 forKey:KEY2]; // Unknown
629 //% XCTAssertThrowsSpecificNamed([dict setEnum:VAL4 forKey:KEY1], // Unknown
637 //% [dict setRawValue:VAL4 forKey:KEY1]; // Unknown
644 //% [dict setRawValue:VAL1 forKey:KEY4];
704 //% XCTAssertFalse([DICT get##VALUE_NAME##:NULL forKey:KEY]);
[all …]
/external/antlr/runtime/ObjC/Framework/test/runtime/misc/
DTestDictionary.m35 [testDict setObject:obj1 forKey:key1];
50 [testDict setObject:obj1 forKey:key1];
51 [testDict setObject:obj2 forKey:key2];
64 [testDict setObject:obj1 forKey:key1];
65 [testDict setObject:@"obj102" forKey:@"a102"];
66 [testDict setObject:@"obj103" forKey:@"a103"];
67 [testDict setObject:@"obj104" forKey:@"a104"];
68 [testDict setObject:@"obj105" forKey:@"a105"];
69 [testDict setObject:@"obj106" forKey:@"a106"];
70 [testDict setObject:@"obj107" forKey:@"a107"];
[all …]
/external/protobuf/objectivec/
DGPBDictionary.h101 - (BOOL)getUInt32:(nullable uint32_t *)value forKey:(uint32_t)key;
128 - (void)setUInt32:(uint32_t)value forKey:(uint32_t)key;
196 - (BOOL)getInt32:(nullable int32_t *)value forKey:(uint32_t)key;
223 - (void)setInt32:(int32_t)value forKey:(uint32_t)key;
291 - (BOOL)getUInt64:(nullable uint64_t *)value forKey:(uint32_t)key;
318 - (void)setUInt64:(uint64_t)value forKey:(uint32_t)key;
386 - (BOOL)getInt64:(nullable int64_t *)value forKey:(uint32_t)key;
413 - (void)setInt64:(int64_t)value forKey:(uint32_t)key;
481 - (BOOL)getBool:(nullable BOOL *)value forKey:(uint32_t)key;
508 - (void)setBool:(BOOL)value forKey:(uint32_t)key;
[all …]
DGPBDictionary.m534 // setObject:forKey:.
541 forKey:key.valueString];
549 forKey:&key
611 … ______) [_dictionary setObject:WRAPPED##VHELPER(VNAME_VAR##s[i]) forKey:WRAPPED##KHELPER(k…
673 …i], ______) [_dictionary setObject:WRAPPED##VHELPER(rawValues[i]) forKey:WRAPPED##KHELPER(k…
701 //%- (BOOL)getEnum:(VALUE_TYPE *)value forKey:(KEY_TYPE##KisP$S##KisP)key {
713 //%- (BOOL)getRawValue:(VALUE_TYPE *)rawValue forKey:(KEY_TYPE##KisP$S##KisP)key {
742 //%- (void)setEnum:(VALUE_TYPE)value forKey:(KEY_TYPE##KisP$S##KisP)key {
749 //% [_dictionary setObject:WRAPPED##VHELPER(value) forKey:WRAPPED##KHELPER(key)];
857 //% [_dictionary setObject:WRAPPED##VHELPER(value->##GPBVALUE_##VHELPER(VALUE_NAME)##) forKey:WRAP…
[all …]
DGPBDictionary_PackagePrivate.h133 forKey:(GPBGenericValue *)key
196 forKey:(GPBGenericValue *)key
259 forKey:(GPBGenericValue *)key
322 forKey:(GPBGenericValue *)key
385 forKey:(GPBGenericValue *)key
448 forKey:(GPBGenericValue *)key
/external/owasp/sanitizer/src/tests/org/owasp/html/
DCssSchemaTest.java55 assertSame(key, CssSchema.DISALLOWED, CssSchema.DEFAULT.forKey(key)); in testDangerousProperties()
62 CssSchema.Property property = CssSchema.DEFAULT.forKey(propName); in testDangerousTokens()
86 assertSame(key, custom.forKey(key), CssSchema.DEFAULT.forKey(key)); in testCustom()
89 CssSchema.Property cssFloat = custom.forKey("float"); in testCustom()
/external/clang/test/ARCMT/
Dobjcmt-subscripting-literals.m61 + (id)dictionaryWithObject:(id)object forKey:(id)key;
74 - (void)setObject:(id)anObject forKey:(id)aKey;
107 dict = [NSDictionary dictionaryWithObject:arr forKey:str];
123 o = [NSDictionary dictionaryWithObject:[NSDictionary dictionary] forKey:@"key"];
127 [mdict setObject:@"value" forKey:@"key"];
129 [mdict setObject:[dict objectForKey:@"key2"] forKey:@"key"];
130 [mdict setObject:[dict objectForKey:@"key2"] forKey:
143 ] forKey:@"key"];
144 [mdict setObject:@"value" forKey:[dict objectForKey:
151 [mdict setObject:@"val" forKey:[dict objectForKey:@"key2"]];
[all …]
Dobjcmt-subscripting-unavailable.m38 + (id)dictionaryWithObject:(id)object forKey:(id)key;
53 - (void)setObject:(id)anObject forKey:(id)aKey;
68 dict = [NSDictionary dictionaryWithObject:arr forKey:str];
75 [mdict setObject:@"value" forKey:@"key"];
77 [mdict setObject:[dict objectForKey:@"key2"] forKey:@"key"];
Dobjcmt-subscripting-unavailable.m.result38 + (id)dictionaryWithObject:(id)object forKey:(id)key;
53 - (void)setObject:(id)anObject forKey:(id)aKey;
75 [mdict setObject:@"value" forKey:@"key"];
77 [mdict setObject:[dict objectForKey:@"key2"] forKey:@"key"];
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DST.stg153 - (STAttrMap *) setObject:(id)aValue forKey:(NS*)String attrName
155 [super setObject:value forKey:attrName];
158 - (STAttrMap *) setObjectWithInt:(NSInteger)value forKey:(NSString *)attrName
160 [super setObject:[NSNumber numberWithInteger:value] forKey:attrName];
185 - (STAttrMap *) setObject:(id)value forKey:(NSString *)attrName;
186 - (STAttrMap *) setObjectWithInt:(NSInteger)value forKey:(NSString *)attrName;
221 - (STAttrMap *) setObject:(id)value forKey:(NSString *)attrName;
222 - (STAttrMap *) setObjectWithInt:(NSInteger)value forKey:(NSString *)attrName;
239 - (STAttrMap *) setObject:(id)aValue forKey:(NSString *)aAttrName
241 [super setObject:aValue forKey:aAttrName];
[all …]
/external/google-breakpad/src/client/mac/sender/
Duploader.mm125 [config setObject:(value ? value : data) forKey:key];
193 [ud setBool:YES forKey:kApplePrefsSyncExcludeAllKey];
228 forKey:urlParameterKey];
231 forKey:urlParameterKey];
235 [parameters_ setObject:[config objectForKey:key] forKey:key];
242 [parameters_ setObject:clientID forKey:@"guid"];
261 [ud setObject:crashClientID forKey:kClientIdPreferenceKey];
417 [serverDictionary_ setObject:socorroDictionary_ forKey:kSocorroServerType];
418 [serverDictionary_ setObject:googleDictionary_ forKey:kGoogleServerType];
420 [googleDictionary_ setObject:@"ptime" forKey:@BREAKPAD_PROCESS_UP_TIME];
[all …]
/external/clang/test/Analysis/
DNSContainers.m76 + (id)dictionaryWithObject:(id)object forKey:(id <NSCopying>)key;
84 - (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;
146 …[d setObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be …
150 …[d setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be ni…
167 …NSDictionary dictionaryWithObject:0 forKey:key]; // expected-warning {{Value argument to 'dictiona…
170 …NSDictionary dictionaryWithObject:obj forKey:0]; // expected-warning {{Key argument to 'dictionary…
251 [D setObject: value forKey: key]; // no-warning
259 [Table setObject:Value forKey:Object]; // no warning
/external/clang/test/SemaObjC/
Dcircular-container.m18 - (void)setObject:(id)object forKey:(id)key;
20 - (void)setValue:(id)value forKey:(NSString *)key;
58 …[_dictionary setObject:_dictionary forKey:@"key"]; // expected-warning {{adding '_dictionary' to '…
69 …[d setObject:d forKey:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular depend…
91 …[d setObject:d forKey:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular depend…
119 …[d setObject:d forKey:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular depend…
121 …[d setValue:d forKey:@"key"]; // expected-warning {{adding 'd' to 'd' might cause circular depende…
176 …[super setObject:self forKey:@"key"]; // expected-warning {{adding 'self' to 'super' might cause c…
177 [super setObject:nil forKey:@"key"]; // no-warning
178 …[self setObject:self forKey:@"key"]; // expected-warning {{adding 'self' to 'self' might cause cir…
[all …]
/external/clang/test/CodeGenObjCXX/
Dblock-in-template-inst.mm6 - (void)setObject:(id)obj forKey:(id)key;
22 [_spDeviceCache setObject:0 forKey:0];
/external/google-breakpad/src/tools/mac/symupload/
Dsymupload.m105 [parameters setObject:compactedID forKey:@"debug_identifier"];
109 [parameters setObject:[moduleParts objectAtIndex:1] forKey:@"os"];
110 [parameters setObject:[moduleParts objectAtIndex:2] forKey:@"cpu"];
111 [parameters setObject:[moduleParts objectAtIndex:4] forKey:@"debug_file"];
112 [parameters setObject:[moduleParts objectAtIndex:4] forKey:@"code_file"];
/external/antlr/runtime/ObjC/Framework/
DDoubleKeyMap.m20 [data setObject:data2 forKey:k1];
25 [data2 setObject:v forKey:k2];

123