Searched defs:buf (Results 1 - 25 of 230) sorted by last modified time

12345678910

/frameworks/support/v4/java/android/support/v4/util/
H A DLogWriter.java51 @Override public void write(char[] buf, int offset, int count) { argument
53 char c = buf[offset + i];
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp165 char buf[1024]; local
170 buf, sizeof(buf),
177 return _env->NewStringUTF(buf);
/frameworks/volley/src/com/android/volley/toolbox/
H A DByteArrayPool.java93 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/api/
H A Dgen_runtime.cpp464 char buf[100]; local
465 snprintf(buf, sizeof(buf), "%d", n);
466 return string(buf);
/frameworks/rs/cpp/
H A DRenderScript.cpp436 char buf[256]; local
437 property_get(str, buf, "0");
438 return atoi(buf);
/frameworks/rs/cpu_ref/linkloader/android/
H A Dlibrsloader.cpp50 extern "C" RSExecRef rsloaderCreateExec(unsigned char const *buf, argument
54 RSExecRef object = rsloaderLoadExecutable(buf, buf_size);
67 extern "C" RSExecRef rsloaderLoadExecutable(unsigned char const *buf, argument
69 ArchiveReaderLE AR(buf, buf_size);
97 unsigned char *buf) {
106 llvm::ELF::Elf64_Ehdr* header = reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(buf);
108 llvm::ELF::Elf32_Ehdr* header = reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(buf);
113 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(buf + header->e_shoff);
116 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(buf + header->e_shoff);
96 rsloaderUpdateSectionHeaders(RSExecRef object_, unsigned char *buf) argument
/frameworks/rs/cpu_ref/linkloader/include/
H A DELFSectionStrTab.h32 std::vector<char> buf; member in class:ELFSectionStrTab
44 return &*buf.begin() + index;
H A DMemChunk.h29 unsigned char *buf; member in class:MemChunk
50 return buf;
54 return buf;
58 return buf[index];
62 return buf[index];
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlur.cpp286 float4 *buf = &stackbuf[0]; local
314 buf = (float4 *) ((((intptr_t)cp->mScratch[p->lid]) + 15) & ~0xf);
316 float4 *fout = (float4 *)buf;
332 OneHU4(p, out, x1, buf, cp->mFp, cp->mIradius);
339 rsdIntrinsicBlurHFU4_K(out, buf - cp->mIradius, cp->mFp,
347 OneHU4(p, out, x1, buf, cp->mFp, cp->mIradius);
356 float buf[4 * 2048]; local
377 float *fout = (float *)buf;
394 OneHU1(p, out, x1, buf, cp->mFp, cp->mIradius);
404 rsdIntrinsicBlurHFU1_K(out, ((float *)buf)
[all...]
H A DrsCpuIntrinsicColorMatrix.cpp373 memcpy(buf, &_N_ColorMatrix_##x, _N_ColorMatrix_##x##_len); \
374 buf += _N_ColorMatrix_##x##_len
377 static uint8_t * addBranch(uint8_t *buf, const uint8_t *target, uint32_t condition) { argument
378 size_t off = (target - buf - 8) >> 2;
385 ((uint32_t *)buf)[0] = op;
386 return buf + 4;
400 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) {
403 ((uint32_t *)buf)[0] = op;
404 return buf + 4;
407 static uint8_t * addVMULL_S16(uint8_t *buf, uint32_
[all...]
H A DrsCpuScript.cpp51 char buf[len + 1]; local
57 buf[i] = 'a' + r;
60 buf[i] = 'A' + (r - 26);
63 buf[i] = '0' + (r - 52);
66 buf[len] = '\0';
67 return std::string(buf);
199 char buf[PROPERTY_VALUE_MAX];
202 property_get("debug.rs.precision", buf, "");
203 if (buf[0] != '\0') {
208 property_get("debug.rs.forcerecompile", buf, "
[all...]
/frameworks/rs/driver/
H A DrsdRuntimeStubs.cpp725 char buf[256]; local
727 sprintf(buf, "Out range ElementAt X %i of %i", x, t->getLODDimX(0));
728 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
734 sprintf(buf, "Vector size mismatch for ElementAt %i of %i", vecSize, e->getVectorSize());
735 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
740 sprintf(buf, "Data type mismatch for ElementAt %i of %i", dt, e->getType());
741 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
756 char buf[256]; local
758 sprintf(buf, "Out range ElementAt X %i of %i", x, t->getLODDimX(0));
759 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
794 char buf[256]; local
[all...]
H A DrsdShader.cpp254 char* buf = (char*) malloc(infoLen); local
255 if (buf) {
256 RSD_CALL_GL(glGetShaderInfoLog, mCurrentState->mShaderID, infoLen, NULL, buf);
257 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf);
258 free(buf);
H A DrsdShaderCache.cpp160 char* buf = (char*) malloc(bufLength); local
161 if (buf) {
162 glGetProgramInfoLog(pgm, bufLength, NULL, buf);
163 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf);
164 free(buf);
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/
H A DGenImage.java140 FloatBuffer createFloatBuffer(float buf[]) { argument
141 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length * 4);
144 fb.put(buf);
/frameworks/rs/
H A DrsAllocation.cpp120 char buf[1024]; local
121 sprintf(buf, "Allocation::subData called with mismatched size expected %zu, got %zu",
123 rsc->setError(RS_ERROR_BAD_VALUE, buf);
150 char buf[1024]; local
151 sprintf(buf, "Allocation::read called with mismatched size expected %zu, got %zu",
153 rsc->setError(RS_ERROR_BAD_VALUE, buf);
169 char buf[1024]; local
170 sprintf(buf, "Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
171 rsc->setError(RS_ERROR_BAD_VALUE, buf);
262 char buf[102 local
[all...]
H A DrsContext.cpp217 char buf[PROPERTY_VALUE_MAX]; local
218 property_get(str, buf, "0");
219 return atoi(buf);
H A DrsGrallocConsumer.cpp84 int buf = b.mBuf; local
98 if (mSlots[buf].mGraphicBuffer->getPixelFormat() ==
100 err = mSlots[buf].mGraphicBuffer->lockYCbCr(
112 err = mSlots[buf].mGraphicBuffer->lock(
127 mAcquiredBuffer.mSlot = buf;
129 mAcquiredBuffer.mGraphicBuffer = mSlots[buf].mGraphicBuffer;
132 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() *
138 mSlots[buf].mGraphicBuffer->getWidth());
140 mSlots[buf].mGraphicBuffer->getHeight());
142 //mAlloc->format = mSlots[buf]
177 int buf = mAcquiredBuffer.mSlot; local
[all...]
H A DrsStream.cpp24 IStream::IStream(const uint8_t *buf, bool use64) { argument
25 mData = buf;
H A DrsThreadIO.cpp81 uint32_t buf; local
83 data = &buf;
84 dataLen = sizeof(buf);
91 uint32_t buf; local
93 data = &buf;
94 dataLen = sizeof(buf);
108 uint8_t buf[2 * 1024]; local
109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0];
110 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)];
138 r = mToCore.read(&buf[
[all...]
H A DrsType.cpp149 char buf[1024]; local
157 snprintf(buf, sizeof(buf), "%s element: ", prefix);
158 mElement->dumpLOGV(buf);
/frameworks/rs/tests/cppallocation/
H A Dcompute.cpp38 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 Dcompute.cpp59 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 Dcompute.cpp59 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 Dcompute.cpp40 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));

Completed in 2135 milliseconds

12345678910