/external/protobuf/objectivec/Tests/ |
D | GPBDictionaryTests+Int32.m | 88 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 …]
|
D | GPBDictionaryTests+String.m | 88 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 …]
|
D | GPBDictionaryTests+UInt32.m | 88 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 …]
|
D | GPBDictionaryTests+UInt64.m | 88 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 …]
|
D | GPBDictionaryTests+Int64.m | 88 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 …]
|
D | GPBDictionaryTests+Bool.m | 57 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 …]
|
D | GPBSwiftTests.swift | 56 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 …]
|
D | GPBMessageTests+Serialization.m | 1010 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 …]
|
D | GPBTestUtilities.m | 1092 [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 …]
|
/external/antlr/runtime/ObjC/Framework/test/runtime/misc/ |
D | TestDictionary.m | 35 [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/ |
D | GPBDictionary.h | 101 - (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 …]
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | CssSchemaTest.java | 55 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/ |
D | objcmt-subscripting-literals.m | 61 + (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 …]
|
D | objcmt-subscripting-unavailable.m | 38 + (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"];
|
/external/llvm-project/clang/test/ARCMT/ |
D | objcmt-subscripting-literals.m | 61 + (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 …]
|
D | objcmt-subscripting-unavailable.m | 38 + (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"];
|
/external/llvm-project/lldb/test/API/functionalities/data-formatter/nsdictionarysynth/ |
D | main.m | 13 [mutabledict setObject:@"123" forKey:@23]; 14 [mutabledict setObject:[NSURL URLWithString:@"http://www.apple.com"] forKey:@"foobar"]; 15 [mutabledict setObject:@[@"a",@12] forKey:@57]; 16 [mutabledict setObject:dictionary forKey:@"sourceofstuff"];
|
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
D | ST.stg | 153 - (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/webrtc/examples/objc/AppRTCMobile/ |
D | ARDSettingsStore.m | 65 [self.storage setObject:resolution forKey:kVideoResolutionKey]; 74 [self.storage setObject:videoCodec forKey:kVideoCodecKey]; 83 [self.storage setObject:value forKey:kBitrateKey]; 92 [self.storage setBool:audioOnly forKey:kAudioOnlyKey]; 101 [self.storage setBool:createAecDump forKey:kCreateAecDumpKey]; 110 [self.storage setBool:useManualAudioConfig forKey:kUseManualAudioConfigKey];
|
/external/google-breakpad/src/client/mac/sender/ |
D | uploader.mm | 123 [config setObject:(value ? value : data) forKey:key]; 197 [ud setBool:YES forKey:kApplePrefsSyncExcludeAllKey]; 232 forKey:urlParameterKey]; 235 forKey:urlParameterKey]; 239 [parameters_ setObject:[config objectForKey:key] forKey:key]; 246 [parameters_ setObject:clientID forKey:@"guid"]; 265 [ud setObject:crashClientID forKey:kClientIdPreferenceKey]; 422 [serverDictionary_ setObject:socorroDictionary_ forKey:kSocorroServerType]; 423 [serverDictionary_ setObject:googleDictionary_ forKey:kGoogleServerType]; 425 [googleDictionary_ setObject:@"ptime" forKey:@BREAKPAD_PROCESS_UP_TIME]; [all …]
|
/external/llvm-project/clang/test/Analysis/diagnostics/ |
D | macros.m | 11 - (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey; 26 …[d setObject:o forKey:[o description]]; // expected-warning {{Key argument to 'setObject:forKey:' … 28 … // expected-note@-2 {{Key argument to 'setObject:forKey:' cannot be nil}}
|
/external/clang/test/Analysis/ |
D | NSContainers.m | 76 + (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/llvm-project/clang/test/Analysis/ |
D | NSContainers.m | 78 + (id)dictionaryWithObject:(id)object forKey:(id <NSCopying>)key; 86 - (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey; 148 …[d setObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be … 152 …[d setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be ni… 169 …NSDictionary dictionaryWithObject:0 forKey:key]; // expected-warning {{Value argument to 'dictiona… 172 …NSDictionary dictionaryWithObject:obj forKey:0]; // expected-warning {{Key argument to 'dictionary… 253 [D setObject: value forKey: key]; // no-warning 261 [Table setObject:Value forKey:Object]; // no warning
|
/external/clang/test/SemaObjC/ |
D | circular-container.m | 18 - (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/llvm-project/clang/test/SemaObjC/ |
D | circular-container.m | 18 - (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 …]
|