Searched refs:len (Results 251 - 275 of 454) sorted by last modified time

<<111213141516171819

/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java116 public void addAPPHeader(byte tag, byte len, byte[] value) { argument
117 if ((mLength + len + 2) > mMaxLength) {
118 byte[] array_tmp = new byte[mLength + 4 * len];
121 mMaxLength = mLength + 4 * len;
124 mArray[mLength++] = len;
125 System.arraycopy(value, 0, mArray, mLength, len);
126 mLength += len;
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1799 int len = end - start;
1802 native_drawTextRun(mNativeCanvasWrapper, buf, start - contextStart, len,
H A DPaint.java1920 int len = end - start;
1923 float result = getTextRunAdvances(buf, start - contextStart, len,
H A DTemporaryBuffer.java25 public static char[] obtain(int len) { argument
33 if (buf == null || buf.length < len) {
34 buf = ArrayUtils.newUnpaddedCharArray(len);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DVectorDrawable.java966 float len = mPathMeasure.getLength();
967 start = start * len;
968 end = end * len;
971 mPathMeasure.getSegment(start, len, path, true);
/frameworks/base/include/androidfw/
H A DResourceTypes.h1704 static bool stringToInt(const char16_t* s, size_t len, Res_value* outValue);
1705 static bool stringToFloat(const char16_t* s, size_t len, Res_value* outValue);
1747 const char16_t* s, size_t len,
1759 const char16_t* s, size_t len,
/frameworks/base/keystore/tests/src/android/security/
H A DKeyStoreTest.java108 int len = s.length();
109 byte[] data = new byte[len / 2];
110 for (int i = 0; i < len; i += 2) {
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp126 int len; local
131 len = strlen(str);
132 newStr = new char[len+1];
133 memcpy(newStr, str, len+1);
H A DBackupHelpers.cpp477 int len = strlen(key) + strlen(value) + 4; local
478 if (len > 9) len++;
479 if (len > 99) len++;
480 if (len > 999) len++;
484 return sprintf(buf, "%d %s=%s\n", len, key, value);
641 int len; local
643 // size header -- calc len i
836 int len; local
857 compare_file(const char* path, const unsigned char* data, int len) argument
[all...]
H A DResourceTypes.cpp661 size_t len = **str; local
662 if ((len & 0x8000) != 0) {
664 len = ((len & 0x7FFF) << 16) | **str;
667 return len;
683 size_t len = **str; local
684 if ((len & 0x80) != 0) {
686 len = ((len & 0x7F) << 8) | **str;
689 return len;
804 size_t len; local
843 size_t len; local
4055 size_t len; member in struct:android::id_name_map
4084 size_t len; local
4357 size_t len; member in struct:android::unit_entry
4383 const size_t len = end-str; local
4410 stringToInt(const char16_t* s, size_t len, Res_value* outValue) argument
4474 stringToFloat(const char16_t* s, size_t len, Res_value* outValue) argument
4569 stringToValue(Res_value* outValue, String16* outString, const char16_t* s, size_t len, bool preserveSpaces, bool coerceType, uint32_t attrID, const String16* defType, const String16* defPackage, Accessor* accessor, void* accessorCookie, uint32_t attrType, bool enforcePrivate) const argument
5127 collectString(String16* outString, const char16_t* s, size_t len, bool preserveSpaces, const char** outErrorMsg, bool append) argument
6304 size_t len; local
[all...]
H A DZipUtils.cpp286 int len; local
288 len = getc(fp);
289 len |= getc(fp) << 8;
290 while (len-- && getc(fp) != EOF)
/frameworks/base/libs/androidfw/tests/
H A DAttributeFinder_test.cpp25 MockAttributeFinder(const uint32_t* attrs, int len) argument
26 : BackTrackingAttributeFinder(0, len) {
27 mAttrs = new uint32_t[len];
28 memcpy(mAttrs, attrs, sizeof(*attrs) * len);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp595 uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) {
614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions);
646 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, penX, penY,
691 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y,
699 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions);
709 uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path,
717 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, path, hOffset, vOffset);
594 renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) argument
690 renderPosText(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, Functor* functor, bool forceFinish) argument
708 renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, Functor* functor) argument
H A DFontRenderer.h105 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions,
110 uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path,
132 uint32_t len, int numGlyphs, float radius, const float* positions);
H A DMatrix.cpp480 float len; local
481 len = data[mat4::kScaleX] * data[mat4::kScaleX] + data[mat4::kSkewX] * data[mat4::kSkewX];
482 sx = copysignf(sqrtf(len), data[mat4::kScaleX]);
483 len = data[mat4::kScaleY] * data[mat4::kScaleY] + data[mat4::kSkewY] * data[mat4::kSkewY];
484 sy = copysignf(sqrtf(len), data[mat4::kScaleY]);
H A DShadowTessellator.cpp194 * @param len the number of points of the polygon
196 bool ShadowTessellator::isClockwise(const Vector2* polygon, int len) { argument
197 if (len < 2 || polygon == NULL) {
201 double p1x = polygon[len - 1].x;
202 double p1y = polygon[len - 1].y;
203 for (int i = 0; i < len; i++) {
245 void ShadowTessellator::reverseVertexArray(Vertex* polygon, int len) { argument
246 int n = len / 2;
249 int k = len - 1 - i;
H A DShadowTessellator.h83 static bool isClockwise(const Vector2* polygon, int len);
100 * @param len The length of the vertex array.
102 static void reverseVertexArray(Vertex* polygon, int len);
H A DSpotShadow.cpp308 const Vector2* poly, int len) {
312 for (int i = 0, j = len - 1; i < len; j = i++) {
331 * @param len the number of points of the polygon
333 void SpotShadow::makeClockwise(Vector2* polygon, int len) { argument
334 if (polygon == 0 || len == 0) {
337 if (!ShadowTessellator::isClockwise(polygon, len)) {
338 reverse(polygon, len);
346 * @param len the number of points of the polygon
348 void SpotShadow::reverse(Vector2* polygon, int len) { argument
307 testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len) argument
[all...]
H A DSpotShadow.h55 static bool testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len);
56 static void makeClockwise(Vector2* polygon, int len);
57 static void reverse(Vector2* polygon, int len);
H A DTextDropShadowCache.cpp34 uint32_t charCount = len / sizeof(char16_t);
35 uint32_t hash = JenkinsHashMix(0, len);
54 int deltaInt = int(lhs.len) - int(rhs.len);
79 deltaInt = memcmp(lhs.text, rhs.text, lhs.len);
87 return memcmp(lhs.positions, rhs.positions, lhs.len << 2);
171 ShadowTexture* TextDropShadowCache::get(const SkPaint* paint, const char* text, uint32_t len, argument
173 ShadowText entry(paint, radius, len, text, positions);
180 len, numGlyphs, radius, positions);
H A DTextDropShadowCache.h36 ShadowText(): len(0), radius(0.0f), textSize(0.0f), typeface(NULL),
40 // len is the number of bytes in text
41 ShadowText(const SkPaint* paint, float radius, uint32_t len, const char* srcText, argument
43 len(len), radius(radius), positions(positions) {
75 uint32_t charCount = len / sizeof(char16_t);
85 uint32_t len; member in struct:android::uirenderer::ShadowText
138 ShadowTexture* get(const SkPaint* paint, const char* text, uint32_t len,
/frameworks/base/libs/hwui/font/
H A DFont.cpp299 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, argument
301 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL,
305 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, argument
307 if (numGlyphs == 0 || text == NULL || len == 0) {
325 float textWidth = SkScalarToFloat(paint->measureText(text, len));
355 void Font::measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument
362 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions);
386 void Font::render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument
389 if (numGlyphs == 0 || text == NULL || len == 0) {
H A DFont.h84 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
87 void render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
115 void render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len,
119 void measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len,
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp63 int len = property_get(PROPERTY_RENDER_DIRTY_REGIONS, buf, "true"); local
64 return !strncasecmp("true", buf, len);
/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c177 // event->len ? event->name : "");
178 if (event->len) {
188 event_size = sizeof(*event) + event->len;

Completed in 316 milliseconds

<<111213141516171819