/external/skia/src/effects/ |
H A D | SkLayerRasterizer.cpp | 153 static void paint_read(SkPaint* paint, SkFlattenableReadBuffer& buffer) { argument 154 paint->setAntiAlias(buffer.readBool()); 155 paint->setStyle((SkPaint::Style)buffer.readU8()); 156 paint->setAlpha(buffer.readU8()); 159 paint->setStrokeWidth(buffer.readScalar()); 160 paint->setStrokeMiter(buffer.readScalar()); 161 paint->setStrokeCap((SkPaint::Cap)buffer.readU8()); 162 paint->setStrokeJoin((SkPaint::Join)buffer.readU8()); 165 SkSafeUnref(paint->setMaskFilter((SkMaskFilter*)buffer.readFlattenable())); 166 SkSafeUnref(paint->setPathEffect((SkPathEffect*)buffer 171 paint_write(const SkPaint& paint, SkFlattenableWriteBuffer& buffer) argument 189 SkLayerRasterizer(SkFlattenableReadBuffer& buffer) argument 207 flatten(SkFlattenableWriteBuffer& buffer) argument 226 CreateProc(SkFlattenableReadBuffer& buffer) argument [all...] |
/external/apache-http/src/org/apache/http/message/ |
H A D | BasicHeaderValueParser.java | 105 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); 106 buffer.append(value); 108 return parser.parseElements(buffer, cursor); 113 public HeaderElement[] parseElements(final CharArrayBuffer buffer, argument 116 if (buffer == null) { 117 throw new IllegalArgumentException("Char array buffer may not be null"); 125 HeaderElement element = parseHeaderElement(buffer, cursor); 156 CharArrayBuffer buffer = new CharArrayBuffer(value.length()); 157 buffer.append(value); 159 return parser.parseHeaderElement(buffer, curso 164 parseHeaderElement(final CharArrayBuffer buffer, final ParserCursor cursor) argument 230 parseParameters(final CharArrayBuffer buffer, final ParserCursor cursor) argument 299 parseNameValuePair(final CharArrayBuffer buffer, final ParserCursor cursor) argument 315 parseNameValuePair(final CharArrayBuffer buffer, final ParserCursor cursor, final char[] delimiters) argument [all...] |
H A D | BasicHeaderValueFormatter.java | 107 public CharArrayBuffer formatElements(CharArrayBuffer buffer, argument 116 if (buffer == null) { 117 buffer = new CharArrayBuffer(len); 119 buffer.ensureCapacity(len); 124 buffer.append(", "); 126 formatHeaderElement(buffer, elems[i], quote); 129 return buffer; 176 public CharArrayBuffer formatHeaderElement(CharArrayBuffer buffer, argument 185 if (buffer == null) { 186 buffer 264 formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote) argument 332 formatNameValuePair(CharArrayBuffer buffer, final NameValuePair nvp, final boolean quote) argument 389 doFormatValue(final CharArrayBuffer buffer, final String value, boolean quote) argument [all...] |
H A D | 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. 65 * @param buffer the buffer to append to, or 66 * <code>null</code> to create a new buffer 71 * @return a buffer wit 75 formatElements(CharArrayBuffer buffer, HeaderElement[] elems, boolean quote) argument 94 formatHeaderElement(CharArrayBuffer buffer, HeaderElement elem, boolean quote) argument 116 formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote) argument 135 formatNameValuePair(CharArrayBuffer buffer, NameValuePair nvp, boolean quote) argument [all...] |
H A D | HeaderValueParser.java | 83 * @param buffer buffer holding the header value to parse 85 * the bounds within the buffer for the parsing operation 92 CharArrayBuffer buffer, 100 * @param buffer buffer holding the element to parse 102 * the bounds within the buffer for the parsing operation 109 CharArrayBuffer buffer, 186 * @param buffer buffer holdin 91 parseElements( CharArrayBuffer buffer, ParserCursor cursor) argument 108 parseHeaderElement( CharArrayBuffer buffer, ParserCursor cursor) argument 194 parseParameters( CharArrayBuffer buffer, ParserCursor cursor) argument 209 parseNameValuePair( CharArrayBuffer buffer, ParserCursor cursor) argument [all...] |
H A D | 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, 79 * <code>buffer</code> arguments. 80 * It does <i>not</i> clear the argument buffer, but appends instead. 81 * The returned buffer can always be modified by the caller. 85 * @param buffer 93 appendProtocolVersion(CharArrayBuffer buffer, ProtocolVersion version) argument 108 formatRequestLine(CharArrayBuffer buffer, RequestLine reqline) argument 125 formatStatusLine(CharArrayBuffer buffer, StatusLine statline) argument 149 formatHeader(CharArrayBuffer buffer, Header header) argument [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | Streams.java | 36 byte[] buffer = new byte[1024]; 39 while ((count = source.read(buffer)) != -1) { 40 out.write(buffer, 0, count); 49 char[] buffer = new char[1024]; 52 while ((count = fileReader.read(buffer)) != -1) { 53 out.write(buffer, 0, count);
|
/external/apache-http/src/org/apache/http/impl/ |
H A D | DefaultHttpClientConnection.java | 76 StringBuffer buffer = new StringBuffer(); 77 buffer.append("["); 79 buffer.append(getRemotePort()); 81 buffer.append("closed"); 83 buffer.append("]"); 84 return buffer.toString();
|
H A D | DefaultHttpServerConnection.java | 74 StringBuffer buffer = new StringBuffer(); 75 buffer.append("["); 77 buffer.append(getRemotePort()); 79 buffer.append("closed"); 81 buffer.append("]"); 82 return buffer.toString();
|
/external/dropbear/ |
H A D | dss.h | 29 #include "buffer.h" 47 void buf_put_dss_sign(buffer* buf, dss_key *key, const unsigned char* data, 50 int buf_dss_verify(buffer* buf, dss_key *key, const unsigned char* data, 53 int buf_get_dss_pub_key(buffer* buf, dss_key *key); 54 int buf_get_dss_priv_key(buffer* buf, dss_key *key); 55 void buf_put_dss_pub_key(buffer* buf, dss_key *key); 56 void buf_put_dss_priv_key(buffer* buf, dss_key *key);
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
H A D | ExtensionHeaderImpl.java | 94 StringBuffer buffer = new StringBuffer(encodedHdr); 95 while (buffer.length() > 0 && buffer.charAt(0) != ':') { 96 buffer.deleteCharAt(0); 98 buffer.deleteCharAt(0); 99 this.value = buffer.toString().trim();
|
/external/oprofile/libop/ |
H A D | op_xml_out.c | 96 void open_xml_element(tag_t tag, int with_attrs, char *buffer, size_t max) argument 101 buffer[max - 1] = '\0'; 102 size = strlen(buffer); 103 buf = &buffer[size]; 116 void close_xml_element(tag_t tag, int has_nested, char *buffer, size_t max) argument 121 buffer[max - 1] = '\0'; 122 size = strlen(buffer); 123 buf = &buffer[size]; 138 void init_xml_int_attr(tag_t attr, int value, char *buffer, size_t max) argument 143 buffer[ma 157 init_xml_dbl_attr(tag_t attr, double value, char *buffer, size_t max) argument 176 xml_quote(char const *str, char *buffer, size_t max) argument 243 init_xml_str_attr(tag_t attr, char const *str, char *buffer, size_t max) argument [all...] |
/external/skia/include/effects/ |
H A D | SkTransparentShader.h | 34 virtual void flatten(SkFlattenableWriteBuffer& buffer) { argument 35 this->INHERITED::flatten(buffer); 43 SkTransparentShader(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} argument 45 static SkFlattenable* Create(SkFlattenableReadBuffer& buffer) { argument 46 return SkNEW_ARGS(SkTransparentShader, (buffer));
|
/external/webkit/Source/WebCore/platform/ |
H A D | FileSystem.cpp | 83 Vector<UChar, 512> buffer(length * 3 + 1); 84 UChar* p = buffer.data(); 98 ASSERT(p - buffer.data() <= static_cast<int>(buffer.size())); 100 return String(buffer.data(), p - buffer.data());
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
H A D | FontCustomPlatformDataCairo.cpp | 48 FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer) argument 50 ASSERT_ARG(buffer, buffer); 52 buffer->ref(); 53 HFONT font = reinterpret_cast<HFONT>(buffer); 59 cairo_font_face_set_user_data(fontFace, &bufferKey, buffer, releaseData);
|
/external/apache-http/src/org/apache/http/impl/auth/ |
H A D | AuthSchemeBase.java | 84 CharArrayBuffer buffer; 87 buffer = ((FormattedHeader) header).getBuffer(); 94 buffer = new CharArrayBuffer(s.length()); 95 buffer.append(s); 98 while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) { 102 while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) { 106 String s = buffer.substring(beginIndex, endIndex); 111 parseChallenge(buffer, po 114 parseChallenge( CharArrayBuffer buffer, int pos, int len) argument [all...] |
/external/chromium/chrome/browser/ |
H A D | clipboard_dispatcher.h | 26 static bool ReadAvailableTypes(ui::Clipboard::Buffer buffer, 29 static bool ReadData(ui::Clipboard::Buffer buffer, const string16& type, 31 static bool ReadFilenames(ui::Clipboard::Buffer buffer,
|
/external/chromium/testing/gtest/xcode/Samples/FrameworkSample/ |
H A D | widget.cc | 58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { argument 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';
|
H A D | widget_test.cc | 58 char buffer[max_size]; local 59 widget.GetCharPtrValue(buffer, max_size); 60 EXPECT_STREQ("name", buffer);
|
/external/protobuf/gtest/xcode/Samples/FrameworkSample/ |
H A D | widget.cc | 58 void Widget::GetCharPtrValue(char* buffer, size_t max_size) const { argument 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';
|
H A D | widget_test.cc | 58 char buffer[max_size]; local 59 widget.GetCharPtrValue(buffer, max_size); 60 EXPECT_STREQ("name", buffer);
|
/external/v8/src/ |
H A D | fixed-dtoa.cc | 124 Vector<char> buffer, int* length) { 126 buffer[(*length) + i] = '0' + number % 10; 133 static void FillDigits32(uint32_t number, Vector<char> buffer, int* length) { argument 139 buffer[(*length) + number_length] = '0' + digit; 146 char tmp = buffer[i]; 147 buffer[i] = buffer[j]; 148 buffer[j] = tmp; 157 Vector<char> buffer, int* length) { 165 FillDigits32FixedLength(part0, 3, buffer, lengt 123 FillDigits32FixedLength(uint32_t number, int requested_length, Vector<char> buffer, int* length) argument 156 FillDigits64FixedLength(uint64_t number, int requested_length, Vector<char> buffer, int* length) argument 171 FillDigits64(uint64_t number, Vector<char> buffer, int* length) argument 192 RoundUp(Vector<char> buffer, int* length, int* decimal_point) argument 233 FillFractionals(uint64_t fractionals, int exponent, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument 292 TrimZeros(Vector<char> buffer, int* length, int* decimal_point) argument 310 FastFixedDtoa(double v, int fractional_count, Vector<char> buffer, int* length, int* decimal_point) argument 378 FillDigits32(static_cast<uint32_t>(integrals), buffer, length); local [all...] |
/external/webkit/Source/JavaScriptCore/wtf/ |
H A D | StringExtras.h | 40 inline int snprintf(char* buffer, size_t count, const char* format, ...) argument 45 result = _vsnprintf(buffer, count, format, args); 48 // In the case where the string entirely filled the buffer, _vsnprintf will not 51 buffer[count - 1] = '\0'; 56 inline double wtf_vsnprintf(char* buffer, size_t count, const char* format, va_list args) argument 58 int result = _vsnprintf(buffer, count, format, args); 60 // In the case where the string entirely filled the buffer, _vsnprintf will not 63 buffer[count - 1] = '\0'; 69 // vsnprintf does not null terminate the buffer. WebKit can rely on the null termination. 70 #define vsnprintf(buffer, coun 105 strnstr(const char* buffer, const char* target, size_t bufferLength) argument [all...] |
/external/webkit/Source/WebCore/platform/graphics/brew/ |
H A D | ImageBrew.cpp | 47 RefPtr<SharedBuffer> buffer = SharedBuffer::createWithContentsOfFile(resourcePath.utf8().data()); local 48 if (!buffer) 52 image->setData(buffer, true);
|
/external/apache-http/src/org/apache/http/impl/conn/ |
H A D | Wire.java | 55 StringBuilder buffer = new StringBuilder(); 59 buffer.append("[\\r]"); 61 buffer.append("[\\n]\""); 62 buffer.insert(0, "\""); 63 buffer.insert(0, header); 64 log.debug(buffer.toString()); 65 buffer.setLength(0); 67 buffer.append("[0x"); 68 buffer.append(Integer.toHexString(ch)); 69 buffer [all...] |