Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 275) sorted by relevance

1234567891011

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dsubstitute.h90 : text_(value), size_(strlen(text_)) {} in SubstituteArg()
107 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
109 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
111 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
113 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
115 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
117 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
119 : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
121 : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
123 : text_(FloatToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
[all …]
/frameworks/av/media/libmediaplayerservice/
DTestPlayerStub.cpp55 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/
Dstatsd_drm.cpp59 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/
DCharacterEncodingDetector.cpp120 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 …]
DMediaScanner.cpp59 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()
DStringArray.cpp63 int len = strlen(str); in push_back()
107 int len = strlen(str); in setEntry()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/io/
Dcoded_stream_unittest.cc656 EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes))); in TEST_1D()
660 EXPECT_EQ(strlen(kRawBytes), input.ByteCount()); in TEST_1D()
702 EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes))); in TEST_1D()
703 EXPECT_EQ(sizeof(kRawBytes) - strlen(kRawBytes), in TEST_1D()
707 EXPECT_GE(str.capacity(), strlen(kRawBytes)); in TEST_1D()
710 EXPECT_EQ(strlen(kRawBytes), input.ByteCount()); in TEST_1D()
722 EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes))); in TEST_1D()
725 EXPECT_GE(str.capacity(), strlen(kRawBytes)); in TEST_1D()
728 EXPECT_EQ(strlen(kRawBytes), input.ByteCount()); in TEST_1D()
742 EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes))); in TEST_F()
[all …]
Dstrtod.cc69 result.reserve(strlen(input) + size - 3); in LocalizeRadix()
103 int size_diff = localized.size() - strlen(text); in NoLocaleStrtod()
/frameworks/base/libs/androidfw/tests/
DLocale_test.cpp42 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/
DADebug.cpp70 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()
DAString.cpp112 setTo(s, strlen(s)); in setTo()
185 append(s, strlen(s)); in append()
338 return !strncmp(mData, prefix, strlen(prefix)); in startsWith()
342 size_t suffixLen = strlen(suffix); in endsWith()
352 return !strncasecmp(mData, prefix, strlen(prefix)); in startsWithIgnoreCase()
356 size_t suffixLen = strlen(suffix); in endsWithIgnoreCase()
/frameworks/base/libs/hwui/tests/microbench/
DPathParserBench.cpp33 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForSkPath()
44 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForPathData()
/frameworks/base/tools/aapt/
DAaptUtil.cpp32 parts.add(String8(p, strlen(p))); in split()
50 String8 val(p, strlen(p)); in splitAndLowerCase()
/frameworks/opt/net/wifi/libwifi_hal/
Dwifi_hal_common.cpp104 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/
DAudioPolicyMix.cpp249 if (strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in mixMatch()
250 strncmp(attributes.tags + strlen("addr="), in mixMatch()
252 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in mixMatch()
328 strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in mixMatch()
329 strncmp(attributes.tags + strlen("addr="), in mixMatch()
331 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in mixMatch()
391 if (strncmp(attr.tags, "addr=", strlen("addr=")) != 0) { in getInputMixForAttr()
394 String8 address(attr.tags + strlen("addr=")); in getInputMixForAttr()
/frameworks/rs/
DrsCppUtils.cpp35 return rsuCopyString(name, strlen(name)); in rsuCopyString()
114 len = strlen(default_value); in property_get()
/frameworks/rs/cpp/
DrsCppUtils.cpp35 return rsuCopyString(name, strlen(name)); in rsuCopyString()
114 len = strlen(default_value); in property_get()
/frameworks/av/media/libnblog/
DWriter.cpp51 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/av/media/libstagefright/webm/
DWebmWriter.cpp100 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/libstagefright/
DDataURISource.cpp44 int len = strlen(src) + 1; in Create()
71 size_t dataLen = strlen(uri) - tmp.size() - 6; in Create()
/frameworks/base/tools/incident_report/
Dprinter.cpp27 const int SPACE_COUNT = strlen(SPACES);
86 int size = p != NULL ? p - last + 1 : strlen(last); in printf()
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/common/
Dandroid_util.cpp73 vector[0] = (char *)malloc(strlen(appName) * sizeof(char)); in get_args()
77 vector[i + 1] = (char *)malloc(strlen(args[i].c_str()) * sizeof(char)); in get_args()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp84 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/minikin/libs/minikin/
DLocale.cpp220 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()
DStringPiece.h29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} in StringPiece()
74 if (len != strlen(s)) {

1234567891011