Searched defs:len (Results 101 - 125 of 268) sorted by relevance

1234567891011

/frameworks/base/core/java/com/android/internal/os/
H A DInstallerConnection.java220 private boolean readFully(byte[] buffer, int len) { argument
222 Streams.readFully(mIn, buffer, 0, len);
230 Slog.i(TAG, "read " + len + " bytes");
241 final int len = (((int) buf[0]) & 0xff) | ((((int) buf[1]) & 0xff) << 8);
242 if ((len < 1) || (len > buf.length)) {
243 Slog.e(TAG, "invalid reply length (" + len + ")");
248 if (!readFully(buf, len)) {
252 return len;
257 final int len
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java149 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument
152 int end = start+len;
375 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument
381 escapeAndAppendString(buf, start, len);
383 mLineStart = buf[start+len-1] == '\n';
/frameworks/base/core/jni/android/graphics/
H A DCreateJavaOutputStreamAdaptor.cpp149 size_t len; local
152 while ((len = stream->read(data + streamLen,
154 streamLen += len;
/frameworks/base/core/jni/
H A Dandroid_app_admin_SecurityLog.cpp60 uint32_t len = strlen(str); local
61 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline
62 if (len > max) len = max;
65 memcpy(&buf[1], &len, sizeof(len));
66 memcpy(&buf[1 + sizeof(len)], str, len);
67 buf[1 + sizeof(len) + len]
89 jint len = strlen(str); local
171 jsize len = ret; local
[all...]
H A Dandroid_database_CursorWindow.cpp273 const char* str, size_t len) {
274 ssize_t size = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(str), len);
282 utf8_to_utf16_no_null_terminator(reinterpret_cast<const uint8_t*>(str), len, local
401 jsize len = env->GetArrayLength(valueObj); local
404 status_t status = window->putBlob(row, column, value, len);
412 LOG_WINDOW("%d,%d is BLOB with %u bytes", row, column, len);
272 fillCharArrayBufferUTF(JNIEnv* env, jobject bufferObj, const char* str, size_t len) argument
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...]
H A Dandroid_util_EventLog.cpp93 uint32_t len = strlen(str); local
94 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline
95 if (len > max) len = max;
98 memcpy(&buf[1], &len, sizeof(len));
99 memcpy(&buf[1 + sizeof(len)], str, len);
100 buf[1 + sizeof(len) + len]
126 jint len = strlen(str); local
223 jsize len = ret; local
[all...]
H A Dandroid_util_XmlBlock.cpp36 jint off, jint len)
44 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) {
51 osb->setTo(b+off, len, true);
34 android_content_XmlBlock_nativeCreate(JNIEnv* env, jobject clazz, jbyteArray bArray, jint off, jint len) argument
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreSignatureSpiBase.java254 protected final void engineUpdate(byte[] b, int off, int len) throws SignatureException { argument
265 if (len == 0) {
271 output = mMessageStreamer.update(b, off, len);
291 int len = input.remaining();
297 b = new byte[len];
303 engineUpdate(b, off, len);
380 protected final boolean engineVerify(byte[] sigBytes, int offset, int len) argument
382 return engineVerify(ArrayUtils.subarray(sigBytes, offset, len));
/frameworks/base/libs/androidfw/
H A DZipUtils.cpp286 int len; local
288 len = getc(fp);
289 len |= getc(fp) << 8;
290 while (len-- && getc(fp) != EOF)
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSerializedFrame.java93 public final void write(byte b[], int off, int len) { argument
94 ensureFit(len);
95 System.arraycopy(b, off, mBuffer, mOffset, len);
96 mOffset += len;
140 public final int read(byte[] b, int off, int len) { argument
144 if ((mPos + len) > mSize) {
145 len = mSize - mPos;
147 System.arraycopy(mBuffer, mPos, b, off, len);
148 mPos += len;
149 return len;
[all...]
/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java116 public void addAPPHeader(byte tag, byte len, byte[] value) { argument
117 if ((mLength + len + 2) > mMaxLength) {
118 byte[] array_tmp = new byte[mLength + 4 * len];
121 mMaxLength = mLength + 4 * len;
124 mArray[mLength++] = len;
125 System.arraycopy(value, 0, mArray, mLength, len);
126 mLength += len;
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DUtils.java60 int len = (mac & ~EUI48Mask) != 0 ? EUI64Length : EUI48Length;
63 for (int n = (len - 1) * Byte.SIZE; n >= 0; n -= Byte.SIZE) {
81 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length();
82 if (!domain.get(n).regionMatches(0, expect, 0, len)) {
226 public static String bytesToBingoCard(ByteBuffer data, int len) { argument
228 dup.limit(dup.position() + len);
/frameworks/base/tools/aapt/
H A DStringPool.cpp64 size_t len; local
66 uniqueStrings.add(pool->string8At(i, &len));
68 uniqueStrings.add(pool->stringAt(i, &len));
/frameworks/base/tools/aapt2/
H A DStringPool.cpp206 const size_t len = mStrings.size(); local
207 for (size_t index = 0; index < len; index++) {
246 const size_t len = mStrings.size(); local
247 for (size_t index = 0; index < len; index++) {
260 const size_t len = mStrings.size(); local
261 for (size_t index = 0; index < len; index++) {
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp72 const Source& source, const void* data, size_t len) :
73 mContext(context), mTable(table), mSource(source), mData(data), mDataLen(len) {
175 size_t len = strnlen16((const char16_t*) packageHeader->name, arraysize(packageHeader->name)); local
177 packageName.resize(len);
178 for (size_t i = 0; i < len; i++) {
71 BinaryResourceParser(IAaptContext* context, ResourceTable* table, const Source& source, const void* data, size_t len) argument
/frameworks/base/tools/aapt2/util/
H A DUtil.h153 size_t len; local
154 const char16_t* str = pool.stringAt(idx, &len);
156 return StringPiece16(str, len);
162 size_t len; local
163 const char* str = pool.string8At(idx, &len);
165 return StringPiece(str, len);
/frameworks/base/tools/aapt2/xml/
H A DXmlPullParser.cpp241 void XMLCALL XmlPullParser::characterDataHandler(void* userData, const char* s, int len) { argument
248 util::utf8ToUtf16(StringPiece(s, len))
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java81 public BridgeTypedArray(Resources resources, BridgeContext context, int len, argument
87 mResourceData = new ResourceValue[len];
88 mNames = new String[len];
89 mIsFramework = new boolean[len];
917 int len = charSeq.length();
927 if (index == (len - 1))
952 static TypedArray obtain(Resources res, int len) { argument
953 return new BridgeTypedArray(res, null, len, true);
/frameworks/base/tools/split-select/
H A DMain.cpp157 size_t len; local
158 const char16_t* name = xml.getElementName(&len);
159 String16 name16(name, len);
/frameworks/compile/libbcc/bcinfo/Wrap/
H A Dbitcode_wrapperer.cpp234 uint16_t len; member in struct:IntFieldHelper
/frameworks/minikin/tests/
H A DFontCollectionItemizeTest.cpp63 size_t len; local
66 ParseUnicode(buf, BUF_SIZE, str, &len, NULL);
68 collection->itemize(buf, len, style, result);
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp342 size_t len = 0; local
345 len += strlen(src[i]) + 1;
348 char* result = new char[len+1];
/frameworks/native/cmds/servicemanager/
H A Dservice_manager.c145 size_t len; member in struct:svcinfo
151 struct svcinfo *find_svc(const uint16_t *s16, size_t len) argument
156 if ((len == si->len) &&
157 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
168 ALOGI("service '%s' died\n", str8(si->name, si->len));
181 uint32_t do_find_service(const uint16_t *s, size_t len, uid_t uid, pid_t spid) argument
183 struct svcinfo *si = find_svc(s, len);
198 if (!svc_can_find(s, len, spid, uid)) {
206 const uint16_t *s, size_t len,
205 do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, uid_t uid, int allow_isolated, pid_t spid) argument
262 size_t len; local
352 audit_callback(void *data, __unused security_class_t cls, char *buf, size_t len) argument
[all...]
/frameworks/native/libs/binder/
H A DBufferedTextOutput.cpp50 status_t append(const char* txt, size_t len) { argument
51 if ((len+bufferPos) > bufferSize) {
52 size_t newSize = ((len+bufferPos)*3)/2;
53 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow
59 memcpy(buffer+bufferPos, txt, len);
60 bufferPos += len;
158 status_t BufferedTextOutput::print(const char* txt, size_t len) argument
160 //printf("BufferedTextOutput: printing %d\n", len);
165 const char* const end = txt+len;

Completed in 501 milliseconds

1234567891011