Searched refs:len (Results 76 - 100 of 522) sorted by relevance

1234567891011>>

/frameworks/native/libs/binder/
H A DParcel.cpp476 status_t Parcel::setData(const uint8_t* buffer, size_t len) argument
478 if (len > INT32_MAX) {
484 status_t err = restartWrite(len);
486 memcpy(const_cast<uint8_t*>(data()), buffer, len);
487 mDataSize = len;
493 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) argument
503 if (len == 0) {
507 if (len > INT32_MAX) {
515 || (len > parcel->mDataSize)
516 || (offset + len > parce
677 finishWrite(size_t len) argument
696 writeUnpadded(const void* data, size_t len) argument
721 write(const void* data, size_t len) argument
737 writeInplace(size_t len) argument
961 writeInt32Array(size_t len, const int32_t *val) argument
977 writeByteArray(size_t len, const uint8_t *val) argument
1081 writeString16(const char16_t* str, size_t len) argument
1202 writeBlob(size_t len, bool mutableCopy, WritableBlob* outBlob) argument
1271 const size_t len = val.getFlattenedSize(); local
1833 const size_t len = eos - str; local
1855 size_t len; local
1887 size_t len; local
2022 readBlob(size_t len, ReadableBlob* outBlob) const argument
2053 const size_t len = this->readInt32(); local
2310 growData(size_t len) argument
[all...]
/frameworks/base/core/java/android/text/util/
H A DRfc822Token.java118 int len = name.length();
120 for (int i = 0; i < len; i++) {
142 int len = name.length();
143 for (int i = 0; i < len; i++) {
162 int len = comment.length();
165 for (int i = 0; i < len; i++) {
/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp133 static void XMLCALL characterDataHandler(void* userData, const char* s, int len) { argument
137 if (!s || len <= 0) {
147 text->text += util::utf8ToUtf16(StringPiece(s, len));
154 text->text = util::utf8ToUtf16(StringPiece(s, len));
209 size_t len; local
210 const char16_t* str16 = parser->getAttributeNamespace(i, &len);
212 attr.namespaceUri.assign(str16, len);
215 str16 = parser->getAttributeName(i, &len);
217 attr.name.assign(str16, len);
220 str16 = parser->getAttributeStringValue(i, &len);
250 size_t len; local
266 size_t len; local
285 size_t len; local
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DEncodedStringValue.java192 int len = mData.length;
193 byte[] dstBytes = new byte[len];
194 System.arraycopy(mData, 0, dstBytes, 0, len);
240 int len = list.size();
241 if (len > 0) {
242 return list.toArray(new EncodedStringValue[len]);
/frameworks/base/cmds/svc/src/com/android/commands/svc/
H A DSvc.java80 int len = c.name().length();
81 if (maxlen < len) {
82 maxlen = len;
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp104 const off64_t len = asset->read(data->writable_data(), size); local
105 if (len != size) {
106 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len);
/frameworks/base/libs/hwui/
H A DSpotShadow.h56 static bool testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len);
57 static void makeClockwise(Vector2* polygon, int len);
58 static void reverse(Vector2* polygon, int len);
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp52 uint64_t len = get_block_device_size(fd); local
55 range[1] = len;
64 range[1] = len;
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCellNetworkScanResult.java57 int len = in.readInt();
58 if (len > 0) {
60 for (int i = 0; i < len; ++i) {
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DDecoder.java66 short len = mBuf.getShort();
67 byte[] b = new byte[len];
68 mBuf.get(b, 0, len);
/frameworks/base/tools/aapt2/unflatten/
H A DResChunkPullParser.h56 * from the memory pointed to by data, of len bytes.
58 ResChunkPullParser(const void* data, size_t len);
103 inline ResChunkPullParser::ResChunkPullParser(const void* data, size_t len) : argument
106 mLen(len),
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasRequestGetMessage.java66 int len;
67 while ((len = stream.read(buf)) != -1) {
68 baos.write(buf, 0, len);
/frameworks/av/include/media/
H A DCharacterEncodingDetector.h44 const char *input, size_t len,
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java402 private static int skipQuotedText(CharSequence s, int i, int len) { argument
403 if (i + 1 < len && s.charAt(i + 1) == QUOTE) {
411 while (i < len) {
417 if (i + 1 < len && s.charAt(i + 1) == QUOTE) {
444 int len = inFormat.length();
446 for (int i = 0; i < len; i += count) {
451 count = appendQuotedText(s, i, len);
452 len = s.length();
456 while ((i + count < len) && (s.charAt(i + count) == c)) {
522 len
594 appendQuotedText(SpannableStringBuilder s, int i, int len) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java94 public void write(String s, int off, int len) { argument
95 final char[] buf = new char[len];
96 s.getChars(off, len - off, buf, 0);
97 write(buf, 0, len);
/frameworks/base/tools/aapt/
H A DAaptXml.cpp43 size_t len; local
44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len);
45 return str ? String8(str, len) : String8();
105 size_t len; local
106 const char16_t* str = tree.getAttributeStringValue(idx, &len);
107 return str ? String8(str, len) : String8();
117 size_t len; local
119 const char16_t* str = resTable.valueToString(value2, 0, NULL, &len);
120 return str ? String8(str, len) : String8();
/frameworks/native/cmds/servicemanager/
H A Dbinder.c25 void hexdump(void *_data, size_t len) argument
30 for (count = 0; count < len; count++) {
151 int binder_write(struct binder_state *bs, void *data, size_t len) argument
156 bwr.write_size = len;
541 size_t len; local
549 len = 0;
550 while (str[len]) len++;
552 if (len >= (MAX_BIO_SIZE / sizeof(uint16_t))) {
558 bio_put_uint32(bio, (uint32_t) len);
568 size_t len; local
618 size_t len; local
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java241 int len) {
242 int tempLen = 2 * len;
243 if (tempLen < len) {
244 // Integer overflow; len is unreasonably large
249 getChars(one, toffset, toffset + len, temp, 0);
250 getChars(two, ooffset, ooffset + len, temp, len);
253 for (int i = 0; i < len; i++) {
254 if (temp[i] != temp[i + len]) {
469 int len
239 regionMatches(CharSequence one, int toffset, CharSequence two, int ooffset, int len) argument
1319 doesNotNeedBidi(char[] text, int start, int len) argument
1328 obtain(int len) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp184 void *buffer, size_t len)
198 iv.iov_len = len;
241 void *buf, size_t len)
291 while (len > 0) {
296 iv.iov_len = len;
311 len -= ret;
354 jbyteArray buffer, jint off, jint len, jobject fileDescriptor)
365 if (off < 0 || len < 0 || (off + len) > env->GetArrayLength(buffer)) {
370 if (len
183 socket_read_all(JNIEnv *env, jobject thisJ, int fd, void *buffer, size_t len) argument
240 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
353 socket_readba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
420 socket_writeba(JNIEnv *env, jobject object, jbyteArray buffer, jint off, jint len, jobject fileDescriptor) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIntRangeManager.java113 int len = mClients.size();
115 for (int i=0; i < len; i++) {
124 if (insert < len) {
136 if (insert != -1 && insert < len) {
194 int len = mRanges.size();
197 if (len == 0) {
206 for (int startIndex = 0; startIndex < len; startIndex++) {
220 if ((startIndex + 1) < len) {
275 for (int endIndex = startIndex+1; endIndex < len; endIndex++) {
335 // coalesce range with following ranges up to len
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp170 size_t len) const {
172 for (size_t i = 0; i < len; i++) {
190 size_t len = strlen(str); // again, unsure about String8 handling
194 float vertices[len * quadCoords];
195 float texes[len * quadCoords];
199 for (size_t i = 0; i < len; i++) {
250 len * quadCoords / 2);
322 size_t len = strlen(str);
323 if (len == 0) {
328 float stringWidth = computeScaledStringWidth(str, len);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccUtils.java225 int len = 0;
228 len = data[offset + 1] & 0xFF;
229 if (len > length - 3)
230 len = length - 3;
236 len = data[offset + 1] & 0xFF;
237 if (len > length - 4)
238 len = length - 4;
249 while (len > 0) {
255 len--;
261 while (count < len
[all...]
/frameworks/rs/
H A DrsFileA3D.cpp159 size_t len; local
162 len = fread(magicString, 1, 12, f);
163 if ((len != 12) ||
170 len = fread(&headerSize, 1, sizeof(headerSize), f);
171 if (len != sizeof(headerSize) || headerSize == 0) {
180 len = fread(headerData, 1, headerSize, f);
181 if (len != headerSize) {
192 len = fread(&mDataSize, 1, sizeof(mDataSize), f);
193 if (len != sizeof(mDataSize) || mDataSize == 0) {
205 len
[all...]
/frameworks/base/core/java/com/google/android/util/
H A DSmileyParser.java65 int len = tokens.size();
66 for (int i = 0; i < len; i++) {
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProgressReporterTest.java34 private void assertRange(int start, int len) { argument
37 assertEquals("len", len, range[1]);

Completed in 528 milliseconds

1234567891011>>