Searched defs:buf (Results 26 - 50 of 270) sorted by relevance

1234567891011

/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));
/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/volley/src/main/java/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/av/media/img_utils/src/
H A DEndianUtils.cpp48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
50 if((res = mOutput->write(buf, offset, count)) == OK) {
56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument
57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count);
61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \
62 return writeHelper<_type_>(buf, offset, count); \
72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument
74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count);
77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument
79 return writeHelper<uint64_t>(reinterpret_cast<const uint64_t*>(buf), offse
[all...]
/frameworks/av/media/libstagefright/filters/
H A DGraphicBufferListener.cpp130 sp<GraphicBuffer> buf; local
133 return buf;
136 buf = mBufferSlot[item.mSlot];
137 CHECK(buf.get() != NULL);
139 return buf;
/frameworks/base/core/java/android/net/
H A DDhcpInfo.java66 private static void putAddress(StringBuffer buf, int addr) { argument
67 buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress());
/frameworks/base/core/java/android/util/
H A DLogWriter.java64 @Override public void write(char[] buf, int offset, int count) { argument
66 char c = buf[offset + i];
/frameworks/base/core/java/android/util/jar/
H A DStrictJarManifestReader.java38 private final byte[] buf; field in class:StrictJarManifestReader
50 public StrictJarManifestReader(byte[] buf, Attributes main) throws IOException { argument
51 this.buf = buf;
117 while (pos < buf.length) {
118 if (buf[pos++] != ':') {
122 String nameString = new String(buf, mark, pos - mark - 1, StandardCharsets.US_ASCII);
124 if (buf[pos++] != ' ') {
147 while (pos < buf.length) {
148 byte next = buf[po
[all...]
/frameworks/base/core/jni/
H A Dandroid_server_Watchdog.cpp32 char buf[64]; local
34 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid);
35 int stackFd = open(buf, O_RDONLY);
38 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1);
39 write(outFd, buf, strlen(buf));
43 while ((nBytes = read(stackFd, buf, sizeo
56 char buf[128]; local
[all...]
H A Dandroid_hardware_SerialPort.cpp172 jbyte* buf = (jbyte *)malloc(length); local
173 if (!buf) {
178 int ret = read(fd, buf, length);
181 env->SetByteArrayRegion(buffer, 0, ret, buf);
184 free(buf);
195 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); local
196 if (!buf) {
201 int ret = read(fd, buf, length);
211 jbyte* buf = (jbyte *)malloc(length); local
212 if (!buf) {
229 jbyte* buf = (jbyte *)env->GetDirectBufferAddress(buffer); local
[all...]
/frameworks/base/services/tests/servicestests/src/android/net/
H A DIpUtilsTest.java37 private int getUnsignedByte(ByteBuffer buf, int offset) { argument
38 return buf.get(offset) & 0xff;
41 private int getChecksum(ByteBuffer buf, int offset) { argument
42 return getUnsignedByte(buf, offset) * 256 + getUnsignedByte(buf, offset + 1);
/frameworks/base/tools/aapt/
H A DApkBuilder.cpp95 char* buf = packageConfigStr.lockBuffer(len); local
96 for (char* end = buf + len; buf < end; ++buf) {
97 if (*buf == '-') {
98 *buf = '_';
/frameworks/minikin/app/
H A DHyphTool.cpp25 uint8_t* buf = new uint8_t[size]; local
26 size_t read_size = fread(buf, 1, size, f);
29 delete[] buf;
32 return Hyphenator::loadBinary(buf);
/frameworks/minikin/libs/minikin/
H A DGraphemeBreak.cpp69 bool GraphemeBreak::isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, argument
80 if (U16_IS_TRAIL(buf[offset])) {
82 return !U16_IS_LEAD(buf[offset - 1]);
87 U16_PREV(buf, start, offset_back, c1);
88 U16_NEXT(buf, offset, start + count, c2);
124 U16_PREV(buf, start, offset_back, c1);
156 U16_PREV(buf, start, offset_back, c0);
159 U16_PREV(buf, start, offset_back, c0);
170 U16_PREV(buf, start, offset_back, c1);
180 size_t GraphemeBreak::getTextRunCursor(const uint16_t* buf, size_ argument
[all...]
/frameworks/native/include/gui/
H A DBufferQueueConsumer.h146 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, argument
149 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
/frameworks/native/libs/gui/tests/
H A DFillBuffer.cpp25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument
39 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity;
41 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity;
43 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] =
44 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] =
45 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] =
46 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] =
54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, argument
66 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = inside ? 240 : 64;
70 buf[yuvTexOffset
[all...]
H A DSurfaceTextureFBO.h59 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, argument
65 buf[offset + 0] = r;
66 buf[offset + 1] = g;
67 buf[offset + 2] = b;
68 buf[offset + 3] = a;
/frameworks/native/libs/input/tests/
H A DTestHelpers.h55 char buf[1]; local
56 ssize_t nRead = ::read(receiveFd, buf, 1);
/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/latency/
H A Dlatency.cpp68 uint32_t *buf = new uint32_t[numElems]; local
94 ain->copy1DFrom(buf);
96 aout->copy1DTo(buf);
/frameworks/av/media/img_utils/include/img_utils/
H A DEndianUtils.h102 virtual status_t write(const uint8_t* buf, size_t offset, size_t count);
104 virtual status_t write(const int8_t* buf, size_t offset, size_t count);
106 virtual status_t write(const uint16_t* buf, size_t offset, size_t count);
108 virtual status_t write(const int16_t* buf, size_t offset, size_t count);
110 virtual status_t write(const uint32_t* buf, size_t offset, size_t count);
112 virtual status_t write(const int32_t* buf, size_t offset, size_t count);
114 virtual status_t write(const uint64_t* buf, size_t offset, size_t count);
116 virtual status_t write(const int64_t* buf, size_t offset, size_t count);
118 virtual status_t write(const float* buf, size_t offset, size_t count);
120 virtual status_t write(const double* buf, size_
132 writeHelper(const T* buf, size_t offset, size_t count) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkMediaMuxer.cpp100 sp<ABuffer> buf = new ABuffer((void*)(data + info->offset), info->size); local
102 muxer->mImpl->writeSampleData(buf, trackIdx, info->presentationTimeUs, info->flags));
/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java118 public void write(char[] buf, int off, int len) { argument
125 if (buf[off + i] == '\n') {
136 appendToBuffer(buf, off, nextNewLine);
150 appendToBuffer(buf, off, rest);
161 appendToBuffer(buf, off, len);
163 if (buf[off + i] == '\n') {
228 * @param buf The char[] containing the data.
232 private void appendToBuffer(char[] buf, int off, int len) { argument
236 System.arraycopy(buf, off, buffer, bufferIndex, len);
/frameworks/base/libs/androidfw/
H A DDisplayEventDispatcher.cpp118 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local
120 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) {
123 const DisplayEventReceiver::Event& ev = buf[i];

Completed in 392 milliseconds

1234567891011