/external/skia/src/core/ |
SkColorTable.cpp | 87 SkColorTable::SkColorTable(SkReadBuffer& buffer) { 92 fAlphaType = SkToU8(buffer.readUInt()); 93 fCount = buffer.getArrayCount(); 96 if (buffer.validateAvailable(allocSize)) { 98 SkDEBUGCODE(success =) buffer.readColorArray(fColors, fCount); 109 void SkColorTable::writeToBuffer(SkWriteBuffer& buffer) const { 110 buffer.writeUInt(fAlphaType); 111 buffer.writeColorArray(fColors, fCount);
|
SkFilterShader.cpp | 24 SkFilterShader::SkFilterShader(SkReadBuffer& buffer) 25 : INHERITED(buffer) { 26 fShader = buffer.readShader(); 27 fFilter = buffer.readColorFilter(); 35 void SkFilterShader::flatten(SkWriteBuffer& buffer) const { 36 this->INHERITED::flatten(buffer); 37 buffer.writeFlattenable(fShader); 38 buffer.writeFlattenable(fFilter);
|
/external/skia/src/effects/gradients/ |
SkBitmapCache.h | 20 bool find(const void* buffer, size_t len, SkBitmap*) const; 21 void add(const void* buffer, size_t len, const SkBitmap&);
|
/external/skia/tests/ |
PDFPrimitivesTest.cpp | 49 const void* buffer, size_t len) { 54 return memcmp(data->bytes() + offset, buffer, len) == 0; 58 const char* buffer) { 60 int len = strlen(buffer); // our buffer does not have EOSs. 63 if (memcmp(data->bytes() + offset, buffer, len) == 0) { 82 SkDynamicMemoryWStream buffer; local 83 obj->emit(&buffer, &catalog, false); 84 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 85 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData 184 SkDynamicMemoryWStream buffer; local 206 SkDynamicMemoryWStream buffer; local 228 SkDynamicMemoryWStream buffer; local [all...] |
/external/stlport/test/eh/ |
mwerks_console_OS_X.c | 129 long WriteCharsToConsole(char *buffer, long n) 132 return write(1, buffer, n); 138 return __msl_os_x.theWrite(1, buffer, n); 143 long WriteCharsToErrorConsole(char *buffer, long n) 145 return write(2, buffer, n); 149 long ReadCharsFromConsole(char *buffer, long n) 152 return read(0, buffer, n); 158 return __msl_os_x.theRead(0, buffer, n);
|
/external/stressapptest/src/ |
logger.cc | 39 char buffer[4096]; local 40 int length = vsnprintf(buffer, sizeof buffer, format, args); 41 if (static_cast<size_t>(length) >= sizeof buffer) { 42 length = sizeof buffer; 43 buffer[sizeof buffer - 1] = '\n'; 45 QueueLogLine(new string(buffer, length));
|
/frameworks/av/include/media/nbaio/ |
SourceAudioBufferProvider.h | 34 virtual status_t getNextBuffer(Buffer *buffer, int64_t pts); 35 virtual void releaseBuffer(Buffer *buffer); 49 size_t mGetCount; // buffer.frameCount of the most recent getNextBuffer
|
/frameworks/av/include/media/stagefright/ |
SkipCutBuffer.h | 37 // some of the data in the buffer, or it may add data to it. 38 // After this, the caller should continue processing the buffer as usual. 39 void submit(MediaBuffer *buffer); 40 void submit(const sp<ABuffer>& buffer); // same as above, but with an ABuffer 42 size_t size(); // how many bytes are currently stored in the buffer
|
/frameworks/av/media/libnbaio/ |
LibsndfileSink.cpp | 37 ssize_t LibsndfileSink::write(const void *buffer, size_t count) 45 sf_count_t actual = sf_writef_short(mSndfile, (short *) buffer, (sf_count_t) count);
|
/frameworks/av/media/libstagefright/ |
AMRWriter.cpp | 209 MediaBuffer *buffer; local 210 err = mSource->read(&buffer); 217 buffer->release(); 218 buffer = NULL; 222 mEstimatedSizeBytes += buffer->range_length(); 224 buffer->release(); 225 buffer = NULL; 231 CHECK(buffer->meta_data()->findInt64(kKeyTime, ×tampUs)); 247 buffer->release(); 248 buffer = NULL [all...] |
/frameworks/base/core/java/android/util/ |
LongSparseLongArray.java | 246 StringBuilder buffer = new StringBuilder(mSize * 28); local 247 buffer.append('{'); 250 buffer.append(", "); 253 buffer.append(key); 254 buffer.append('='); 256 buffer.append(value); 258 buffer.append('}'); 259 return buffer.toString();
|
SparseIntArray.java | 244 StringBuilder buffer = new StringBuilder(mSize * 28); local 245 buffer.append('{'); 248 buffer.append(", "); 251 buffer.append(key); 252 buffer.append('='); 254 buffer.append(value); 256 buffer.append('}'); 257 return buffer.toString();
|
SparseLongArray.java | 244 StringBuilder buffer = new StringBuilder(mSize * 28); local 245 buffer.append('{'); 248 buffer.append(", "); 251 buffer.append(key); 252 buffer.append('='); 254 buffer.append(value); 256 buffer.append('}'); 257 return buffer.toString();
|
/frameworks/base/media/mca/filterfw/jni/ |
jni_native_buffer.h | 22 // Internal Buffer Unwrapping functions //////////////////////////////////////////////////////////// 27 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size); 30 * Attach a given C data buffer and its size to a given allocated Java NativeBuffer instance. After 31 * this call, the java instance will have the given C buffer as its backing. Note, that the Java 32 * instance contains the flag on whether or not it owns the buffer or not, so make sure it is what 35 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
ParserFactory.java | 93 // create the initial buffer and read it. 94 byte[] buffer = new byte[avail]; 95 int read = stream.read(buffer); 99 return new ByteArrayInputStream(buffer); 105 if (read + avail > buffer.length) { 109 System.arraycopy(buffer, 0, moreBuffer, 0, read); 110 buffer = moreBuffer; 113 read += stream.read(buffer, read, avail); 116 // return a new stream encapsulating this buffer. 117 return new ByteArrayInputStream(buffer); [all...] |
/hardware/intel/img/hwcomposer/include/ |
GraphicBuffer.h | 41 static bool isProtectedBuffer(GraphicBuffer *buffer); 44 static bool isCompressionBuffer(GraphicBuffer *buffer);
|
/hardware/samsung_slsi/exynos5/mobicore/daemon/Common/ |
Connection.cpp | 101 size_t Connection::readData(void *buffer, uint32_t len) 103 return readData(buffer, len, -1); 108 size_t Connection::readData(void *buffer, uint32_t len, int32_t timeout) 115 assert(NULL != buffer); 149 ret = recv(socketDescriptor, buffer, len, MSG_DONTWAIT); 159 size_t Connection::writeData(void *buffer, uint32_t len) 163 assert(NULL != buffer); 166 ret = send(socketDescriptor, buffer, len, 0);
|
/libcore/luni/src/main/java/java/io/ |
DataOutput.java | 33 * Writes the entire contents of the byte array {@code buffer} to this 36 * @param buffer 37 * the buffer to write. 41 public abstract void write(byte[] buffer) throws IOException; 44 * Writes {@code count} bytes from the byte array {@code buffer} starting at 47 * @param buffer 48 * the buffer to write. 50 * the index of the first byte in {@code buffer} to write. 52 * the number of bytes from the {@code buffer} to write. 56 public abstract void write(byte[] buffer, int offset, int count) throws IOException [all...] |
/libcore/luni/src/main/java/java/text/ |
ChoiceFormat.java | 127 StringBuffer buffer = new StringBuffer(); local 176 buffer.setLength(0); 178 upTo(template, position, buffer, '|'); 181 formats.add(buffer.toString()); 227 * double value fits to the specified string buffer. 231 * @param buffer 232 * the target string buffer to append the formatted value to. 235 * @return the string buffer. 238 public StringBuffer format(double value, StringBuffer buffer, 242 return buffer.append(choiceFormats[i]) 451 StringBuilder buffer = new StringBuilder(); local [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InputStreamReaderTest.java | 37 char[] buffer = new char[1024]; local 38 int count = reader.read(buffer);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
OldCharsetEncoderDecoderBufferTest.java | 28 * Checks for ICU encoder/decoder buffer corruption. 32 /* Checks for a buffer corruption that happens in ICU 34 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with 35 * hasArray()==false. In that situation ICU may overwrite the first out-buffer. 58 // check if the first buffer was corrupted by the second decode 64 /* Checks for a buffer corruption that happens in ICU 66 * is done first with an in-buffer with hasArray()==true, and next with an in-buffer with 67 * hasArray()==false. In that situation ICU may overwrite the array of the first in-buffer [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
CountingOutputStream.java | 39 public void write(byte[] buffer, int offset, int count) throws IOException { 40 mOutputStream.write(buffer, offset, count);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
ver4_patricia_trie_node_reader.h | 53 Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer, 56 : mBuffer(buffer), mProbabilityDictContent(probabilityDictContent),
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/ |
terminal_position_lookup_table.h | 34 TerminalPositionLookupTable(uint8_t *const buffer, const int bufferSize) 35 : SingleDictContent(buffer, bufferSize),
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
DictDecoder.java | 36 // TODO: Straighten out responsibility for the buffer's file pointer. 52 * Reads a buffer and returns the memory representation of the dictionary. 54 * This high-level method takes a buffer and reads its contents, populating a 95 * Sets the position of the buffer to the given value. 102 * Gets the position of the buffer. 109 * Reads and returns the PtNode count out of a buffer and forwards the pointer. 146 ByteBuffer buffer = null; local 149 buffer = inStream.getChannel().map(FileChannel.MapMode.READ_ONLY, 156 if (buffer != null) { 157 return new BinaryDictDecoderUtils.ByteBufferDictBuffer(buffer); 202 ByteBuffer buffer = null; local [all...] |