/frameworks/native/libs/binder/ |
H A D | TextOutput.cpp | 51 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) argument 52 : mBuffer(buf)
|
/frameworks/av/services/audioflinger/ |
H A D | BufLog.cpp | 75 int samplingRate, size_t maxBytes, const void *buf, size_t size) { 87 return pBLStream->write(buf, size); 162 size_t BufLogStream::write(const void *buf, size_t size) { argument 166 if (size > 0 && buf != NULL) { 171 bytes = fwrite(buf, 1, size, mFile); 74 write(int streamid, const char *tag, int format, int channels, int samplingRate, size_t maxBytes, const void *buf, size_t size) argument
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 1133 char[] buf = new char[hasTime ? 16 : 8]; 1136 buf[0] = toChar(n / 1000); 1138 buf[1] = toChar(n / 100); 1140 buf[2] = toChar(n / 10); 1142 buf[3] = toChar(n); 1145 buf[4] = toChar(n / 10); 1146 buf[5] = toChar(n % 10); 1149 buf[6] = toChar(n / 10); 1150 buf[7] = toChar(n % 10); 1153 return new String(buf, [all...] |
/frameworks/base/tests/net/java/android/net/util/ |
H A D | IpUtilsTest.java | 37 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/native/libs/gui/tests/ |
H A D | SurfaceTextureGL_test.cpp | 45 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); 49 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 50 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 51 buf->unlock(); 52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), 95 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); 99 buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 100 fillYV12Buffer(img, texWidth, texHeight, buf->getStride()); 101 buf->unlock(); 102 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 100 private void append(char[] buf, int i, final int length) throws IOException { argument 105 append(buf, i, next<end ? BUFFER_LEN : (end-i)); 115 System.arraycopy(buf, i, mText, pos, length); 149 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument 156 char c = buf[pos]; 160 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 164 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 375 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument 381 escapeAndAppendString(buf, start, len); 383 mLineStart = buf[star [all...] |
H A D | HexDump.java | 118 char[] buf = new char[length * 2]; 124 buf[bufIndex++] = digits[(b >>> 4) & 0x0F]; 125 buf[bufIndex++] = digits[b & 0x0F]; 128 return new String(buf);
|
/frameworks/native/opengl/tests/gl2_basic/ |
H A D | gl2_basic.cpp | 92 char* buf = (char*) malloc(infoLen); local 93 if (buf) { 94 glGetShaderInfoLog(shader, infoLen, NULL, buf); 96 shaderType, buf); 97 free(buf); 131 char* buf = (char*) malloc(bufLength); local 132 if (buf) { 133 glGetProgramInfoLog(program, bufLength, NULL, buf); 134 fprintf(stderr, "Could not link program:\n%s\n", buf); 135 free(buf); [all...] |
/frameworks/native/opengl/tests/gl_perf/ |
H A D | fill_common.cpp | 44 char* buf = (char*) malloc(infoLen); local 45 if (buf) { 46 glGetShaderInfoLog(shader, infoLen, NULL, buf); 47 ALOGE("Could not compile shader %d:\n%s\n", shaderType, buf); 48 free(buf); 94 char* buf = (char*) malloc(bufLength); local 95 if (buf) { 96 glGetProgramInfoLog(program, bufLength, NULL, buf); 97 ALOGE("Could not link program:\n%s\n", buf); 98 free(buf); [all...] |
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
H A D | GLES31Ext.spec | 3 void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 18 void glBlendEquationiEXT ( GLuint buf, GLenum mode ) 19 void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 20 void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst ) 21 void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | InformationElementUtil.java | 440 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); 444 if (buf.getShort() != RSNE_VERSION) { 453 groupCipher.add(parseRsnCipher(buf.getInt())); 456 short cipherCount = buf.getShort(); 460 rsnPairwiseCipher.add(parseRsnCipher(buf.getInt())); 466 short akmCount = buf.getShort(); 470 int akm = buf.getInt(); 538 ByteBuffer buf = ByteBuffer.wrap(ie.bytes).order(ByteOrder.LITTLE_ENDIAN); 541 return (buf.getInt() == WPS_VENDOR_OUI_TYPE); 549 ByteBuffer buf [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifTag.java | 332 byte[] buf = value.getBytes(US_ASCII); 333 byte[] finalBuf = buf; 334 if (buf.length > 0) { 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays 336 .copyOf(buf, buf.length + 1); 836 protected void getBytes(byte[] buf) { argument 837 getBytes(buf, 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 261 char buf[32]; local 262 snprintf(buf, sizeof(buf), "%" PRId64, value); 263 return env->NewStringUTF(buf); 266 char buf[32]; local 267 snprintf(buf, sizeof(buf), "%g", value); 268 return env->NewStringUTF(buf); 350 char buf[32]; local 351 snprintf(buf, sizeo 355 char buf[32]; local [all...] |
/frameworks/native/vulkan/libvulkan/ |
H A D | debug_report.cpp | 107 char buf[1024]; local 108 int len = vsnprintf(buf, sizeof(buf), format, ap); 111 if (len >= static_cast<int>(sizeof(buf))) 112 memcpy(buf + sizeof(buf) - 4, "...", 4); 114 Message(flags, object_type, object, 0, 0, LOG_TAG, buf);
|
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 98 char* buf = NULL; local 99 status_t err = yuvTexBuffer->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 109 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; 111 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; 113 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = intensity; 115 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = 116 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = 117 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = 118 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = intensity;
|
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 177 void* buf = _env->GetDirectBufferAddress(buffer); local 178 if (buf) { 181 buf = ((char*) buf) + (position << elementSizeShift); 187 buf = getPointer(_env, buffer, &array, &remaining, &offset); 189 releasePointer(_env, array, buf, 0); 191 buf = (char*)buf + offset; 197 return buf;
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | TypefaceCreatePerfTest.java | 91 byte[] buf = new byte[1024]; 93 while ((n = in.read(buf)) != -1) { 94 out.write(buf, 0, n);
|
/frameworks/base/libs/androidfw/ |
H A D | DisplayEventDispatcher.cpp | 119 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local 121 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { 124 const DisplayEventReceiver::Event& ev = buf[i];
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
H A D | MipsAbiFlags.cpp | 33 auto* buf = reinterpret_cast<ElfMipsAbiFlags*>(pRegion.begin()); local 34 buf->version = 0; 35 buf->isa_level = pInfo.m_IsaLevel; 36 buf->isa_rev = pInfo.m_IsaRev; 37 buf->gpr_size = pInfo.m_GprSize; 38 buf->cpr1_size = pInfo.m_Cpr1Size; 39 buf->cpr2_size = pInfo.m_Cpr2Size; 40 buf->fp_abi = pInfo.m_FpAbi; 41 buf->isa_ext = pInfo.m_IsaExt; 42 buf [all...] |
/frameworks/native/include/gui/ |
H A D | IGraphicBufferConsumer.h | 133 virtual status_t releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, 136 status_t releaseHelper(int buf, uint64_t frameNumber, const sp<Fence>& releaseFence) { argument 137 return releaseBuffer(buf, frameNumber, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, releaseFence);
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | glGetTransformFeedbackVarying.cpp | 210 char* buf = (char*) malloc(len); local 212 if (buf == NULL) { 257 (char *)buf 269 result = _env->NewStringUTF(buf); 271 if (buf) { 272 free(buf); 306 char* buf = (char*) malloc(len); local 308 if (buf == NULL) { 330 (char *)buf 339 result = _env->NewStringUTF(buf); [all...] |
/frameworks/rs/tests/cpp_api/latency/ |
H A D | latency.cpp | 68 uint32_t *buf = new uint32_t[numElems]; local 94 ain->copy1DFrom(buf); 96 aout->copy1DTo(buf);
|
/frameworks/av/media/libstagefright/tests/ |
H A D | MediaCodecListOverrides_test.cpp | 147 char *buf = (char *)malloc(size); local 148 EXPECT_EQ((size_t)1, fread(buf, size, 1, f)); 149 overrides.setTo(buf, size); 151 free(buf);
|
/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinUtils.cpp | 57 Typeface* typeface, const uint16_t* buf, size_t start, size_t count, 62 layout.doLayout(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint, 68 const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) { 72 return minikin::Layout::measureText(buf, start, count, bufSize, bidiFlags, minikinStyle, 56 doLayout(const Paint* paint, int bidiFlags, Typeface* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument 67 measureText(const Paint* paint, int bidiFlags, Typeface* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) argument
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ListViewAnimation.cpp | 90 char buf[256]; 91 snprintf(buf, sizeof(buf), "This card is #%d", cardId); 92 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25));
|