Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlend.cpp149 uint32_t len = (x2 - x1) >> 3; in kernel() local
150 rsdIntrinsicBlendSrcOver_K(out, in, len); in kernel()
151 x1 += len << 3; in kernel()
152 out += len << 3; in kernel()
153 in += len << 3; in kernel()
168 uint32_t len = (x2 - x1) >> 3; in kernel() local
169 rsdIntrinsicBlendDstOver_K(out, in, len); in kernel()
170 x1 += len << 3; in kernel()
171 out += len << 3; in kernel()
172 in += len << 3; in kernel()
[all …]
/frameworks/native/cmds/servicemanager/
Dservice_manager.c134 size_t len; member
140 struct svcinfo *find_svc(const uint16_t *s16, size_t len) in find_svc() argument
145 if ((len == si->len) && in find_svc()
146 !memcmp(s16, si->name, len * sizeof(uint16_t))) { in find_svc()
157 ALOGI("service '%s' died\n", str8(si->name, si->len)); in svcinfo_death()
170 uint32_t do_find_service(struct binder_state *bs, const uint16_t *s, size_t len, uid_t uid, pid_t s… in do_find_service() argument
172 struct svcinfo *si = find_svc(s, len); in do_find_service()
187 if (!svc_can_find(s, len, spid)) { in do_find_service()
195 const uint16_t *s, size_t len, in do_add_service() argument
204 if (!handle || (len == 0) || (len > 127)) in do_add_service()
[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/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/
DrsCompatibilityLib.cpp23 int len; in property_get() local
25 len = __system_property_get(key, value); in property_get()
27 len = 0; in property_get()
29 if (len > 0) { in property_get()
30 return len; in property_get()
34 len = strlen(default_value); in property_get()
35 memcpy(value, default_value, len + 1); in property_get()
37 return len; in property_get()
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/base/core/jni/
Dandroid_util_EventLog.cpp93 uint32_t len = strlen(str); in android_util_EventLog_writeEvent_String() local
94 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline in android_util_EventLog_writeEvent_String()
95 if (len > max) len = max; in android_util_EventLog_writeEvent_String()
98 memcpy(&buf[1], &len, sizeof(len)); in android_util_EventLog_writeEvent_String()
99 memcpy(&buf[1 + sizeof(len)], str, len); in android_util_EventLog_writeEvent_String()
100 buf[1 + sizeof(len) + len] = '\n'; in android_util_EventLog_writeEvent_String()
103 return android_bWriteLog(tag, buf, 2 + sizeof(len) + len); in android_util_EventLog_writeEvent_String()
126 jint len = strlen(str); in android_util_EventLog_writeEvent_Array() local
127 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_util_EventLog_writeEvent_Array()
129 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/text/
DMeasuredText.java106 int len = end - start; in setPara() local
107 mLen = len; in setPara()
110 if (mWidths == null || mWidths.length < len) { in setPara()
111 mWidths = ArrayUtils.newUnpaddedFloatArray(len); in setPara()
113 if (mChars == null || mChars.length < len) { in setPara()
114 mChars = ArrayUtils.newUnpaddedCharArray(len); in setPara()
128 if (endInPara > len) endInPara = len; in setPara()
138 TextUtils.doesNotNeedBidi(mChars, 0, len)) { in setPara()
142 if (mLevels == null || mLevels.length < len) { in setPara()
143 mLevels = ArrayUtils.newUnpaddedByteArray(len); in setPara()
[all …]
DHtml.java163 int len = text.length(); in withinHtml() local
167 next = text.nextSpanTransition(i, len, ParagraphStyle.class); in withinHtml()
218 final int len = end - start; in getOpenParaTagWithDirection() local
219 final byte[] levels = ArrayUtils.newUnpaddedByteArray(len); in getOpenParaTagWithDirection()
220 final char[] buffer = TextUtils.obtain(len); in getOpenParaTagWithDirection()
223 int paraDir = AndroidBidi.bidi(Layout.DIR_REQUEST_DEFAULT_LTR, buffer, levels, len, in getOpenParaTagWithDirection()
583 int len = text.length(); in handleP() local
585 if (len >= 1 && text.charAt(len - 1) == '\n') { in handleP()
586 if (len >= 2 && text.charAt(len - 2) == '\n') { in handleP()
594 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/native/libs/binder/
DParcel.cpp441 status_t Parcel::setData(const uint8_t* buffer, size_t len) in setData() argument
443 if (len > INT32_MAX) { in setData()
449 status_t err = restartWrite(len); in setData()
451 memcpy(const_cast<uint8_t*>(data()), buffer, len); in setData()
452 mDataSize = len; in setData()
458 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) in appendFrom() argument
468 if (len == 0) { in appendFrom()
472 if (len > INT32_MAX) { in appendFrom()
480 || (len > parcel->mDataSize) in appendFrom()
481 || (offset + len > parcel->mDataSize)) { in appendFrom()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_am_BatteryStatsService.cpp112 int len; in nativeWaitWakeup() local
117 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq); in nativeWaitWakeup()
128 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort"); in nativeWaitWakeup()
133 if (len >= 0 && len < remainreasonlen) { in nativeWaitWakeup()
134 mergedreasonpos += len; in nativeWaitWakeup()
135 remainreasonlen -= len; in nativeWaitWakeup()
153 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos); in nativeWaitWakeup()
154 if (len >= 0 && len < remainreasonlen) { in nativeWaitWakeup()
155 mergedreasonpos += len; in nativeWaitWakeup()
156 remainreasonlen -= len; in nativeWaitWakeup()
Dcom_android_server_ConsumerIrService.cpp73 int len; in halGetCarrierFrequencies() local
75 len = dev->get_num_carrier_freqs(dev); in halGetCarrierFrequencies()
76 if (len <= 0) in halGetCarrierFrequencies()
79 ranges = new consumerir_freq_range_t[len]; in halGetCarrierFrequencies()
81 len = dev->get_carrier_freqs(dev, len, ranges); in halGetCarrierFrequencies()
82 if (len <= 0) { in halGetCarrierFrequencies()
88 ScopedIntArrayRW freqsOut(env, env->NewIntArray(len*2)); in halGetCarrierFrequencies()
94 for (i = 0; i < len; i++) { in halGetCarrierFrequencies()
/frameworks/base/core/java/com/android/internal/os/
DInstallerConnection.java157 private boolean readFully(byte[] buffer, int len) { in readFully() argument
159 Streams.readFully(mIn, buffer, 0, len); in readFully()
167 Slog.i(TAG, "read " + len + " bytes"); in readFully()
178 final int len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8); in readReply() local
179 if ((len < 1) || (len > buf.length)) { in readReply()
180 Slog.e(TAG, "invalid reply length (" + len + ")"); in readReply()
185 if (!readFully(buf, len)) { in readReply()
189 return len; in readReply()
194 final int len = cmd.length; in writeCommand() local
195 if ((len < 1) || (len > buf.length)) { in writeCommand()
[all …]
DKernelWakelockReader.java65 int len; in readKernelWakelockStats() local
84 len = is.read(buffer); in readKernelWakelockStats()
91 if (len > 0) { in readKernelWakelockStats()
92 if (len >= buffer.length) { in readKernelWakelockStats()
96 for (i=0; i<len; i++) { in readKernelWakelockStats()
98 len = i; in readKernelWakelockStats()
103 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats); in readKernelWakelockStats()
109 private KernelWakelockStats parseProcWakelocks(byte[] wlBuffer, int len, boolean wakeup_sources, in parseProcWakelocks() argument
120 for (i = 0; i < len && wlBuffer[i] != '\n' && wlBuffer[i] != '\0'; i++); in parseProcWakelocks()
125 while (endIndex < len) { in parseProcWakelocks()
[all …]
/frameworks/minikin/libs/minikin/
DHyphenator.cpp73 static uint32_t len(uint32_t entry) { return entry >> 26; } in len() function
113 void Hyphenator::hyphenate(vector<uint8_t>* result, const uint16_t* word, size_t len) { in hyphenate() argument
115 result->resize(len); in hyphenate()
116 const size_t paddedLen = len + 2; // start and stop code each count for 1 in hyphenate()
118 (int)len >= MIN_PREFIX + MIN_SUFFIX && paddedLen <= MAX_HYPHENATED_SIZE) { in hyphenate()
120 if (alphabetLookup(alpha_codes, word, len)) { in hyphenate()
127 hyphenateSoft(result->data(), word, len); in hyphenate()
132 void Hyphenator::hyphenateSoft(uint8_t* result, const uint16_t* word, size_t len) { in hyphenateSoft() argument
134 for (size_t i = 1; i < len; i++) { in hyphenateSoft()
139 bool Hyphenator::alphabetLookup(uint16_t* alpha_codes, const uint16_t* word, size_t len) { in alphabetLookup() argument
[all …]
/frameworks/base/tools/aapt2/
DManifestValidator.cpp41 size_t len = 0; in validate() local
42 const StringPiece16 namespaceUri(parser->getElementNamespace(&len), len); in validate()
47 const StringPiece16 name(parser->getElementName(&len), len); in validate()
102 size_t len = 0; in validateInlineAttribute() local
103 StringPiece16 element(parser->getElementName(&len), len); in validateInlineAttribute()
104 StringPiece16 attributeName(parser->getAttributeName(idx, &len), len); in validateInlineAttribute()
122 size_t len = 0; in validateAttribute() local
123 StringPiece16 element(parser->getElementName(&len), len); in validateAttribute()
124 StringPiece16 attributeName(parser->getAttributeName(idx, &len), len); in validateAttribute()
/frameworks/minikin/tools/
Dmk_hyb_file.py68 this = len(self.pred)
88 while ix >= len(self.pred):
109 if len(b) < len(a): a, b = b, a
110 res = b[:len(b) - len(a)]
111 for i in range(len(a)):
112 res.append(max(a[i], b[i + len(b) - len(a)]))
117 for ix in range(len(pattern)):
199 if len(succ):
229 while ix < len(result):
247 dedup_ix = [0] * len(self.bfs_order)
[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/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:

12345678910>>...21