/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/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/android/util/ |
D | Base64.java | 89 public abstract boolean process(byte[] input, int offset, int len, boolean finish); in process() argument 96 public abstract int maxOutputSize(int len); in maxOutputSize() argument 156 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument 159 Decoder decoder = new Decoder(flags, new byte[len*3/4]); in decode() 161 if (!decoder.process(input, offset, len, true)) { in decode() 254 public int maxOutputSize(int len) { in maxOutputSize() argument 255 return len * 3/4 + 10; in maxOutputSize() 264 public boolean process(byte[] input, int offset, int len, boolean finish) { in process() argument 268 len += offset; in process() 281 while (p < len) { in process() [all …]
|
D | Base64OutputStream.java | 100 public void write(byte[] b, int off, int len) throws IOException { in write() argument 101 if (len <= 0) return; in write() 103 internalWrite(b, off, len, false); in write() 140 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { in internalWrite() argument 141 coder.output = embiggen(coder.output, coder.maxOutputSize(len)); in internalWrite() 142 if (!coder.process(b, off, len, finish)) { in internalWrite() 152 private byte[] embiggen(byte[] b, int len) { in embiggen() argument 153 if (b == null || b.length < len) { in embiggen() 154 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/native/cmds/servicemanager/ |
D | service_manager.c | 146 size_t len; member 152 struct svcinfo *find_svc(const uint16_t *s16, size_t len) in find_svc() argument 157 if ((len == si->len) && in find_svc() 158 !memcmp(s16, si->name, len * sizeof(uint16_t))) { in find_svc() 169 ALOGI("service '%s' died\n", str8(si->name, si->len)); in svcinfo_death() 182 uint32_t do_find_service(const uint16_t *s, size_t len, uid_t uid, pid_t spid, const char* sid) in do_find_service() argument 184 struct svcinfo *si = find_svc(s, len); in do_find_service() 199 if (!svc_can_find(s, len, spid, sid, uid)) { in do_find_service() 206 int do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, in do_add_service() argument 213 if (!handle || (len == 0) || (len > 127)) in do_add_service() [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/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/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/opt/net/ike/src/java/com/android/ike/ikev2/utils/ |
D | BigIntegerUtils.java | 53 int len = byteArrayWithSignBit.length; in bigIntegerToUnsignedByteArray() local 62 len = len - 1; in bigIntegerToUnsignedByteArray() 63 System.arraycopy(byteArrayWithSignBit, 1, output, size - len, len); in bigIntegerToUnsignedByteArray() 65 System.arraycopy(byteArrayWithSignBit, 0, output, size - len, len); in bigIntegerToUnsignedByteArray()
|
/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/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/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/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/base/core/java/com/android/internal/os/ |
D | KernelWakelockReader.java | 69 int len = 0; in readKernelWakelockStats() local 91 while ((cnt = is.read(buffer, len, buffer.length - len)) > 0) { in readKernelWakelockStats() 92 len += cnt; in readKernelWakelockStats() 108 if (len > 0) { in readKernelWakelockStats() 109 if (len >= buffer.length) { in readKernelWakelockStats() 113 for (i=0; i<len; i++) { in readKernelWakelockStats() 115 len = i; in readKernelWakelockStats() 120 return parseProcWakelocks(buffer, len, wakeup_sources, staleStats); in readKernelWakelockStats() 127 public KernelWakelockStats parseProcWakelocks(byte[] wlBuffer, int len, boolean wakeup_sources, in parseProcWakelocks() argument 137 for (i = 0; i < len && wlBuffer[i] != '\n' && wlBuffer[i] != '\0'; i++); in parseProcWakelocks() [all …]
|
/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/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/base/libs/androidfw/ |
D | ZipUtils.cpp | 43 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_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, uint32_t offset) const { in ReadAtOffset() argument 75 return android::base::ReadFullyAtOffset(mFd, buf, len, static_cast<off_t>(offset)); in ReadAtOffset() 89 bool ReadAtOffset(uint8_t* buf, size_t len, uint32_t offset) const { in ReadAtOffset() argument 90 if (offset + len > mInputSize) { in ReadAtOffset() 94 memcpy(buf, mInput + offset, len); in ReadAtOffset() 197 int len; in examineGzip() local 199 len = getc(fp); in examineGzip() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/ |
D | conformance_test_runner.cc | 102 uint32_t len = request.size(); in RunTest() local 103 CheckedWrite(write_fd_, &len, sizeof(uint32_t)); in RunTest() 106 if (!TryRead(read_fd_, &len, sizeof(uint32_t))) { in RunTest() 130 response->resize(len); in RunTest() 131 CheckedRead(read_fd_, (void*)response->c_str(), len); in RunTest() 195 void CheckedWrite(int fd, const void *buf, size_t len) { in CheckedWrite() argument 196 if (write(fd, buf, len) != len) { in CheckedWrite() 203 bool TryRead(int fd, void *buf, size_t len) { in TryRead() argument 205 while (len > 0) { in TryRead() 206 ssize_t bytes_read = read(fd, (char*)buf + ofs, len); in TryRead() [all …]
|
/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 …]
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | AoapInterface.java | 97 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()
|