Searched refs:buffSize (Results 1 – 3 of 3) sorted by relevance
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 429 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs() local 439 if (buffSize - curStrLen < strlen(numBuffer) + (numEntries != 0 ? 2 : 1)) { in profile_get_sample_rate_strs() 446 strlcat(buffer, "|", buffSize); in profile_get_sample_rate_strs() 448 curStrLen = strlcat(buffer, numBuffer, buffSize); in profile_get_sample_rate_strs() 462 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs() local 469 if (buffSize - curStrLen < strlen(format_string_map[profile->formats[index]]) in profile_get_format_strs() 477 strlcat(buffer, "|", buffSize); in profile_get_format_strs() 479 curStrLen = strlcat(buffer, format_string_map[profile->formats[index]], buffSize); in profile_get_format_strs() 533 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_channel_count_strs() local 545 curStrLen = strlcat(buffer, chans_strs[2], buffSize); in profile_get_channel_count_strs() [all …]
|
/system/netd/server/ |
D | BandwidthController.cpp | 213 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { in StrncpyAndCheck() argument 215 memset(buffer, '\0', buffSize); // strncpy() is not filling leftover with '\0' in StrncpyAndCheck() 216 strncpy(buffer, src, buffSize); in StrncpyAndCheck() 217 return buffer[buffSize - 1]; in StrncpyAndCheck()
|
D | BandwidthController.h | 163 static int StrncpyAndCheck(char *buffer, const char *src, size_t buffSize);
|