/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LogWriter.java | 51 @Override public void write(char[] buf, int offset, int count) { argument 53 char c = buf[offset + i];
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 838 char buf[1024]; local 843 buf, sizeof(buf), 850 return _env->NewStringUTF(buf);
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | ByteArrayPool.java | 93 byte[] buf = mBuffersBySize.get(i); 94 if (buf.length >= len) { 95 mCurrentSize -= buf.length; 97 mBuffersByLastUse.remove(buf); 98 return buf; 108 * @param buf the buffer to return to the pool. 110 public synchronized void returnBuf(byte[] buf) { argument 111 if (buf == null || buf.length > mSizeLimit) { 114 mBuffersByLastUse.add(buf); [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/cpu_ref/ |
H A D | rsCpuExecutable.cpp | 173 char buf[len + 1]; local 179 buf[i] = 'a' + r; 182 buf[i] = 'A' + (r - 26); 185 buf[i] = '0' + (r - 52); 188 buf[len] = '\0'; 189 return String8(buf);
|
H A D | rsCpuIntrinsicBlur.cpp | 286 float4 *buf = &stackbuf[0]; local 315 buf = (float4 *) ((((intptr_t)cp->mScratch[info->lid]) + 15) & ~0xf); 317 float4 *fout = (float4 *)buf; 333 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); 340 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp, 348 OneHU4(info, out, x1, buf, cp->mFp, cp->mIradius); 357 float buf[4 * 2048]; local 383 float *fout = (float *)buf; 400 OneHU1(info, out, x1, buf, cp->mFp, cp->mIradius); 410 rsdIntrinsicBlurHFU1_K(out, ((float *)buf) [all...] |
H A D | rsCpuIntrinsicColorMatrix.cpp | 370 memcpy(buf, &_N_ColorMatrix_##x, _N_ColorMatrix_##x##_len); \ 371 buf += _N_ColorMatrix_##x##_len 374 static uint8_t * addBranch(uint8_t *buf, const uint8_t *target, uint32_t condition) { argument 375 size_t off = (target - buf - 8) >> 2; 382 ((uint32_t *)buf)[0] = op; 383 return buf + 4; 397 static uint8_t * addVMLAL_S16(uint8_t *buf, uint32_t dest_q, uint32_t src_d1, uint32_t src_d2, uint32_t src_d2_s) { 400 ((uint32_t *)buf)[0] = op; 401 return buf + 4; 404 static uint8_t * addVMULL_S16(uint8_t *buf, uint32_ [all...] |
H A D | rsCpuScript.cpp | 65 char buf[PROPERTY_VALUE_MAX]; 68 property_get("debug.rs.precision", buf, ""); 69 if (buf[0] != '\0') { 74 property_get("debug.rs.forcerecompile", buf, "0"); 75 if ((::strcmp(buf, "1") == 0) || (::strcmp(buf, "true") == 0)) { 184 char buf[PROPERTY_VALUE_MAX]; local 185 property_get("ro.debuggable", buf, ""); 186 return (buf[0] == '1'); 196 char buf[25 local [all...] |
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 140 char buf[256]; local 141 snprintf(buf, sizeof(buf), "Error: Call to unsupported function %s " 143 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); 458 char buf[256]; local 460 snprintf(buf, sizeof(buf), "Out range ElementAt X %i of %i", x, t->getLODDimX(0)); 461 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 466 snprintf(buf, sizeof(buf), "Ou [all...] |
H A D | rsdShader.cpp | 254 char* buf = (char*) malloc(infoLen); local 255 if (buf) { 256 RSD_CALL_GL(glGetShaderInfoLog, mCurrentState->mShaderID, infoLen, nullptr, buf); 257 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 258 free(buf);
|
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 | rsAllocation.cpp | 197 char buf[1024]; local 198 sprintf(buf, "Allocation::subData called with mismatched size expected %zu, got %zu", 200 rsc->setError(RS_ERROR_BAD_VALUE, buf); 227 char buf[1024]; local 228 sprintf(buf, "Allocation::read called with mismatched size expected %zu, got %zu", 230 rsc->setError(RS_ERROR_BAD_VALUE, buf); 246 char buf[1024]; local 247 sprintf(buf, "Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes); 248 rsc->setError(RS_ERROR_BAD_VALUE, buf); 353 char buf[102 local [all...] |
H A D | rsContext.cpp | 219 char buf[PROPERTY_VALUE_MAX]; local 220 property_get(str, buf, "0"); 221 return atoi(buf);
|
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 | rsStream.cpp | 24 IStream::IStream(const uint8_t *buf, bool use64) { argument 25 mData = buf;
|
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...] |
H A D | rsType.cpp | 152 char buf[1024]; local 160 snprintf(buf, sizeof(buf), "%s element: ", prefix); 161 mElement->dumpLOGV(buf);
|
/frameworks/rs/tests/cppallocation/ |
H A D | compute.cpp | 38 uint32_t* buf = new uint32_t[numElems]; local 40 buf[ct] = (uint32_t)ct; 43 ain->copy1DRangeFrom(0, numElems, buf); 47 aout->copy1DRangeTo(0, numElems, buf); 50 if (buf[ct] != ct * 2) { 51 printf("Mismatch at location %d: %u\n", ct, buf[ct]);
|
/frameworks/rs/tests/cppbasic/ |
H A D | compute.cpp | 59 uint32_t *buf = new uint32_t[t->getCount()]; local 61 buf[ct] = ct | (ct << 16); 63 ain->copy1DRangeFrom(0, t->getCount(), buf); 64 delete [] buf; 88 int *buf = new int[t->getCount()]; local 90 buf[ct] = 5; 92 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 93 delete [] buf;
|
/frameworks/rs/tests/cppbasic-shared/ |
H A D | compute.cpp | 59 uint32_t *buf = new uint32_t[t->getCount()]; local 61 buf[ct] = ct | (ct << 16); 63 ain->copy1DRangeFrom(0, t->getCount(), buf); 64 delete [] buf; 88 int *buf = new int[t->getCount()]; local 90 buf[ct] = 5; 92 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 93 delete [] buf;
|
/frameworks/rs/tests/cppstrided/ |
H A D | compute.cpp | 40 uint32_t* buf = (uint32_t*) malloc(stride * numElems * sizeof(uint32_t)); local 41 if (!buf) { 48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems); 52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t)); 56 aout->copy2DStridedTo(buf, stride * sizeof(uint32_t)); 60 if (*(buf+(stride*i)+ct) != (uint32_t)(ct + (i * numElems)) * 2) { 61 printf("Mismatch at location %d, %d: %u\n", i, ct, *(buf+(stride*i)+ct));
|
/frameworks/rs/tests/latency/ |
H A D | latency.cpp | 68 uint32_t *buf = new uint32_t[numElems]; local 94 ain->copy1DFrom(buf); 96 aout->copy1DTo(buf);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CatService.java | 542 ByteArrayOutputStream buf = new ByteArrayOutputStream(); 554 buf.write(tag); 555 buf.write(0x03); // length 556 buf.write(cmdDet.commandNumber); 557 buf.write(cmdDet.typeOfCommand); 558 buf.write(cmdDet.commandQualifier); 568 buf.write(tag); 569 buf.write(0x02); // length 570 buf.write(DEV_ID_TERMINAL); // source device id 571 buf 604 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument 633 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument 642 getPliResponse(ByteArrayOutputStream buf) argument [all...] |
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...] |