/device/generic/goldfish/camera/ |
PreviewWindow.cpp | 63 /* The CPU will write each frame to the preview window buffer. 64 * Note that we delay setting preview window buffer geometry until 117 /* Need to set / adjust buffer geometry for the preview window. 138 /* Dequeue preview window buffer for the frame. */ 139 buffer_handle_t* buffer = NULL; local 141 res = mPreviewWindow->dequeue_buffer(mPreviewWindow, &buffer, &stride); 142 if (res != NO_ERROR || buffer == NULL) { 143 ALOGE("%s: Unable to dequeue preview window buffer: %d -> %s", 148 /* Let the preview window to lock the buffer. */ 149 res = mPreviewWindow->lock_buffer(mPreviewWindow, buffer); [all...] |
/external/apache-http/src/org/apache/http/auth/ |
AuthScope.java | 257 StringBuffer buffer = new StringBuffer(); local 259 buffer.append(this.scheme.toUpperCase(Locale.ENGLISH)); 260 buffer.append(' '); 263 buffer.append('\''); 264 buffer.append(this.realm); 265 buffer.append('\''); 267 buffer.append("<any realm>"); 270 buffer.append('@'); 271 buffer.append(this.host); 273 buffer.append(':') [all...] |
/external/chromium/net/tools/flip_server/ |
loadtime_measurement.h | 47 char buffer[16]; local 48 snprintf(buffer, 16, "%d", num_urls_); 49 output.append(buffer, strlen(buffer)); 92 char buffer[4096]; local 93 ssize_t read_status = read(fd, buffer, sizeof(buffer)); 95 output->append(buffer, static_cast<size_t>(read_status)); 97 read_status = read(fd, buffer, sizeof(buffer)); [all...] |
/external/clang/include/clang/AST/ |
ASTTypeTraits.h | 60 return BaseConverter<T>::get(Tag, Storage.buffer); 107 new (Result.Storage.buffer) const Decl*(&Node); 121 new (Result.Storage.buffer) const Stmt*(&Node); 135 new (Result.Storage.buffer) const Type*(&Node); 148 new (Result.Storage.buffer) const NestedNameSpecifier*(&Node); 162 new (Result.Storage.buffer) NestedNameSpecifierLoc(Node); 175 new (Result.Storage.buffer) QualType(Node); 188 new (Result.Storage.buffer) TypeLoc(Node); 202 case NT_Decl: return BaseConverter<Decl>::get(Tag, Storage.buffer); 203 case NT_Stmt: return BaseConverter<Stmt>::get(Tag, Storage.buffer); [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/model/ |
ScenarioResultsElement.java | 129 StringBuffer writableStatus(StringBuffer buffer, int kind, StringBuffer excluded) { 138 buffer.append(" "); 139 buffer.append(getLabel(null)); 144 buffer.append(" "); 146 buffer.append(" "); 148 buffer.append(comment); 150 buffer.append(Util.LINE_SEPARATOR); 151 buffer.append(childrenBuffer); 152 buffer.append(Util.LINE_SEPARATOR); 155 return buffer; [all...] |
/external/javassist/src/main/javassist/ |
CtMember.java | 31 protected void extendToString(StringBuffer buffer) {} 142 StringBuffer buffer = new StringBuffer(getClass().getName()); local 143 buffer.append("@"); 144 buffer.append(Integer.toHexString(hashCode())); 145 buffer.append("["); 146 buffer.append(Modifier.toString(getModifiers())); 147 extendToString(buffer); 148 buffer.append("]"); 149 return buffer.toString(); 153 * Invoked by {@link #toString()} to add to the buffer and provide th [all...] |
/external/skia/legacy/src/core/ |
SkComposeShader.cpp | 26 SkComposeShader::SkComposeShader(SkFlattenableReadBuffer& buffer) : 27 INHERITED(buffer) { 28 fShaderA = static_cast<SkShader*>(buffer.readFlattenable()); 32 fShaderB = static_cast<SkShader*>(buffer.readFlattenable()); 36 fMode = static_cast<SkXfermode*>(buffer.readFlattenable()); 73 void SkComposeShader::flatten(SkFlattenableWriteBuffer& buffer) { 74 this->INHERITED::flatten(buffer); 75 buffer.writeFlattenable(fShaderA); 76 buffer.writeFlattenable(fShaderB); 77 buffer.writeFlattenable(fMode) [all...] |
/external/skia/legacy/src/effects/ |
Sk1DPathEffect.cpp | 139 SkPath1DPathEffect::SkPath1DPathEffect(SkFlattenableReadBuffer& buffer) { 140 fAdvance = buffer.readScalar(); 142 fPath.unflatten(buffer); 143 fInitialOffset = buffer.readScalar(); 144 fStyle = (Style) buffer.readU8(); 152 void SkPath1DPathEffect::flatten(SkFlattenableWriteBuffer& buffer) { 153 buffer.writeScalar(fAdvance); 155 fPath.flatten(buffer); 156 buffer.writeScalar(fInitialOffset); 157 buffer.write8(fStyle) [all...] |
SkEmbossMaskFilter.cpp | 85 // create a larger buffer for the other two channels (should force fBlur to do this for us) 118 SkFlattenable* SkEmbossMaskFilter::CreateProc(SkFlattenableReadBuffer& buffer) { 119 return SkNEW_ARGS(SkEmbossMaskFilter, (buffer)); 126 SkEmbossMaskFilter::SkEmbossMaskFilter(SkFlattenableReadBuffer& buffer) 127 : SkMaskFilter(buffer) { 128 buffer.read(&fLight, sizeof(fLight)); 130 fBlurRadius = buffer.readScalar(); 133 void SkEmbossMaskFilter::flatten(SkFlattenableWriteBuffer& buffer) { 134 this->INHERITED::flatten(buffer); 137 buffer.writeMul4(&fLight, sizeof(fLight)) [all...] |
/external/skia/legacy/src/images/ |
SkFlipPixelRef.cpp | 63 void SkFlipPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { 64 this->INHERITED::flatten(buffer); 66 buffer.write32(fSize); 68 buffer.writePad(fPage0, fSize); 71 SkFlipPixelRef::SkFlipPixelRef(SkFlattenableReadBuffer& buffer) 72 : INHERITED(buffer, NULL) { 73 fSize = buffer.readU32(); 77 buffer.read(fPage0, fSize); 80 SkPixelRef* SkFlipPixelRef::Create(SkFlattenableReadBuffer& buffer) { 81 return SkNEW_ARGS(SkFlipPixelRef, (buffer)); [all...] |
/external/skia/src/core/ |
SkComposeShader.cpp | 28 SkComposeShader::SkComposeShader(SkFlattenableReadBuffer& buffer) : 29 INHERITED(buffer) { 30 fShaderA = buffer.readFlattenableT<SkShader>(); 34 fShaderB = buffer.readFlattenableT<SkShader>(); 38 fMode = buffer.readFlattenableT<SkXfermode>(); 63 void SkComposeShader::flatten(SkFlattenableWriteBuffer& buffer) const { 64 this->INHERITED::flatten(buffer); 65 buffer.writeFlattenable(fShaderA); 66 buffer.writeFlattenable(fShaderB); 67 buffer.writeFlattenable(fMode) [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/ |
Instruction35c.java | 79 protected Instruction35c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 80 super(dexFile, opcode, buffer, bufferIndex); 82 this.regCount = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 83 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 84 this.regD = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 4]); 85 this.regE = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 4]); 86 this.regF = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 5]); 87 this.regG = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 5]); 166 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 167 return new Instruction35c(dexFile, opcode, buffer, bufferIndex) [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
JSStringBuilder.h | 45 m_okay &= buffer.tryAppend(&u, 1); 55 m_okay &= buffer.tryReserveCapacity(buffer.size() + len); 58 m_okay &= buffer.tryAppend(&u, 1); 64 m_okay &= buffer.tryAppend(str, len); 69 m_okay &= buffer.tryAppend(str.characters(), str.length()); 76 buffer.shrinkToFit(); 77 if (!buffer.data()) 79 return jsString(exec, UString::adopt(buffer)); 83 Vector<UChar, 64> buffer; member in class:JSC::JSStringBuilder [all...] |
StringPrototype.cpp | 272 UChar* buffer; 273 PassRefPtr<StringImpl> impl = StringImpl::tryCreateUninitialized(totalLength, buffer); 282 StringImpl::copyChars(buffer + bufferPos, source.characters() + substringRanges[i].position, srcLen); 288 StringImpl::copyChars(buffer + bufferPos, separators[i].characters(), sepLen); 1025 UChar* buffer; local 1076 UChar* buffer; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/fonts/ |
GlyphMapAndroid.cpp | 55 HB_Buffer buffer; local 56 hb_buffer_new(&buffer); 58 hb_buffer_add_glyph(buffer, glyphs[i], 0, i); 75 error = HB_GSUB_Apply_String(hbFace->gsub, buffer); 78 glyphs[i] = static_cast<Glyph>(buffer->out_string[i].gindex); 91 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 93 if (SkUTF16_IsHighSurrogate(buffer[bufferLength-1])) { 104 UChar *textBuffer = buffer; 109 convertToVerticalForms(buffer, vTextBuffer, bufferLength); 130 convertToVerticalForms(buffer, vTextBuffer, bufferLength) [all...] |
/external/webkit/Source/WebCore/platform/image-encoders/skia/ |
JPEGImageEncoder.cpp | 49 Vector<unsigned char> buffer; member in struct:WebCore::JPEGOutputBuffer 56 out->buffer.resize(internalBufferSize); 57 out->next_output_byte = out->buffer.data(); 58 out->free_in_buffer = out->buffer.size(); 64 out->output->append(out->buffer.data(), out->buffer.size()); 65 out->next_output_byte = out->buffer.data(); 66 out->free_in_buffer = out->buffer.size(); 73 const size_t size = out->buffer.size() - out->free_in_buffer; 74 out->output->append(out->buffer.data(), size) [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
DummyAudioSource.cpp | 142 MediaBuffer *buffer; local 143 status_t err = mBufferGroup->acquire_buffer(&buffer); 145 ALOGE("Failed to acquire buffer from mBufferGroup: %d", err); 149 memset((uint8_t *) buffer->data() + buffer->range_offset(), 151 buffer->set_range(buffer->range_offset(), (mNumberOfSamplePerFrame << 1)); 152 buffer->meta_data()->setInt64(kKeyTime, mTimeStampUs); 155 buffer->range_offset(), buffer->size(), mTimeStampUs) [all...] |
/frameworks/av/media/libstagefright/ |
VBRISeeker.cpp | 84 uint8_t *buffer = new uint8_t[totalEntrySize]; local 86 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); 88 delete[] buffer; 89 buffer = NULL; 108 case 1: numBytes = buffer[i]; break; 109 case 2: numBytes = U16_AT(buffer + 2 * i); break; 110 case 3: numBytes = U24_AT(buffer + 3 * i); break; 114 numBytes = U32_AT(buffer + 4 * i); break; 126 delete[] buffer; 127 buffer = NULL [all...] |
/frameworks/av/media/libstagefright/include/ |
SoftOMXComponent.h | 74 OMX_BUFFERHEADERTYPE **buffer, 81 OMX_BUFFERHEADERTYPE **buffer, 88 OMX_BUFFERHEADERTYPE *buffer); 91 OMX_BUFFERHEADERTYPE *buffer); 94 OMX_BUFFERHEADERTYPE *buffer); 138 OMX_BUFFERHEADERTYPE **buffer, 146 OMX_BUFFERHEADERTYPE **buffer, 154 OMX_BUFFERHEADERTYPE *buffer); 158 OMX_BUFFERHEADERTYPE *buffer); 162 OMX_BUFFERHEADERTYPE *buffer); [all...] |
/frameworks/base/media/libdrm/mobile1/include/xml/ |
xml_tinyParser.h | 74 uint8_t *XML_DOM_getNode(uint8_t *buffer, const uint8_t *const node); 75 uint8_t *XML_DOM_getNodeValue(uint8_t *buffer, uint8_t *node, 78 uint8_t *XML_DOM_getValue(uint8_t *buffer, uint8_t **pValue, int32_t *valueLen); 79 uint8_t *XML_DOM_getAttr(uint8_t *buffer, uint8_t **pName, int32_t *nameLen, 82 uint8_t *XML_DOM_getNextNode(uint8_t *buffer, uint8_t **pNodeName, 85 uint8_t *XML_DOM_getTag(uint8_t *buffer, int32_t *tagLen, int32_t *tagType); 122 uint8_t *WBXML_DOM_getNode(uint8_t *buffer, int32_t bufferLen, 124 uint8_t *WBXML_DOM_getNodeValue(uint8_t *buffer, int32_t bufferLen, 130 XML_BOOL WBXML_DOM_Init(WBXML * pWbxml, uint8_t *buffer, 138 int32_t WBXML_GetUintVar(const uint8_t *const buffer, int32_t *len) [all...] |
/frameworks/native/libs/ui/ |
GraphicBufferAllocator.cpp | 60 char buffer[SIZE]; local 61 snprintf(buffer, SIZE, "Allocated buffers:\n"); 62 result.append(buffer); 67 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %8X | 0x%08x\n", 71 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %8X | 0x%08x\n", 75 result.append(buffer); 78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f); 79 result.append(buffer); 81 mAllocDev->dump(mAllocDev, buffer, SIZE); 82 result.append(buffer); [all...] |
/frameworks/native/libs/utils/ |
Tokenizer.cpp | 38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, 41 mBuffer(buffer), mOwnBuffer(ownBuffer), mLength(length), 42 mCurrent(buffer), mLineNumber(1) { 72 char* buffer; local 75 buffer = static_cast<char*>(fileMap->getDataPtr()); 80 // Fall back to reading into a buffer since we can't mmap files in sysfs. 83 buffer = new char[length]; 85 ssize_t nrd = read(fd, buffer, length); 89 delete[] buffer; 90 buffer = NULL [all...] |
/cts/tools/dex-tools/src/dex/reader/ |
DexFileImpl.java | 38 private final DexBuffer buffer; field in class:DexFileImpl 42 public DexFileImpl(DexBuffer buffer, String[] stringPool, int[] typeIds, 45 this.buffer = buffer; 63 classes.add(new DexClassImpl(buffer.createCopy(),
|
/external/apache-http/src/org/apache/http/conn/scheme/ |
Scheme.java | 176 StringBuilder buffer = new StringBuilder(); local 177 buffer.append(this.name); 178 buffer.append(':'); 179 buffer.append(Integer.toString(this.defaultPort)); 180 stringRep = buffer.toString();
|
/external/apache-http/src/org/apache/http/impl/conn/ |
LoggingSessionInputBuffer.java | 50 /** Original session input buffer. */ 57 * Create an instance that wraps the specified session input buffer. 58 * @param in The session input buffer. 103 public int readLine(final CharArrayBuffer buffer) throws IOException { 104 int l = this.in.readLine(buffer); 106 int pos = buffer.length() - l; 107 String s = new String(buffer.buffer(), pos, l);
|