Home
last modified time | relevance | path

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

/aosp12/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()
/aosp12/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp271 const size_t allocLen = env->GetStringUTFLength(val); in android_os_Parcel_writeString8() local
272 err = parcel->writeInt32(allocLen); in android_os_Parcel_writeString8()
273 char *data = reinterpret_cast<char*>(parcel->writeInplace(allocLen + sizeof(char))); in android_os_Parcel_writeString8()
276 *(data + allocLen) = 0; in android_os_Parcel_writeString8()
297 const size_t allocLen = len * sizeof(char16_t); in android_os_Parcel_writeString16() local
299 char *data = reinterpret_cast<char*>(parcel->writeInplace(allocLen + sizeof(char16_t))); in android_os_Parcel_writeString16()
302 *reinterpret_cast<char16_t*>(data + allocLen) = 0; in android_os_Parcel_writeString16()