/external/skia/gm/ |
H A D | annotated_text.cpp | 15 size_t byteLength = strlen(static_cast<const char*>(text)); local 17 (void)paint.measureText(text, byteLength, &bounds); 24 canvas->drawText(text, byteLength, x, y, paint);
|
/external/skia/src/gpu/ |
H A D | GrPathRenderingDrawContext.cpp | 21 size_t byteLength, SkScalar x, SkScalar y, 34 text, byteLength, x, y, clipBounds); 40 size_t byteLength, const SkScalar pos[], 54 text, byteLength, pos, scalarsPerPosition, offset, 18 drawText(const GrClip& clip, const GrPaint& grPaint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument 37 drawPosText(const GrClip& clip, const GrPaint& grPaint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
|
H A D | GrDrawContext.cpp | 111 const char text[], size_t byteLength, 123 text, byteLength, x, y, clipBounds); 129 const char text[], size_t byteLength, 142 fSurfaceProps, text, byteLength, pos, scalarsPerPosition, 108 drawText(const GrClip& clip, const GrPaint& grPaint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument 126 drawPosText(const GrClip& clip, const GrPaint& grPaint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
|
/external/skia/src/core/ |
H A D | SkFont.cpp | 61 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, argument 63 if (0 == byteLength) { 73 count = SkUTF8_CountUnichars((const char*)text, byteLength); 76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1)); 79 count = SkToInt(byteLength >> 2); 82 count = SkToInt(byteLength >> 1); 112 SkScalar SkFont::measureText(const void* text, size_t byteLength, SkTextEncoding encoding) const { argument
|
H A D | SkUtils.cpp | 53 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument 54 SkASSERT(utf8 || 0 == byteLength); 57 const char* stop = utf8 + byteLength;
|
H A D | SkReadBuffer.cpp | 161 const size_t byteLength = count * elementSize; local 162 memcpy(value, fReader.skip(SkAlign4(byteLength)), byteLength);
|
H A D | SkValidatingReadBuffer.cpp | 179 const size_t byteLength = count * elementSize; local 180 this->validate(byteLength == byteLength64); 181 const void* ptr = this->skip(SkAlign4(byteLength)); 183 memcpy(value, ptr, byteLength);
|
H A D | SkWriteBuffer.cpp | 85 void SkWriteBuffer::writeEncodedString(const void* value, size_t byteLength, argument 88 fWriter.writeInt(SkToU32(byteLength)); 89 fWriter.write(value, byteLength);
|
H A D | SkDevice.cpp | 358 void SkBaseDevice::drawTextOnPath(const SkDraw& draw, const void* text, size_t byteLength, argument 361 SkASSERT(byteLength == 0 || text != nullptr); 364 if (text == nullptr || byteLength == 0 || draw.fRC->isEmpty()) { 368 SkTextToPathIter iter((const char*)text, byteLength, paint, true);
|
H A D | SkFindAndPlaceGlyph.h | 48 SkPaint::TextEncoding, const char text[], size_t byteLength, 69 SkPaint::TextEncoding, const char text[], size_t byteLength, 564 static SkPoint MeasureText(LookupGlyph& glyphFinder, const char text[], size_t byteLength) { argument 566 const char* stop = text + byteLength; 585 SkPaint::TextEncoding textEncoding, const char text[], size_t byteLength, 608 const char* stop = text + byteLength; 681 const char* stop = text + byteLength; 691 SkPaint::TextEncoding textEncoding, const char text[], size_t byteLength, 702 SkVector stop = MeasureText(glyphFinder, text, byteLength); 724 const char* stop = text + byteLength; 584 ProcessPosText( SkPaint::TextEncoding textEncoding, const char text[], size_t byteLength, SkPoint offset, const SkMatrix& matrix, const SkScalar pos[], int scalarsPerPosition, SkPaint::Align textAlignment, SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph) argument 690 ProcessText( SkPaint::TextEncoding textEncoding, const char text[], size_t byteLength, SkPoint offset, const SkMatrix& matrix, SkPaint::Align textAlignment, SkGlyphCache* cache, ProcessOneGlyph&& processOneGlyph) argument [all...] |
H A D | SkRecorder.cpp | 243 void SkRecorder::onDrawText(const void* text, size_t byteLength, argument 246 paint, this->copy((const char*)text, byteLength), byteLength, x, y); 249 void SkRecorder::onDrawPosText(const void* text, size_t byteLength, argument 251 const int points = paint.countText(text, byteLength); 254 this->copy((const char*)text, byteLength), 255 byteLength, 259 void SkRecorder::onDrawPosTextH(const void* text, size_t byteLength, argument 261 const int points = paint.countText(text, byteLength); 264 this->copy((const char*)text, byteLength), 270 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument [all...] |
H A D | SkPictureRecord.cpp | 544 void SkPictureRecord::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument 547 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + 2 * sizeof(SkScalar); 552 this->addText(text, byteLength); 558 void SkPictureRecord::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument 560 int points = paint.countText(text, byteLength); 563 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) + kUInt32Size + points * sizeof(SkPoint); 569 this->addText(text, byteLength); 575 void SkPictureRecord::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument 577 int points = paint.countText(text, byteLength); 580 size_t size = 3 * kUInt32Size + SkAlign4(byteLength) 593 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument 951 addText(const void* text, size_t byteLength) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
H A D | HMac.java | 84 * byteLength of the algorithm is know for. 96 int byteLength) 100 this.blockLength = byteLength; 94 HMac( Digest digest, int byteLength) argument
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
H A D | TypesLengths.java | 82 private static int byteLength = 1; field in class:TypesLengths 138 return byteLength; 218 byteLength = typeLength;
|
/external/icu/icu4c/source/common/ |
H A D | propsvec.c | 453 int32_t byteLength; local 462 byteLength=pv->rows*(pv->columns-2)*4; 463 clonedArray=(uint32_t *)uprv_malloc(byteLength); 468 uprv_memcpy(clonedArray, pv->v, byteLength);
|
/external/skia/src/gpu/text/ |
H A D | GrAtlasTextContext.cpp | 259 const char text[], size_t byteLength, 261 int glyphCount = skPaint.countText(text, byteLength); 269 byteLength, x, y); 272 paint.getColor(), viewMatrix, text, byteLength, x, y); 282 const char text[], size_t byteLength, 285 int glyphCount = skPaint.countText(text, byteLength); 293 byteLength, pos, scalarsPerPosition, offset); 297 byteLength, pos, scalarsPerPosition, offset); 308 const char text[], size_t byteLength, 318 text, byteLength, 252 CreateDrawTextBlob(GrTextBlobCache* blobCache, GrBatchFontCache* fontCache, const GrShaderCaps& shaderCaps, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y) argument 278 CreateDrawPosTextBlob(GrTextBlobCache* blobCache, GrBatchFontCache* fontCache, const GrShaderCaps& shaderCaps, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset) argument 302 drawText(GrContext* context, GrDrawContext* dc, const GrClip& clip, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& regionClipBounds) argument 329 drawPosText(GrContext* context, GrDrawContext* dc, const GrClip& clip, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& regionClipBounds) argument [all...] |
H A D | GrStencilAndCoverTextContext.cpp | 79 const char text[], size_t byteLength, 86 run.setText(text, byteLength, x, y); 93 byteLength, x, y, clipBounds); 98 GrTextUtils::DrawTextAsPath(context, dc, clip, skPaint, viewMatrix, text, byteLength, x, y, 109 size_t byteLength, 119 run.setPosText(text, byteLength, pos, scalarsPerPosition, offset); 126 text, byteLength, pos, 133 byteLength, pos, scalarsPerPosition, offset, clipBounds); 301 size_t byteLength = sizeof(uint16_t) * iter.glyphCount(); local 306 run->setText(text, byteLength, runOffse 75 drawText(GrContext* context, GrDrawContext* dc, const GrClip& clip, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument 102 drawPosText(GrContext* context, GrDrawContext* dc, const GrClip& clip, const GrPaint& paint, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument 438 setText(const char text[], size_t byteLength, SkScalar x, SkScalar y) argument 501 setPosText(const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset) argument [all...] |
H A D | GrTextUtils.cpp | 45 const char text[], size_t byteLength, 47 SkASSERT(byteLength == 0 || text != nullptr); 50 if (text == nullptr || byteLength == 0) { 65 skPaint.getTextEncoding(), text, byteLength, 85 const char text[], size_t byteLength, 88 SkASSERT(byteLength == 0 || text != nullptr); 92 if (text == nullptr || byteLength == 0) { 107 skPaint.getTextEncoding(), text, byteLength, 252 const char text[], size_t byteLength, 254 SkASSERT(byteLength 40 DrawBmpText(GrAtlasTextBlob* blob, int runIndex, GrBatchFontCache* fontCache, const SkSurfaceProps& props, const SkPaint& skPaint, GrColor color, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y) argument 80 DrawBmpPosText(GrAtlasTextBlob* blob, int runIndex, GrBatchFontCache* fontCache, const SkSurfaceProps& props, const SkPaint& skPaint, GrColor color, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset) argument 248 DrawDFText(GrAtlasTextBlob* blob, int runIndex, GrBatchFontCache* fontCache, const SkSurfaceProps& props, const SkPaint& skPaint, GrColor color, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y) argument 317 DrawDFPosText(GrAtlasTextBlob* blob, int runIndex, GrBatchFontCache* fontCache, const SkSurfaceProps& props, const SkPaint& origPaint, GrColor color, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset) argument 466 DrawTextAsPath(GrContext* context, GrDrawContext* dc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument 491 DrawPosTextAsPath(GrContext* context, GrDrawContext* dc, const SkSurfaceProps& props, const GrClip& clip, const SkPaint& origPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument [all...] |
/external/icu/icu4c/source/test/cintltst/ |
H A D | ucsdetst.c | 69 static char *extractBytes(const UChar *src, int32_t length, const char *codepage, int32_t *byteLength) argument 81 *byteLength = byteCount; 123 int32_t byteLength = 0, sLength = 0, dLength = 0; local 131 bytes = extractBytes(s, sLength, "UTF-8", &byteLength); 133 ucsdet_setText(csd, bytes, byteLength, &status); 286 int32_t byteLength = 0; local 293 bytes = extractBytes(s, sLength, "ISO-8859-1", &byteLength); 302 ucsdet_setText(csd, bytes, byteLength, &status); 324 ucsdet_setText(csd, bytes, byteLength, &status);
|
/external/skia/src/utils/ |
H A D | SkPaintFilterCanvas.cpp | 175 void SkPaintFilterCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument 179 this->INHERITED::onDrawText(text, byteLength, x, y, *apf.paint()); 183 void SkPaintFilterCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument 187 this->INHERITED::onDrawPosText(text, byteLength, pos, *apf.paint()); 191 void SkPaintFilterCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument 195 this->INHERITED::onDrawPosTextH(text, byteLength, xpos, constY, *apf.paint()); 199 void SkPaintFilterCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, argument 203 this->INHERITED::onDrawTextOnPath(text, byteLength, path, matrix, *apf.paint());
|
H A D | SkLuaCanvas.cpp | 247 void SkLuaCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument 250 lua.pushEncodedText(paint.getTextEncoding(), text, byteLength); 254 void SkLuaCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument 257 lua.pushEncodedText(paint.getTextEncoding(), text, byteLength); 261 void SkLuaCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument 264 lua.pushEncodedText(paint.getTextEncoding(), text, byteLength); 268 void SkLuaCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, argument 272 lua.pushEncodedText(paint.getTextEncoding(), text, byteLength);
|
H A D | SkNWayCanvas.cpp | 226 void SkNWayCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument 230 iter->drawText(text, byteLength, x, y, paint); 234 void SkNWayCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument 238 iter->drawPosText(text, byteLength, pos, paint); 242 void SkNWayCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument 246 iter->drawPosTextH(text, byteLength, xpos, constY, paint); 250 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, argument 254 iter->drawTextOnPath(text, byteLength, path, matrix, paint);
|
H A D | SkDumpCanvas.cpp | 400 void SkDumpCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument 403 toString(text, byteLength, paint.getTextEncoding(), &str); 405 byteLength, SkScalarToFloat(x), SkScalarToFloat(y)); 408 void SkDumpCanvas::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument 411 toString(text, byteLength, paint.getTextEncoding(), &str); 413 str.c_str(), byteLength, SkScalarToFloat(pos[0].fX), 417 void SkDumpCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument 420 toString(text, byteLength, paint.getTextEncoding(), &str); 422 str.c_str(), byteLength, SkScalarToFloat(xpos[0]), 426 void SkDumpCanvas::onDrawTextOnPath(const void* text, size_t byteLength, cons argument [all...] |
/external/skia/tools/debugger/ |
H A D | SkObjectParser.cpp | 360 SkString* SkObjectParser::TextToString(const void* text, size_t byteLength, argument 367 decodedText->append((const char*)text, byteLength); 373 SkToS32(byteLength / 2), 376 SkUTF16_ToUTF8((uint16_t*)text, SkToS32(byteLength / 2), utf8); 383 const SkUnichar* end = (const SkUnichar*)((const char*)text + byteLength); 392 const uint16_t* end = (const uint16_t*)((const char*)text + byteLength);
|
/external/icu/icu4c/source/test/intltest/ |
H A D | csdetest.cpp | 171 int32_t byteLength = 0; local 172 char *bytes = extractBytes(testString, codepage, byteLength); 181 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status); 327 int32_t byteLength = 0, sLength = s.length(); local 328 char *bytes = extractBytes(s, "UTF-8", byteLength); 333 ucsdet_setText(csd, bytes, byteLength, &status); 427 int32_t byteLength = 0; local 428 char *bytes = extractBytes(s, "ISO-8859-1", byteLength); 440 ucsdet_setText(csd, bytes, byteLength, &status); 462 ucsdet_setText(csd, bytes, byteLength, [all...] |