/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | ArrayBufferView.h | 72 virtual unsigned byteLength() const = 0; 102 if (byteOffset > buffer->byteLength()) in verifySubRange() 104 unsigned remainingElements = (buffer->byteLength() - byteOffset) / sizeof(T); in verifySubRange() 120 *offset = buffer->byteLength(); in clampOffsetAndNumElements() 125 *offset = std::min(buffer->byteLength(), *offset); in clampOffsetAndNumElements() 126 unsigned remainingElements = (buffer->byteLength() - *offset) / sizeof(T); in clampOffsetAndNumElements() 147 if (byteOffset > byteLength() in setImpl() 148 || byteOffset + array->byteLength() > byteLength() in setImpl() 149 || byteOffset + array->byteLength() < byteOffset) { in setImpl() 155 memmove(base + byteOffset, array->baseAddress(), array->byteLength()); in setImpl() [all …]
|
D | ArrayBufferBuilderTest.cpp | 44 EXPECT_EQ(0u, zeroBuilder.byteLength()); in TEST() 48 EXPECT_EQ(0u, zeroBuilder.byteLength()); in TEST() 52 EXPECT_EQ(0u, zeroBuilder.byteLength()); in TEST() 64 EXPECT_EQ(dataSize, builder.byteLength()); in TEST() 68 EXPECT_EQ(dataSize * 2, builder.byteLength()); in TEST() 72 EXPECT_EQ(dataSize * 3, builder.byteLength()); in TEST() 85 EXPECT_EQ(dataSize * i, builder.byteLength()); in TEST() 99 EXPECT_EQ(dataSize * i, builder.byteLength()); in TEST() 113 EXPECT_EQ(dataSize, builder.byteLength()); in TEST() 117 EXPECT_EQ(15u, builder.byteLength()); in TEST() [all …]
|
D | ArrayPiece.cpp | 19 ArrayPiece::ArrayPiece(void* data, unsigned byteLength) in ArrayPiece() argument 21 initWithData(data, byteLength); in ArrayPiece() 27 initWithData(buffer->data(), buffer->byteLength()); in ArrayPiece() 36 initWithData(buffer->baseAddress(), buffer->byteLength()); in ArrayPiece() 58 unsigned ArrayPiece::byteLength() const in byteLength() function in WTF::ArrayPiece 64 void ArrayPiece::initWithData(void* data, unsigned byteLength) in initWithData() argument 66 m_byteLength = byteLength; in initWithData()
|
D | ArrayBuffer.h | 44 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength); 52 inline unsigned byteLength() const; 99 return ArrayBuffer::create(other->data(), other->byteLength()); in create() 102 PassRefPtr<ArrayBuffer> ArrayBuffer::create(const void* source, unsigned byteLength) in create() argument 104 ArrayBufferContents contents(byteLength, 1, ArrayBufferContents::ZeroInitialize); in create() 108 memcpy(buffer->data(), source, byteLength); in create() 146 unsigned ArrayBuffer::byteLength() const in byteLength() function 158 return sliceImpl(clampIndex(begin), byteLength()); in slice() 169 unsigned currentLength = byteLength(); in clampIndex()
|
D | ArrayBufferBuilder.cpp | 50 unsigned currentBufferSize = m_buffer->byteLength(); in expandCapacity() 80 unsigned currentBufferSize = m_buffer->byteLength(); in append() 106 if (m_buffer->byteLength() == m_bytesUsed) in toArrayBuffer() 119 ASSERT(m_bytesUsed <= m_buffer->byteLength()); in shrinkToFit() 121 if (m_buffer->byteLength() > m_bytesUsed) in shrinkToFit()
|
D | ArrayPiece.h | 27 ArrayPiece(void* data, unsigned byteLength); 37 unsigned byteLength() const; 40 void initWithData(void* data, unsigned byteLength);
|
/external/chromium_org/v8/test/mjsunit/ |
D | external-array.js | 59 assertEquals(12, derived_uint8.byteLength); 66 assertEquals(5, derived_uint8_2.byteLength); 73 assertEquals(12, derived_int16.byteLength); 80 assertEquals(6, derived_int16_2.byteLength); 87 assertEquals(12, derived_uint32.byteLength); 94 assertEquals(8, derived_uint32_2.byteLength); 101 assertEquals(4, derived_uint32_3.byteLength); 108 assertEquals(8, derived_float64.byteLength); 141 assertEquals(a.byteLength, a.buffer.byteLength); 142 assertEquals(a.length, a.buffer.byteLength); [all …]
|
D | external-array-no-sse2.js | 59 assertEquals(12, derived_uint8.byteLength); 66 assertEquals(5, derived_uint8_2.byteLength); 73 assertEquals(12, derived_int16.byteLength); 80 assertEquals(6, derived_int16_2.byteLength); 87 assertEquals(12, derived_uint32.byteLength); 94 assertEquals(8, derived_uint32_2.byteLength); 101 assertEquals(4, derived_uint32_3.byteLength); 108 assertEquals(8, derived_float64.byteLength); 141 assertEquals(a.byteLength, a.buffer.byteLength); 142 assertEquals(a.length, a.buffer.byteLength); [all …]
|
/external/chromium_org/v8/test/mjsunit/harmony/ |
D | typedarrays.js | 32 assertSame(expectedByteLength, ab.byteLength); 54 assertSame(0, ab.byteLength); 61 assertSame(1024, ab.byteLength); 63 assertThrows(function() { "use strict"; ab.byteLength = 42; }, TypeError); 75 assertSame(expectedResultLen, slice.byteLength); 85 assertSame(512, ab1.byteLength); 129 assertSame(30*elementSize, a0.byteLength); 131 assertSame(30*elementSize, a0.buffer.byteLength); 136 assertSame(0, aLen0.byteLength); 138 assertSame(0, aLen0.buffer.byteLength); [all …]
|
/external/skia/src/core/ |
D | SkRecorder.cpp | 152 void SkRecorder::onDrawText(const void* text, size_t byteLength, in onDrawText() argument 155 delay_copy(paint), this->copy((const char*)text, byteLength), byteLength, x, y); in onDrawText() 158 void SkRecorder::onDrawPosText(const void* text, size_t byteLength, in onDrawPosText() argument 160 const unsigned points = paint.countText(text, byteLength); in onDrawPosText() 163 this->copy((const char*)text, byteLength), in onDrawPosText() 164 byteLength, in onDrawPosText() 168 void SkRecorder::onDrawPosTextH(const void* text, size_t byteLength, in onDrawPosTextH() argument 170 const unsigned points = paint.countText(text, byteLength); in onDrawPosTextH() 173 this->copy((const char*)text, byteLength), in onDrawPosTextH() 174 byteLength, in onDrawPosTextH() [all …]
|
D | SkFont.cpp | 61 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() argument 63 if (0 == byteLength) { in textToGlyphs() 73 count = SkUTF8_CountUnichars((const char*)text, byteLength); in textToGlyphs() 76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1)); in textToGlyphs() 79 count = SkToInt(byteLength >> 2); in textToGlyphs() 82 count = SkToInt(byteLength >> 1); in textToGlyphs() 112 SkScalar SkFont::measureText(const void* text, size_t byteLength, SkTextEncoding encoding) const { in measureText() argument
|
D | SkBBoxRecord.cpp | 87 void SkBBoxRecord::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, in onDrawText() argument 90 paint.measureText(text, byteLength, &bbox); in onDrawText() 131 INHERITED::onDrawText(text, byteLength, x, y, paint); in onDrawText() 180 void SkBBoxRecord::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], in onDrawPosText() argument 183 bbox.set(pos, paint.countText(text, byteLength)); in onDrawPosText() 196 INHERITED::onDrawPosText(text, byteLength, pos, paint); in onDrawPosText() 200 void SkBBoxRecord::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], in onDrawPosTextH() argument 202 size_t numChars = paint.countText(text, byteLength); in onDrawPosTextH() 241 drawPosTextHImpl(text, byteLength, xpos, constY, paint, flatPaintData); in onDrawPosTextH() 252 void SkBBoxRecord::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, in onDrawTextOnPath() argument [all …]
|
/external/chromium_org/ui/file_manager/file_manager/foreground/js/metadata/ |
D | byte_reader.js | 15 opt_length = opt_length || (arrayBuffer.byteLength - opt_offset); 86 ByteReader.validateRead(pos, size, opt_end || dataView.byteLength); 109 ByteReader.validateRead(pos, size, opt_end || dataView.byteLength); 137 ByteReader.validateRead(pos, size, opt_end || dataView.byteLength); 181 ByteReader.validateRead(pos, size, opt_end || dataView.byteLength); 231 opt_end = opt_end || dataView.byteLength; 259 return this.pos_ + size <= this.view_.byteLength; 267 return this.pos_ >= this.view_.byteLength; 283 return this.pos_ >= this.view_.byteLength || this.pos_ < 0; 306 opt_end = this.view_.byteLength; [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
D | ByteVector.java | 220 int byteLength = i; in putUTF8() local 224 byteLength++; in putUTF8() 226 byteLength += 3; in putUTF8() 228 byteLength += 2; in putUTF8() 231 data[length] = (byte) (byteLength >>> 8); in putUTF8() 232 data[length + 1] = (byte) byteLength; in putUTF8() 233 if (length + 2 + byteLength > data.length) { in putUTF8() 235 enlarge(2 + byteLength); in putUTF8()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkRecorder.cpp | 162 void SkRecorder::onDrawText(const void* text, size_t byteLength, in onDrawText() argument 165 delay_copy(paint), this->copy((const char*)text, byteLength), byteLength, x, y); in onDrawText() 168 void SkRecorder::onDrawPosText(const void* text, size_t byteLength, in onDrawPosText() argument 170 const unsigned points = paint.countText(text, byteLength); in onDrawPosText() 173 this->copy((const char*)text, byteLength), in onDrawPosText() 174 byteLength, in onDrawPosText() 178 void SkRecorder::onDrawPosTextH(const void* text, size_t byteLength, in onDrawPosTextH() argument 180 const unsigned points = paint.countText(text, byteLength); in onDrawPosTextH() 183 this->copy((const char*)text, byteLength), in onDrawPosTextH() 184 byteLength, in onDrawPosTextH() [all …]
|
D | SkFont.cpp | 61 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, in textToGlyphs() argument 63 if (0 == byteLength) { in textToGlyphs() 73 count = SkUTF8_CountUnichars((const char*)text, byteLength); in textToGlyphs() 76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1)); in textToGlyphs() 79 count = SkToInt(byteLength >> 2); in textToGlyphs() 82 count = SkToInt(byteLength >> 1); in textToGlyphs() 112 SkScalar SkFont::measureText(const void* text, size_t byteLength, SkTextEncoding encoding) const { in measureText() argument
|
/external/chromium_org/v8/src/ |
D | typedarray.js | 79 var byteLength = l * ELEMENT_SIZE; 80 if (byteLength > %_TypedArrayMaxSizeInHeap()) { 81 var buffer = new $ArrayBuffer(byteLength); 82 %_TypedArrayInitialize(obj, ARRAY_ID, buffer, 0, byteLength); 84 %_TypedArrayInitialize(obj, ARRAY_ID, null, 0, byteLength); 329 function DataViewConstructor(buffer, byteOffset, byteLength) { // length = 3 argument 337 if (!IS_UNDEFINED(byteLength)) { 338 byteLength = TO_INTEGER(byteLength); 348 var length = IS_UNDEFINED(byteLength) 350 : byteLength;
|
/external/chromium_org/remoting/webapp/ |
D | xmpp_stream_parser.js | 76 if (this.data_.byteLength > 0) { 78 var newData = new Uint8Array(this.data_.byteLength + data.byteLength); 80 newData.set(new Uint8Array(data), this.data_.byteLength); 93 while (this.data_.byteLength > 0 && tryAgain && !this.error_) { 120 for (var i = 0; i < view.byteLength; ++i) {
|
/external/skia/src/utils/ |
D | SkProxyCanvas.cpp | 119 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, in onDrawText() argument 121 fProxy->drawText(text, byteLength, x, y, paint); in onDrawText() 124 void SkProxyCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], in onDrawPosText() argument 126 fProxy->drawPosText(text, byteLength, pos, paint); in onDrawPosText() 129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], in onDrawPosTextH() argument 131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint); in onDrawPosTextH() 134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, in onDrawTextOnPath() argument 136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint); in onDrawTextOnPath()
|
/external/chromium_org/third_party/skia/src/utils/ |
D | SkProxyCanvas.cpp | 119 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, in onDrawText() argument 121 fProxy->drawText(text, byteLength, x, y, paint); in onDrawText() 124 void SkProxyCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], in onDrawPosText() argument 126 fProxy->drawPosText(text, byteLength, pos, paint); in onDrawPosText() 129 void SkProxyCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], in onDrawPosTextH() argument 131 fProxy->drawPosTextH(text, byteLength, xpos, constY, paint); in onDrawPosTextH() 134 void SkProxyCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, in onDrawTextOnPath() argument 136 fProxy->drawTextOnPath(text, byteLength, path, matrix, paint); in onDrawTextOnPath()
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/ |
D | braille_display_manager.js | 199 var end = this.brailleToTextPosition_(this.panPosition_ + buf.byteLength); 238 var extCells = new ArrayBuffer(cells.byteLength + 1); 243 translatedStartIndex = cells.byteLength - 1; 251 translatedEndIndex = cells.byteLength; 320 if (newPosition >= this.translatedContent_.byteLength) { 340 if (startIndex < 0 || startIndex >= buffer.byteLength || 341 endIndex < startIndex || endIndex > buffer.byteLength) {
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkDraw.h | 60 void drawText(const char text[], size_t byteLength, SkScalar x, 62 void drawPosText(const char text[], size_t byteLength, 65 void drawTextOnPath(const char text[], size_t byteLength, 113 void drawText_asPaths(const char text[], size_t byteLength, 115 void drawPosText_asPaths(const char text[], size_t byteLength,
|
/external/skia/include/core/ |
D | SkDraw.h | 58 void drawText(const char text[], size_t byteLength, SkScalar x, 60 void drawPosText(const char text[], size_t byteLength, 63 void drawTextOnPath(const char text[], size_t byteLength, 110 void drawText_asPaths(const char text[], size_t byteLength, 112 void drawPosText_asPaths(const char text[], size_t byteLength,
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrStencilAndCoverTextContext.cpp | 34 size_t byteLength, in drawText() argument 36 SkASSERT(byteLength == 0 || text != NULL); in drawText() 38 if (text == NULL || byteLength == 0 /*|| fRC->isEmpty()*/) { in drawText() 57 this->init(paint, skPaint, byteLength, kMaxAccuracy_RenderMode); in drawText() 71 const char* stop = text + byteLength; in drawText() 124 size_t byteLength, in drawPosText() argument 128 SkASSERT(byteLength == 0 || text != NULL); in drawPosText() 132 if (text == NULL || byteLength == 0/* || fRC->isEmpty()*/) { in drawPosText() 145 this->init(paint, skPaint, byteLength, kMaxPerformance_RenderMode, textTranslateY); in drawPosText() 149 const char* stop = text + byteLength; in drawPosText()
|
/external/skia/src/pipe/ |
D | SkGPipeWrite.cpp | 277 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 279 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], 281 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], 283 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 860 void SkGPipeCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, in onDrawText() argument 862 if (byteLength) { in onDrawText() 865 if (this->needOpBytes(4 + SkAlign4(byteLength) + 2 * sizeof(SkScalar))) { in onDrawText() 867 fWriter.write32(SkToU32(byteLength)); in onDrawText() 868 fWriter.writePad(text, byteLength); in onDrawText() 875 void SkGPipeCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], in onDrawPosText() argument [all …]
|