Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/frameworks/rs/driver/
DrsdIntrinsicBlend.cpp123 uint32_t len = (x2 - x1) >> 3; in ColorMatrix_uchar4() local
124 rsdIntrinsicBlendSrcOver_K(out, in, len); in ColorMatrix_uchar4()
125 x1 += len << 3; in ColorMatrix_uchar4()
126 out += len << 3; in ColorMatrix_uchar4()
127 in += len << 3; in ColorMatrix_uchar4()
140 uint32_t len = (x2 - x1) >> 3; in ColorMatrix_uchar4() local
141 rsdIntrinsicBlendDstOver_K(out, in, len); in ColorMatrix_uchar4()
142 x1 += len << 3; in ColorMatrix_uchar4()
143 out += len << 3; in ColorMatrix_uchar4()
144 in += len << 3; in ColorMatrix_uchar4()
[all …]
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdIntrinsicBlend.cpp126 uint32_t len = (x2 - x1) >> 3; in ColorMatrix_uchar4() local
127 rsdIntrinsicBlendSrcOver_K(out, in, len); in ColorMatrix_uchar4()
128 x1 += len << 3; in ColorMatrix_uchar4()
129 out += len << 3; in ColorMatrix_uchar4()
130 in += len << 3; in ColorMatrix_uchar4()
143 uint32_t len = (x2 - x1) >> 3; in ColorMatrix_uchar4() local
144 rsdIntrinsicBlendDstOver_K(out, in, len); in ColorMatrix_uchar4()
145 x1 += len << 3; in ColorMatrix_uchar4()
146 out += len << 3; in ColorMatrix_uchar4()
147 in += len << 3; in ColorMatrix_uchar4()
[all …]
/frameworks/native/libs/utils/
DString8.cpp79 static char* allocFromUTF8(const char* in, size_t len) in allocFromUTF8() argument
81 if (len > 0) { in allocFromUTF8()
82 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8()
86 memcpy(str, in, len); in allocFromUTF8()
87 str[len] = 0; in allocFromUTF8()
96 static char* allocFromUTF16(const char16_t* in, size_t len) in allocFromUTF16() argument
98 if (len == 0) return getEmptyString(); in allocFromUTF16()
100 const ssize_t bytes = utf16_to_utf8_length(in, len); in allocFromUTF16()
112 utf16_to_utf8(in, len, str); in allocFromUTF16()
116 static char* allocFromUTF32(const char32_t* in, size_t len) in allocFromUTF32() argument
[all …]
DString16.cpp105 String16::String16(const String16& o, size_t len, size_t begin) in String16() argument
108 setTo(o, len, begin); in String16()
113 size_t len = strlen16(o); in String16() local
114 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
126 String16::String16(const char16_t* o, size_t len) in String16() argument
128 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
132 memcpy(str, o, len*sizeof(char16_t)); in String16()
133 str[len] = 0; in String16()
151 String16::String16(const char* o, size_t len) in String16() argument
152 : mString(allocFromUTF8(o, len)) in String16()
[all …]
/frameworks/base/media/java/android/drm/mobile1/
DDrmRawContent.java131 …public DrmRawContent(InputStream inRawdata, int len, String mimeTypeStr) throws DrmException, IOEx… in DrmRawContent() argument
136 inDataLen = len; in DrmRawContent()
145 if (len <= 0) in DrmRawContent()
284 int len = nativeGetContentLength(); in available() local
286 if (JNI_DRM_FAILURE == len) in available()
290 if (JNI_DRM_UNKNOWN_DATA_LEN == len) in available()
293 int availableLen = len - offset; in available()
324 public int read(byte[] b, int off, int len) throws IOException { in read() argument
327 if (off < 0 || len < 0 || off + len > b.length) in read()
332 if (0 == len) in read()
[all …]
/frameworks/base/core/jni/
Dandroid_util_EventLog.cpp74 jint len = strlen(str); in android_util_EventLog_writeEvent_String() local
75 const int max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline in android_util_EventLog_writeEvent_String()
76 if (len > max) len = max; in android_util_EventLog_writeEvent_String()
79 memcpy(&buf[1], &len, sizeof(len)); in android_util_EventLog_writeEvent_String()
80 memcpy(&buf[1 + sizeof(len)], str, len); in android_util_EventLog_writeEvent_String()
81 buf[1 + sizeof(len) + len] = '\n'; in android_util_EventLog_writeEvent_String()
84 return android_bWriteLog(tag, buf, 2 + sizeof(len) + len); in android_util_EventLog_writeEvent_String()
107 jint len = strlen(str); in android_util_EventLog_writeEvent_Array() local
108 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_util_EventLog_writeEvent_Array()
110 memcpy(&buf[pos], &len, sizeof(len)); in android_util_EventLog_writeEvent_Array()
[all …]
Dandroid_os_SystemProperties.cpp33 int len; in SystemProperties_getSS() local
45 len = property_get(key, buf, ""); in SystemProperties_getSS()
46 if ((len <= 0) && (defJ != NULL)) { in SystemProperties_getSS()
48 } else if (len >= 0) { in SystemProperties_getSS()
69 int len; in SystemProperties_get_int() local
82 len = property_get(key, buf, ""); in SystemProperties_get_int()
83 if (len > 0) { in SystemProperties_get_int()
99 int len; in SystemProperties_get_long() local
112 len = property_get(key, buf, ""); in SystemProperties_get_long()
113 if (len > 0) { in SystemProperties_get_long()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); in process() argument
95 public abstract int maxOutputSize(int len); in maxOutputSize() argument
155 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument
158 Decoder decoder = new Decoder(flags, new byte[len*3/4]); in decode()
160 if (!decoder.process(input, offset, len, true)) { in decode()
253 public int maxOutputSize(int len) { in maxOutputSize() argument
254 return len * 3/4 + 10; in maxOutputSize()
263 public boolean process(byte[] input, int offset, int len, boolean finish) { in process() argument
267 len += offset; in process()
280 while (p < len) { in process()
[all …]
DBase64OutputStream.java98 public void write(byte[] b, int off, int len) throws IOException { in write() argument
99 if (len <= 0) return; in write()
101 internalWrite(b, off, len, false); in write()
136 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { in internalWrite() argument
137 coder.output = embiggen(coder.output, coder.maxOutputSize(len)); in internalWrite()
138 if (!coder.process(b, off, len, finish)) { in internalWrite()
148 private byte[] embiggen(byte[] b, int len) { in embiggen() argument
149 if (b == null || b.length < len) { in embiggen()
150 return new byte[len]; in embiggen()
/frameworks/base/cmds/servicemanager/
Dservice_manager.c97 unsigned len; member
103 struct svcinfo *find_svc(uint16_t *s16, unsigned len) in find_svc() argument
108 if ((len == si->len) && in find_svc()
109 !memcmp(s16, si->name, len * sizeof(uint16_t))) { in find_svc()
132 void *do_find_service(struct binder_state *bs, uint16_t *s, unsigned len, unsigned uid) in do_find_service() argument
135 si = find_svc(s, len); in do_find_service()
154 uint16_t *s, unsigned len, in do_add_service() argument
161 if (!ptr || (len == 0) || (len > 127)) in do_add_service()
170 si = find_svc(s, len); in do_add_service()
179 si = malloc(sizeof(*si) + (len + 1) * sizeof(uint16_t)); in do_add_service()
[all …]
/frameworks/base/core/java/android/text/
DMeasuredText.java96 int len = end - start; in setPara() local
97 mLen = len; in setPara()
100 if (mWidths == null || mWidths.length < len) { in setPara()
101 mWidths = new float[ArrayUtils.idealFloatArraySize(len)]; in setPara()
103 if (mChars == null || mChars.length < len) { in setPara()
104 mChars = new char[ArrayUtils.idealCharArraySize(len)]; in setPara()
118 if (endInPara > len) endInPara = len; in setPara()
128 TextUtils.doesNotNeedBidi(mChars, 0, len)) { in setPara()
132 if (mLevels == null || mLevels.length < len) { in setPara()
133 mLevels = new byte[ArrayUtils.idealByteArraySize(len)]; in setPara()
[all …]
DHtml.java160 int len = text.length(); in withinHtml() local
164 next = text.nextSpanTransition(i, len, ParagraphStyle.class); in withinHtml()
215 final int len = end - start; in getOpenParaTagWithDirection() local
216 final byte[] levels = new byte[ArrayUtils.idealByteArraySize(len)]; in getOpenParaTagWithDirection()
217 final char[] buffer = TextUtils.obtain(len); in getOpenParaTagWithDirection()
220 int paraDir = AndroidBidi.bidi(Layout.DIR_REQUEST_DEFAULT_LTR, buffer, levels, len, in getOpenParaTagWithDirection()
569 int len = text.length(); in handleP() local
571 if (len >= 1 && text.charAt(len - 1) == '\n') { in handleP()
572 if (len >= 2 && text.charAt(len - 2) == '\n') { in handleP()
580 if (len != 0) { in handleP()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dvlc_encode.cpp151 uint code, len; in ce_TotalCoeffTrailingOnes() local
186 len = totCoeffTrailOne[vlcnum][TrailingOnes][TotalCoeff][0]; in ce_TotalCoeffTrailingOnes()
188 status = BitstreamWriteBits(stream, len, code); in ce_TotalCoeffTrailingOnes()
205 uint code, len; in ce_TotalCoeffTrailingOnesChromaDC() local
207 len = totCoeffTrailOneChrom[TrailingOnes][TotalCoeff][0]; in ce_TotalCoeffTrailingOnesChromaDC()
209 status = BitstreamWriteBits(stream, len, code); in ce_TotalCoeffTrailingOnesChromaDC()
254 int len, code; in ce_TotalZeros() local
257 len = lenTotalZeros[TotalCoeff-1][total_zeros]; in ce_TotalZeros()
260 status = BitstreamWriteBits(stream, len, code); in ce_TotalZeros()
282 int len, code; in ce_TotalZerosChromaDC() local
[all …]
/frameworks/rs/
DrsStream.cpp47 uint32_t len = loadU32(); in loadString() local
48 s->setTo((const char *)&mData[mPos], len); in loadString()
49 mPos += len; in loadString()
53 OStream::OStream(uint64_t len, bool use64) { in OStream() argument
54 mData = (uint8_t*)malloc(len); in OStream()
55 mLength = len; in OStream()
93 uint32_t len = s->size(); in addString() local
94 addU32(len); in addString()
95 if (mPos + len*sizeof(char) >= mLength) { in addString()
99 for (uint32_t i = 0; i < len; i ++) { in addString()
[all …]
/frameworks/support/renderscript/v8/rs_support/
DrsStream.cpp47 uint32_t len = loadU32(); in loadString() local
48 s->setTo((const char *)&mData[mPos], len); in loadString()
49 mPos += len; in loadString()
53 OStream::OStream(uint64_t len, bool use64) { in OStream() argument
54 mData = (uint8_t*)malloc(len); in OStream()
55 mLength = len; in OStream()
93 uint32_t len = s->size(); in addString() local
94 addU32(len); in addString()
95 if (mPos + len*sizeof(char) >= mLength) { in addString()
99 for (uint32_t i = 0; i < len; i ++) { in addString()
[all …]
/frameworks/base/core/java/android/os/
DFileUtils.java162 int len; in readTextFile() local
169 len = bis.read(data); in readTextFile()
170 } while (len == data.length); in readTextFile()
172 if (last == null && len <= 0) return ""; in readTextFile()
173 if (last == null) return new String(data, 0, len); in readTextFile()
174 if (len > 0) { in readTextFile()
176 System.arraycopy(last, len, last, 0, last.length - len); in readTextFile()
177 System.arraycopy(data, 0, last, last.length - len, len); in readTextFile()
183 int len; in readTextFile() local
186 len = bis.read(data); in readTextFile()
[all …]
/frameworks/base/libs/hwui/
DTextDropShadowCache.h35 ShadowText(): radius(0), len(0), textSize(0.0f), typeface(NULL) { in ShadowText()
38 ShadowText(SkPaint* paint, uint32_t radius, uint32_t len, const char* srcText, in ShadowText()
40 radius(radius), len(len), positions(positions) { in ShadowText()
63 uint32_t len; member
75 str.setTo((const char16_t*) text, len >> 1); in copyTextLocally()
79 positionsCopy.appendArray(positions, len); in copyTextLocally()
85 LTE_INT(len) { in LTE_INT()
92 int cmp = memcmp(text, rhs.text, len); in LTE_INT()
96 return memcmp(positions, rhs.positions, len << 2) < 0; in LTE_INT()
132 ShadowTexture* get(SkPaint* paint, const char* text, uint32_t len,
/frameworks/native/libs/binder/
DParcel.cpp350 status_t Parcel::setData(const uint8_t* buffer, size_t len) in setData() argument
352 status_t err = restartWrite(len); in setData()
354 memcpy(const_cast<uint8_t*>(data()), buffer, len); in setData()
355 mDataSize = len; in setData()
361 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) in appendFrom() argument
371 if (len == 0) { in appendFrom()
377 || (len > parcel->mDataSize) in appendFrom()
378 || (offset + len > parcel->mDataSize)) { in appendFrom()
385 if ((off >= offset) && (off < offset + len)) { in appendFrom()
394 if ((mDataSize+len) > mDataCapacity) { in appendFrom()
[all …]
/frameworks/wilhelm/tools/mphtogen/
Dmphtogen.c31 unsigned len = 0; in convert() local
33 if (len > 0) { in convert()
35 ++len; in convert()
37 if (len > 78) { in convert()
39 len = 0; in convert()
42 len += 3; in convert()
44 if (len > 0) { in convert()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dstream.c40 int len; in voAWB_UpdateFrameBuffer() local
41 len = MIN(Frame_Maxsize - stream->frame_storelen, stream->set_len); in voAWB_UpdateFrameBuffer()
42 …OP->Copy(VO_INDEX_ENC_AMRWB, stream->frame_ptr_bk + stream->frame_storelen , stream->set_ptr, len); in voAWB_UpdateFrameBuffer()
43 stream->set_len -= len; in voAWB_UpdateFrameBuffer()
44 stream->set_ptr += len; in voAWB_UpdateFrameBuffer()
45 stream->framebuffer_len = stream->frame_storelen + len; in voAWB_UpdateFrameBuffer()
47 stream->used_len += len; in voAWB_UpdateFrameBuffer()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DATResponseParser.java98 int len = line.length(); in nextTok() local
104 if (next >= len) { in nextTok()
117 if (next >= len) { in nextTok()
122 while (c != '"' && next < len) { in nextTok()
129 if (next < len && line.charAt(next++) != ',') { in nextTok()
139 if (next == len) { in nextTok()
155 int len; in skipWhiteSpace() local
156 len = line.length(); in skipWhiteSpace()
157 while (next < len && Character.isWhitespace(c)) { in skipWhiteSpace()
/frameworks/compile/libbcc/tests/
Dtest.py117 if 0 <= i < len(s):
123 commonLen = min(len(a), len(b))
138 totalLen = len(a1) + len(a2) + len(b1) + len(b2)
143 newTotalLen = len(a1) + len(a2) + len(b1) + len(b2)
147 print "Failed at %d %d %d %d" % (len(a1), len(a2), len(b1), len(b2))
157 while len(a) > 0 and len(b) > 0 and a[0] == b[0]:
/frameworks/base/obex/javax/obex/
DApplicationParameter.java116 public void addAPPHeader(byte tag, byte len, byte[] value) { in addAPPHeader() argument
117 if ((mLength + len + 2) > mMaxLength) { in addAPPHeader()
118 byte[] array_tmp = new byte[mLength + 4 * len]; in addAPPHeader()
121 mMaxLength = mLength + 4 * len; in addAPPHeader()
124 mArray[mLength++] = len; in addAPPHeader()
125 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader()
126 mLength += len; in addAPPHeader()
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py36 if (len(self.words) == 0) and (len(self.letters) == 0):
52 if len(self.words) != 0:
68 if len(self.words) > 0 and len(self.letters) > 0:
71 if len(self.letters) == 1:
73 elif len(self.letters) > 0:
81 if len(self.words) != 0:
91 length = len(line)
140 if len(domain) > 0:
/frameworks/base/services/java/com/android/server/pm/
DInstaller.java87 private boolean readBytes(byte buffer[], int len) { in readBytes() argument
89 if (len < 0) in readBytes()
91 while (off != len) { in readBytes()
93 count = mIn.read(buffer, off, len - off); in readBytes()
105 Slog.i(TAG, "read " + len + " bytes"); in readBytes()
107 if (off == len) in readBytes()
114 int len; in readReply() local
118 len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8); in readReply()
119 if ((len < 1) || (len > 1024)) { in readReply()
120 Slog.e(TAG, "invalid reply length (" + len + ")"); in readReply()
[all …]

12345678910>>...19