/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/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/module/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/base/services/core/java/com/android/server/display/brightness/ |
D | BrightnessReason.java | 143 int strlen = sb.length(); in toString() local 144 if (sb.charAt(strlen - 1) == '[') { in toString() 145 sb.setLength(strlen - 2); in toString()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_ZygoteCommandBuffer.cpp | 167 static const size_t RA_LENGTH = strlen(RUNTIME_ARGS); in isSimpleForkCommand() 168 static const size_t IW_LENGTH = strlen(INVOKE_WITH); in isSimpleForkCommand() 169 static const size_t CZ_LENGTH = strlen(CHILD_ZYGOTE); in isSimpleForkCommand() 170 static const size_t SU_LENGTH = strlen(SETUID); in isSimpleForkCommand() 171 static const size_t SG_LENGTH = strlen(SETGID); in isSimpleForkCommand() 172 static const size_t CA_LENGTH = strlen(CAPABILITIES); in isSimpleForkCommand() 173 static const size_t NN_LENGTH = strlen(NICE_NAME); in isSimpleForkCommand() 261 static const size_t WRAP_LENGTH = strlen(WRAP); in haveWrapProperty()
|
/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 | 270 int excludeExtensionLen = strlen(kExcludeExtension); in processFile() 384 int pos = pathName.length() - strlen(str); in okayToCompress() 399 size_t a = strlen(haystack); in endsWith() 400 size_t b = strlen(needle); in endsWith()
|
/frameworks/libs/binary_translation/tests/perf_tests/ |
D | perf_test.cc | 113 int e = strlen(str); in TEST() 117 result ^= strlen(str + j); in TEST() 133 len = strlen(str); in TEST()
|
/frameworks/opt/net/wifi/libwifi_hal/ |
D | wifi_hal_common.cpp | 123 len = strlen(state) + 1; in wifi_change_driver_state() 164 if (strncmp(line, DRIVER_MODULE_TAG, strlen(DRIVER_MODULE_TAG)) == 0) { in is_wifi_driver_loaded() 265 len = strlen(fwpath) + 1; in wifi_change_fw_path()
|
/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/libs/binary_translation/kernel_api/ |
D | exec_emulation.cc | 54 text_size += strlen(env) + 1; // count terminating '\0' in MangleGuestEnvp() 80 new_text += strlen(env) + 1; // count terminating '\0' in MangleGuestEnvp()
|
/frameworks/av/media/libnblog/ |
D | Writer.cpp | 51 size_t length = strlen(procName); in Writer() 81 size_t length = strlen(string); in log() 213 size_t length = strlen(fmt); in logStart() 255 length = strlen(s); in logVFormat()
|
/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/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/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 132 strlen(MEDIA_MIMETYPE_VIDEO_VP8))) { in videoTrack() 137 strlen(MEDIA_MIMETYPE_VIDEO_VP9))) { in videoTrack() 164 if (!strncasecmp(mimeType, MEDIA_MIMETYPE_AUDIO_OPUS, strlen(MEDIA_MIMETYPE_AUDIO_OPUS))) { in audioTrack() 209 strlen(MEDIA_MIMETYPE_AUDIO_VORBIS))) { in audioTrack() 483 if (!strncasecmp(mime, vp8, strlen(vp8)) || in addSource() 484 !strncasecmp(mime, vp9, strlen(vp9))) { in addSource() 486 } else if (!strncasecmp(mime, vorbis, strlen(vorbis)) || in addSource() 487 !strncasecmp(mime, opus, strlen(opus))) { in addSource()
|
/frameworks/base/libs/androidfw/ |
D | PathUtils.cpp | 88 size_t len = strlen(name); in setPathName() 116 int newlen = strlen(name); in appendPath()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 92 uint32_t length = strlen(text); in drawUtf8ToCanvas() 103 canvas->drawTextOnPath(utf16.get(), strlen(text), minikin::Bidi::LTR, path, 0, 0, paint, in drawUtf8ToCanvas() 122 const int length = strlen(str); in asciiToUtf16()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableTests.cpp | 267 size_t length = strlen(testData.pathString); in TEST() 277 strlen(stringPath.stringPath)); in TEST() 295 size_t length = strlen(testData.pathString); in TEST() 310 strlen(stringPath.stringPath)); in TEST()
|
/frameworks/minikin/libs/minikin/ |
D | StringPiece.h | 29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} in StringPiece() 75 if (len != strlen(s)) {
|