Searched defs:buf (Results 1 - 25 of 125) sorted by relevance

12345

/frameworks/base/core/java/android/database/
H A DCharArrayBuffer.java27 public CharArrayBuffer(char[] buf) { argument
28 data = buf;
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dubitset.cpp13 /// Copies bits from \p v of size \p n into \p buf as MSB "1011001..." LSB
14 /// If \p buf is too small, MSB bits will be truncated.
15 void convert_to_bitstring (const bitset_value_type* v, size_t n, string& buf) argument
17 string::iterator stri = buf.end();
18 for (size_t i = 0; i < n && stri > buf.begin(); ++ i)
19 for (bitset_value_type b = 1; b && stri > buf.begin(); b <<= 1)
23 /// Copies bits from \p buf as MSB "1011001..." LSB into \p v of size \p n.
24 void convert_from_bitstring (const string& buf, bitset_value_type* v, size_t n) argument
26 string::const_iterator stri = buf.end();
29 if (stri == buf
[all...]
/frameworks/base/opengl/tools/glgen/stubs/gles11/
H A DglGetProgramInfoLog.cpp9 char* buf = 0; local
12 char* buf = (char*) malloc(infoLen); local
13 if (buf == 0) {
17 glGetProgramInfoLog(shader, infoLen, NULL, buf);
18 _result = _env->NewStringUTF(buf);
23 if (buf) {
24 free(buf);
H A DglGetShaderInfoLog.cpp9 char* buf = 0; local
12 char* buf = (char*) malloc(infoLen); local
13 if (buf == 0) {
17 glGetShaderInfoLog(shader, infoLen, NULL, buf);
18 _result = _env->NewStringUTF(buf);
23 if (buf) {
24 free(buf);
/frameworks/base/libs/surfaceflinger_client/
H A DLayerState.cpp31 void* buf = output.writeInplace(len); local
32 if (buf == NULL) return NO_MEMORY;
34 err = transparentRegion.write(buf, len);
48 void const* buf = input.readInplace(len); local
49 if (buf == NULL) return NO_MEMORY;
51 err = transparentRegion.read(buf);
/frameworks/base/core/java/android/net/
H A DInterfaceConfiguration.java47 private static void putAddress(StringBuffer buf, int addr) { argument
48 buf.append((addr >> 24) & 0xff).append('.').
H A DDhcpInfo.java54 private static void putAddress(StringBuffer buf, int addr) { argument
55 buf.append(addr & 0xff).append('.').
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java50 * @param buf a byte array containing data
52 public BitwiseInputStream(byte buf[]) { argument
53 mBuf = buf;
54 mEnd = buf.length << 3;
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp36 char buf[80]; local
43 int len = read(fd, buf, sizeof(buf) - 1);
51 buf[len] = '\0';
52 return atoll(buf);
H A Dandroid_server_Watchdog.cpp31 char buf[64]; local
33 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid);
34 int stackFd = open(buf, O_RDONLY);
37 strncat(buf, ":\n", sizeof(buf) - strlen(buf) - 1);
38 write(outFd, buf, strlen(buf));
42 while ((nBytes = read(stackFd, buf, sizeo
55 char buf[128]; local
[all...]
H A Dandroid_os_SystemProperties.cpp31 char buf[PROPERTY_VALUE_MAX]; local
42 len = property_get(key, buf, "");
46 rvJ = env->NewStringUTF(buf);
68 char buf[PROPERTY_VALUE_MAX]; local
79 len = property_get(key, buf, "");
82 if (sscanf(buf, "%d", &temp) == 1)
97 char buf[PROPERTY_VALUE_MAX]; local
108 len = property_get(key, buf, "");
111 if (sscanf(buf, "%lld", &temp) == 1)
126 char buf[PROPERTY_VALUE_MA local
[all...]
/frameworks/base/libs/rs/
H A DrsShaderCache.cpp118 char* buf = (char*) malloc(bufLength); local
119 if (buf) {
120 glGetProgramInfoLog(pgm, bufLength, NULL, buf);
121 LOGE("Could not link program:\n%s\n", buf);
122 free(buf);
H A DrsComponent.cpp249 char buf[64]; local
262 sprintf(buf, "_%i_t", mVectorSize);
263 s.append(buf);
/frameworks/base/libs/utils/
H A DSharedBuffer.cpp61 SharedBuffer* buf = const_cast<SharedBuffer*>(this); local
62 if (buf->mSize == newSize) return buf;
63 buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize);
64 if (buf != NULL) {
65 buf->mSize = newSize;
66 return buf;
H A DTextOutput.cpp46 char buf[16]; local
47 sprintf(buf, "%d", val);
48 to.print(buf, strlen(buf));
54 char buf[16]; local
55 sprintf(buf, "%ld", val);
56 to.print(buf, strlen(buf));
62 char buf[16]; local
63 sprintf(buf, "
70 char buf[16]; local
78 char buf[32]; local
86 char buf[32]; local
94 char buf[64]; local
116 char buf[16]; local
133 HexDump(const void *buf, size_t size, size_t bytesPerLine) argument
[all...]
/frameworks/base/tools/aapt/
H A Dprintapk.cpp31 void* buf; local
58 buf = malloc(size);
59 if (buf == NULL) {
64 amt = read(fd, buf, size);
72 zip = init_zipfile(buf, size);
/frameworks/base/include/utils/
H A DBuffer.h29 char *buf; member in class:android::Buffer
41 memcpy(blah, buf, used);
42 delete[] buf;
43 buf = blah;
51 buf = new char[bufsiz];
57 delete[] buf;
63 buf[0] = '\0';
77 buf[used] = c;
79 buf[used] = '\0';
87 memcpy(buf
[all...]
H A DZipFileRO.h170 static inline unsigned short get2LE(const unsigned char* buf) { argument
171 return buf[0] | (buf[1] << 8);
173 static inline unsigned long get4LE(const unsigned char* buf) { argument
174 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
/frameworks/base/media/libdrm/mobile2/src/util/xml/
H A DExpatWrapper.cpp40 int ExpatWrapper::decode(const char* buf, int len, int isFinal) argument
42 return ::XML_Parse(mParser, buf, len, isFinal);
/frameworks/base/tools/localize/
H A DXMLHandler_test.cpp49 char buf[1024]; local
56 ssize_t len = read(fd, buf, sizeof(buf)-1);
57 buf[len] = '\0';
61 result.append(buf, len);
/frameworks/base/core/java/android/speech/srec/
H A DUlawEncoderInputStream.java141 public int read(byte[] buf, int offset, int length) throws IOException { argument
153 encode(mBuf, 0, buf, offset, n, mMax);
163 public int read(byte[] buf) throws IOException { argument
164 return read(buf, 0, buf.length);
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
H A DResponseData.java30 public abstract void format(ByteArrayOutputStream buf); argument
43 public void format(ByteArrayOutputStream buf) { argument
46 buf.write(tag); // tag
47 buf.write(1); // length
48 buf.write(id); // identifier of item chosen
82 public void format(ByteArrayOutputStream buf) { argument
83 if (buf == null) {
89 buf.write(tag); // tag
123 buf.write(data.length + 1);
127 buf
[all...]
/frameworks/base/awt/java/awt/geom/
H A DFlatteningPathIterator.java84 double buf[]; field in class:FlatteningPathIterator
181 this.buf = new double[bufSize];
234 buf[bufIndex + 0] = px;
235 buf[bufIndex + 1] = py;
236 System.arraycopy(coords, 0, buf, bufIndex + 2, 4);
241 if (QuadCurve2D.getFlatnessSq(buf, bufIndex) < flatness2) {
248 System.arraycopy(buf, bufIndex, tmp, bufIndex + BUFFER_CAPACITY, bufSize
250 buf = tmp;
255 QuadCurve2D.subdivide(buf, bufIndex, buf, bufInde
[all...]
/frameworks/base/cmds/servicemanager/
H A Dservice_manager.c52 static char buf[128]; local
54 char *p = buf;
62 return buf;
/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java230 public void onSpanChanged(Spannable buf, argument
233 buf.removeSpan(TextKeyListener.ACTIVE);
234 removeTimeouts(buf);
238 private static void removeTimeouts(Spannable buf) { argument
239 Timeout[] timeout = buf.getSpans(0, buf.length(), Timeout.class);
246 buf.removeSpan(t);
263 Spannable buf = mBuffer;
265 if (buf != null) {
266 int st = Selection.getSelectionStart(buf);
[all...]

Completed in 421 milliseconds

12345