/external/compiler-rt/test/BlocksRuntime/ |
fail.c | 22 bool readfile(char *buffer, const char *from) { 25 int count = read(fd, buffer, 512); 27 buffer[count] = 0; // zap newline 49 char buffer[512]; local 52 sprintf(buffer, "/tmp/errorfile_%d", getpid()); 54 int fd = creat(buffer, 0777); 56 fprintf(stderr, "didn't open custom error file %s as 1, got %d\n", buffer, fd); 79 sprintf(buffer, "/tmp/errorfile_%d", child); 85 bool gotOutput = readfile(got, buffer); 94 printf("didn't find contents of %s in %s\n", errorfile, buffer); [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
vp9_writer.c | 20 br->buffer = source; 32 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0) 33 br->buffer[br->pos++] = 0;
|
/external/protobuf/gtest/xcode/Samples/FrameworkSample/ |
widget.cc | 58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { 59 // Copy the char* representation of name_ into buffer, up to max_size. 60 strncpy(buffer, name_.c_str(), max_size-1); 61 buffer[max_size-1] = '\0';
|
widget_test.cc | 58 char buffer[max_size]; local 59 widget.GetCharPtrValue(buffer, max_size); 60 EXPECT_STREQ("name", buffer);
|
/external/sfntly/cpp/src/sfntly/port/ |
memory_output_stream.h | 37 virtual void Write(ByteVector* buffer); 38 virtual void Write(ByteVector* buffer, int32_t offset, int32_t length); 39 virtual void Write(byte_t* buffer, int32_t offset, int32_t length);
|
/external/skia/src/ports/ |
SkDebug_win.cpp | 20 char buffer[kBufferSize + 1]; local 31 vsnprintf(buffer, kBufferSize, format, args); 34 OutputDebugStringA(buffer);
|
/external/skia/src/utils/ |
SkMD5.h | 25 * Note that this treats the buffer as a series of uint8_t values. 27 virtual bool write(const void* buffer, size_t size) SK_OVERRIDE { 28 this->update(reinterpret_cast<const uint8_t*>(buffer), size); 51 // input buffer 52 uint8_t buffer[64]; member in class:SkMD5
|
SkSHA1.h | 25 * Note that this treats the buffer as a series of uint8_t values. 27 virtual bool write(const void* buffer, size_t size) SK_OVERRIDE { 28 update(reinterpret_cast<const uint8_t*>(buffer), size); 51 // input buffer 52 uint8_t buffer[64]; member in class:SkSHA1
|
/external/skia/tests/ |
DashPathEffectTest.cpp | 18 SkWriteBuffer buffer; local 19 buffer.writeFlattenable(dash); 20 REPORTER_ASSERT(r, buffer.bytesWritten() > 12); // We'd write 12 if broken, >=40 if not.
|
/frameworks/av/media/libstagefright/ |
MediaAdapter.cpp | 68 void MediaAdapter::signalBufferReturned(MediaBuffer *buffer) { 70 CHECK(buffer != NULL); 71 buffer->setObserver(0); 72 buffer->release(); 73 ALOGV("buffer returned %p", buffer); 78 MediaBuffer **buffer, const ReadOptions * /* options */) { 98 *buffer = mCurrentMediaBuffer; 100 (*buffer)->setObserver(this); 105 status_t MediaAdapter::pushBuffer(MediaBuffer *buffer) { [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
MarshalQueryableMeteringRectangle.java | 42 public void marshal(MeteringRectangle value, ByteBuffer buffer) { 49 buffer.putInt(xMin); 50 buffer.putInt(yMin); 51 buffer.putInt(xMax); 52 buffer.putInt(yMax); 53 buffer.putInt(weight); 57 public MeteringRectangle unmarshal(ByteBuffer buffer) { 58 int xMin = buffer.getInt(); 59 int yMin = buffer.getInt(); 60 int xMax = buffer.getInt() [all...] |
/frameworks/base/media/jni/ |
android_media_ImageReader.cpp | 87 void returnLockedBuffer(CpuConsumer::LockedBuffer* buffer); 123 CpuConsumer::LockedBuffer *buffer = new CpuConsumer::LockedBuffer; local 124 mBuffers.push_back(buffer); 159 CpuConsumer::LockedBuffer* buffer = *it; local 161 return buffer; 164 void JNIImageReaderContext::returnLockedBuffer(CpuConsumer::LockedBuffer* buffer) { 165 mBuffers.push_back(buffer); 261 const CpuConsumer::LockedBuffer* buffer) 263 env->SetLongField(thiz, gSurfaceImageClassInfo.mLockedBuffer, reinterpret_cast<jlong>(buffer)); 289 static uint32_t Image_getJpegSize(CpuConsumer::LockedBuffer* buffer, bool usingRGBAOverride 759 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, image); local 780 CpuConsumer::LockedBuffer* buffer = ctx->getLockedBuffer(); local 890 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local 916 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local 945 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local 951 CpuConsumer::LockedBuffer* buffer = Image_getLockedBuffer(env, thiz); local [all...] |
/frameworks/compile/libbcc/bcinfo/Wrap/ |
file_wrapper_output.cpp | 38 bool FileWrapperOutput::Write(const uint8_t* buffer, size_t buffer_size) { 39 if (!buffer) { 44 return buffer_size == fwrite(buffer, 1, buffer_size, _file);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/ |
vp9_writer.c | 20 br->buffer = source; 32 if ((br->buffer[br->pos - 1] & 0xe0) == 0xc0) 33 br->buffer[br->pos++] = 0;
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-buffer.cc | 30 #include "hb-buffer-private.hh" 61 /* Here is how the buffer works internally: 73 * to an alternate buffer (which we reuse the pos buffer for!), and its 524 /* If we hit the start of buffer, continue in out-buffer. */ 556 /* If we hit the end of out-buffer, continue in buffer. */ 571 /* If script is set to INVALID, guess from buffer contents */ 598 dump_var_allocation (const hb_buffer_t *buffer) [all...] |
/external/harfbuzz_ng/src/ |
hb-buffer.cc | 30 #include "hb-buffer-private.hh" 61 /* Here is how the buffer works internally: 73 * to an alternate buffer (which we reuse the pos buffer for!), and its 524 /* If we hit the start of buffer, continue in out-buffer. */ 556 /* If we hit the end of out-buffer, continue in buffer. */ 571 /* If script is set to INVALID, guess from buffer contents */ 598 dump_var_allocation (const hb_buffer_t *buffer) [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
Wire.java | 60 StringBuilder buffer = new StringBuilder(); local 64 buffer.append("[\\r]"); 66 buffer.append("[\\n]\""); 67 buffer.insert(0, "\""); 68 buffer.insert(0, header); 69 log.debug(buffer.toString()); 70 buffer.setLength(0); 72 buffer.append("[0x"); 73 buffer.append(Integer.toHexString(ch)); 74 buffer.append("]") [all...] |
/external/apache-http/src/org/apache/http/message/ |
HeaderValueFormatter.java | 47 * All formatting methods accept an optional buffer argument. 48 * If a buffer is passed in, the formatted element will be appended 49 * and the modified buffer is returned. If no buffer is passed in, 50 * a new buffer will be created and filled with the formatted element. 51 * In both cases, the caller is allowed to modify the returned buffer. 70 * @param buffer the buffer to append to, or 71 * <code>null</code> to create a new buffer 76 * @return a buffer with the formatted header elements [all...] |
HeaderValueParser.java | 88 * @param buffer buffer holding the header value to parse 90 * the bounds within the buffer for the parsing operation 97 CharArrayBuffer buffer, 105 * @param buffer buffer holding the element to parse 107 * the bounds within the buffer for the parsing operation 114 CharArrayBuffer buffer, 191 * @param buffer buffer holding the name-value list to pars [all...] |
LineFormatter.java | 54 * a buffer can be passed as argument to all formatting methods. 55 * The implementation may or may not actually use that buffer for formatting. 56 * If it is used, the buffer will first be cleared by the 58 * The argument buffer can always be re-used after the call. The buffer 59 * returned as the result, if it is different from the argument buffer, 84 * <code>buffer</code> arguments. 85 * It does <i>not</i> clear the argument buffer, but appends instead. 86 * The returned buffer can always be modified by the caller. 90 * @param buffer a buffer to which to append, or <code>null</code [all...] |
/external/chromium_org/chrome/common/ |
partial_circular_buffer.h | 11 // A wrapper around a memory buffer that allows circular read and write with a 12 // selectable wrapping position. Buffer layout (after wrap; H is header): 20 // - Length written to the buffer (not including header). 22 // - End position of buffer. (If the last byte is at x, this will be x + 1.) 23 // Users of wrappers around the same underlying buffer must ensure that writing 29 PartialCircularBuffer(void* buffer, uint32 buffer_size); 34 PartialCircularBuffer(void* buffer, 39 uint32 Read(void* buffer, uint32 buffer_size); 40 void Write(const void* buffer, uint32 buffer_size);
|
/external/chromium_org/content/browser/media/ |
midi_host_unittest.cc | 32 std::vector<T> buffer; variable 33 buffer.insert(buffer.end(), data, data + N); 34 return buffer; 38 void PushToVector(const T(&data)[N], std::vector<T>* buffer) { 39 buffer->insert(buffer->end(), data, data + N); 64 std::vector<uint8> buffer; local 65 PushToVector(kGMOn, &buffer); 66 PushToVector(kNoteOn, &buffer); [all...] |
/external/chromium_org/gpu/config/ |
gpu_info_collector_x11.cc | 30 char* buffer = NULL; local 34 &buffer)) { 35 std::string driver_version(buffer); 36 XFree(buffer);
|
/external/chromium_org/ppapi/c/dev/ |
ppb_crypto_dev.h | 29 * Fills the given buffer with random bytes. This is potentially slow so only 32 void (*GetRandomBytes)(char* buffer, uint32_t num_bytes);
|
/external/chromium_org/ppapi/tests/ |
test_memory.cc | 32 char* buffer = static_cast<char*>( local 35 buffer[0] = '1'; 36 buffer[kTestBufferSize - 1] = '1'; 37 memory_dev_interface_->MemFree(buffer);
|