Searched refs:strSize (Results 1 – 2 of 2) sorted by relevance
167 size_t strSize = str.size(); in charBufferToHal() local168 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()
3230 uint32_t strSize = mDisplayName.size(); in getDisplayName() local3231 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()