Home
last modified time | relevance | path

Searched refs:CFStringRef (Results 1 – 25 of 187) sorted by relevance

12345678

/external/clang/test/SemaObjC/
Darc-unbridged-cast.m3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
27 CFStringRef unauditedString(void);
28 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
31 CFStringRef auditedString(void);
32 CFStringRef auditedCreateString(void);
35 extern const CFStringRef kUserConst;
[all …]
Darc-cf.m10 typedef const struct __CFString *CFStringRef; typedef
12 extern CFStringRef CFMakeString0(void);
14 extern CFStringRef CFCreateString0(void);
22 extern CFStringRef CFMakeString1(void) __attribute__((cf_returns_not_retained));
23 extern CFStringRef CFCreateString1(void) __attribute__((cf_returns_retained));
36 extern CFStringRef CFMakeString2(void);
37 extern CFStringRef CFCreateString2(void) CF_RETURNS_NOT_RETAINED;
38 extern CFStringRef CFMakeString3(void) CF_RETURNS_RETAINED;
39 extern CFStringRef CFCreateString3(void);
53 extern SInt32 CFStringGetIntValue(CFStringRef str); // expected-note {{passing argument to paramete…
[all …]
Dformat-cstrings-warning.m41 typedef const struct __CFString * CFStringRef; typedef
50 CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringR…
53 CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOption…
56 void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef
59 …Arguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list…
63 …CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%s\n", argList); // expected-warnin…
64 …CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"Hello %s there %d\…
65 CFStringCreateWithFormatAndArguments (alloc, 0, (CFStringRef)@"%c\n", argList);
66 CFStringAppendFormatAndArguments ((CFMutableStringRef)@"AAAA", 0, (CFStringRef)"%d\n", argList);
70 extern void MyCFStringCreateWithFormat(CFStringRef format, ...) __attribute__((format(__CFString__,…
[all …]
Dillegal-nonarc-bridged-cast.m5 typedef const struct __CFString *CFStringRef; typedef
11 CFStringRef CFCreateString();
13 CFStringRef CFGetString();
28CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString(); // expected-warning {{'__bridge…
30 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
/external/clang/test/SemaObjCXX/
Darc-unbridged-cast.mm3 typedef const struct __CFString * CFStringRef; typedef
10 @property CFStringRef property;
11 - (CFStringRef) implicitProperty;
12 - (CFStringRef) newString;
13 - (CFStringRef) makeString;
27 CFStringRef unauditedString(void);
28 CFStringRef plusOneString(void) __attribute__((cf_returns_retained));
31 CFStringRef auditedString(void);
32 CFStringRef auditedCreateString(void);
40 x = (id) (cond ? (CFStringRef) @"help" : auditedString());
[all …]
Darc-bridged-cast.mm4 typedef const struct __CFString *CFStringRef; typedef
10 CFStringRef CFCreateString();
12 CFStringRef CFGetString();
31 CFStringRef cf2 = (__bridge_retained StringType)CreateNSString();
33 CFStringRef cf4 = (__bridge StringType)CreateNSString();
36 template void to_cf<CFTypeRef, CFStringRef>(id); function
Dreinterpret-cast-objc-pointertype.mm6 typedef const struct __CFString * CFStringRef; typedef
9 CFStringRef func() {
10 return reinterpret_cast<CFStringRef>(fRef);
13 CFStringRef fRef1;
Darc-objc-lifetime.mm4 typedef const struct __CFString * CFStringRef; typedef
16 - (CFStringRef)myString
18 CFStringRef myString =
19 …(__bridge CFStringRef) (__strong NSString *)CFBridgingRelease(); // expected-error {{explicit owne…
22 …(__bridge CFStringRef) (__autoreleasing PNSString) CFBridgingRelease(); // expected-error {{explic…
24 (__bridge CFStringRef) (AUTORELEASEPNSString) CFBridgingRelease(); // OK
26 …(__bridge CFStringRef) (typeof(__strong NSString *)) CFBridgingRelease(); // expected-error {{expl…
/external/clang/test/ARCMT/
Dnonobjc-to-objc-cast.m.result7 typedef const struct __CFString * CFStringRef;
8 extern const CFStringRef kUTTypePlainText;
9 extern const CFStringRef kUTTypeRTF;
10 extern CFStringRef kNonConst;
17 extern CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
20 CFStringRef sref_member;
24 CFStringRef sref;
49 CFStringRef str = (__bridge CFStringRef)self;
50 CFStringRef str2 = (__bridge CFStringRef)(self);
65 extern void consumeParam(CFStringRef CF_CONSUMED p);
[all …]
Dnonobjc-to-objc-cast.m7 typedef const struct __CFString * CFStringRef; typedef
8 extern const CFStringRef kUTTypePlainText;
9 extern const CFStringRef kUTTypeRTF;
10 extern CFStringRef kNonConst;
17 extern CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid);
20 CFStringRef sref_member;
24 CFStringRef sref;
49 CFStringRef str = (CFStringRef)self;
50 CFStringRef str2 = self;
65 extern void consumeParam(CFStringRef CF_CONSUMED p);
[all …]
Dnonobjc-to-objc-cast-2.m5 typedef const struct __CFString * CFStringRef; typedef
11 CFStringRef sref_member;
15 CFStringRef sref;
30 …return sref; // expected-error {{implicit conversion of C pointer type 'CFStringRef' (aka 'const s…
32 …// expected-note{{use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' (aka 'con…
37 CFStringRef cfstr;
38 …NSString *str = (NSString *)cfstr; // expected-error {{cast of C pointer type 'CFStringRef' (aka '…
40 …// expected-note{{use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' (aka 'con…
45 CFStringRef ref;
46 …ref = [(CFStringRef)[s string] retain]; // expected-error {{cast of Objective-C pointer type 'id' …
[all …]
/external/clang/test/CodeGenObjC/
Darc-unbridged-cast.m4 typedef const struct __CFString * CFStringRef; typedef
7 @property CFStringRef P;
8 - (CFStringRef) CFMeth __attribute__((cf_returns_retained));
9 - (CFStringRef) newSomething;
10 - (CFStringRef) P __attribute__((cf_returns_retained));
21 - (CFStringRef) CFMeth { return 0; }
22 - (CFStringRef) newSomething { return 0; }
23 - (CFStringRef) P { return 0; }
24 - (void) setP : (CFStringRef)arg {} argument
28 CFStringRef SomeOtherFunc() __attribute__((cf_returns_retained));
[all …]
/external/webrtc/sdk/objc/components/video_codec/
Dhelpers.h29 std::string CFStringToString(CFStringRef cf_string);
32 void SetVTSessionProperty(VTSessionRef session, CFStringRef key, int32_t value);
36 CFStringRef key,
40 void SetVTSessionProperty(VTSessionRef session, CFStringRef key, bool value);
44 CFStringRef key,
45 CFStringRef value);
Dhelpers.cc20 std::string CFStringToString(const CFStringRef cf_string) { in CFStringToString()
39 CFStringRef key, in SetVTSessionProperty()
54 CFStringRef key, in SetVTSessionProperty()
69 void SetVTSessionProperty(VTSessionRef session, CFStringRef key, bool value) { in SetVTSessionProperty()
81 CFStringRef key, in SetVTSessionProperty()
82 CFStringRef value) { in SetVTSessionProperty()
/external/clang/test/CodeGen/
DCFStrings.c16 typedef struct __CFString *CFStringRef; typedef
17 const CFStringRef one = (CFStringRef)__builtin___CFStringMakeConstantString("one");
18 const CFStringRef two = (CFStringRef)__builtin___CFStringMakeConstantString("\xef\xbf\xbd\x74\xef\x…
/external/libcups/backend/
Dusb-darwin.c183 … classdriver_s **printer, UInt8 whichString, UInt16 language, UInt16 timeout, CFStringRef *result);
188 kern_return_t (*GetDeviceID)(struct classdriver_s **printer, CFStringRef *devid, UInt16 timeout);
228 CFStringRef make;
229 CFStringRef model;
230 CFStringRef serial;
271 static CFStringRef cfstr_create_trim(const char *cstr);
272 static CFStringRef copy_value_for_key(CFStringRef deviceID, CFStringRef *keys);
273 static kern_return_t load_classdriver(CFStringRef driverPath, printer_interface_t interface, classd…
274 static kern_return_t load_printerdriver(CFStringRef *driverBundlePath);
276 static kern_return_t registry_open(CFStringRef *driverBundlePath);
[all …]
/external/clang/test/Analysis/
Dcfref_PR2519.c7 typedef const struct __CFString * CFStringRef; typedef
26 extern void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFStringRef name, …
32CFStringRef _key = ((CFStringRef) __builtin___CFStringMakeConstantString ("" "Process identifier" … in main()
39 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlPreferencesChanged" "")), in main()
40 ((CFStringRef) __builtin___CFStringMakeConstantString ("" "GrowlUserDefaults" "")), in main()
/external/cronet/net/cert/
Dcert_verify_proc_ios.cc292 base::ScopedCFTypeRef<CFStringRef> error_domain(CFErrorGetDomain(error)); in GetCertFailureStatusFromError()
330 CFStringRef date_string = in GetCertFailureStatusFromTrust()
332 ScopedCFTypeRef<CFStringRef> date_error(CFBundleCopyLocalizedString( in GetCertFailureStatusFromTrust()
334 CFStringRef trust_string = CFSTR("Root certificate is not trusted."); in GetCertFailureStatusFromTrust()
335 ScopedCFTypeRef<CFStringRef> trust_error(CFBundleCopyLocalizedString( in GetCertFailureStatusFromTrust()
337 CFStringRef weak_string = in GetCertFailureStatusFromTrust()
339 ScopedCFTypeRef<CFStringRef> weak_error(CFBundleCopyLocalizedString( in GetCertFailureStatusFromTrust()
341 CFStringRef hostname_mismatch_string = CFSTR("Hostname mismatch."); in GetCertFailureStatusFromTrust()
342 ScopedCFTypeRef<CFStringRef> hostname_mismatch_error( in GetCertFailureStatusFromTrust()
346 CFStringRef root_certificate_string = in GetCertFailureStatusFromTrust()
[all …]
/external/python/cpython2/Mac/Modules/ah/
D_AHmodule.c27 CFStringRef bookname; in Ah_AHSearch()
28 CFStringRef query; in Ah_AHSearch()
60 CFStringRef bookname; in Ah_AHGotoPage()
61 CFStringRef path; in Ah_AHGotoPage()
62 CFStringRef anchor; in Ah_AHGotoPage()
81 CFStringRef bookname; in Ah_AHLookupAnchor()
82 CFStringRef anchor; in Ah_AHLookupAnchor()
/external/cronet/net/proxy_resolution/
Dproxy_resolver_mac.cc57 ProxyServer::Scheme GetProxyServerScheme(CFStringRef proxy_type) { in GetProxyServerScheme()
114 void AddToCurrentRunLoop(const CFStringRef mode);
117 void RemoveFromCurrentRunLoop(const CFStringRef mode);
149 void SynchronizedRunLoopObserver::AddToCurrentRunLoop(const CFStringRef mode) { in AddToCurrentRunLoop()
155 const CFStringRef mode) { in RemoveFromCurrentRunLoop()
241 base::ScopedCFTypeRef<CFStringRef> query_ref( in GetProxyForURL()
247 base::ScopedCFTypeRef<CFStringRef> pac_ref(base::SysUTF8ToCFStringRef( in GetProxyForURL()
280 const CFStringRef private_runloop_mode = in GetProxyForURL()
341 CFStringRef proxy_type = base::mac::GetValueFromDictionary<CFStringRef>( in GetProxyForURL()
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c33 extern PyObject *_CFStringRefObj_New(CFStringRef);
34 extern int _CFStringRefObj_Convert(PyObject *, CFStringRef *);
261 CFStringRef _rv; in CFTypeRefObj_CFCopyDescription()
322 CFStringRef errorString; in CFTypeRefObj_CFPropertyListCreateFromXMLData()
560 CFStringRef _rv; in CFArrayRefObj_CFStringCreateByCombiningStrings()
561 CFStringRef separatorString; in CFArrayRefObj_CFStringCreateByCombiningStrings()
1387 CFStringRef _rv; in CFDataRefObj_CFStringCreateFromExternalRepresentation()
1801 CFStringRef ob_itself;
1805 PyObject *CFStringRefObj_New(CFStringRef itself) in CFStringRefObj_New()
1821 int CFStringRefObj_Convert(PyObject *v, CFStringRef *p_itself) in CFStringRefObj_Convert()
[all …]
/external/webrtc/modules/desktop_capture/mac/
Dwindow_list_utils.cc36 const CFStringRef kStatusIndicator = CFSTR("StatusIndicator");
37 const CFStringRef kStatusIndicatorOwnerName = CFSTR("Window Server");
39 bool ToUtf8(const CFStringRef str16, std::string* str8) { in ToUtf8()
146 CFStringRef window_title = reinterpret_cast<CFStringRef>( in GetWindowList()
153 CFStringRef window_owner_name = reinterpret_cast<CFStringRef>( in GetWindowList()
289 CFStringRef title = reinterpret_cast<CFStringRef>( in GetWindowTitle()
310 CFStringRef owner_name = reinterpret_cast<CFStringRef>( in GetWindowOwnerName()
/external/cronet/base/strings/
Dsys_string_conversions_mac.mm27 StringType CFStringToStringWithEncodingT(CFStringRef cfstring,
79 base::ScopedCFTypeRef<CFStringRef> cfstring(CFStringCreateWithBytesNoCopy(
92 // it as a CFStringRef. Returns null on failure.
94 ScopedCFTypeRef<CFStringRef> StringPieceToCFStringWithEncodingsT(
99 return ScopedCFTypeRef<CFStringRef>(CFSTR(""), base::scoped_policy::RETAIN);
101 return ScopedCFTypeRef<CFStringRef>(CFStringCreateWithBytes(
132 ScopedCFTypeRef<CFStringRef> SysUTF8ToCFStringRef(StringPiece utf8) {
136 ScopedCFTypeRef<CFStringRef> SysUTF16ToCFStringRef(StringPiece16 utf16) {
148 std::string SysCFStringRefToUTF8(CFStringRef ref) {
152 std::u16string SysCFStringRefToUTF16(CFStringRef ref) {
/external/cronet/net/base/
Dproxy_string_util_mac.cc20 CFStringRef host_key, in ProxyDictionaryToProxyServer()
21 CFStringRef port_key) { in ProxyDictionaryToProxyServer()
28 CFStringRef host_ref = in ProxyDictionaryToProxyServer()
29 base::mac::GetValueFromDictionary<CFStringRef>(dict, host_key); in ProxyDictionaryToProxyServer()
/external/clang/test/FixIt/
Dformat-no-fixit.m21 typedef const struct __CFString * CFStringRef; typedef
23 void test_cf_object_correction (CFStringRef x) {
26 …%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'CFStringRef'}}
27 …, x); // expected-warning{{format specifies type 'char *' but the argument has type 'CFStringRef'}}
28 …, x); // expected-warning{{format specifies type 'double' but the argument has type 'CFStringRef'}}

12345678