Searched refs:buffSize (Results 1 – 3 of 3) sorted by relevance
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 414 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_sample_rate_strs() local 424 if (buffSize - curStrLen < strlen(numBuffer) + (numEntries != 0 ? 2 : 1)) { in profile_get_sample_rate_strs() 431 strlcat(buffer, "|", buffSize); in profile_get_sample_rate_strs() 433 curStrLen = strlcat(buffer, numBuffer, buffSize); in profile_get_sample_rate_strs() 447 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_format_strs() local 454 if (buffSize - curStrLen < strlen(format_string_map[profile->formats[index]]) in profile_get_format_strs() 462 strlcat(buffer, "|", buffSize); in profile_get_format_strs() 464 curStrLen = strlcat(buffer, format_string_map[profile->formats[index]], buffSize); in profile_get_format_strs() 518 size_t buffSize = ARRAY_SIZE(buffer); in profile_get_channel_count_strs() local 530 curStrLen = strlcat(buffer, chans_strs[2], buffSize); in profile_get_channel_count_strs() [all …]
|
/system/netd/server/ |
D | BandwidthController.h | 152 static int StrncpyAndCheck(char *buffer, const char *src, size_t buffSize);
|
D | BandwidthController.cpp | 205 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { in StrncpyAndCheck() argument 207 memset(buffer, '\0', buffSize); // strncpy() is not filling leftover with '\0' in StrncpyAndCheck() 208 strncpy(buffer, src, buffSize); in StrncpyAndCheck() 209 return buffer[buffSize - 1]; in StrncpyAndCheck()
|