/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicBlend.cpp | 145 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/ |
D | LineBreakBufferedWriter.java | 118 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/ |
D | Base64.java | 88 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 …]
|
D | Base64OutputStream.java | 98 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/native/cmds/servicemanager/ |
D | service_manager.c | 142 size_t len; member 148 struct svcinfo *find_svc(const uint16_t *s16, size_t len) in find_svc() argument 153 if ((len == si->len) && in find_svc() 154 !memcmp(s16, si->name, len * sizeof(uint16_t))) { in find_svc() 165 ALOGI("service '%s' died\n", str8(si->name, si->len)); in svcinfo_death() 178 uint32_t do_find_service(const uint16_t *s, size_t len, uid_t uid, pid_t spid) in do_find_service() argument 180 struct svcinfo *si = find_svc(s, len); in do_find_service() 195 if (!svc_can_find(s, len, spid, uid)) { in do_find_service() 203 const uint16_t *s, size_t len, in do_add_service() argument 212 if (!handle || (len == 0) || (len > 127)) in do_add_service() [all …]
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener_test.cpp | 96 ASSERT_EQ(nullptr, tree.getElementNamespace(&len)); in TEST_F() 97 const char16_t* tag_name = tree.getElementName(&len); in TEST_F() 98 EXPECT_EQ(StringPiece16(u"View"), StringPiece16(tag_name, len)); in TEST_F() 101 ASSERT_EQ(nullptr, tree.getAttributeNamespace(0, &len)); in TEST_F() 102 const char16_t* attr_name = tree.getAttributeName(0, &len); in TEST_F() 103 EXPECT_EQ(StringPiece16(u"attr"), StringPiece16(attr_name, len)); in TEST_F() 109 ASSERT_EQ(nullptr, tree.getElementNamespace(&len)); in TEST_F() 110 tag_name = tree.getElementName(&len); in TEST_F() 111 EXPECT_EQ(StringPiece16(u"Layout"), StringPiece16(tag_name, len)); in TEST_F() 114 const char16_t* attr_namespace = tree.getAttributeNamespace(0, &len); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AStringUtils.cpp | 23 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/ |
D | rsCppUtils.cpp | 35 const char * rsuCopyString(const char *name, size_t len) { in rsuCopyString() argument 36 char *n = new char[len+1]; in rsuCopyString() 37 memcpy(n, name, len); in rsuCopyString() 38 n[len] = 0; in rsuCopyString() 104 int len; in property_get() local 105 len = __system_property_get(key, value); in property_get() 106 if (len > 0) { in property_get() 107 return len; in property_get() 111 len = strlen(default_value); in property_get() 112 memcpy(value, default_value, len + 1); in property_get() [all …]
|
D | rsStream.cpp | 47 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/java/android/text/ |
D | MeasuredText.java | 106 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 …]
|
/frameworks/base/core/jni/ |
D | android_app_admin_SecurityLog.cpp | 60 uint32_t len = strlen(str); in android_app_admin_SecurityLog_writeEvent_String() local 61 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline in android_app_admin_SecurityLog_writeEvent_String() 62 if (len > max) len = max; in android_app_admin_SecurityLog_writeEvent_String() 65 memcpy(&buf[1], &len, sizeof(len)); in android_app_admin_SecurityLog_writeEvent_String() 66 memcpy(&buf[1 + sizeof(len)], str, len); in android_app_admin_SecurityLog_writeEvent_String() 67 buf[1 + sizeof(len) + len] = '\n'; in android_app_admin_SecurityLog_writeEvent_String() 70 return __android_log_security_bwrite(tag, buf, 2 + sizeof(len) + len); in android_app_admin_SecurityLog_writeEvent_String() 89 jint len = strlen(str); in android_app_admin_SecurityLog_writeEvent_Array() local 90 if (pos + 1 + sizeof(len) + len > max) len = max - pos - 1 - sizeof(len); in android_app_admin_SecurityLog_writeEvent_Array() 92 memcpy(&buf[pos], &len, sizeof(len)); in android_app_admin_SecurityLog_writeEvent_Array() [all …]
|
D | android_os_SystemProperties.cpp | 33 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/compile/libbcc/lib/ |
D | Properties.h | 29 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/minikin/libs/minikin/ |
D | LayoutUtils.cpp | 55 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument 57 if (offset > len) offset = len; in getPrevWordBreakForCache() 73 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument 74 if (offset >= len) return len; in getNextWordBreakForCache() 78 for (size_t i = offset + 1; i < len; i++) { in getNextWordBreakForCache() 86 return len; in getNextWordBreakForCache()
|
D | Hyphenator.cpp | 77 static uint32_t len(uint32_t entry) { return entry >> 26; } in len() function 119 void Hyphenator::hyphenate(vector<HyphenationType>* result, const uint16_t* word, size_t len, in hyphenate() argument 122 result->resize(len); in hyphenate() 123 const size_t paddedLen = len + 2; // start and stop code each count for 1 in hyphenate() 125 len >= minPrefix + minSuffix && paddedLen <= MAX_HYPHENATED_SIZE) { in hyphenate() 127 const HyphenationType hyphenValue = alphabetLookup(alpha_codes, word, len); in hyphenate() 138 hyphenateWithNoPatterns(result->data(), word, len, locale); in hyphenate() 258 static inline HyphenationType getHyphTypeForArabic(const uint16_t* word, size_t len, in getHyphTypeForArabic() argument 262 while (static_cast<size_t>(i) < len && (type = getJoiningType(word[i])) == U_JT_TRANSPARENT) { in getHyphTypeForArabic() 283 void Hyphenator::hyphenateWithNoPatterns(HyphenationType* result, const uint16_t* word, size_t len, in hyphenateWithNoPatterns() argument [all …]
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | DrawView.java | 41 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/ex/common/tools/ |
D | make-iana-tld-pattern.py | 33 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/ |
D | DrawView.java | 41 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/wilhelm/tools/mphtogen/ |
D | mphtogen.c | 31 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/minikin/tools/ |
D | mk_hyb_file.py | 68 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/av/media/libstagefright/codecs/amrwbenc/src/ |
D | stream.c | 40 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/ |
D | ATResponseParser.java | 98 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/core/java/com/android/internal/os/ |
D | KernelWakelockReader.java | 67 int len; in readKernelWakelockStats() local 86 len = is.read(buffer); in readKernelWakelockStats() 93 if (len > 0) { in readKernelWakelockStats() 94 if (len >= buffer.length) { in readKernelWakelockStats() 98 for (i=0; i<len; i++) { in readKernelWakelockStats() 100 len = i; in readKernelWakelockStats() 105 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats); in readKernelWakelockStats() 112 public KernelWakelockStats parseProcWakelocks(byte[] wlBuffer, int len, boolean wakeup_sources, in parseProcWakelocks() argument 122 for (i = 0; i < len && wlBuffer[i] != '\n' && wlBuffer[i] != '\0'; i++); in parseProcWakelocks() 127 while (endIndex < len) { in parseProcWakelocks() [all …]
|
/frameworks/base/core/java/com/android/internal/alsa/ |
D | LineTokenizer.java | 33 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/obex/javax/obex/ |
D | ApplicationParameter.java | 144 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()
|