Home
last modified time | relevance | path

Searched refs:strSize (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/audio/effect/all-versions/default/util/
DEffectUtils.cpp167 size_t strSize = str.size(); in charBufferToHal() local
168 if (strSize > halBufChars) { in charBufferToHal()
169 ALOGE("%s is too long: %zu (%zu max)", fieldName, strSize, halBufChars); in charBufferToHal()
170 strSize = halBufChars; in charBufferToHal()
173 strncpy(halBuf, str.c_str(), strSize); in charBufferToHal()
174 halBuf[strSize] = '\0'; in charBufferToHal()
/hardware/google/graphics/common/libhwc2.1/libdevice/
DExynosDisplay.cpp3230 uint32_t strSize = mDisplayName.size(); in getDisplayName() local
3231 if (*outSize < strSize) { in getDisplayName()
3233 *outSize, strSize); in getDisplayName()
3234 strSize = *outSize; in getDisplayName()
3236 std::strncpy(outName, mDisplayName.c_str(), strSize); in getDisplayName()
3237 *outSize = strSize; in getDisplayName()