Home
last modified time | relevance | path

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

12345678910>>...26

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlend.cpp145 uint32_t len = (x2 - x1) >> 3; in kernel() local
146 rsdIntrinsicBlendSrcOver_K(out, in, len); in kernel()
147 x1 += len << 3; in kernel()
148 out += len << 3; in kernel()
149 in += len << 3; in kernel()
164 uint32_t len = (x2 - x1) >> 3; in kernel() local
165 rsdIntrinsicBlendDstOver_K(out, in, len); in kernel()
166 x1 += len << 3; in kernel()
167 out += len << 3; in kernel()
168 in += len << 3; in kernel()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DLineBreakBufferedWriter.java118 public void write(char[] buf, int off, int len) { in write() argument
119 while (bufferIndex + len > bufferSize) { in write()
141 len -= nextNewLine + 1; in write()
154 len -= rest; in write()
159 if (len > 0) { in write()
161 appendToBuffer(buf, off, len); in write()
162 for (int i = len - 1; i >= 0; i--) { in write()
164 lastNewline = bufferIndex - len + i; in write()
172 public void write(String s, int off, int len) { in write() argument
173 while (bufferIndex + len > bufferSize) { in write()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java90 public abstract boolean process(byte[] input, int offset, int len, boolean finish); in process() argument
97 public abstract int maxOutputSize(int len); in maxOutputSize() argument
157 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument
160 Decoder decoder = new Decoder(flags, new byte[len*3/4]); in decode()
162 if (!decoder.process(input, offset, len, true)) { in decode()
255 public int maxOutputSize(int len) { in maxOutputSize() argument
256 return len * 3/4 + 10; in maxOutputSize()
265 public boolean process(byte[] input, int offset, int len, boolean finish) { in process() argument
269 len += offset; in process()
282 while (p < len) { in process()
[all …]
DBase64OutputStream.java101 public void write(byte[] b, int off, int len) throws IOException { in write() argument
102 if (len <= 0) return; in write()
104 internalWrite(b, off, len, false); in write()
141 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { in internalWrite() argument
142 coder.output = embiggen(coder.output, coder.maxOutputSize(len)); in internalWrite()
143 if (!coder.process(b, off, len, finish)) { in internalWrite()
153 private byte[] embiggen(byte[] b, int len) { in embiggen() argument
154 if (b == null || b.length < len) { in embiggen()
155 return new byte[len]; in embiggen()
/frameworks/base/packages/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp43 socklen_t len = sizeof(rs_only); in android_net_util_setupRaSocket() local
44 if (setsockopt(fd, IPPROTO_ICMPV6, ICMP6_FILTER, &rs_only, len) != 0) { in android_net_util_setupRaSocket()
56 len = sizeof(hops); in android_net_util_setupRaSocket()
57 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &hops, len) != 0) { in android_net_util_setupRaSocket()
65 len = sizeof(hops); in android_net_util_setupRaSocket()
66 if (setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &hops, len) != 0) { in android_net_util_setupRaSocket()
74 len = sizeof(off); in android_net_util_setupRaSocket()
75 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &off, len) != 0) { in android_net_util_setupRaSocket()
82 len = sizeof(ifIndex); in android_net_util_setupRaSocket()
83 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &ifIndex, len) != 0) { in android_net_util_setupRaSocket()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp95 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); in TEST_F()
96 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F()
99 EXPECT_THAT(tree.getAttributeNamespace(0, &len), IsNull()); in TEST_F()
100 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); in TEST_F()
106 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); in TEST_F()
107 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
110 EXPECT_THAT(tree.getAttributeNamespace(0, &len), StrEq(u"http://com.test")); in TEST_F()
111 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"hello")); in TEST_F()
116 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); in TEST_F()
117 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAStringUtils.cpp23 int AStringUtils::Compare(const char *a, const char *b, size_t len, bool ignoreCase) { in Compare() argument
25 return ignoreCase ? strncasecmp(a, b, len) : strncmp(a, b, len); in Compare()
50 size_t len = globIx - start; in MatchesGlob() local
55 if (ix + len > strLen) { in MatchesGlob()
58 const char *tail = str + strLen - len; in MatchesGlob()
59 return !Compare(tail, pattern, len, ignoreCase); in MatchesGlob()
62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) { in MatchesGlob()
65 if (ix + len > strLen) { in MatchesGlob()
68 ix += len; in MatchesGlob()
/frameworks/rs/cpp/
DrsCppUtils.cpp38 const char * rsuCopyString(const char *name, size_t len) { in rsuCopyString() argument
39 char *n = new char[len+1]; in rsuCopyString()
40 memcpy(n, name, len); in rsuCopyString()
41 n[len] = 0; in rsuCopyString()
107 int len; in property_get() local
108 len = __system_property_get(key, value); in property_get()
109 if (len > 0) { in property_get()
110 return len; in property_get()
114 len = strlen(default_value); in property_get()
115 memcpy(value, default_value, len + 1); in property_get()
[all …]
/frameworks/rs/
DrsCppUtils.cpp38 const char * rsuCopyString(const char *name, size_t len) { in rsuCopyString() argument
39 char *n = new char[len+1]; in rsuCopyString()
40 memcpy(n, name, len); in rsuCopyString()
41 n[len] = 0; in rsuCopyString()
107 int len; in property_get() local
108 len = __system_property_get(key, value); in property_get()
109 if (len > 0) { in property_get()
110 return len; in property_get()
114 len = strlen(default_value); in property_get()
115 memcpy(value, default_value, len + 1); in property_get()
[all …]
DrsStream.cpp47 uint32_t len = loadU32(); in loadString() local
48 const char *s = rsuCopyString((const char *)&mData[mPos], len); in loadString()
49 mPos += len; in loadString()
54 OStream::OStream(uint64_t len, bool use64) { in OStream() argument
55 mData = (uint8_t*)malloc(len); in OStream()
56 mLength = len; in OStream()
93 void OStream::addString(const char *s, size_t len) { in addString() argument
94 addU32(len); in addString()
95 if (mPos + len*sizeof(char) >= mLength) { in addString()
99 memcpy(stringData, s, len); in addString()
[all …]
/frameworks/compile/libbcc/lib/
DProperties.h29 int len; in property_get() local
30 len = __system_property_get(key, value); in property_get()
31 if (len > 0) { in property_get()
32 return len; in property_get()
36 len = strlen(default_value); in property_get()
37 memcpy(value, default_value, len + 1); in property_get()
39 return len; in property_get()
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py33 self.lineLength = len(TAB)
37 self.lineLength += len(other)
45 self.lineLength = len(TAB)
59 if (len(self.words) == 0) and (len(self.letters) == 0):
75 if len(self.words) != 0:
91 if len(self.words) > 0 and len(self.letters) > 0:
94 if len(self.letters) == 1:
96 elif len(self.letters) > 0:
104 if len(self.words) != 0:
114 length = len(line)
[all …]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java41 int len; field in DrawView
97 Region ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
106 len = 2; in downPoint()
119 if (len + size * 2 >= path.length) { in movePoint()
120 path = Arrays.copyOf(path, 2 * (len + size * 2)); in movePoint()
124 path[len] = imgMoveList[i]; in movePoint()
125 path[len + 1] = imgMoveList[i + 1]; in movePoint()
126 len += 2; in movePoint()
131 if (len + 2 >= path.length) { in upPoint()
132 path = Arrays.copyOf(path, 2 * (len + 2)); in upPoint()
[all …]
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java41 int len; field in DrawView
107 ret = new Region(Arrays.copyOf(path, len), img); in getRegion()
116 len = 2; in downPoint()
130 if (len + size * 2 >= path.length) { in movePoint()
131 path = Arrays.copyOf(path, 2 * (len + size * 2)); in movePoint()
135 path[len] = imgMoveList[i]; in movePoint()
136 path[len + 1] = imgMoveList[i + 1]; in movePoint()
137 len += 2; in movePoint()
142 if (len + 2 >= path.length) { in upPoint()
143 path = Arrays.copyOf(path, 2 * (len + 2)); in upPoint()
[all …]
/frameworks/base/libs/androidfw/
DZipUtils.cpp43 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
55 size_t read = fread(buf, 1, len, mFp); in ReadAtOffset()
56 if (read != len) { in ReadAtOffset()
74 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
75 return android::base::ReadFullyAtOffset(mFd, buf, len, offset); in ReadAtOffset()
89 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset() argument
90 if (mInputSize < len || offset > mInputSize - len) { in ReadAtOffset()
94 memcpy(buf, mInput + offset, len); in ReadAtOffset()
197 int len; in examineGzip() local
199 len = getc(fp); in examineGzip()
[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 = mLine.length(); in nextTok() local
104 if (mNext >= len) { in nextTok()
117 if (mNext >= len) { in nextTok()
122 while (c != '"' && mNext < len) { in nextTok()
129 if (mNext < len && mLine.charAt(mNext++) != ',') { in nextTok()
139 if (mNext == len) { in nextTok()
155 int len; in skipWhiteSpace() local
156 len = mLine.length(); in skipWhiteSpace()
157 while (mNext < len && Character.isWhitespace(c)) { in skipWhiteSpace()
/frameworks/minikin/tools/
Dmk_hyb_file.py72 this = len(self.pred)
92 while ix >= len(self.pred):
113 if len(b) < len(a): a, b = b, a
114 res = b[:len(b) - len(a)]
115 for i in range(len(a)):
116 res.append(max(a[i], b[i + len(b) - len(a)]))
121 for ix in range(len(pattern)):
203 if len(succ):
233 while ix < len(result):
251 dedup_ix = [0] * len(self.bfs_order)
[all …]
/frameworks/base/obex/javax/obex/
DApplicationParameter.java144 public void addAPPHeader(byte tag, byte len, byte[] value) { in addAPPHeader() argument
145 if ((mLength + len + 2) > mMaxLength) { in addAPPHeader()
146 byte[] array_tmp = new byte[mLength + 4 * len]; in addAPPHeader()
149 mMaxLength = mLength + 4 * len; in addAPPHeader()
152 mArray[mLength++] = len; in addAPPHeader()
153 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader()
154 mLength += len; in addAPPHeader()
/frameworks/base/core/java/com/android/internal/alsa/
DLineTokenizer.java33 int len = line.length(); in nextToken() local
35 for (; offset < len; offset++) { in nextToken()
42 return offset < len ? offset : kTokenNotFound; in nextToken()
46 int len = line.length(); in nextDelimiter() local
48 for (; offset < len; offset++) { in nextDelimiter()
55 return offset < len ? offset : kTokenNotFound; in nextDelimiter()
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java179 int len = sb.length(); in crunch() local
181 while (i < len) { in crunch()
185 if (i == 0 || i == len - 1 || in crunch()
191 len--; in crunch()
200 for (i = 0; i < len; i++) { in crunch()
242 int len = text.length(); in findTokenEnd() local
245 while (i < len) { in findTokenEnd()
253 while (i < len) { in findTokenEnd()
259 } else if (c == '\\' && i + 1 < len) { in findTokenEnd()
269 while (i < len && level > 0) { in findTokenEnd()
[all …]
/frameworks/native/libs/binder/
DParcel.cpp363 status_t Parcel::setData(const uint8_t* buffer, size_t len) in setData() argument
365 if (len > INT32_MAX) { in setData()
371 status_t err = restartWrite(len); in setData()
373 memcpy(const_cast<uint8_t*>(data()), buffer, len); in setData()
374 mDataSize = len; in setData()
380 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) in appendFrom() argument
389 if (len == 0) { in appendFrom()
393 if (len > INT32_MAX) { in appendFrom()
401 || (len > parcel->mDataSize) in appendFrom()
402 || (offset + len > parcel->mDataSize)) { in appendFrom()
[all …]
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DAoapInterface.java97 int len = conn.controlTransfer( in getProtocol() local
100 if (len != 2) { in getProtocol()
108 int len = conn.controlTransfer( in sendString() local
112 if (len != buffer.length) { in sendString()
120 int len = conn.controlTransfer( in sendAoapStart() local
123 if (len < 0) { in sendAoapStart()
124 throw new RuntimeException("control transfer for accessory start failed:" + len); in sendAoapStart()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dvlc_decode.cpp469 PV_BitstreamFlushBits(stream, PV_TMNMVtab0[code].len + 1); in PV_VlcDecMV()
477 PV_BitstreamFlushBits(stream, PV_TMNMVtab1[code].len + 1); in PV_VlcDecMV()
490 PV_BitstreamFlushBits(stream, PV_TMNMVtab2[code].len + 1); in PV_VlcDecMV()
523 PV_BitstreamFlushBits(stream, PV_MCBPCtabintra[code].len); in PV_VlcDecMCBPC_com_intra()
552 PV_BitstreamFlushBits(stream, PV_MCBPCtab[code].len); in PV_VlcDecMCBPC_com_inter()
574 PV_BitstreamFlushBits(stream, PV_MCBPCtab[code >> 4].len); in PV_VlcDecMCBPC_com_inter_H263()
579 PV_BitstreamFlushBits(stream, PV_MCBPCtab1[code - 8].len); in PV_VlcDecMCBPC_com_inter_H263()
609 PV_BitstreamFlushBits(stream, PV_CBPYtab[code].len); in PV_VlcDecCBPY()
871 PV_BitstreamFlushBits(stream, tab->len + 1); in VlcDecTCOEFIntra()
872 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFIntra()
[all …]

12345678910>>...26