Searched defs:len (Results 51 - 75 of 224) sorted by relevance

123456789

/frameworks/base/core/java/android/util/
H A DSparseLongArray.java228 private static int binarySearch(int[] a, int start, int len, long key) { argument
229 int high = start + len, low = start - 1, guess;
240 if (high == start + len)
241 return ~(start + len);
/frameworks/base/core/jni/android/graphics/
H A DTextLayout.cpp35 bool TextLayout::needsLayout(const jchar* text, jint len, jint bidiFlags) { argument
43 for (int i = 0; i < len; ++i) {
54 void TextLayout::handleText(SkPaint *paint, const jchar* text, jsize len, argument
57 text, 0, len, len, bidiFlags);
91 void TextLayout::getTextPath(SkPaint *paint, const jchar *text, jsize len, argument
93 handleText(paint, text, len, bidiFlags, x, y, path);
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp136 padding_len(int len) argument
138 len = len % 4;
139 return len == 0 ? len : 4 - len;
H A Dandroid_os_SystemProperties.cpp33 int len; local
45 len = property_get(key, buf, "");
46 if ((len <= 0) && (defJ != NULL)) {
48 } else if (len >= 0) {
69 int len; local
82 len = property_get(key, buf, "");
83 if (len > 0) {
99 int len; local
112 len = property_get(key, buf, "");
113 if (len >
129 int len; local
[all...]
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.h35 ShadowText(): radius(0), len(0), textSize(0.0f), typeface(NULL) {
38 ShadowText(SkPaint* paint, uint32_t radius, uint32_t len, const char* srcText, argument
40 radius(radius), len(len), positions(positions) {
63 uint32_t len; member in struct:android::uirenderer::ShadowText
75 str.setTo((const char16_t*) text, len >> 1);
79 positionsCopy.appendArray(positions, len);
85 LTE_INT(len) {
92 int cmp = memcmp(text, rhs.text, len);
96 return memcmp(positions, rhs.positions, len <<
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DSparseWeakArray.java353 private static int binarySearch(int[] a, int start, int len, int key) { argument
354 int high = start + len, low = start - 1, guess;
365 if (high == start + len)
366 return ~(start + len);
/frameworks/compile/libbcc/include/bcinfo/Wrap/
H A DBCHeaderField.h41 BCHeaderField(Tag ID, size_t len, uint8_t* data) : argument
42 ID_(ID), len_(len), data_(data) {}
90 FixedSubfield len; local
91 ReadFixedSubfield(&len, buf + sizeof(FixedSubfield));
92 return len;
/frameworks/native/libs/utils/
H A DZipUtils.cpp299 int len; local
301 len = getc(fp);
302 len |= getc(fp) << 8;
303 while (len-- && getc(fp) != EOF)
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_transport.cpp110 int TCPStream::send(void *buf, size_t len) { argument
116 int n = write(mSocket, buf, len);
122 int TCPStream::receive(void *data, size_t len) { argument
128 while (totalRead < len) {
129 int n = read(mSocket, (uint8_t*)data + totalRead, len - totalRead);
160 const uint32_t len = msg->ByteSize(); local
162 mStringBuffer.append((const char *)&len, sizeof(len)); // append header
/frameworks/rs/driver/
H A DrsdIntrinsicColorMatrix.cpp105 int32_t len = (x2 - x1) >> 2; local
106 if(len > 0) {
109 rsdIntrinsicColorMatrixDot_K(out, in, cp->ip, len);
111 rsdIntrinsicColorMatrix3x3_K(out, in, cp->ip, len);
114 rsdIntrinsicColorMatrix4x4_K(out, in, cp->ip, len);
116 x1 += len << 2;
117 out += len << 2;
118 in += len << 2;
H A DrsdIntrinsicConvolve3x3.cpp105 int32_t len = (x2 - x1 - 1) >> 1; local
106 if(len > 0) {
107 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->ip, len);
108 x1 += len << 1;
109 out += len << 1;
H A DrsdIntrinsicYuvToRGB.cpp106 int32_t len = (x2 - x1 - 1) >> 3; local
107 if(len > 0) {
108 rsdIntrinsicYuv_K(out, Y, uv, len, YuvCoeff);
109 x1 += len << 3;
110 out += len << 3;
/frameworks/rs/
H A DrsScriptIntrinsic.cpp66 void ScriptIntrinsic::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) { argument
H A DrsThreadIO.cpp70 void ThreadIO::coreWrite(const void *data, size_t len) { argument
71 //ALOGV("core write %p %i", data, (int)len);
72 mToCore.writeAsync(data, len, true);
75 void ThreadIO::coreRead(void *data, size_t len) { argument
76 //ALOGV("core read %p %i", data, (int)len);
77 mToCore.read(data, len);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DFieldPacker.java26 public FieldPacker(int len) { argument
28 mLen = len;
29 mData = new byte[len];
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdIntrinsicColorMatrix.cpp105 int32_t len = (x2 - x1) >> 2; local
106 if(len > 0) {
109 rsdIntrinsicColorMatrixDot_K(out, in, cp->ip, len);
111 rsdIntrinsicColorMatrix3x3_K(out, in, cp->ip, len);
114 rsdIntrinsicColorMatrix4x4_K(out, in, cp->ip, len);
116 x1 += len << 2;
117 out += len << 2;
118 in += len << 2;
H A DrsdIntrinsicConvolve3x3.cpp100 int32_t len = (x2 - x1 - 1) >> 1; local
101 if(len > 0) {
102 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->ip, len);
103 x1 += len << 1;
104 out += len << 1;
H A DrsdIntrinsicYuvToRGB.cpp102 int32_t len = (x2 - x1 - 1) >> 3; local
103 if(len > 0) {
104 rsdIntrinsicYuv_K(out, Y, uv, len, YuvCoeff);
105 x1 += len << 3;
106 out += len << 3;
/frameworks/support/renderscript/v8/rs_support/
H A DrsScriptC.cpp98 void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) { argument
108 rsc->mHal.funcs.script.invokeFunction(rsc, this, slot, data, len);
H A DrsScriptIntrinsic.cpp66 void ScriptIntrinsic::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) { argument
H A DrsThreadIO.cpp70 void ThreadIO::coreWrite(const void *data, size_t len) { argument
71 //ALOGV("core write %p %i", data, (int)len);
72 mToCore.writeAsync(data, len, true);
75 void ThreadIO::coreRead(void *data, size_t len) { argument
76 //ALOGV("core read %p %i", data, (int)len);
77 mToCore.read(data, len);
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java334 private static int binarySearch(long[] a, int start, int len, long key) { argument
335 int high = start + len, low = start - 1, guess;
346 if (high == start + len)
347 return ~(start + len);
H A DSparseArrayCompat.java325 private static int binarySearch(int[] a, int start, int len, int key) { argument
326 int high = start + len, low = start - 1, guess;
337 if (high == start + len)
338 return ~(start + len);
/frameworks/wilhelm/src/
H A Ddata.c193 size_t len = strlen((const char *) pDataLocator->mURI.URI); local
194 SLchar *myURI = (SLchar *) malloc(len + 1);
198 memcpy(myURI, pDataLocator->mURI.URI, len + 1);
201 if ('\0' != myURI[len]) {
485 size_t len = strlen((const char *) pDataFormat->mMIME.mimeType); local
486 SLchar *myMIME = (SLchar *) malloc(len + 1);
490 memcpy(myMIME, pDataFormat->mMIME.mimeType, len + 1);
492 if ('\0' != myMIME[len]) {
/frameworks/base/media/java/android/drm/mobile1/
H A DDrmRightsManager.java94 public synchronized DrmRights installRights(InputStream rightsData, int len, String mimeTypeStr) throws DrmException, IOException { argument
106 if (len <= 0)
112 int res = nativeInstallDrmRights(rightsData, len, mimeType, rights);
192 * @param len the length of the data.
201 private native int nativeInstallDrmRights(InputStream data, int len, int mimeType, DrmRights rights); argument

Completed in 279 milliseconds

123456789