/frameworks/native/libs/binder/ |
D | TextOutput.cpp | 51 to.print(buf, strlen(buf)); in operator <<() 59 to.print(buf, strlen(buf)); in operator <<() 67 to.print(buf, strlen(buf)); in operator <<() 75 to.print(buf, strlen(buf)); in operator <<() 83 to.print(buf, strlen(buf)); in operator <<() 91 to.print(buf, strlen(buf)); in operator <<() 103 to.print(buf, strlen(buf)); in print_float() 121 to.print(buf, strlen(buf)); in operator <<() 139 ((TextOutput*)cookie)->print(txt, strlen(txt)); in textOutputPrinter()
|
/frameworks/opt/net/wifi/tests/wifitests/jni/ |
D | wifi_hal_mock.cpp | 66 strlen(hal_json_tags::type_tag)), in put_int() 68 strlen(hal_json_tags::type_int_tag)), in put_int() 72 strlen(hal_json_tags::value_tag)), in put_int() 74 doc.AddMember(rapidjson::Value(name, strlen(name)), object, allocator); in put_int() 82 strlen(hal_json_tags::type_tag)), in put_byte_array() 84 strlen(hal_json_tags::type_byte_array_tag)), in put_byte_array() 94 strlen(hal_json_tags::value_tag)), in put_byte_array() 96 doc.AddMember(rapidjson::Value(name, strlen(name)), object, allocator); in put_byte_array()
|
/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 | 96 if (!isPrintableAscii(value, strlen(value)) && ( in detectAndConvert() 114 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf)); in detectAndConvert() 116 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 121 const UCharsetMatch* bestCombinedMatch = getPreferred(buf, strlen(buf), in detectAndConvert() 125 if (!goodmatch && (highest < 15 || strlen(buf) < 20)) { in detectAndConvert() 137 if (isPrintableAscii(value, strlen(value)) && ( in detectAndConvert() 147 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 149 bestCombinedMatch = getPreferred(buf, strlen(buf), in detectAndConvert() 170 int len = strlen((char *)src); in detectAndConvert() 174 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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioPolicyMix.cpp | 137 if (strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in getOutputForAttr() 138 strncmp(attributes.tags + strlen("addr="), in getOutputForAttr() 140 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in getOutputForAttr() 216 strncmp(attributes.tags, "addr=", strlen("addr=")) == 0 && in getOutputForAttr() 217 strncmp(attributes.tags + strlen("addr="), in getOutputForAttr() 219 AUDIO_ATTRIBUTES_TAGS_MAX_SIZE - strlen("addr=") - 1) == 0) { in getOutputForAttr() 261 if (strncmp(attr.tags, "addr=", strlen("addr=")) != 0) { in getInputMixForAttr() 264 String8 address(attr.tags + strlen("addr=")); in getInputMixForAttr()
|
D | VolumeCurve.cpp | 103 write(fd, buffer, strlen(buffer)); in dump() 116 write(fd, buffer, strlen(buffer)); in dump() 119 write(fd, buffer, strlen(buffer)); in dump() 122 write(fd, buffer, strlen(buffer)); in dump() 126 write(fd, buffer, strlen(buffer)); in dump() 133 write(fd, buffer, strlen(buffer)); in dump()
|
D | AudioCollections.cpp | 49 write(fd, buffer, strlen(buffer)); in dump() 52 write(fd, buffer, strlen(buffer)); in dump()
|
D | AudioSourceDescriptor.cpp | 54 write(fd, buffer, strlen(buffer)); in dump() 57 write(fd, buffer, strlen(buffer)); in dump()
|
D | HwModule.cpp | 234 write(fd, " - outputs:\n", strlen(" - outputs:\n")); in dump() 237 write(fd, buffer, strlen(buffer)); in dump() 242 write(fd, " - inputs:\n", strlen(" - inputs:\n")); in dump() 245 write(fd, buffer, strlen(buffer)); in dump() 334 write(fd, buffer, strlen(buffer)); in dump() 337 write(fd, buffer, strlen(buffer)); in dump()
|
D | EffectDescriptor.cpp | 185 write(fd, buffer, strlen(buffer)); in dump() 188 write(fd, buffer, strlen(buffer)); in dump() 191 write(fd, buffer, strlen(buffer)); in dump()
|
D | StreamDescriptor.cpp | 213 write(fd, buffer, strlen(buffer)); in dump() 216 write(fd, buffer, strlen(buffer)); in dump() 219 write(fd, buffer, strlen(buffer)); in dump()
|
/frameworks/base/core/jni/ |
D | android_server_Watchdog.cpp | 38 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1); in dumpOneStack() 39 write(outFd, buf, strlen(buf)); in dumpOneStack() 75 write(outFd, buf, strlen(buf)); in dumpKernelStacks() 93 write(outFd, buf, strlen(buf)); in dumpKernelStacks()
|
/frameworks/native/cmds/installd/ |
D | globals.cpp | 123 android_system_dirs.dirs[0].len = strlen(android_system_dirs.dirs[0].path); in init_globals_from_data_and_root() 126 android_system_dirs.dirs[1].len = strlen(android_system_dirs.dirs[1].path); in init_globals_from_data_and_root() 129 android_system_dirs.dirs[2].len = strlen(android_system_dirs.dirs[2].path); in init_globals_from_data_and_root() 132 android_system_dirs.dirs[3].len = strlen(android_system_dirs.dirs[3].path); in init_globals_from_data_and_root()
|
D | commands.cpp | 658 if (strlen(instruction_set) >= MAX_INSTRUCTION_SET_LEN) { in run_patchoat() 665 char instruction_set_arg[strlen("--instruction-set=") + MAX_INSTRUCTION_SET_LEN]; in run_patchoat() 666 char output_oat_fd_arg[strlen("--output-oat-fd=") + MAX_INT_LEN]; in run_patchoat() 667 char input_oat_fd_arg[strlen("--input-oat-fd=") + MAX_INT_LEN]; in run_patchoat() 697 if (strlen(instruction_set) >= MAX_INSTRUCTION_SET_LEN) { in run_dex2oat() 750 char image_format_arg[strlen("--image-format=") + kPropertyValueMax]; in run_dex2oat() 763 char zip_fd_arg[strlen("--zip-fd=") + MAX_INT_LEN]; in run_dex2oat() 764 char zip_location_arg[strlen("--zip-location=") + PKG_PATH_MAX]; in run_dex2oat() 765 char oat_fd_arg[strlen("--oat-fd=") + MAX_INT_LEN]; in run_dex2oat() 766 char oat_location_arg[strlen("--oat-location=") + PKG_PATH_MAX]; in run_dex2oat() [all …]
|
D | installd.cpp | 102 if (strlen(apk_path) + strlen("oat/") + strlen(instruction_set) in calculate_odex_file_path() 103 + strlen("/") + strlen("odex") + 1 > PKG_PATH_MAX) { in calculate_odex_file_path() 136 size_t srclen = strlen(src); in create_cache_path() 144 strlen(DALVIK_CACHE) + in create_cache_path() 146 strlen(instruction_set) + in create_cache_path() 148 strlen(DALVIK_CACHE_POSTFIX) + 2; in create_cache_path() 164 strlen(DALVIK_CACHE) + in create_cache_path() 166 strlen(instruction_set) + 1; in create_cache_path()
|
D | utils.cpp | 140 if (strlen(tmp) >= PKG_PATH_MAX) { in create_pkg_path() 251 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) in create_move_path() 268 if (strlen(pkgname) > PKG_NAME_MAX) { in is_valid_package_name() 606 size_t nameLen = strlen(name); in _add_cache_dir_t() 640 size_t nameLen = strlen(name); in _add_cache_file_t() 808 pathpos = dirname + strlen(dirname); in add_cache_files() 821 size_t dirnameLen = strlen(dirname); in add_cache_files() 842 pos += strlen(pos); in create_dir_path() 1025 const size_t path_len = strlen(path); in get_path_from_string() 1071 dst->len = src->len + strlen(suffix); in copy_and_append() [all …]
|
/frameworks/native/cmds/installd/tests/ |
D | installd_utils_test.cpp | 55 android_app_dir.len = strlen(TEST_APP_DIR); in SetUp() 58 android_app_private_dir.len = strlen(TEST_APP_PRIVATE_DIR); in SetUp() 61 android_data_dir.len = strlen(TEST_DATA_DIR); in SetUp() 64 android_asec_dir.len = strlen(TEST_ASEC_DIR); in SetUp() 67 android_mnt_expand_dir.len = strlen(TEST_EXPAND_DIR); in SetUp() 73 android_system_dirs.dirs[0].len = strlen(TEST_SYSTEM_DIR1); in SetUp() 76 android_system_dirs.dirs[1].len = strlen(TEST_SYSTEM_DIR2); in SetUp() 414 src.len = strlen(src.path); in TEST_F()
|
/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 | 99 setTo(s, strlen(s)); in setTo() 174 append(s, strlen(s)); in append() 327 return !strncmp(mData, prefix, strlen(prefix)); in startsWith() 331 size_t suffixLen = strlen(suffix); in endsWith() 341 return !strncasecmp(mData, prefix, strlen(prefix)); in startsWithIgnoreCase() 345 size_t suffixLen = strlen(suffix); in endsWithIgnoreCase()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 99 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, 0, paint, nullptr); in drawUtf8ToCanvas() 105 canvas->drawTextOnPath(utf16.get(), strlen(text), 0, path, 0, 0, paint, nullptr); in drawUtf8ToCanvas() 119 const int length = strlen(str); in asciiToUtf16()
|
/frameworks/base/tools/aapt2/ |
D | Locale_test.cpp | 38 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) { in TestLanguage() 60 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) { in TestLanguageRegion() 65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) { in TestLanguageRegion()
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | PathParserBench.cpp | 31 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForSkPath() 42 size_t length = strlen(sPathString); in BM_PathParser_parseStringPathForPathData()
|
/frameworks/base/tools/aapt/ |
D | AaptUtil.cpp | 32 parts.add(String8(p, strlen(p))); in split() 50 String8 val(p, strlen(p)); in splitAndLowerCase()
|