/external/harfbuzz_ng/src/ |
hb-graphite2.cc | 220 hb_buffer_t *buffer, 228 const char *lang = hb_language_to_string (hb_buffer_get_language (buffer)); 247 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size); 254 ALLOCATE_ARRAY (uint32_t, chars, buffer->len); 256 for (unsigned int i = 0; i < buffer->len; ++i) 257 chars[i] = buffer->info[i].codepoint; 260 hb_ot_tags_from_script (hb_buffer_get_script (buffer), &script_tag[0], &script_tag[1]); 265 gr_utf32, chars, buffer->len, 266 2 | (hb_buffer_get_direction (buffer) == HB_DIRECTION_RTL ? 1 : 0)); 280 scratch = (char *) buffer->get_scratch_buffer (&scratch_size) [all...] |
hb-coretext.cc | 176 hb_buffer_t *buffer, 191 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size); 197 for (unsigned int i = 0; i < buffer->len; i++) { 198 hb_codepoint_t c = buffer->info[i].codepoint; 199 buffer->info[i].utf16_index() = chars_len; 236 buffer->len = 0; 247 buffer->ensure (buffer->len + num_glyphs); 250 * and so copying data to our own buffer with CTRunGetGlyphs will be 254 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size) [all...] |
/external/harfbuzz_ng/util/ |
options.hh | 164 void setup_buffer (hb_buffer_t *buffer) 166 hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1)); 167 hb_buffer_set_script (buffer, hb_script_from_string (script, -1)); 168 hb_buffer_set_language (buffer, hb_language_from_string (language, -1)); 169 hb_buffer_set_flags (buffer, (hb_buffer_flags_t) (HB_BUFFER_FLAGS_DEFAULT | 173 hb_buffer_guess_segment_properties (buffer); 176 void populate_buffer (hb_buffer_t *buffer, const char *text, int text_len, 179 hb_buffer_clear_contents (buffer); 182 hb_buffer_add_utf8 (buffer, text_before, len, len, 0); 184 hb_buffer_add_utf8 (buffer, text, text_len, 0, text_len) [all...] |
/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-coretext.cc | 176 hb_buffer_t *buffer, 191 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size); 197 for (unsigned int i = 0; i < buffer->len; i++) { 198 hb_codepoint_t c = buffer->info[i].codepoint; 199 buffer->info[i].utf16_index() = chars_len; 236 buffer->len = 0; 247 buffer->ensure (buffer->len + num_glyphs); 250 * and so copying data to our own buffer with CTRunGetGlyphs will be 254 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size) [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 | 37 source->dataCallback(*((AudioRecord::Buffer *) info)); 67 // buffer size 70 // make sure that the AudioRecord total buffer size is large enough 225 MediaBuffer *buffer = *mBuffersReceived.begin(); local 228 buffer->setObserver(this); 229 buffer->add_ref(); 233 CHECK(buffer->meta_data()->findInt64(kKeyTime, &timeUs)); 236 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); 246 (uint8_t *) buffer->data(), buffer->range_length()) 334 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...] |
/frameworks/base/libs/hwui/ |
PathTessellator.cpp | 27 i, buffer[i].position[0], buffer[i].position[1], buffer[i].alpha); \ 31 ALOGD("point %d at %f %f", i, buffer[i].position[0], buffer[i].position[1]); \ 165 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size()); local 173 copyVertex(&buffer[currentIndex++], &perimeter[srcAindex]); 175 copyVertex(&buffer[currentIndex++], &perimeter[srcBindex]); 190 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2); local 207 Vertex::set(&buffer[currentIndex++] 252 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); local 333 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); local 568 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); local 640 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8); local [all...] |
/art/compiler/ |
buffered_output_stream.cc | 26 bool BufferedOutputStream::WriteFully(const void* buffer, int64_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, int64_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);
|
/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);
|
/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/net/tools/fetch/ |
http_listen_socket.cc | 126 std::string buffer; local 139 info->method = buffer; 140 buffer.clear(); 143 info->url = GURL(buffer); 144 buffer.clear(); 148 DCHECK(buffer == "HTTP/1.1"); 149 buffer.clear(); 152 header_name = buffer; 153 buffer.clear(); 156 header_value = buffer; [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 | 156 char buffer[1024]; local 157 CHECK_LE(sz, sizeof(buffer)); 159 char* result = internal::itoa_r(i, buffer, sz, base, padding); 161 return std::string(buffer); 202 // Check that itoa_r respects passed buffer size limit. 203 char buffer[1024]; local 204 EXPECT_TRUE(internal::itoa_r(0xdeadbeef, buffer, 10, 16, 0)); 205 EXPECT_TRUE(internal::itoa_r(0xdeadbeef, buffer, 9, 16, 0)); 206 EXPECT_FALSE(internal::itoa_r(0xdeadbeef, buffer, 8, 16, 0)); 207 EXPECT_FALSE(internal::itoa_r(0xdeadbeef, buffer, 7, 16, 0)) [all...] |
/external/chromium_org/content/browser/streams/ |
stream_url_request_job_unittest.cc | 104 scoped_refptr<net::StringIOBuffer> buffer( 107 stream->AddData(buffer, buffer->size()); 122 scoped_refptr<net::StringIOBuffer> buffer( 125 stream->AddData(buffer, buffer->size()); 146 scoped_refptr<net::StringIOBuffer> buffer( 149 stream->AddData(buffer, buffer->size()); 162 scoped_refptr<net::StringIOBuffer> buffer( [all...] |
/external/chromium_org/media/base/ |
test_data_util.cc | 38 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(file_size)); 41 file_path, reinterpret_cast<char*>(buffer->writable_data()), 44 return buffer;
|
/external/chromium_org/media/webm/chromeos/ |
webm_encoder.h | 66 void EbmlWrite(const void* buffer, unsigned long len); 67 void EbmlSerialize(const void* buffer, int buffer_size, unsigned long len); 70 void EbmlSerializeHelper(const T* buffer, unsigned long len);
|