/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
TBSCertList.java | 164 public void dumpValue(StringBuffer buffer, String prefix) { 165 buffer.append(prefix).append("Certificate Serial Number: ") 167 buffer.append(prefix).append("Revocation Date: ") 170 buffer.append('\n').append(prefix) 172 crlEntryExtensions.dumpValue(buffer, prefix + " "); 173 buffer.append(prefix).append(']'); 375 public void dumpValue(StringBuffer buffer) { 376 buffer.append("X.509 CRL v").append(version); 377 buffer.append("\nSignature Algorithm: ["); 378 signature.dumpValue(buffer); [all...] |
/external/skia/src/core/ |
SkPicturePlayback.cpp | 61 void* buffer = sk_malloc_throw(size); local 62 writer.flatten(buffer); 63 fReader.setMemory(buffer, size); // fReader owns buffer now 173 void* buffer = sk_malloc_throw(size); local 174 memcpy(buffer, src.fReader.base(), size); 175 fReader.setMemory(buffer, size); 288 static void writeTagSize(SkFlattenableWriteBuffer& buffer, uint32_t tag, 290 buffer.write32(tag); 291 buffer.write32(size) 1216 char buffer[DUMP_BUFFER_SIZE], * bufferPtr; local [all...] |
SkStream.cpp | 229 size_t SkFILEStream::read(void* buffer, size_t size) 233 if (buffer == NULL && size == 0) // special signature, they want the total size 236 return sk_fread(buffer, size, fFILE); 310 size_t SkMemoryStream::read(void* buffer, size_t size) 312 if (buffer == NULL && size == 0) // special signature, they want the total size 315 // if buffer is NULL, seek ahead by size 321 if (buffer) { 322 memcpy(buffer, (const char*)fSrc + fOffset, size); 356 SkBufferStream::SkBufferStream(SkStream* proxy, void* buffer, size_t bufferSize) 360 SkASSERT(buffer == NULL || bufferSize != 0); // init(addr, 0) makes no sense, we must know how big their buffer (…) [all...] |
/hardware/ril/mock-ril/src/cpp/ |
responses.cpp | 48 * The Buffer is assumed to be empty so nothing to convert 52 int cmd, RIL_Token token, RIL_Errno rilErrno, Buffer *buffer) { 69 int cmd, RIL_Token token, RIL_Errno rilErrno, Buffer *buffer) { 73 rsp->ParseFromArray(buffer->data(), buffer->length()); 95 int cmd, RIL_Token token, RIL_Errno rilErrno, Buffer *buffer) { 99 rsp->ParseFromArray(buffer->data(), buffer->length()) 378 Buffer* buffer; local 447 Buffer* buffer; local [all...] |
/external/qemu/android/ |
hw-sensors.c | 269 char buffer[128]; local 273 snprintf(buffer, sizeof buffer, "acceleration:%g:%g:%g", 277 _hwSensorClient_send(cl, (uint8_t*)buffer, strlen(buffer)); 282 snprintf(buffer, sizeof buffer, "magnetic-field:%g:%g:%g", 286 _hwSensorClient_send(cl, (uint8_t*)buffer, strlen(buffer)); 291 snprintf(buffer, sizeof buffer, "orientation:%g:%g:%g" [all...] |
/frameworks/base/media/libstagefright/ |
AudioSource.cpp | 217 MediaBuffer *buffer; local 218 CHECK_EQ(mGroup->acquire_buffer(&buffer), OK); 272 buffer->release(); 277 memset(buffer->data(), 0, numLostBytes); 278 buffer->set_range(0, numLostBytes); 280 buffer->meta_data()->setInt64(kKeyAnchorTime, mStartTimeUs); 282 buffer->meta_data()->setInt64(kKeyTime, mStartTimeUs + mPrevSampleTimeUs); 283 buffer->meta_data()->setInt64(kKeyDriftTime, readTimeUs - mInitialReadTimeUs); 285 *out = buffer; 289 ssize_t n = mRecord->read(buffer->data(), buffer->size()) [all...] |
MP3Extractor.cpp | 203 uint8_t buffer[4]; local 205 if (source->readAt(offset, &buffer, 4) < 4) { // get header 211 layer = (buffer[1] >> 1) & 3; 212 id = (buffer[1] >> 3) & 3; 213 sr_index = (buffer[2] >> 2) & 3; 214 mode = (buffer[3] >> 6) & 3; 233 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID 238 if ((buffer[0] != 'X') || (buffer[1] != 'i') 239 || (buffer[2] != 'n') || (buffer[3] != 'g')) 687 MediaBuffer *buffer; local [all...] |
/external/clearsilver/util/ |
snprintf.c | 102 static int dopr (char *buffer, size_t maxlen, const char *format, 104 static int fmtstr (char *buffer, size_t *currlen, size_t maxlen, 106 static int fmtint (char *buffer, size_t *currlen, size_t maxlen, 108 static int fmtfp (char *buffer, size_t *currlen, size_t maxlen, 110 static int dopr_outch (char *buffer, size_t *currlen, size_t maxlen, char c ); 144 static int dopr (char *buffer, size_t maxlen, const char *format, va_list args) 175 total += dopr_outch (buffer, &currlen, maxlen, ch); 279 total += fmtint (buffer, &currlen, maxlen, value, 10, min, max, flags); 289 total += fmtint (buffer, &currlen, maxlen, value, 8, min, max, flags); 299 total += fmtint (buffer, &currlen, maxlen, value, 10, min, max, flags) [all...] |
/external/protobuf/src/google/protobuf/io/ |
zero_copy_stream_unittest.cc | 198 scoped_array<char> buffer(new char[str.size() + 1]); 199 buffer[str.size()] = '\0'; 200 EXPECT_EQ(ReadFromInput(input, buffer.get(), str.size()), str.size()); 201 EXPECT_STREQ(str.c_str(), buffer.get()); 271 uint8 buffer[kBufferSize]; local 277 ArrayOutputStream output(buffer, kBufferSize, kBlockSizes[i]); 281 ArrayInputStream input(buffer, size, kBlockSizes[j]); 291 uint8* buffer = new uint8[kBufferSize]; local 298 ArrayOutputStream output(buffer, kBufferSize, kBlockSizes[i]); 306 ArrayInputStream input(buffer, size, kBlockSizes[j]) 319 uint8* buffer = new uint8[kBufferSize]; local 347 uint8* buffer = new uint8[kBufferSize]; local 392 const void* buffer; local 559 const void* buffer; local 572 void* buffer; local 657 uint8 buffer[kBufferSize]; local 690 uint8 buffer[kBufferSize]; local [all...] |
/bionic/libc/include/ |
sha1.h | 21 u_char buffer[64]; member in struct:__anon35
|
/bootable/diskinstaller/libdiskconfig/ |
diskutils.c | 37 uint8_t buffer[2048]; local 62 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) { 83 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
|
/cts/tests/src/android/provider/cts/ |
FileCopyHelper.java | 67 byte[] buffer = new byte[1024]; 68 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { 69 target.write(buffer, 0, len);
|
/development/host/windows/usb/api/ |
adb_interface.cpp | 34 bool AdbInterfaceObject::GetInterfaceName(void* buffer,
42 // Lets see if buffer is big enough
44 if ((NULL == buffer) || (*buffer_char_size < name_len)) {
52 wcscpy(reinterpret_cast<wchar_t*>(buffer), interface_name().c_str());
61 reinterpret_cast<PSTR>(buffer),
|
/development/ndk/platforms/android-3/include/ |
sha1.h | 21 u_char buffer[64]; member in struct:__anon1115
|
/development/simulator/app/ |
AssetStream.h | 53 virtual wxInputStream& Read(void* buffer, size_t size) { 54 OnSysRead(buffer, size); 61 virtual size_t OnSysRead(void* buffer, size_t size) { 62 ssize_t actual = mpAsset->read(buffer, size); 67 //printf("## OnSysRead(%p %u) --> %d\n", buffer, size, actual);
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
NetscapeDraftHeaderParser.java | 59 final CharArrayBuffer buffer, 61 if (buffer == null) { 62 throw new IllegalArgumentException("Char array buffer may not be null"); 67 NameValuePair nvp = this.nvpParser.parseNameValuePair(buffer, cursor, DELIMITERS); 70 NameValuePair param = this.nvpParser.parseNameValuePair(buffer, cursor, DELIMITERS);
|
/external/apache-http/src/org/apache/http/impl/io/ |
ContentLengthInputStream.java | 94 * @param in The session input buffer to wrap 120 byte buffer[] = new byte[BUFFER_SIZE]; 121 while (read(buffer) >= 0) { 183 * @return The number of bytes read into the buffer. 203 byte[] buffer = new byte[BUFFER_SIZE]; 210 int l = read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining));
|
/external/bluetooth/bluez/audio/ |
liba2dp.h | 33 int a2dp_write(a2dpData data, const void* buffer, int count);
|
/external/chromium/base/ |
file_util_linux.cc | 44 std::vector<char> buffer(kBufferSize); 48 ssize_t bytes_read = HANDLE_EINTR(read(infile, &buffer[0], buffer.size())); 60 &buffer[bytes_written_per_read],
|
string_util_win.h | 35 inline int vsnprintf(char* buffer, size_t size, 37 int length = vsnprintf_s(buffer, size, size - 1, format, arguments); 43 inline int vswprintf(wchar_t* buffer, size_t size, 47 int length = _vsnwprintf_s(buffer, size, size - 1, format, arguments);
|
/external/chromium/third_party/icu/source/test/cintltst/ |
currtest.c | 160 UChar buffer[256]; local 170 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status); 172 if (u_strcmp(buffer, expectedBuf) != 0) { 177 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status); 179 if (u_strcmp(buffer, expectedBuf) != 0) { 184 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status) 197 UChar buffer[4]; local [all...] |
/external/freetype/src/base/ |
ftapi.c | 73 FT_Byte* buffer, 76 return FT_Stream_Read( stream, buffer, count ); 83 FT_Byte* buffer, 86 return FT_Stream_ReadAt( stream, pos, buffer, count );
|
/external/icu4c/test/cintltst/ |
currtest.c | 160 UChar buffer[256]; local 170 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status); 172 if (u_strcmp(buffer, expectedBuf) != 0) { 177 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status); 179 if (u_strcmp(buffer, expectedBuf) != 0) { 184 unum_formatDouble(fmt, 123.456, buffer, sizeof(buffer)/sizeof(buffer[0]), NULL, &status) 197 UChar buffer[4]; local [all...] |
/external/iptables/ |
ip6tables-restore.c | 108 char buffer[10240]; local 169 while (fgets(buffer, sizeof(buffer), in)) { 173 if (buffer[0] == '\n') 175 else if (buffer[0] == '#') { 177 fputs(buffer, stdout); 179 } else if ((strcmp(buffer, "COMMIT\n") == 0) && (in_table)) { 188 } else if ((buffer[0] == '*') && (!in_table)) { 192 table = strtok(buffer+1, " \t\n"); 222 } else if ((buffer[0] == ':') && (in_table)) [all...] |
iptables-restore.c | 111 char buffer[10240]; local 172 while (fgets(buffer, sizeof(buffer), in)) { 176 if (buffer[0] == '\n') 178 else if (buffer[0] == '#') { 180 fputs(buffer, stdout); 182 } else if ((strcmp(buffer, "COMMIT\n") == 0) && (in_table)) { 191 } else if ((buffer[0] == '*') && (!in_table)) { 195 table = strtok(buffer+1, " \t\n"); 225 } else if ((buffer[0] == ':') && (in_table)) [all...] |