/external/e2fsprogs/ext2ed/ |
inode_com.c | 26 char *ptr,buffer [80]; local 32 ptr=parse_word (command_line,buffer); 35 ptr=parse_word (ptr,buffer); 36 mult=atol (buffer); 55 sprintf (buffer,"setoffset %ld",device_offset);dispatch (buffer); 56 strcpy (buffer,"show");dispatch (buffer); 73 char *ptr,buffer [80]; local 79 ptr=parse_word (command_line,buffer); 285 char *ptr,buffer [80]; local 318 char buffer [80]; local 332 char buffer [80]; local 350 char buffer [80]; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/utils/ |
Util.java | 421 StringBuffer buffer = new StringBuffer(); local 424 buffer.append("00:00:"); //$NON-NLS-1$ 425 if (seconds < 10) buffer.append('0'); 426 buffer.append(seconds); 430 buffer.append("00:"); //$NON-NLS-1$ 431 if (minutes < 10) buffer.append('0'); 432 buffer.append(minutes); 433 buffer.append(':'); 435 if (seconds < 10) buffer.append('0'); 436 buffer.append(seconds) 486 StringBuffer buffer = new StringBuffer(); local [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
cmd_parser_test.cc | 22 // a fixed size memory buffer. Also provides a simple API to create a 44 // Creates a parser, with a buffer of the specified size (in entries). 53 parser->SetBuffer(buffer(), shm_size, 0, command_buffer_size); 59 CommandBufferEntry *buffer() { return buffer_.get(); } function in class:gpu::CommandParserTest 84 buffer()[put++].value_header = header; 97 buffer()[put++].value_header = header; 98 buffer()[put++].value_int32 = 2134; 99 buffer()[put++].value_float = 1.f; 113 // Tests having multiple commands in the buffer. 122 buffer()[put++].value_header = header [all...] |
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-graphite2.cc | 217 hb_buffer_t *buffer, 225 const char *lang = hb_language_to_string (hb_buffer_get_language (buffer)); 244 hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size); 248 for (unsigned int i = 0; i < buffer->len; ++i) 249 chars[i] = buffer->info[i].codepoint; 252 hb_ot_tags_from_script (hb_buffer_get_script (buffer), &script_tag[0], &script_tag[1]); 257 gr_utf32, chars, buffer->len, 258 2 | (hb_buffer_get_direction (buffer) == HB_DIRECTION_RTL ? 1 : 0)); 272 scratch = buffer->get_scratch_buffer (&scratch_size); 273 while ((DIV_CEIL (sizeof (hb_graphite2_cluster_t) * buffer->len, sizeof (*scratch)) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
buffers.c | 97 draw_buffer_enum_to_bitmask(GLenum buffer) 99 switch (buffer) { 152 * Given a GLenum naming a color buffer, return the index of the corresponding 154 * return -1 for an invalid buffer. 157 read_buffer_enum_to_index(GLenum buffer) 159 switch (buffer) { 208 * <buffer> can name zero, one, two or four renderbuffers! 211 * \param buffer buffer token such as GL_LEFT or GL_FRONT_AND_BACK, etc. 228 _mesa_DrawBuffer(GLenum buffer) [all...] |
/external/mesa3d/src/mesa/main/ |
buffers.c | 97 draw_buffer_enum_to_bitmask(GLenum buffer) 99 switch (buffer) { 152 * Given a GLenum naming a color buffer, return the index of the corresponding 154 * return -1 for an invalid buffer. 157 read_buffer_enum_to_index(GLenum buffer) 159 switch (buffer) { 208 * <buffer> can name zero, one, two or four renderbuffers! 211 * \param buffer buffer token such as GL_LEFT or GL_FRONT_AND_BACK, etc. 228 _mesa_DrawBuffer(GLenum buffer) [all...] |
/frameworks/av/media/libstagefright/ |
AudioSource.cpp | 39 source->dataCallback(*((AudioRecord::Buffer *) info)); 69 // buffer size 72 // make sure that the AudioRecord total buffer size is large enough 229 MediaBuffer *buffer = *mBuffersReceived.begin(); local 232 buffer->setObserver(this); 233 buffer->add_ref(); 237 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); 240 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); 250 (uint8_t *) buffer->data(), buffer->range_length()) 338 MediaBuffer *buffer = new MediaBuffer(bufferSize); local [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexClassImpl.java | 41 private final DexBuffer buffer; field in class:DexClassImpl 69 public DexClassImpl(DexBuffer buffer, ClassDefItem classDefItem, 72 this.buffer = buffer; 120 buffer.setPosition(classDefItem.annotations_off); 122 annotationDir.class_annotations_off = buffer.readUInt(); 123 annotationDir.fields_size = buffer.readUInt(); 124 annotationDir.methods_size = buffer.readUInt(); 125 annotationDir.annotated_params_size = buffer.readUInt(); 132 annotationDir.fieldAnnotations[i].fieldIdx = buffer [all...] |
DexEncodedValueImpl.java | 30 private final DexBuffer buffer; field in class:DexEncodedValueImpl 41 * @param buffer 42 * the buffer with the correct position 47 public DexEncodedValueImpl(DexBuffer buffer, DexAnnotation annotation, 49 this.buffer = buffer; 58 typeAndValueArg = buffer.readUByte(); 135 // use the buffer directly to get adjusted offset 136 return new DexEncodedAnnotationImpl(buffer, annotation, typeIds, 146 int size = buffer.readUleb128() [all...] |
/external/srec/srec/clib/ |
srec_arb.c | 79 void read_questions(srec_question** pquestions, asr_int16_t num_questions, char **buffer, PFile *fp) 83 q = *pquestions = (srec_question*)(*buffer); 85 *buffer += num_questions * sizeof(srec_question); 178 tree_node* read_tree_node_f(char **buffer, PFile *fp) 180 tree_node* tnode = (tree_node*) * buffer; 189 *buffer += sizeof(tree_node); 192 tnode->node.fail = (struct tree_branch_info*)read_tree_node_f(buffer, fp); 193 tnode->node.pass = (struct tree_branch_info*)read_tree_node_f(buffer, fp); 198 void read_phoneme_data(phoneme_data** pdata, asr_int16_t num_phonemes, char **buffer, PFile *fp) 203 pd = *pdata = (phoneme_data*)(*buffer); 291 char* buffer; local [all...] |
/external/chromium_org/media/base/ |
audio_buffer_converter.cc | 20 // Is the config presented by |buffer| a config change from |params|? 22 const scoped_refptr<AudioBuffer>& buffer) { 23 return buffer->sample_rate() != params.sample_rate() || 24 buffer->channel_count() != params.channels() || 25 buffer->channel_layout() != params.channel_layout(); 40 void AudioBufferConverter::AddInput(const scoped_refptr<AudioBuffer>& buffer) { 42 if (buffer->end_of_stream()) { 44 queued_outputs_.push_back(buffer); 49 if (IsConfigChange(input_params_, buffer)) 50 ResetConverter(buffer); [all...] |
/hardware/intel/common/omx-components/videocodec/ |
OMXVideoDecoderAVC.cpp | 39 // Override default native buffer count defined in the base class 133 OMX_ERRORTYPE OMXVideoDecoderAVC::PrepareDecodeBuffer(OMX_BUFFERHEADERTYPE *buffer, buffer_retain_t *retain, VideoDecodeBuffer *p) { 135 ret = OMXVideoDecoderBase::PrepareDecodeBuffer(buffer, retain, p); 139 // if flag is set, buffer will only contain codec data. 140 if (buffer->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { 146 if (buffer->nFlags & (OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_EOS)) { 148 // we set buffer flag to HAS_COMPLETE_FRAME, corruption will happen 149 mTimeStamp = buffer->nTimeStamp; 151 // buffer is not accumulated and it contains a complete frame 154 // buffer contains the last part of fragmented fram [all...] |
/frameworks/base/libs/hwui/ |
PathTessellator.cpp | 27 i, buffer[i].x, buffer[i].y, buffer[i].alpha); \ 31 ALOGD("point %d at %f %f", i, buffer[i].x, buffer[i].y); \ 184 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size()); local 192 buffer[currentIndex++] = perimeter[srcAindex]; 194 buffer[currentIndex++] = perimeter[srcBindex]; 209 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2); local 224 Vertex::set(&buffer[currentIndex++] 270 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); local 349 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); local 583 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); local 653 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8); local [all...] |
/art/compiler/ |
buffered_output_stream.cc | 26 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { 29 return out_->WriteFully(buffer, byte_count); 37 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
|
vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) { 36 const uint8_t* start = reinterpret_cast<const uint8_t*>(buffer); 42 memcpy(&vector_[offset_], buffer, byte_count);
|
/cts/suite/audio_quality/lib/src/task/ |
TaskDownload.cpp | 47 android::sp<Buffer> buffer = getTestCase()->findBuffer(id); local 48 if (buffer.get() == NULL) { 49 LOGE("TaskDownload::run cannot find buffer %s", id.string()); 53 if (!getTestCase()->getRemoteAudio()->downloadData(id, buffer, downloadId)) { 56 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId);
|
/developers/samples/android/wearable/wear/Quiz/Application/src/main/java/com/example/android/quiz/ |
JsonUtils.java | 41 byte[] buffer = new byte[size]; 42 is.read(buffer); 44 String jsonString = new String(buffer);
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ReadAsset.java | 56 // Read the entire asset into a local byte buffer. 57 byte[] buffer = new byte[size]; 58 is.read(buffer); 61 // Convert the buffer into a string. 62 String text = new String(buffer);
|
/development/samples/wearable/Quiz/Application/src/main/java/com/example/android/wearable/quiz/ |
JsonUtils.java | 41 byte[] buffer = new byte[size]; 42 is.read(buffer); 44 String jsonString = new String(buffer);
|
/device/asus/fugu/libaudio/ |
HDMIAudioOutput.cpp | 82 char buffer[SIZE]; local 84 snprintf(buffer, SIZE, 93 result.append(buffer);
|
/external/apache-http/src/org/apache/commons/codec/net/ |
QuotedPrintableCodec.java | 111 * @param buffer 112 * the buffer to write to 114 private static final void encodeQuotedPrintable(int b, ByteArrayOutputStream buffer) { 115 buffer.write(ESCAPE_CHAR); 118 buffer.write(hex1); 119 buffer.write(hex2); 143 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); local 150 buffer.write(b); 152 encodeQuotedPrintable(b, buffer); 155 return buffer.toByteArray() 177 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); local [all...] |
/external/chromium_org/base/allocator/ |
allocator_extension.cc | 19 void GetStats(char* buffer, int buffer_length) { 23 get_stats_function(buffer, buffer_length); 25 buffer[0] = '\0';
|
/external/chromium_org/base/debug/ |
stack_trace_unittest.cc | 158 char buffer[1024]; local 159 CHECK_LE(sz, sizeof(buffer)); 161 char* result = internal::itoa_r(i, buffer, sz, base, padding); 163 return std::string(buffer); 204 // Check that itoa_r respects passed buffer size limit. 205 char buffer[1024]; local 206 EXPECT_TRUE(internal::itoa_r(0xdeadbeef, buffer, 10, 16, 0)); 207 EXPECT_TRUE(internal::itoa_r(0xdeadbeef, buffer, 9, 16, 0)); 208 EXPECT_FALSE(internal::itoa_r(0xdeadbeef, buffer, 8, 16, 0)); 209 EXPECT_FALSE(internal::itoa_r(0xdeadbeef, buffer, 7, 16, 0)) [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/ |
test_util.h | 57 scoped_refptr<net::IOBuffer> buffer(new net::IOBuffer(kBufferSize)); 60 int result = reader->Read(buffer.get(), kBufferSize, callback.callback()); 66 content->append(buffer->data(), result);
|
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
destroy_partitions_operation.cc | 32 scoped_ptr<char[]> buffer(new char[kPartitionTableSize]); 33 memset(buffer.get(), 0, kPartitionTableSize); 35 if (base::WriteFile(image_path_, buffer.get(), kPartitionTableSize) !=
|