Searched refs:buf (Results 26 - 50 of 356) sorted by relevance

1234567891011>>

/frameworks/rs/cpu_ref/linkloader/include/
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];
H A DELFSectionStrTab.h32 std::vector<char> buf; member in class:ELFSectionStrTab
44 return &*buf.begin() + index;
/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/base/include/androidfw/
H A DObbFile.h106 static inline uint32_t get4LE(const unsigned char* buf) { argument
107 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
110 static inline void put4LE(unsigned char* buf, uint32_t val) { argument
111 buf[0] = val & 0xFF;
112 buf[1] = (val >> 8) & 0xFF;
113 buf[2] = (val >> 16) & 0xFF;
114 buf[
[all...]
H A DZipUtils.h37 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
39 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
41 static bool inflateToBuffer(void *in, void* buf, long uncompressedLen,
/frameworks/base/libs/hwui/utils/
H A DTraceUtils.h42 char buf[BUFFER_SIZE]; local
45 vsnprintf(buf, BUFFER_SIZE, fmt, ap);
48 ATRACE_BEGIN(buf);
/frameworks/rs/cpu_ref/linkloader/android/
H A Dlibrsloader.h30 RSExecRef rsloaderCreateExec(unsigned char const *buf,
35 RSExecRef rsloaderLoadExecutable(unsigned char const *buf,
42 void rsloaderUpdateSectionHeaders(RSExecRef object, unsigned char *buf);
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp50 void clearBuffer(Buffer* buf, uint32_t pixel) { argument
51 android_memset32(buf->pixels, pixel, buf->s * buf->h * 4);
54 void drawTwoPixels(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) { argument
55 if (y>0 && y<ssize_t(buf->h)) {
56 uint32_t* bits = buf->pixels + y * buf->s;
57 if (x>=0 && x<buf->w) {
61 if ((x+W)>=0 && (x+W)<buf
67 drawHLine(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w) argument
84 drawRect(Buffer* buf, uint32_t pixel, ssize_t x, ssize_t y, size_t w, size_t h) argument
105 drawCircle(Buffer* buf, uint32_t pixel, size_t x0, size_t y0, size_t radius, bool filled = false) argument
[all...]
/frameworks/base/tools/aapt/
H A DZipEntry.cpp405 unsigned char buf[kLFHLen]; local
410 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) {
415 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) {
421 mVersionToExtract = ZipEntry::getShortLE(&buf[0x04]);
422 mGPBitFlag = ZipEntry::getShortLE(&buf[0x06]);
423 mCompressionMethod = ZipEntry::getShortLE(&buf[0x08]);
424 mLastModFileTime = ZipEntry::getShortLE(&buf[0x0a]);
425 mLastModFileDate = ZipEntry::getShortLE(&buf[0x0c]);
426 mCRC32 = ZipEntry::getLongLE(&buf[0x0e]);
427 mCompressedSize = ZipEntry::getLongLE(&buf[
471 unsigned char buf[kLFHLen]; local
539 unsigned char buf[kCDELen]; local
629 unsigned char buf[kCDELen]; local
[all...]
H A DZipEntry.h116 static inline unsigned short getShortLE(const unsigned char* buf) { argument
117 return buf[0] | (buf[1] << 8);
119 static inline unsigned long getLongLE(const unsigned char* buf) { argument
120 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
122 static inline void putShortLE(unsigned char* buf, short val) { argument
123 buf[
126 putLongLE(unsigned char* buf, long val) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DResponseData.java36 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
171 format(ByteArrayOutputStream buf) argument
209 format(ByteArrayOutputStream buf) argument
[all...]
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp165 void checkPixel(const CpuConsumer::LockedBuffer &buf, argument
168 switch(buf.format) {
171 uint16_t *bPtr = (uint16_t*)buf.data;
172 bPtr += y * buf.stride + x;
190 uint8_t *bPtr = (uint8_t*)buf.data;
191 bPtr += y * buf.stride + x;
198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
205 uint8_t *bPtr = (uint8_t*)buf.data;
206 bPtr += (y * buf
225 fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) argument
254 fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument
281 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument
307 checkGreyscaleBuffer(const CpuConsumer::LockedBuffer &buf) argument
346 checkRgba8888Buffer(const CpuConsumer::LockedBuffer &buf) argument
389 checkBayerRawBuffer(const CpuConsumer::LockedBuffer &buf) argument
430 checkAnyBuffer(const CpuConsumer::LockedBuffer &buf, int format) argument
[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/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifReader.java72 byte buf[] = new byte[parser.getCompressedImageSize()];
73 if (buf.length == parser.read(buf)) {
74 exifData.setCompressedThumbnail(buf);
80 buf = new byte[parser.getStripSize()];
81 if (buf.length == parser.read(buf)) {
82 exifData.setStripBytes(parser.getStripIndex(), buf);
/frameworks/minikin/include/minikin/
H A DGraphemeBreak.h37 static bool isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset);
41 static size_t getTextRunCursor(const uint16_t* buf, size_t start, size_t count,
/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/av/media/libstagefright/codecs/aacenc/src/asm/ARMV5E/
H A DR4R8First_v5.s95 add r8, r0, r2 @ r0 = buf[0] + buf[2]@
96 add r9, r1, r3 @ i0 = buf[1] + buf[3]@
98 sub r0, r0, r2 @ r1 = buf[0] - buf[2]@
99 sub r1, r1, r3 @ i1 = buf[1] - buf[3]@
101 add r2, r4, r6 @ r2 = buf[4] + buf[
[all...]
/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/minikin/libs/minikin/
H A DFontFamily.cpp35 FontLanguage::FontLanguage(const char* buf, size_t size) { argument
39 uint16_t c = buf[i];
43 bits = (uint8_t(buf[0]) << 8) | uint8_t(buf[1]);
48 uint16_t c = buf[next];
51 if (next - i == 4 && buf[i] == 'H' && buf[i+1] == 'a' && buf[i+2] == 'n') {
52 if (buf[i+3] == 's') {
54 } else if (buf[
65 char buf[16]; local
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp83 int WebmElement::serializePayloadSize(uint8_t *buf) { argument
84 return serializeCodedUnsigned(encodeUnsigned(mSize), buf);
87 uint64_t WebmElement::serializeInto(uint8_t *buf) { argument
88 uint8_t *cur = buf;
95 return cur - buf;
99 uint8_t buf[8]; local
101 return sizeOf(mId) + serializePayloadSize(buf) + mSize;
106 uint8_t *buf = new uint8_t[size]; local
107 serializeInto(buf);
108 return buf;
112 uint8_t buf[8]; local
139 serializePayload(uint8_t *buf) argument
153 serializePayload(uint8_t *buf) argument
173 serializePayload(uint8_t *buf) argument
183 serializePayload(uint8_t *buf) argument
204 serializePayload(uint8_t *buf) argument
205 serializeCodedUnsigned(encodeUnsigned(mTrackNum), buf); local
220 serializePayloadSize(uint8_t *buf) argument
224 serializePayload(uint8_t *buf) argument
239 serializePayloadSize(uint8_t *buf) argument
246 serializePayload(uint8_t *buf) argument
305 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument
[all...]
H A DWebmElement.h33 virtual int serializePayloadSize(uint8_t *buf);
34 virtual void serializePayload(uint8_t *buf)=0;
36 uint64_t serializeInto(uint8_t *buf);
53 const sp<ABuffer> &buf,
79 void serializePayload(uint8_t *buf);
86 void serializePayload(uint8_t *buf);
92 void serializePayload(uint8_t *buf);
98 void serializePayload(uint8_t *buf);
108 void serializePayload(uint8_t *buf);
114 int serializePayloadSize(uint8_t *buf);
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp56 char buf[80]; local
57 strerror_r(errno, buf, sizeof(buf));
58 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);
93 char buf[8 local
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_SystemProperties.cpp35 char buf[PROPERTY_VALUE_MAX]; local
45 len = property_get(key, buf, "");
49 rvJ = env->NewStringUTF(buf);
71 char buf[PROPERTY_VALUE_MAX]; local
82 len = property_get(key, buf, "");
84 result = strtol(buf, &end, 0);
85 if (end == buf) {
101 char buf[PROPERTY_VALUE_MAX]; local
112 len = property_get(key, buf, "");
114 result = strtoll(buf,
131 char buf[PROPERTY_VALUE_MAX]; local
[all...]
/frameworks/rs/cpu_ref/linkloader/include/impl/
H A DELFSectionStrTab.hxx33 st->buf.resize(sh->getSize());
40 AR.readBytes(&*st->buf.begin(), sh->getSize());
61 dump_hex((unsigned char const *)&*buf.begin(), buf.size(), 0, buf.size());
/frameworks/base/cmds/idmap/
H A Dinspect.cpp167 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { argument
171 status_t err = buf.nextUint32(&i);
185 err = buf.nextUint32(&i);
191 err = buf.nextUint32(&i);
197 err = buf.nextUint32(&i);
203 err = buf.nextPath(path);
215 err = buf.nextPath(path);
225 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { argument
229 status_t err = buf.nextUint16(&data16);
235 err = buf
295 IdmapBuffer buf; local
[all...]

Completed in 510 milliseconds

1234567891011>>