/frameworks/av/media/libmediaplayerservice/ |
D | TestPlayerStub.cpp | 55 return url && strncmp(url, kTestUrlScheme, strlen(kTestUrlScheme)) == 0; in isTestUrl() 89 if (strlen(mUrl) < strlen(kTestUrlScheme)) { in parseUrl() 94 char *i = mUrl + strlen(kTestUrlScheme); in parseUrl() 102 if (*i == '\0' || strncmp(i + 1, kUrlParam, strlen(kUrlParam)) != 0) { in parseUrl() 108 mContentUrl = i + 1 + strlen(kUrlParam); in parseUrl()
|
/frameworks/av/services/mediaanalytics/ |
D | statsd_drm.cpp | 59 serialized_metrics ? strlen(serialized_metrics) in statsd_mediadrm() 68 serialized_metrics ? strlen(serialized_metrics) : 0); in statsd_mediadrm() 92 serialized_metrics ? strlen(serialized_metrics) in statsd_widevineCDM() 100 serialized_metrics ? strlen(serialized_metrics) : 0); in statsd_widevineCDM()
|
/frameworks/av/media/libmedia/ |
D | CharacterEncodingDetector.cpp | 120 if (!isPrintableAscii(value, strlen(value)) && ( in detectAndConvert() 138 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf)); in detectAndConvert() 140 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 143 const UCharsetMatch* bestCombinedMatch = getPreferred(buf, strlen(buf), in detectAndConvert() 147 if (!goodmatch && (highest < 15 || strlen(buf) < 20)) { in detectAndConvert() 159 if (isPrintableAscii(value, strlen(value)) && ( in detectAndConvert() 169 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 171 bestCombinedMatch = getPreferred(buf, strlen(buf), in detectAndConvert() 196 int len = strlen((char *)src); in detectAndConvert() 200 int32_t inputLength = strlen(s); in detectAndConvert() [all …]
|
D | MediaScanner.cpp | 59 if (!mSkipList || (strlen(mSkipList) == 0)) { in loadSkipList() 72 mSkipIndex[i++] = strlen(path); in loadSkipList() 83 int pathLength = strlen(path); in processDirectory() 111 int len = strlen(path); in shouldSkipDirectory() 134 char* fileSpot = path + strlen(path); in doProcessDirectory() 183 int nameLength = strlen(name); in doProcessDirectoryEntry()
|
D | StringArray.cpp | 63 int len = strlen(str); in push_back() 107 int len = strlen(str); in setEntry()
|
/frameworks/base/libs/androidfw/tests/ |
D | Locale_test.cpp | 42 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != in TestLanguage() 69 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != in TestLanguageRegion() 76 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != in TestLanguageRegion()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ADebug.cpp | 70 size_t globLen = (next == NULL ? strlen(colon) : (next - 1 - colon)); in GetLevelFromSettingsString() 76 colon, globLen, name, strlen(name), true /* ignoreCase */)) { in GetLevelFromSettingsString() 110 const size_t len = strlen(term); in GetDebugName() 118 memmove(match, src, debugName + strlen(debugName) - src + 1); in GetDebugName()
|
D | AString.cpp | 115 setTo(s, strlen(s)); in setTo() 188 append(s, strlen(s)); in append() 341 return !strncmp(mData, prefix, strlen(prefix)); in startsWith() 345 size_t suffixLen = strlen(suffix); in endsWith() 355 return !strncasecmp(mData, prefix, strlen(prefix)); in startsWithIgnoreCase() 359 size_t suffixLen = strlen(suffix); in endsWithIgnoreCase()
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | PathParserBench.cpp | 33 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForSkPath() 44 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForPathData()
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 104 len = strlen(state) + 1; in wifi_change_driver_state() 145 if (strncmp(line, DRIVER_MODULE_TAG, strlen(DRIVER_MODULE_TAG)) == 0) { in is_wifi_driver_loaded() 246 len = strlen(fwpath) + 1; in wifi_change_fw_path()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyMix.cpp | 248 if (strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in mixMatch() 249 strncmp(attributes.tags + strlen("addr="), in mixMatch() 251 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in mixMatch() 327 strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in mixMatch() 328 strncmp(attributes.tags + strlen("addr="), in mixMatch() 330 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in mixMatch() 390 if (strncmp(attr.tags, "addr=", strlen("addr=")) != 0) { in getInputMixForAttr() 393 String8 address(attr.tags + strlen("addr=")); in getInputMixForAttr()
|
/frameworks/base/tools/aapt/ |
D | AaptUtil.cpp | 32 parts.add(String8(p, strlen(p))); in split() 50 String8 val(p, strlen(p)); in splitAndLowerCase()
|
D | Package.cpp | 268 int excludeExtensionLen = strlen(kExcludeExtension); in processFile() 382 int pos = pathName.length() - strlen(str); in okayToCompress() 397 size_t a = strlen(haystack); in endsWith() 398 size_t b = strlen(needle); in endsWith()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 100 strlen(MEDIA_MIMETYPE_VIDEO_VP8))) { in videoTrack() 105 strlen(MEDIA_MIMETYPE_VIDEO_VP9))) { in videoTrack() 132 if (!strncasecmp(mimeType, MEDIA_MIMETYPE_AUDIO_OPUS, strlen(MEDIA_MIMETYPE_AUDIO_OPUS))) { in audioTrack() 177 strlen(MEDIA_MIMETYPE_AUDIO_VORBIS))) { 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()
|
/frameworks/av/media/libnblog/ |
D | Writer.cpp | 51 size_t length = strlen(procName); in Writer() 77 size_t length = strlen(string); in log() 209 size_t length = strlen(fmt); in logStart() 251 length = strlen(s); in logVFormat()
|
/frameworks/rs/cpp/ |
D | rsCppUtils.cpp | 35 return rsuCopyString(name, strlen(name)); in rsuCopyString() 114 len = strlen(default_value); in property_get()
|
/frameworks/rs/ |
D | rsCppUtils.cpp | 35 return rsuCopyString(name, strlen(name)); in rsuCopyString() 114 len = strlen(default_value); in property_get()
|
/frameworks/av/media/libdatasource/ |
D | DataURISource.cpp | 44 int len = strlen(src) + 1; in Create() 71 size_t dataLen = strlen(uri) - tmp.size() - 6; in Create()
|
/frameworks/base/tools/incident_report/ |
D | printer.cpp | 27 const int SPACE_COUNT = strlen(SPACES); 86 int size = p != NULL ? p - last + 1 : strlen(last); in printf()
|
/frameworks/minikin/libs/minikin/ |
D | Locale.cpp | 220 const char* pos = std::search(buf, buf + length, kPrefix, kPrefix + strlen(kPrefix)); in resolveUnicodeExtension() 222 pos += strlen(kPrefix); in resolveUnicodeExtension() 237 const char* pos = std::search(buf, buf + length, kPrefix, kPrefix + strlen(kPrefix)); in resolveLineBreakStyle() 239 pos += strlen(kPrefix); in resolveLineBreakStyle() 261 const char* pos = std::search(buf, buf + length, kPrefix, kPrefix + strlen(kPrefix)); in resolveEmojiStyle() 263 pos += strlen(kPrefix); in resolveEmojiStyle()
|
D | StringPiece.h | 29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} in StringPiece() 74 if (len != strlen(s)) {
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 84 uint32_t length = strlen(text); in drawUtf8ToCanvas() 95 canvas->drawTextOnPath(utf16.get(), strlen(text), minikin::Bidi::LTR, path, 0, 0, paint, in drawUtf8ToCanvas() 114 const int length = strlen(str); in asciiToUtf16()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableTests.cpp | 261 size_t length = strlen(testData.pathString); in TEST() 271 strlen(stringPath.stringPath)); in TEST() 289 size_t length = strlen(testData.pathString); in TEST() 304 strlen(stringPath.stringPath)); in TEST()
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | test-mixer.cpp | 159 if (!strncmp(argv[i], chirp, strlen(chirp))) { in main() 161 const char *s = parseFormat(argv[i] + strlen(chirp), &useFloat); in main() 177 } else if (!strncmp(argv[i], sine, strlen(sine))) { in main() 179 const char *s = parseFormat(argv[i] + strlen(sine), &useFloat); in main()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | MyTransmitter.h | 56 size_t keyLen = strlen(key); in GetAttribute() 62 (colonPos == NULL) ? strlen(s) : colonPos - s; in GetAttribute() 945 data[offset++] = strlen(kCNAME); in onMessageReceived() 947 memcpy(&data[offset], kCNAME, strlen(kCNAME)); in onMessageReceived() 948 offset += strlen(kCNAME); in onMessageReceived() 953 data[offset++] = strlen(kNOTE); in onMessageReceived() 955 memcpy(&data[offset], kNOTE, strlen(kNOTE)); in onMessageReceived() 956 offset += strlen(kNOTE); in onMessageReceived()
|