Searched refs:len (Results 276 - 300 of 494) sorted by relevance

<<11121314151617181920

/frameworks/base/libs/hwui/
H A DSpotShadow.cpp287 const Vector2* poly, int len) {
291 for (int i = 0, j = len - 1; i < len; j = i++) {
310 * @param len the number of points of the polygon
312 void SpotShadow::makeClockwise(Vector2* polygon, int len) { argument
313 if (polygon == nullptr || len == 0) {
316 if (!ShadowTessellator::isClockwise(polygon, len)) {
317 reverse(polygon, len);
325 * @param len the number of points of the polygon
327 void SpotShadow::reverse(Vector2* polygon, int len) { argument
286 testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len) argument
[all...]
/frameworks/base/core/java/android/content/
H A DClipData.java338 int len;
339 while ((len=reader.read(buffer)) > 0) {
340 builder.append(buffer, 0, len);
491 int len;
492 while ((len=reader.read(buffer)) > 0) {
493 builder.append(buffer, 0, len);
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp273 const char* str, size_t len) {
274 ssize_t size = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(str), len);
282 utf8_to_utf16_no_null_terminator(reinterpret_cast<const uint8_t*>(str), len, local
401 jsize len = env->GetArrayLength(valueObj); local
404 status_t status = window->putBlob(row, column, value, len);
412 LOG_WINDOW("%d,%d is BLOB with %u bytes", row, column, len);
272 fillCharArrayBufferUTF(JNIEnv* env, jobject bufferObj, const char* str, size_t len) argument
H A Dandroid_view_ThreadedRenderer.cpp213 jsize len = env->GetArrayLength(atlasMapArray); local
214 if (len <= 0) {
215 ALOGW("Failed to initialize atlas, invalid map length: %d", len);
218 int64_t* map = new int64_t[len];
219 env->GetLongArrayRegion(atlasMapArray, 0, len, map);
222 proxy->setTextureAtlas(buffer, map, len);
/frameworks/base/core/tests/coretests/src/android/util/
H A DBase64Test.java57 /** Assert that actual equals the first len bytes of expected. */
58 private void assertEquals(byte[] expected, int len, byte[] actual) { argument
59 assertEquals(len, actual.length);
60 for (int i = 0; i < len; ++i) {
65 /** Assert that actual equals the first len bytes of expected. */
66 private void assertEquals(byte[] expected, int len, byte[] actual, int alen) { argument
67 assertEquals(len, alen);
68 for (int i = 0; i < len; ++i) {
73 /** Assert that actual equals the first len bytes of expected. */
/frameworks/native/cmds/dumpstate/
H A Dutils.c690 ssize_t len = readlink(path, data, sizeof(data) - 1); local
691 if (len <= 0) {
694 data[len] = '\0';
700 len = read(cfd, data, sizeof(data) - 1);
702 if (len <= 0) {
705 data[len] = '\0';
/frameworks/rs/api/
H A Drs_matrix.spec94 float len = length(left->xyz);
95 *left /= len;
96 len = length(right->xyz);
97 *right /= len;
98 len = length(top->xyz);
99 *top /= len;
100 len = length(bottom->xyz);
101 *bottom /= len;
102 len = length(near->xyz);
103 *near /= len;
[all...]
/frameworks/av/media/libstagefright/
H A DAACExtractor.cpp352 size_t len = local
358 len += 10;
360 pos += len;
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp50 size_t len = local
53 if (len >= keyLen + 1 && s[keyLen] == '='
55 value->setTo(&s[keyLen + 1], len - keyLen - 1);
/frameworks/base/core/java/android/gesture/
H A DGesture.java107 int len = 0;
112 len += strokes.get(i).length;
115 return len;
/frameworks/base/core/java/android/nfc/
H A DTag.java381 int len = in.readInt();
383 if (len >= 0) {
384 result = new byte[len];
/frameworks/base/media/mca/
H A Dstructgen.py201 if len(linecomps) == 0:
255 foundcount = len(linecomps) - 1
333 if len(argv) != 2:
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java96 float len = dp.length();
97 PointF np = new PointF(height * (dp.y / len), height * (dp.x / len));
/frameworks/base/tools/aapt2/
H A DUtil.h146 size_t len; local
147 const char16_t* str = pool.stringAt(idx, &len);
149 return StringPiece16(str, len);
H A DBinaryResourceParser.cpp121 size_t len) :
123 mData(data), mDataLen(len) {
356 size_t len = strnlen16(reinterpret_cast<const char16_t*>(packageHeader->name), local
358 if (mTable->getPackage().empty() && len == 0) {
360 } else if (len > 0) {
361 StringPiece16 thisPackage(reinterpret_cast<const char16_t*>(packageHeader->name), len);
633 size_t len; local
634 const char* str = mSourcePool.string8At(sourceBlock->pathIndex, &len);
636 source.path.assign(str, len);
116 BinaryResourceParser(const std::shared_ptr<ResourceTable>& table, const std::shared_ptr<IResolver>& resolver, const Source& source, const std::u16string& defaultPackage, const void* data, size_t len) argument
H A DBinaryResourceParser.h42 * Creates a parser, which will read `len` bytes from `data`, and
49 const void* data, size_t len);
H A DStringPool.cpp206 const size_t len = mStrings.size(); local
207 for (size_t index = 0; index < len; index++) {
254 const size_t len = mStrings.size(); local
255 for (size_t index = 0; index < len; index++) {
/frameworks/base/tools/split-select/
H A DMain.cpp157 size_t len; local
158 const char16_t* name = xml.getElementName(&len);
159 String16 name16(name, len);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py66 if len(chunk) == 0:
67 if len(self.buffer) == 0:
248 start_index = prefix_index + len(prefix)
/frameworks/minikin/libs/minikin/
H A DLayout.cpp415 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { argument
420 if (size_t(*iter) < len && (v & 0xfc00) == 0xd800) {
438 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { argument
439 if (size_t(*iter) == len) {
442 uint32_t cp = decodeUtf16(chars, len, iter);
445 if (size_t(*iter) == len)
448 cp = decodeUtf16(chars, len, iter);
505 * Return offset of next word break. It is either > offset or == len.
507 static size_t getNextWordBreak(const uint16_t* chars, size_t offset, size_t len) { argument
508 if (offset >= len) retur
[all...]
/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java349 int len = length();
351 if (start > len || end > len) {
354 " ends beyond length " + len);
/frameworks/base/core/java/android/text/method/
H A DNumberKeyListener.java74 int len = end - start;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DCopyService.java470 int len;
471 while (!mIsCancelled && ((len = src.read(buffer)) != -1)) {
472 dst.write(buffer, 0, len);
473 makeProgress(len);
/frameworks/base/tools/aidl/
H A Daidl_language.h17 unsigned len; member in struct:extra_text_type
/frameworks/native/opengl/libs/EGL/
H A Dtrace.cpp109 GLint len = length[i];
110 ALOGD(" \"%*s\"%s", len, s, comma);
120 GLint len = length[i];
121 ALOGD(" \"%d\"%s", len, comma);

Completed in 495 milliseconds

<<11121314151617181920