/aosp12/bionic/tests/ |
H A D | strings_test.cpp | 97 TEST(STRINGS_TEST, strncasecmp) { in TEST() argument 98 ASSERT_EQ(0, strncasecmp("hello", "HELLO", 3)); in TEST() 99 ASSERT_EQ(0, strncasecmp("abcXX", "ABCYY", 3)); in TEST() 100 ASSERT_LT(strncasecmp("hello1", "hello2", 6), 0); in TEST() 101 ASSERT_GT(strncasecmp("hello2", "hello1", 6), 0); in TEST()
|
/aosp12/frameworks/av/media/libdatasource/ |
H A D | DataSourceFactory.cpp | 57 if (!strncasecmp("file://", uri, 7)) { in CreateFromURI() 59 } else if (!strncasecmp("http://", uri, 7) || !strncasecmp("https://", uri, 8)) { in CreateFromURI() 97 } else if (!strncasecmp("data:", uri, 5)) { in CreateFromURI()
|
/aosp12/bionic/libc/tzcode/ |
H A D | strptime.c | 240 if (strncasecmp(_ctloc(day[i]), (const char*)bp, len) == 0) in _strptime() 245 if (strncasecmp(_ctloc(abday[i]), (const char*)bp, len) == 0) in _strptime() 264 if (strncasecmp(_ctloc(mon[i]), (const char*)bp, len) == 0) in _strptime() 269 if (strncasecmp(_ctloc(abmon[i]), (const char*)bp, len) == 0) in _strptime() 339 if (strncasecmp(_ctloc(am_pm[0]), (const char*)bp, len) == 0) { in _strptime() 350 if (strncasecmp(_ctloc(am_pm[1]), (const char*)bp, len) == 0) { in _strptime() 621 if (strncasecmp(*n1, (const char *)bp, len) == 0) { in _find_string()
|
/aosp12/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerFactory.cpp | 180 if (!strncasecmp("http://", url, 7) in scoreFactory() 181 || !strncasecmp("https://", url, 8) in scoreFactory() 182 || !strncasecmp("file://", url, 7)) { in scoreFactory() 197 if (!strncasecmp("rtsp://", url, 7)) { in scoreFactory()
|
H A D | StagefrightMetadataRetriever.cpp | 177 if (meta->findCString(kKeyMIMEType, &mime) && !strncasecmp(mime, "image/", 6)) { in getImageInternal() 307 if (meta->findCString(kKeyMIMEType, &mime) && !strncasecmp(mime, "video/", 6)) { in getFrameInternal() 572 if (!hasAudio && !strncasecmp("audio/", mime, 6)) { in parseMetaData() 591 } else if (!hasVideo && !strncasecmp("video/", mime, 6)) { in parseMetaData() 606 } else if (!strncasecmp("image/", mime, 6)) { in parseMetaData() 715 && !strncasecmp("audio/", trackMIME, 6)) { in parseMetaData()
|
/aosp12/frameworks/av/media/libstagefright/webm/ |
H A D | WebmWriter.cpp | 97 if (!strncasecmp( in videoTrack() 102 } else if (!strncasecmp( in videoTrack() 132 if (!strncasecmp(mimeType, MEDIA_MIMETYPE_AUDIO_OPUS, strlen(MEDIA_MIMETYPE_AUDIO_OPUS))) { in audioTrack() 175 } else if (!strncasecmp(mimeType, in audioTrack() 451 if (!strncasecmp(mime, vp8, strlen(vp8)) || in addSource() 452 !strncasecmp(mime, vp9, strlen(vp9))) { in addSource() 454 } else if (!strncasecmp(mime, vorbis, strlen(vorbis)) || in addSource() 455 !strncasecmp(mime, opus, strlen(opus))) { in addSource()
|
/aosp12/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | strcasecmp.c | 91 strncasecmp(const char *s1, const char *s2, size_t n) in strncasecmp() function 107 DEF_WEAK(strncasecmp);
|
H A D | strcasestr.c | 56 } while (strncasecmp(s, find, len) != 0); in strcasestr()
|
/aosp12/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/ |
H A D | IPACM_Xml.cpp | 107 ret = strncasecmp(xml_str, str, len1); in IPACM_util_icmp_string() 230 if (0 == strncasecmp(content_buf, ODU_ROUTER_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 235 else if (0 == strncasecmp(content_buf, ODU_BRIDGE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 283 if (0 == strncasecmp(content_buf, WANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 288 else if (0 == strncasecmp(content_buf, LANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 293 else if (0 == strncasecmp(content_buf, WLANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 298 else if (0 == strncasecmp(content_buf, VIRTUALIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 308 else if (0 == strncasecmp(content_buf, ETHIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 313 else if (0 == strncasecmp(content_buf, ODUIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 350 if (0 == strncasecmp(content_buf, WLAN_FULL_MODE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() [all …]
|
/aosp12/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/ |
H A D | IPACM_Xml.cpp | 107 ret = strncasecmp(xml_str, str, len1); in IPACM_util_icmp_string() 230 if (0 == strncasecmp(content_buf, ODU_ROUTER_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 235 else if (0 == strncasecmp(content_buf, ODU_BRIDGE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 283 if (0 == strncasecmp(content_buf, WANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 288 else if (0 == strncasecmp(content_buf, LANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 293 else if (0 == strncasecmp(content_buf, WLANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 298 else if (0 == strncasecmp(content_buf, VIRTUALIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 308 else if (0 == strncasecmp(content_buf, ETHIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 313 else if (0 == strncasecmp(content_buf, ODUIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 350 if (0 == strncasecmp(content_buf, WLAN_FULL_MODE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() [all …]
|
/aosp12/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/ |
H A D | IPACM_Xml.cpp | 116 ret = strncasecmp(xml_str, str, len1); in IPACM_util_icmp_string() 239 if (0 == strncasecmp(content_buf, ODU_ROUTER_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 244 else if (0 == strncasecmp(content_buf, ODU_BRIDGE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 292 if (0 == strncasecmp(content_buf, WANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 297 else if (0 == strncasecmp(content_buf, LANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 302 else if (0 == strncasecmp(content_buf, WLANIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 307 else if (0 == strncasecmp(content_buf, VIRTUALIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 317 else if (0 == strncasecmp(content_buf, ETHIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 322 else if (0 == strncasecmp(content_buf, ODUIF_TAG, str_size)) in ipacm_cfg_xml_parse_tree() 359 if (0 == strncasecmp(content_buf, WLAN_FULL_MODE_TAG, str_size)) in ipacm_cfg_xml_parse_tree() [all …]
|
/aosp12/system/libbase/ |
H A D | strings.cpp | 99 return s.size() >= prefix.size() && strncasecmp(s.data(), prefix.data(), prefix.size()) == 0; in StartsWithIgnoreCase() 112 strncasecmp(s.data() + (s.size() - suffix.size()), suffix.data(), suffix.size()) == 0; in EndsWithIgnoreCase() 116 return lhs.size() == rhs.size() && strncasecmp(lhs.data(), rhs.data(), lhs.size()) == 0; in EqualsIgnoreCase()
|
/aosp12/frameworks/av/media/libstagefright/httplive/ |
H A D | HTTPDownloader.cpp | 93 if (!strncasecmp(url, "file://", 7)) { in fetchBlock() 95 } else if (strncasecmp(url, "http://", 7) in fetchBlock() 96 && strncasecmp(url, "https://", 8)) { in fetchBlock()
|
/aosp12/bionic/libc/dns/nameser/ |
H A D | ns_samedomain.c | 105 return (strncasecmp(a, b, lb) == 0); in ns_samedomain() 145 return (strncasecmp(cp, b, lb) == 0); in ns_samedomain()
|
/aosp12/hardware/qcom/audio/hal/audio_extn/ |
H A D | sndmonitor.c | 194 if ((strncasecmp(card_id, "msm", 3) != 0) && in enum_sndcards() 195 (strncasecmp(card_id, "sdm", 3) != 0) && in enum_sndcards() 196 (strncasecmp(card_id, "sdc", 3) != 0) && in enum_sndcards() 197 (strncasecmp(card_id, "apq", 3) != 0) && in enum_sndcards() 198 (strncasecmp(card_id, "sm8150", 6) != 0)) { in enum_sndcards()
|
/aosp12/frameworks/base/tools/aapt2/util/ |
H A D | Files.cpp | 303 if (strncasecmp(token_str, kDir, sizeof(kDir)) == 0) { in operator ()() 310 if (strncasecmp(token_str, kFile, sizeof(kFile)) == 0) { in operator ()() 325 strncasecmp(token_str, filename.c_str() + filename_len - n, n) == 0; in operator ()() 329 ignore = strncasecmp(token_str, filename.c_str(), n - 1) == 0; in operator ()()
|
/aosp12/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 229 if (!strncasecmp(mime, "audio/", 6)) { in initFromDataSource() 244 } else if (!strncasecmp(mime, "video/", 6)) { in initFromDataSource() 382 if (!strncasecmp("http://", uri, 7) || !strncasecmp("https://", uri, 8)) { in onPrepareAsync() 655 if (!strncasecmp(mime, "audio/", 6)) { in onMessageReceived() 660 CHECK(!strncasecmp(mime, "video/", 6)); in onMessageReceived() 969 if (!strncasecmp(mime, "video/", 6)) { in getTrackInfo() 971 } else if (!strncasecmp(mime, "audio/", 6)) { in getTrackInfo() 1057 if (!strncasecmp(mime, "text/", 5)) { in selectTrack() 1105 } else if (!strncasecmp(mime, "audio/", 6) || !strncasecmp(mime, "video/", 6)) { in selectTrack() 1106 bool audio = !strncasecmp(mime, "audio/", 6); in selectTrack()
|
/aosp12/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 402 if (!strncasecmp("video/", mime, 6)) { in playSource() 413 } else if (!strncasecmp("audio/", mime, 6)) { in playSource() 1090 if (strncasecmp(filename, "sine:", 5) && dataSource == NULL) { in main() 1110 } else if (!strncasecmp("sine:", filename, 5)) { in main() 1161 if (!haveAudio && !strncasecmp("audio/", mime, 6)) { in main() 1164 } else if (!haveVideo && !strncasecmp("video/", mime, 6)) { in main() 1190 if (audioOnly && !strncasecmp(mime, "audio/", 6)) { in main() 1194 if (!audioOnly && !strncasecmp(mime, "video/", 6)) { in main()
|
H A D | muxer.cpp | 109 bool isAudio = !strncasecmp(mime.c_str(), "audio/", 6); in muxing() 110 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6); in muxing()
|
/aosp12/bionic/libc/bionic/ |
H A D | strings_l.cpp | 37 return strncasecmp(s1, s2, n); in strncasecmp_l()
|
/aosp12/bionic/libc/include/bits/ |
H A D | strcasecmp.h | 64 int strncasecmp(const char* __s1, const char* __s2, size_t __n) __attribute_pure__;
|
/aosp12/bionic/tests/headers/posix/ |
H A D | strings_h.c | 41 FUNCTION(strncasecmp, int (*f)(const char*, const char*, size_t)); in strings_h()
|
/aosp12/system/logging/logd/ |
H A D | LogKlog.cpp | 587 if (!fastcmp<strncasecmp>(bt + 1, cp + 1, size - 1)) { // no match in log() 668 ((size == warningLen) && !fastcmp<strncasecmp>(tag, warning, warningLen)) || in log() 669 ((size == errorLen) && !fastcmp<strncasecmp>(tag, error, errorLen)) || in log() 670 ((size == infoLen) && !fastcmp<strncasecmp>(tag, info, infoLen))) { in log()
|
/aosp12/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | AnotherPacketSource.cpp | 72 if (!strncasecmp("audio/", mime, 6)) { in setFormat() 74 } else if (!strncasecmp("video/", mime, 6)) { in setFormat() 76 } else if (!strncasecmp("text/", mime, 5) || !strncasecmp("application/", mime, 12)) { in setFormat()
|
/aosp12/hardware/qcom/bt/msm8909w_3100/libbt-vendor/src/ |
H A D | bt_vendor_qcom.c | 198 if (!strncasecmp(bt_soc_type, "rome", sizeof("rome"))) { in get_bt_soc_type() 201 else if (!strncasecmp(bt_soc_type, "cherokee", sizeof("cherokee"))) { in get_bt_soc_type() 204 else if (!strncasecmp(bt_soc_type, "ath3k", sizeof("ath3k"))) { in get_bt_soc_type() 207 else if (!strncasecmp(bt_soc_type, "cherokee", sizeof("cherokee"))) { in get_bt_soc_type() 728 if (!strncasecmp(init_value, "1", sizeof("1"))) { in is_soc_initialized()
|