/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glDebugMessageInsertKHR.cpp | 1 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */ 4 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) { 11 if (!buf) { 14 _exceptionMessage = "buf == null"; 17 _nativebuf = _env->GetStringUTFChars(buf, 0); 18 _length = _env->GetStringUTFLength(buf); 31 _env->ReleaseStringUTFChars(buf, _nativebuf); 3 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument
|
/frameworks/av/media/img_utils/src/ |
H A D | EndianUtils.cpp | 48 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 D | ObbFile.h | 106 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...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_ActivityManagerService.cpp | 67 char buf[17]; local 68 while (fgets(buf, 16, fg_cpuset_file)) { 71 if (buf[i] == '\n') { 72 buf[i] = 0; 76 if (write(boost_cpuset_fd, buf, i) < 0) { 112 char buf[17]; local 113 while (fgets(buf, 16, boost_cpuset_file)) { 114 //ALOGE("Appending FD %s to fg", buf); 117 if (buf[i] == '\n') { 118 buf[ [all...] |
/frameworks/minikin/tests/ |
H A D | UnicodeUtils.cpp | 23 void ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size, argument 37 buf[output_ix++] = (uint16_t)src[input_ix++]; 56 buf[output_ix++] = codepoint; 60 buf[output_ix++] = U16_LEAD(codepoint); 61 buf[output_ix++] = U16_TRAIL(codepoint); 86 uint16_t buf[BUF_SIZE]; local 89 ParseUnicode(buf, BUF_SIZE, "U+000D U+1F431 | 'a'", &size, &offset); 92 EXPECT_EQ(buf[0], 0x000D); 93 EXPECT_EQ(buf[1], 0xD83D); 94 EXPECT_EQ(buf[ [all...] |
H A D | WordBreakerTests.cpp | 39 uint16_t buf[] = {'h', 'e', 'l', 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local 42 breaker.setText(buf, NELEM(buf)); 49 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end 57 uint16_t buf[] = {'h', 'e', 'l', 0x00AD, 'l' ,'o', ' ', 'w', 'o', 'r', 'l', 'd'}; local 60 breaker.setText(buf, NELEM(buf)); 66 EXPECT_EQ((ssize_t)NELEM(buf), breaker.next()); // end 73 uint16_t buf[] = {'U', 'S', 0x00A2, ' ', 'J', 'P', 0x00A5}; // US¢ JP¥ local 76 breaker.setText(buf, NELE 89 uint16_t buf[] = {0x1004, 0x103A, 0x1039, 0x1000, 0x102C}; // NGA, ASAT, VIRAMA, KA, UU local 102 uint16_t buf[] = { local 131 uint16_t buf[] = { local 148 uint16_t buf[] = {0x00A1, 0x00A1, 'h', 'e', 'l', 'l' ,'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', local 165 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local 184 uint16_t buf[] = {'m', 'a', 'i', 'l', 't', 'o', ':', 'f', 'o', 'o', '@', local 208 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local 227 uint16_t buf[] = {'f', 'o', 'o', '@', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '.', 'c', 'o', 'm', local 246 uint16_t buf[] = {'a', ' ', '@', ' ', 'b'}; local 265 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'e', 'x', 'a', 'm', 'p', 'l', 'e', local 291 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '.', 'b', '/', '~', 'c', ',', 'd', local 351 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '-', '/', 'b'}; local 367 uint16_t buf[] = {'h', 't', 't', 'p', ':', '/', '/', 'a', '/'}; local 383 uint16_t buf[] = {'/', 'a', '@', 'b'}; local [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureFBO_test.cpp | 44 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 48 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 49 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 0, 255, 51 buf->unlock(); 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), 68 buf = new GraphicBuffer(anb, false); 71 ASSERT_EQ(NO_ERROR, buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, 73 fillRGBA8BufferSolid(img, texWidth, texHeight, buf->getStride(), 255, 0, 75 ASSERT_EQ(NO_ERROR, buf->unlock()); 77 buf [all...] |
H A D | CpuConsumer_test.cpp | 165 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 D | SurfaceTextureFBO.h | 59 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/core/java/android/util/jar/ |
H A D | StrictJarManifestReader.java | 38 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/libs/hwui/utils/ |
H A D | TraceUtils.h | 42 char buf[BUFFER_SIZE]; local 45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); 48 ATRACE_BEGIN(buf);
|
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 50 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<ssize_t(buf->w)) { 61 if ((x+W)>=0 && (x+W)<ssize_t(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 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...] |
H A D | ZipEntry.h | 116 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 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/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifReader.java | 72 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 D | GraphemeBreak.h | 37 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/base/services/net/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 354 Inet4Address srcIp, short destUdp, short srcUdp, ByteBuffer buf, 366 buf.clear(); 367 buf.order(ByteOrder.BIG_ENDIAN); 370 buf.put(ETHER_BROADCAST); 371 buf.put(mClientMac); 372 buf.putShort((short) OsConstants.ETH_P_IP); 379 ipHeaderOffset = buf.position(); 380 buf.put(IP_VERSION_HEADER_LEN); 381 buf.put(IP_TOS_LOWDELAY); // tos: IPTOS_LOWDELAY 382 ipLengthOffset = buf 353 fillInPacket(int encap, Inet4Address destIp, Inet4Address srcIp, short destUdp, short srcUdp, ByteBuffer buf, byte requestCode, boolean broadcast) argument 481 checksum(ByteBuffer buf, int seed, int start, int end) argument 523 addTlv(ByteBuffer buf, byte type, byte value) argument 532 addTlv(ByteBuffer buf, byte type, byte[] payload) argument 547 addTlv(ByteBuffer buf, byte type, Inet4Address addr) argument 556 addTlv(ByteBuffer buf, byte type, List<Inet4Address> addrs) argument 576 addTlv(ByteBuffer buf, byte type, Short value) argument 587 addTlv(ByteBuffer buf, byte type, Integer value) argument 598 addTlv(ByteBuffer buf, byte type, String str) argument 609 addTlvEnd(ByteBuffer buf) argument 629 addCommonClientTlvs(ByteBuffer buf) argument 685 readAsciiString(ByteBuffer buf, int byteCount, boolean nullOk) argument [all...] |
/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/av/media/libmedia/ |
H A D | IMediaSource.cpp | 52 RemoteMediaBufferReleaser(MediaBuffer *buf, sp<BnMediaSource> owner) { argument 53 mBuf = buf; 176 MediaBuffer *buf = new RemoteMediaBufferWrapper(mem, remote); local 177 buf->set_range(offset, length); 178 buf->meta_data()->updateFromParcel(reply); 179 *buffer = buf; 213 MediaBuffer *buf = new MediaBuffer(len); local 214 reply.read(buf->data(), len); 215 buf->meta_data()->updateFromParcel(reply); 216 buffers->push_back(buf); 298 MediaBuffer *buf = NULL; local 390 MediaBuffer *buf = NULL; local [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/asm/ARMV5E/ |
H A D | R4R8First_v5.s | 95 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 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/av/media/libstagefright/webm/ |
H A D | WebmElement.h | 35 virtual int serializePayloadSize(uint8_t *buf); 36 virtual void serializePayload(uint8_t *buf)=0; 38 uint64_t serializeInto(uint8_t *buf); 55 const sp<ABuffer> &buf, 83 void serializePayload(uint8_t *buf); 90 void serializePayload(uint8_t *buf); 96 void serializePayload(uint8_t *buf); 102 void serializePayload(uint8_t *buf); 112 void serializePayload(uint8_t *buf); 118 int serializePayloadSize(uint8_t *buf); [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | GraphemeBreak.cpp | 69 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/base/core/jni/ |
H A D | android_os_SystemProperties.cpp | 35 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...] |