/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinSkia.cpp | 78 void* buf = malloc(tableSize); local 79 if (buf == nullptr) { 82 mTypeface->getTableData(tag, 0, tableSize, buf); 84 return buf;
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 59 char buf[80]; local 60 strerror_r(errno, buf, sizeof(buf)); 61 ALOGE("Error posting wakeup sem: %s\n", buf); 78 char buf[80]; local 79 strerror_r(errno, buf, sizeof(buf)); 80 ALOGE("Error creating semaphore: %s\n", buf); 81 jniThrowException(env, "java/lang/IllegalStateException", buf); 92 char buf[8 local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.cpp | 387 unsigned char buf[kLFHLen]; local 392 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { 397 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) { 403 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]); 404 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]); 405 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]); 406 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]); 407 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]); 408 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]); 409 mCompressedSize = ZipEntry::getLongLE(&buf[ 453 unsigned char buf[kLFHLen]; local 521 unsigned char buf[kCDELen]; local 611 unsigned char buf[kCDELen]; local [all...] |
/frameworks/compile/libbcc/include/bcinfo/Wrap/ |
H A D | BCHeaderField.h | 48 bool Write(uint8_t* buf, size_t buf_len) { argument 57 WriteFixedSubfield(static_cast<FixedSubfield>(ID_), buf); 59 buf + sizeof(FixedSubfield)); 60 memcpy(buf + kTagLenSize, data_, len_); 63 memset(buf + fields_len, 0, pad_len); 68 bool Read(const uint8_t* buf, size_t buf_len) { argument 71 ReadFixedSubfield(&field, buf); 73 ReadFixedSubfield(&field, buf + sizeof(FixedSubfield)); 76 memcpy(data_, buf + kTagLenSize, len_); 89 static size_t GetDataSizeFromSerialized(const uint8_t* buf) { argument 106 WriteFixedSubfield(FixedSubfield value, uint8_t* buf) argument 110 ReadFixedSubfield(FixedSubfield* value, const uint8_t* buf) argument [all...] |
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsAbiFlags.cpp | 33 auto* buf = reinterpret_cast<ElfMipsAbiFlags*>(pRegion.begin()); local 34 buf->version = 0; 35 buf->isa_level = pInfo.m_IsaLevel; 36 buf->isa_rev = pInfo.m_IsaRev; 37 buf->gpr_size = pInfo.m_GprSize; 38 buf->cpr1_size = pInfo.m_Cpr1Size; 39 buf->cpr2_size = pInfo.m_Cpr2Size; 40 buf->fp_abi = pInfo.m_FpAbi; 41 buf->isa_ext = pInfo.m_IsaExt; 42 buf [all...] |
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 63 jobject buf, jint offset, jint limit) { 64 jobject globalBuf = env->NewGlobalRef(buf); 87 jobject buf = frameSequence->getRawByteBuffer(); local 88 if (buf != NULL) { 89 env->DeleteGlobalRef(buf); 62 nativeDecodeByteBuffer(JNIEnv* env, jobject clazz, jobject buf, jint offset, jint limit) argument
|
/frameworks/minikin/libs/minikin/ |
H A D | HbFontCache.cpp | 121 const void* buf = minikinFont->GetFontData(); local 122 if (buf == nullptr) { 126 hb_blob_t* blob = hb_blob_create(reinterpret_cast<const char*>(buf), size,
|
/frameworks/native/cmds/dumpsys/ |
H A D | dumpsys.cpp | 241 char buf[4096]; local 242 rc = TEMP_FAILURE_RETRY(read(local_end.get(), buf, sizeof(buf))); 253 if (!WriteFully(STDOUT_FILENO, buf, rc)) {
|
/frameworks/native/opengl/tests/gl2_jni/jni/ |
H A D | gl_code.cpp | 48 char* buf = (char*) malloc(infoLen); local 49 if (buf) { 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 52 shaderType, buf); 53 free(buf); 87 char* buf = (char*) malloc(bufLength); local 88 if (buf) { 89 glGetProgramInfoLog(program, bufLength, NULL, buf); 90 ALOGE("Could not link program:\n%s\n", buf); 91 free(buf); [all...] |
/frameworks/native/opengl/tests/gldual/jni/ |
H A D | gl_code.cpp | 48 char* buf = (char*) malloc(infoLen); local 49 if (buf) { 50 glGetShaderInfoLog(shader, infoLen, NULL, buf); 52 shaderType, buf); 53 free(buf); 87 char* buf = (char*) malloc(bufLength); local 88 if (buf) { 89 glGetProgramInfoLog(program, bufLength, NULL, buf); 90 ALOGE("Could not link program:\n%s\n", buf); 91 free(buf); [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.cpp | 104 sp<GraphicBuffer> buf; local 107 status_t result = nextBuffer(buf, acquireFence, dataspace); 113 result = mHwc.setClientTarget(mDisplayType, acquireFence, buf, dataspace); 183 sp<GraphicBuffer> buf; local 185 status_t err = nextBuffer(buf, acquireFence); 191 err = mHwc.fbPost(mDisplayType, acquireFence, buf);
|
/frameworks/native/vulkan/libvulkan/ |
H A D | debug_report.cpp | 106 char buf[1024]; local 107 int len = vsnprintf(buf, sizeof(buf), format, ap); 110 if (len >= static_cast<int>(sizeof(buf))) 111 memcpy(buf + sizeof(buf) - 4, "...", 4); 113 Message(flags, object_type, object, 0, 0, LOG_TAG, buf);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | ResponseData.java | 36 public abstract void format(ByteArrayOutputStream buf); argument 38 public static void writeLength(ByteArrayOutputStream buf, int length) { argument 43 buf.write(0x81); 45 buf.write(length); 59 public void format(ByteArrayOutputStream buf) { argument 62 buf.write(tag); // tag 63 buf.write(1); // length 64 buf.write(mId); // identifier of item chosen 98 public void format(ByteArrayOutputStream buf) { argument 99 if (buf 182 format(ByteArrayOutputStream buf) argument 220 format(ByteArrayOutputStream buf) argument [all...] |
/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 95 char buf[256]; local 96 property_get(str, buf, "0"); 97 return atoi(buf);
|
/frameworks/rs/driver/ |
H A D | rsdShaderCache.cpp | 167 char* buf = (char*) malloc(bufLength); local 168 if (buf) { 169 glGetProgramInfoLog(pgm, bufLength, nullptr, buf); 170 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 171 free(buf);
|
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 140 FloatBuffer createFloatBuffer(float buf[]) { argument 141 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length * 4); 144 fb.put(buf);
|
/frameworks/rs/ |
H A D | rsGrallocConsumer.cpp | 158 //mAlloc->format = mSlots[buf].mGraphicBuffer->getPixelFormat(); 258 int buf = mAcquiredBuffer[idx].mSlot; local 264 mSlots[buf].mGraphicBuffer)) { 266 buf, mAcquiredBuffer[idx].mGraphicBuffer,
|
H A D | rsThreadIO.cpp | 80 uint32_t buf; local 82 data = &buf; 83 dataLen = sizeof(buf); 90 uint32_t buf; local 92 data = &buf; 93 dataLen = sizeof(buf); 106 uint8_t buf[2 * 1024]; local 107 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; 108 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)]; 135 r = mToCore.read(&buf[ [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 257 void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { argument 268 strftime(buf, bufLen, format, &tm); 273 strlcat(buf, tmpBuf, bufLen);
|
H A D | Program.cpp | 155 char* buf = new char[infoLen]; local 156 if (buf) { 157 glGetShaderInfoLog(shader, infoLen, NULL, buf); 158 ALOGE("Compile log: %s", buf); 159 delete[] buf; 186 char* buf = new char[bufLength]; local 187 if (buf) { 188 glGetProgramInfoLog(program, bufLength, NULL, buf); 189 ALOGE("Link log: %s", buf); 190 delete[] buf; [all...] |
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 143 const DrmBuffer& buf, const String8& mimeType) { 144 return onOpenDecryptSession(uniqueId, decryptHandle, buf, mimeType); 142 openDecryptSession(int uniqueId, DecryptHandle* decryptHandle, const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 134 const DrmBuffer& buf, const String8& mimeType) { 135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType); 133 openDecryptSession( const DrmBuffer& buf, const String8& mimeType) argument
|
/frameworks/av/media/libmedia/ |
H A D | CharacterEncodingDetector.cpp | 90 char buf[1024]; local 91 buf[0] = 0; 103 strlcat(buf, value, sizeof(buf)); 105 strlcat(buf, " ", sizeof(buf)); 112 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so 114 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf)); 116 ucsdet_setText(csd, buf, strlen(buf), [all...] |
H A D | Visualizer.cpp | 294 uint8_t buf[mCaptureSize]; local 295 status = getWaveForm(buf); 297 status = doFft(fft, buf);
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
H A D | mp3reader.cpp | 246 uint8_t buf[kMaxReadBytes]; local 251 uint8_t *tmp = buf; 263 memcpy(buf, tmp, remainingBytes); 272 buf + remainingBytes, bytesToRead); 279 tmp = buf;
|