/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 …]
|
D | FastDataInput.java | 101 public void readFully(byte[] b, int off, int len) throws IOException { in readFully() argument 104 if (mBufferCap >= len) { in readFully() 105 if (mBufferLim - mBufferPos < len) fill(len); in readFully() 106 System.arraycopy(mBuffer, mBufferPos, b, off, len); in readFully() 107 mBufferPos += len; in readFully() 113 len -= remain; in readFully() 115 while (len > 0) { in readFully() 116 int c = mIn.read(b, off, len); in readFully() 121 len -= c; in readFully() 131 final int len = readUnsignedShort(); in readUTF() local [all …]
|
D | FastDataOutput.java | 99 public void write(byte[] b, int off, int len) throws IOException { in write() argument 100 if (mBufferCap < len) { in write() 102 mOut.write(b, off, len); in write() 104 if (mBufferCap - mBufferPos < len) drain(); in write() 105 System.arraycopy(b, off, mBuffer, mBufferPos, len); in write() 106 mBufferPos += len; in write() 118 int len = CharsetUtils.toModifiedUtf8Bytes(s, mBufferPtr, mBufferPos + 2, mBufferCap); in writeUTF() local 119 if (Math.abs(len) > MAX_UNSIGNED_SHORT) { in writeUTF() 120 throw new IOException("Modified UTF-8 length too large: " + len); in writeUTF() 123 if (len >= 0) { in writeUTF() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 90 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 …]
|
D | Base64OutputStream.java | 101 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/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/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 95 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/rs/ |
D | rsCppUtils.cpp | 38 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 …]
|
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/rs/cpp/ |
D | rsCppUtils.cpp | 38 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/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/av/media/mtp/tests/MtpFuzzer/ |
D | MtpMockHandle.h | 37 int read(void *data, size_t len) { in read() argument 44 ALOGD("%s: sz %zu, pkt %zu+%zu/%zu\n", __func__, len, mPacketNumber, mPacketOffset, in read() 48 if (pkt.size() > len) { in read() 49 memcpy(data, pkt.data() + mPacketOffset, len); in read() 51 mPacketOffset += len; in read() 52 readAmt = len; in read() 65 int write(const void *data, size_t len) { in write() argument 66 ALOGD("MockHandle %s: len=%zu\n", __func__, len); in write() 68 return len; in write()
|
/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/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/base/libs/androidfw/ |
D | ZipUtils.cpp | 43 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const override { 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 override { 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 override { in ReadAtOffset() argument 90 if (mInputSize < len || offset > mInputSize - len) { in ReadAtOffset() 95 if (!pos.verify(len)) { in ReadAtOffset() 99 memcpy(buf, pos.unsafe_ptr(), len); in ReadAtOffset() 202 int len; in examineGzip() local [all …]
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 406 status_t Parcel::setData(const uint8_t* buffer, size_t len) in setData() argument 408 if (len > INT32_MAX) { in setData() 414 status_t err = restartWrite(len); in setData() 416 memcpy(const_cast<uint8_t*>(data()), buffer, len); in setData() 417 mDataSize = len; in setData() 423 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) in appendFrom() argument 437 if (len == 0) { in appendFrom() 441 if (len > INT32_MAX) { in appendFrom() 449 || (len > parcel->mDataSize) in appendFrom() 450 || (offset + len > parcel->mDataSize)) { in appendFrom() [all …]
|
/frameworks/ex/common/tools/ |
D | make-iana-tld-pattern.py | 36 self.lineLength = len(TAB) 40 self.lineLength += len(other) 48 self.lineLength = len(TAB) 62 if (len(self.words) == 0) and (len(self.letters) == 0): 78 if len(self.words) != 0: 94 if len(self.words) > 0 and len(self.letters) > 0: 97 if len(self.letters) == 1: 99 elif len(self.letters) > 0: 107 if len(self.words) != 0: 117 length = len(line) [all …]
|
/frameworks/av/media/codecs/amrwb/enc/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/libs/net/common/testutils/hostdevice/com/android/testutils/ |
D | MiscAsserts.kt | 31 fun <T> assertEmpty(ts: Array<T>) = ts.size.let { len -> in <lambda>() method 32 assertEquals(0, len, "Expected empty array, but length was $len") in <lambda>() 35 fun <T> assertEmpty(ts: Collection<T>) = ts.size.let { len -> in len() method 36 assertEquals(0, len, "Expected empty collection, but length was $len") in len() 39 fun <T> assertLength(expected: Int, got: Array<T>) = got.size.let { len -> in len() method 40 assertEquals(expected, len, "Expected array of length $expected, but was $len for $got") in len() 43 fun <T> assertLength(expected: Int, got: List<T>) = got.size.let { len -> in len() method 44 assertEquals(expected, len, "Expected list of length $expected, but was $len for $got") in len()
|
/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()
|
/frameworks/minikin/tools/ |
D | mk_hyb_file.py | 72 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 …]
|