/external/chromium/net/disk_cache/ |
disk_cache_test_util.cc | 39 void CacheTestFillBuffer(char* buffer, size_t len, bool no_nulls) { 48 buffer[i] = static_cast<char>(rand()); 49 if (!buffer[i] && no_nulls) 50 buffer[i] = 'g'; 52 if (len && !buffer[0]) 53 buffer[0] = 'g';
|
/external/jpeg/ |
jdatasrc.c | 29 JOCTET * buffer; /* start of buffer */ member in struct:__anon4408 49 * but we don't clear the input buffer. 57 * Fill the input buffer --- called whenever buffer is emptied. 59 * In typical applications, this should read fresh data into the buffer 61 * reset the pointer & count to the start of the buffer, and return TRUE 62 * indicating that the buffer has been reloaded. It is not necessary to 63 * fill the buffer entirely, only to obtain at least one more byte. 67 * the buffer. In most cases, generating a warning message and inserting [all...] |
/external/nist-sip/java/gov/nist/javax/sip/address/ |
Authority.java | 62 public StringBuffer encode(StringBuffer buffer) { 64 userInfo.encode(buffer); 65 buffer.append(AT); 66 hostPort.encode(buffer); 68 hostPort.encode(buffer); 70 return buffer;
|
TelephoneNumber.java | 188 public StringBuffer encode(StringBuffer buffer) { 190 buffer.append('+'); 191 buffer.append(phoneNumber); 193 buffer.append(SEMICOLON); 194 parameters.encode(buffer); 196 return buffer;
|
/external/skia/include/core/ |
SkBuffer.h | 25 The RBuffer is given the buffer to read from, with either a specified size 59 /** Return true if the buffer has read to the end of the data pointer. 65 /** Read the specified number of bytes from the data pointer. If buffer is not 66 null, copy those bytes into buffer. 68 void read(void* buffer, size_t size) { if (size) this->readNoSizeCheck(buffer, size); } 82 void readNoSizeCheck(void* buffer, size_t size); 92 The WBuffer is given the buffer to write into, with either a specified size 122 void write(const void* buffer, size_t size) { if (size) this->writeNoSizeCheck(buffer, size); [all...] |
/external/srec/audio/AudioIn/UNIX/src/ |
audioinwrapper.cpp | 96 // TODO: get record buffer size from hardware. 125 int AudioRead(short *buffer, int frame_count) 129 n = read(audiofd, buffer, frame_count*sizeof(short)*N_CHANNELS); 134 n = record->read(buffer, nreq); 143 fwrite ( buffer, 2, n, audio_data ); 191 int AudioRead(short *buffer, int frame_count) 196 int AudioWrite(short *buffer, int frame_count)
|
/external/stlport/test/unit/ |
istmit_test.cpp | 60 char buffer[100]; local 68 (i < sizeof(buffer) / sizeof(buffer[0]))) { //*TY 07/28/98 - added index check 69 buffer[i++] = *s++; 71 buffer[i] = '\0'; // Null terminate buffer. 73 CPPUNIT_ASSERT(!strcmp(buffer, buff));
|
/external/webkit/WebCore/platform/graphics/chromium/ |
GlyphPageTreeNodeChromiumWin.cpp | 64 // Multilingual Plane (<= U+FFFF). The input buffer size should be the 69 UChar* buffer, 84 return fillBMPGlyphs(offset, length, buffer, page, fontData, false); 132 GetGlyphIndices(dc, buffer, length, localGlyphBuffer, GGI_MARK_NONEXISTING_GLYPHS); 143 UChar c = buffer[i]; 168 // For non-BMP characters, each is two words (UTF-16) and the input buffer 186 UChar* buffer, 192 UniscribeHelperTextRun state(buffer, length * 2, false, 201 // Each character in this input buffer is a surrogate pair, which 222 // FIXME: Add assertions to make sure that buffer is entirely in BM [all...] |
/external/yaffs2/yaffs2/ |
yaffs_nand.c | 24 __u8 * buffer, 37 result = dev->readChunkWithTagsFromNAND(dev, realignedChunkInNAND, buffer, 42 buffer, 56 const __u8 * buffer, 79 return dev->writeChunkWithTagsToNAND(dev, chunkInNAND, buffer, 84 buffer,
|
/frameworks/base/media/libmediaplayerservice/ |
StagefrightRecorder.cpp | 1247 char buffer[SIZE]; local [all...] |
/frameworks/base/media/libstagefright/include/ |
OMXNodeInstance.h | 54 OMX::buffer_id *buffer); 57 OMX_U32 portIndex, size_t size, OMX::buffer_id *buffer, 62 OMX::buffer_id *buffer); 64 status_t freeBuffer(OMX_U32 portIndex, OMX::buffer_id buffer); 66 status_t fillBuffer(OMX::buffer_id buffer); 69 OMX::buffer_id buffer,
|
/hardware/ril/mock-ril/src/cpp/ |
ctrl_server.cpp | 71 Buffer *ObtainBuffer(int length) { 72 Buffer *b = Buffer::New(length); 116 int ReadMessage(MsgHeader *mh, Buffer **pBuffer) { 134 Buffer *buffer; local 136 buffer = ObtainBuffer(mh->length_data()); 137 status = ReadAll(server_to_client_socket_, buffer->data(), buffer->length()); 142 buffer = NULL 346 Buffer *buffer; local 400 Buffer* buffer; local [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
InflaterInputStream.java | 44 * The input buffer used for decompression. 49 * The length of the buffer. 69 * settings for the {@code Inflater} and internal buffer are be used. In 94 * the internal buffer size to be used. 101 * the size to be used for the internal buffer. 139 * {@code buffer} starting at {@code off}. 141 * @param buffer 142 * the buffer to write data to. 144 * offset in buffer to start writing. 152 public int read(byte[] buffer, int off, int nbytes) throws IOException [all...] |
/libcore/luni/src/main/java/javax/xml/namespace/ |
QName.java | 383 StringBuilder buffer = new StringBuilder(nsLength + localPart.length() + 2); local 384 buffer.append('{'); 385 buffer.append(namespaceURI); 386 buffer.append('}'); 387 buffer.append(localPart); 388 _qNameAsString = buffer.toString();
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Oid.java | 89 int octet = in.buffer[in.contentOffset + i]; 93 octet = in.buffer[in.contentOffset + i]; 162 int octet = in.buffer[in.contentOffset]; 168 octet = in.buffer[in.contentOffset + index]; 187 octet = in.buffer[in.contentOffset + index]; 192 octet = in.buffer[in.contentOffset + index];
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
AlgorithmIdentifier.java | 153 public void dumpValue(StringBuffer buffer) { 154 buffer.append(getAlgorithmName()); 156 buffer.append(", no params, "); 158 buffer.append(", params unparsed, "); 160 buffer.append("OID = "); 161 buffer.append(getAlgorithm());
|
GeneralSubtree.java | 132 public void dumpValue(StringBuffer buffer, String prefix) { 133 buffer.append(prefix).append("General Subtree: [\n"); 134 buffer.append(prefix).append(" base: ").append(base).append('\n'); 135 buffer.append(prefix).append(" minimum: ") 138 buffer.append(prefix).append(" maximum: ") 141 buffer.append(prefix).append("]\n");
|
/ndk/tests/device/test-gnustl-full/unit/ |
istmit_test.cpp | 60 char buffer[100]; local 68 (i < sizeof(buffer) / sizeof(buffer[0]))) { //*TY 07/28/98 - added index check 69 buffer[i++] = *s++; 71 buffer[i] = '\0'; // Null terminate buffer. 73 CPPUNIT_ASSERT(!strcmp(buffer, buff));
|
/ndk/tests/device/test-stlport/unit/ |
istmit_test.cpp | 60 char buffer[100]; local 68 (i < sizeof(buffer) / sizeof(buffer[0]))) { //*TY 07/28/98 - added index check 69 buffer[i++] = *s++; 71 buffer[i] = '\0'; // Null terminate buffer. 73 CPPUNIT_ASSERT(!strcmp(buffer, buff));
|
/packages/apps/Email/src/org/apache/commons/io/ |
CopyUtils.java | 53 * let you specify the buffer size because in modern VMs the impact on speed
54 * seems to be minimal. We're using a default buffer size of 4 KB.
56 * The <code>copy</code> methods use an internal buffer when copying. It is
69 * underlying InputStream, to fill an internal buffer, from which further
70 * <code>read</code> requests can inexpensively get their data (until the buffer
74 * internal buffer, populated by
77 * and the unnecessary buffer management hurts performance slightly (about 3%,
117 * The default size of the buffer.
196 byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
199 while (-1 != (n = input.read(buffer))) {
221 char[] buffer = new char[DEFAULT_BUFFER_SIZE]; local [all...] |
/frameworks/base/cmds/stagefright/ |
stagefright.cpp | 122 MediaBuffer *buffer; local 126 err = rawSource->read(&buffer, &options); 131 CHECK(buffer == NULL); 141 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 162 printf("buffer has timestamp %lld us (%.2f secs)\n", 165 buffer->release(); 166 buffer = NULL; 207 MediaBuffer *buffer; local 211 status_t err = rawSource->read(&buffer, &options); 217 CHECK(buffer == NULL) 411 MediaBuffer *buffer; local [all...] |
/frameworks/base/services/sensorservice/ |
SensorService.cpp | 122 char buffer[SIZE]; local 125 snprintf(buffer, SIZE, "Permission Denial: " 129 result.append(buffer); 132 snprintf(buffer, SIZE, "Sensor List:\n"); 133 result.append(buffer); 137 snprintf(buffer, SIZE, "%-48s| %-32s | 0x%08x | maxRate=%7.2fHz | last=<%5.1f,%5.1f,%5.1f>\n", 143 result.append(buffer); 145 SensorDevice::getInstance().dump(result, buffer, SIZE); 147 snprintf(buffer, SIZE, "%d active connections\n", 149 result.append(buffer); 170 sensors_event_t buffer[numEventMax]; local [all...] |
/libcore/luni/src/main/java/java/util/ |
Properties.java | 102 private void dumpString(StringBuilder buffer, String string, boolean key) { 105 buffer.append("\\ "); 113 buffer.append("\\t"); 116 buffer.append("\\n"); 119 buffer.append("\\f"); 122 buffer.append("\\r"); 126 buffer.append('\\'); 129 buffer.append(ch); 132 buffer.append("\\u"); 134 buffer.append("0") 197 StringBuilder buffer = new StringBuilder(80); local 233 StringBuilder buffer = new StringBuilder(80); local 578 StringBuilder buffer = new StringBuilder(200); local [all...] |
/external/icu4c/i18n/ |
coleitr.cpp | 101 // buffer 118 // checking normalization buffer 123 // both are in the normalization buffer 128 // not in the same position in the normalization buffer 216 UChar *buffer = NULL; local 219 buffer = (UChar *)uprv_malloc(U_SIZEOF_UCHAR); 221 if (buffer == NULL) { 225 *buffer = 0; 228 buffer = (UChar *)uprv_malloc(U_SIZEOF_UCHAR * length); 230 if (buffer == NULL) 351 UChar *buffer; local [all...] |
/external/webkit/WebCore/platform/text/ |
AtomicString.cpp | 160 static unsigned hash(const HashAndCharacters& buffer) 162 ASSERT(buffer.hash == StringImpl::computeHash(buffer.characters, buffer.length)); 163 return buffer.hash; 166 static bool equal(StringImpl* const& string, const HashAndCharacters& buffer) 168 return WebCore::equal(string, buffer.characters, buffer.length); 171 static void translate(StringImpl*& location, const HashAndCharacters& buffer, unsigned hash) 173 location = StringImpl::create(buffer.characters, buffer.length).releaseRef() [all...] |