Searched defs:buf (Results 51 - 75 of 270) sorted by relevance

1234567891011

/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp54 Typeface* typeface, const uint16_t* buf, size_t start, size_t count,
60 layout->doLayout(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint);
64 const uint16_t* buf, size_t start, size_t count, size_t bufSize, float *advances) {
68 return Layout::measureText(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint,
53 doLayout(Layout* layout, const Paint* paint, int bidiFlags, Typeface* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument
63 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/services/core/java/com/android/server/am/
H A DNativeCrashListener.java170 static int unpackInt(byte[] buf, int offset) { argument
173 b0 = ((int) buf[offset]) & 0xFF; // mask against sign extension
174 b1 = ((int) buf[offset+1]) & 0xFF;
175 b2 = ((int) buf[offset+2]) & 0xFF;
176 b3 = ((int) buf[offset+3]) & 0xFF;
200 final byte[] buf = new byte[4096];
209 int headerBytes = readExactly(fd, buf, 0, 8);
216 int pid = unpackInt(buf, 0);
217 int signal = unpackInt(buf, 4);
240 bytes = Os.read(fd, buf,
[all...]
/frameworks/base/services/net/java/android/net/util/
H A DIpUtils.java46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { argument
48 final int bufPosition = buf.position();
52 buf.position(start);
53 ShortBuffer shortBuf = buf.asShortBuffer();
56 buf.position(bufPosition);
66 short b = buf.get(start);
83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) {
85 partial += intAbs(buf.getShort(headerOffset + 12));
86 partial += intAbs(buf.getShort(headerOffset + 14));
87 partial += intAbs(buf
82 pseudoChecksumIPv4( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument
92 pseudoChecksumIPv6( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument
101 ipversion(ByteBuffer buf, int headerOffset) argument
105 ipChecksum(ByteBuffer buf, int headerOffset) argument
110 transportChecksum(ByteBuffer buf, int protocol, int ipOffset, int transportOffset, int transportLen) argument
132 udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) argument
137 tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, int transportLen) argument
[all...]
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DDecoder.java26 public Decoder(byte[] buf) { argument
27 this(ByteBuffer.wrap(buf));
30 public Decoder(ByteBuffer buf) { argument
31 mBuf = buf;
/frameworks/ex/framesequence/jni/
H A DStream.h46 MemoryStream(void* buffer, size_t size, jobject buf) : argument
49 mRawBuffer(buf) {}
/frameworks/minikin/include/minikin/
H A DLayout.h41 uint8_t* buf; member in class:minikin::Bitmap
93 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
120 // The i parameter is an offset within the buf relative to start, it is < count, where
138 static float doLayoutRunCached(const uint16_t* buf, size_t runStart, size_t runLength,
143 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
148 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
/frameworks/minikin/libs/minikin/
H A DFontLanguage.cpp31 FontLanguage::FontLanguage(const char* buf, size_t length) : FontLanguage() { argument
34 char c = buf[i];
38 mLanguage = buf[0] | (buf[1] << 8) | ((i == 3) ? (buf[2] << 16) : 0);
49 char c = buf[next];
52 if (next - i == 4 && 'A' <= buf[i] && buf[i] <= 'Z') {
53 mScript = SCRIPT_TAG(buf[i], buf[
109 char buf[16]; local
[all...]
H A DMeasurement.cpp31 static float getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, argument
56 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
70 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
72 return getRunAdvance(advances, buf, start, start, count, offset);
83 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
88 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
105 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
106 // "getRunAdvance(layout, buf, start, count, i) - advance" but more efficient
107 float delta = getRunAdvance(advances, buf, start, searchStart, count - searchStart, i)
H A DMinikinFontFreeType.cpp61 FT_Byte* buf = reinterpret_cast<FT_Byte*>(malloc(ftsize)); local
62 if (buf == nullptr) {
65 error = FT_Load_Sfnt_Table(mTypeface, tag, 0, buf, &ftsize);
67 free(buf);
72 return buf;
/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp111 ANativeWindowBuffer* buf = 0; local
113 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf);
120 &buf));
123 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1));
128 &buf));
129 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetShaderSource.cpp98 char* buf = (char*) malloc(shaderLen); local
99 if (buf == NULL) {
103 glGetShaderSource(shader, shaderLen, NULL, buf);
104 jstring result = _env->NewStringUTF(buf);
105 free(buf);
/frameworks/rs/
H A DrsStream.cpp24 IStream::IStream(const uint8_t *buf, bool use64) { argument
25 mData = buf;
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp32 inline void FrameOutput::setValueLE(uint8_t* buf, uint32_t value) { argument
37 buf[0] = (uint8_t) value;
38 buf[1] = (uint8_t) (value >> 8);
39 buf[2] = (uint8_t) (value >> 16);
40 buf[3] = (uint8_t) (value >> 24);
193 void FrameOutput::reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount) { argument
199 const uint8_t* readPtr = buf;
201 *buf++ = *readPtr++;
202 *buf++ = *readPtr++;
203 *buf
[all...]
/frameworks/av/media/libstagefright/
H A DFrameRenderTracker.cpp51 ANativeWindowBuffer *buf, int fenceFd, int index) {
60 if (it->mGraphicBuffer->handle == buf->handle) {
50 updateInfoForDequeuedBuffer( ANativeWindowBuffer *buf, int fenceFd, int index) argument
/frameworks/av/media/libstagefright/tests/
H A DMediaCodecListOverrides_test.cpp147 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/cmds/idmap/
H A Dcreate.cpp87 char buf[N]; local
93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft));
109 if (!ResTable::getIdmapInfo(buf, N, NULL, &cached_target_crc, &cached_overlay_crc,
/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java234 public void onSpanChanged(Spannable buf, argument
237 buf.removeSpan(TextKeyListener.ACTIVE);
238 removeTimeouts(buf);
242 private static void removeTimeouts(Spannable buf) { argument
243 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class);
250 buf.removeSpan(t);
267 Spannable buf = mBuffer;
269 if (buf != null) {
270 int st = Selection.getSelectionStart(buf);
[all...]
/frameworks/base/core/java/android/util/jar/
H A DStrictJarManifest.java189 private void read(byte[] buf) throws IOException { argument
190 if (buf.length == 0) {
194 StrictJarManifestReader im = new StrictJarManifestReader(buf, mainAttributes);
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java95 final char[] buf = new char[len];
96 s.getChars(off, len - off, buf, 0);
97 write(buf, 0, len);
101 public void write(char[] buf, int offset, int count) { argument
109 char ch = buf[lineEnd++];
113 super.write(buf, lineStart, lineEnd - lineStart);
129 super.write(buf, lineStart, lineEnd - lineStart);
140 super.write(buf, lineStart, lineEnd - lineStart);
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp50 char* buf; local
103 buf = keyPrefix.lockBuffer(flattenedHeader.nameLength);
104 if (buf == NULL) {
109 amt = read(fd, buf, flattenedHeader.nameLength);
110 buf[flattenedHeader.nameLength] = 0;
176 const char* buf; local
195 buf = env->GetStringUTFChars(nameObj, NULL);
196 err = write(fd, buf, header.nameLength);
197 env->ReleaseStringUTFChars(nameObj, buf);
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/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...]
/frameworks/base/libs/common_time/
H A Ddiag_thread.cpp275 char buf[1024]; local
279 snprintf(buf, sizeof(buf), "E,%lld,%lld,%lld,%d\n",
284 buf[sizeof(buf) - 1] = 0;
287 write(data_fd_, buf, strlen(buf));
295 char buf[1024]; local
297 snprintf(buf, sizeof(buf),
[all...]
H A Dutils.cpp122 char buf[1024]; local
128 res = snprintf(buf, sizeof(buf), "\n%s\n", mHeader);
130 write(fd, buf, res);
153 res = snprintf(buf, sizeof(buf), "[%2zu] %s.%03ld :: %s%s\n",
160 write(fd, buf, res);
/frameworks/base/libs/hwui/
H A DGpuMemoryTracker.cpp112 char buf[128]; local
114 snprintf(buf, 128, "hwui_%s", TYPE_NAMES[type]);
116 ATRACE_INT(buf, stats.totalSize);
117 snprintf(buf, 128, "hwui_%s_count", TYPE_NAMES[type]);
118 ATRACE_INT(buf, stats.count);

Completed in 466 milliseconds

1234567891011