Home
last modified time | relevance | path

Searched refs:buffSize (Results 1 – 3 of 3) sorted by relevance

/system/media/alsa_utils/
Dalsa_device_profile.c392 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs() local
402 if (buffSize - curStrLen < strlen(numBuffer) + (numEntries != 0 ? 2 : 1)) { in profile_get_sample_rate_strs()
409 strlcat(buffer, "|", buffSize); in profile_get_sample_rate_strs()
411 curStrLen = strlcat(buffer, numBuffer, buffSize); in profile_get_sample_rate_strs()
425 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs() local
432 if (buffSize - curStrLen < strlen(format_string_map[profile->formats[index]]) in profile_get_format_strs()
440 strlcat(buffer, "|", buffSize); in profile_get_format_strs()
442 curStrLen = strlcat(buffer, format_string_map[profile->formats[index]], buffSize); in profile_get_format_strs()
496 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_channel_count_strs() local
508 curStrLen = strlcat(buffer, chans_strs[2], buffSize); in profile_get_channel_count_strs()
[all …]
/system/netd/server/
DBandwidthController.h149 static int StrncpyAndCheck(char *buffer, const char *src, size_t buffSize);
DBandwidthController.cpp167 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { in StrncpyAndCheck() argument
169 memset(buffer, '\0', buffSize); // strncpy() is not filling leftover with '\0' in StrncpyAndCheck()
170 strncpy(buffer, src, buffSize); in StrncpyAndCheck()
171 return buffer[buffSize - 1]; in StrncpyAndCheck()