Home
last modified time | relevance | path

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

/aosp14/frameworks/base/libs/androidfw/
H A DAsset.cpp621 long allocLen; in getIncFsBuffer() local
625 allocLen = mLength; in getIncFsBuffer()
627 allocLen = 1; in getIncFsBuffer()
629 buf = new unsigned char[allocLen]; in getIncFsBuffer()
631 ALOGE("alloc of %ld bytes failed\n", (long) allocLen); in getIncFsBuffer()
635 ALOGV("Asset %p allocating buffer size %d (smaller than threshold)", this, (int)allocLen); in getIncFsBuffer()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp294 const size_t allocLen = env->GetStringUTFLength(val); in android_os_Parcel_writeString8() local
295 err = parcel->writeInt32(allocLen); in android_os_Parcel_writeString8()
296 char *data = reinterpret_cast<char*>(parcel->writeInplace(allocLen + sizeof(char))); in android_os_Parcel_writeString8()
299 *(data + allocLen) = 0; in android_os_Parcel_writeString8()
320 const size_t allocLen = len * sizeof(char16_t); in android_os_Parcel_writeString16() local
322 char *data = reinterpret_cast<char*>(parcel->writeInplace(allocLen + sizeof(char16_t))); in android_os_Parcel_writeString16()
325 *reinterpret_cast<char16_t*>(data + allocLen) = 0; in android_os_Parcel_writeString16()