Searched defs:len (Results 251 - 275 of 309) sorted by relevance

<<111213

/frameworks/base/core/java/android/text/
H A DTextUtils.java250 int len) {
251 int tempLen = 2 * len;
252 if (tempLen < len) {
253 // Integer overflow; len is unreasonably large
258 getChars(one, toffset, toffset + len, temp, 0);
259 getChars(two, ooffset, ooffset + len, temp, len);
262 for (int i = 0; i < len; i++) {
263 if (temp[i] != temp[i + len]) {
490 int len
248 regionMatches(CharSequence one, int toffset, CharSequence two, int ooffset, int len) argument
1450 doesNotNeedBidi(char[] text, int start, int len) argument
1460 obtain(int len) argument
[all...]
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp294 int len = strlen(argv0); local
295 if (len < 15) {
298 pthread_setname_np(pthread_self(), argv0 + len - 15);
399 const int len = property_get(key, &temp[0], defaultValue); local
400 if (len < 0) {
403 return std::string(&temp[0], len);
H A Dandroid_os_Debug.cpp223 int len, nameLen; local
256 len = strlen(line);
257 if (len < 1) return;
258 line[--len] = 0;
697 int len = read(fd, buffer, sizeof(buffer)-1); local
700 if (len < 0) {
704 buffer[len] = 0;
794 int len = snprintf(compare, 128, "proc %d", getpid()); local
801 } while (strncmp(compare, line, len));
804 len
[all...]
H A Dandroid_util_AssetManager.cpp181 int len = __system_property_get(AssetManager::OVERLAY_THEME_DIR_PROPERTY, subdir); local
182 if (len > 0) {
461 jint off, jint len)
470 if (len == 0) {
475 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) {
481 ssize_t res = a->read(b+off, len);
459 android_content_AssetManager_readAsset(JNIEnv* env, jobject clazz, jlong assetHandle, jbyteArray bArray, jint off, jint len) argument
H A Dandroid_util_Binder.cpp1015 static int getprocname(pid_t pid, char *buf, size_t len) { argument
1025 if (!fgets(buf, len, f)) {
1035 jint len = strlen(str); local
1036 int space_needed = 1 + sizeof(len) + len;
1044 memcpy(*pos, &len, sizeof(len));
1045 *pos += sizeof(len);
1046 memcpy(*pos, str, len);
1047 *pos += len;
[all...]
H A Dandroid_util_Process.cpp374 size_t len = 0; local
375 ssize_t num_read = getline(&line, &len, file);
612 const int len = read(fd, buffer, sizeof(buffer)-1); local
615 if (len < 0) {
619 buffer[len] = 0;
722 int len = read(fd, buffer, BUFFER_SIZE-1); local
725 if (len < 0) {
727 len = 0;
729 buffer[len] = 0;
1036 const int len local
1168 const int len = read(fd, data, sizeof(data)-1); local
[all...]
H A Dandroid_hardware_camera2_DngCreator.cpp349 size_t len = BYTE_ARRAY_LENGTH; local
350 len = (count > len) ? len : count;
351 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset));
358 0, len);
364 count -= len;
365 offset += len;
1035 size_t len = strlen(captureTime) + 1; local
1036 if (len !
1824 size_t len = description.bytes() + 1; local
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp114 int len; local
119 len = strlen(str);
120 newStr = new char[len+1];
121 memcpy(newStr, str, len+1);
/frameworks/base/libs/hwui/
H A DSpotShadow.cpp285 const Vector2* poly, int len) {
289 for (int i = 0, j = len - 1; i < len; j = i++) {
308 * @param len the number of points of the polygon
310 void SpotShadow::reverse(Vector2* polygon, int len) { argument
311 int n = len / 2;
314 int k = len - 1 - i;
284 testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len) argument
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java219 int len = phoneNumber.length();
220 StringBuilder ret = new StringBuilder(len);
222 for (int i = 0; i < len; i++) {
258 int len = phoneNumber.length();
259 StringBuilder ret = new StringBuilder(len);
262 for (int i = 0; i < len; i++) {
289 int len = phoneNumber.length();
290 StringBuilder ret = new StringBuilder(len);
292 for (int i = 0; i < len; i++) {
330 int len
2792 matchIntlPrefix(String a, int len) argument
2831 matchIntlPrefixAndCC(String a, int len) argument
2880 matchTrunkPrefix(String a, int len) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp40 size_t len = 0; local
50 len++;
53 if (len < 1 || len > kMaxAssetFileName)
1280 size_t len = entry->getUncompressedLen(); local
1282 void* buf = file->editData(len);
1283 memcpy(buf, data, len);
1288 const unsigned char* end = p+len;
H A DCommand.cpp331 size_t len; local
348 const char16_t* ctag16 = tree.getElementName(&len);
434 size_t len; local
440 const char16_t* ctag16 = tree.getElementName(&len);
453 const char16_t* ctag16 = tree.getElementName(&len);
886 size_t len; local
899 const char16_t* ctag16 = tree.getElementName(&len);
985 size_t len; local
1220 const char16_t* ctag16 = tree.getElementName(&len);
/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp273 size_t len, IDiagnostics* diag) {
275 if (!pb_table.ParseFromArray(data, len)) {
1299 uint64_t offset, len; local
1300 if (!input_stream.ReadDataMetaData(&offset, &len)) {
1311 if (!MergeCompiledFile(file->CreateFileSegment(offset, len), resource_file.get(),
272 LoadTableFromPb(const Source& source, const void* data, size_t len, IDiagnostics* diag) argument
/frameworks/minikin/libs/minikin/
H A DLayout.cpp328 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { argument
333 if (size_t(*iter) < len && (v & 0xfc00) == 0xd800) {
351 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { argument
352 if (size_t(*iter) == len) {
355 uint32_t cp = decodeUtf16(chars, len, iter);
358 if (size_t(*iter) == len)
361 cp = decodeUtf16(chars, len, iter);
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp464 size_t len = strlen(path); local
465 if (path[len - 1] == '/') { /* Directory? */
468 return strcmp(path + len - sizeof(stat) + 1, stat); /* .../stat? */
H A Dutils.cpp328 size_t len = strcspn(cmdline, "\f\b\r\n"); local
329 cmdline[len] = ']';
330 cmdline[len+1] = '\0';
448 static void snprcent(char *buffer, size_t len, size_t spc, argument
467 snprintf(buffer + offset, (len > offset) ? len - offset : 0,
472 static void snprdec(char *buffer, size_t len, size_t spc, unsigned permille) { argument
477 snprintf(buffer + offset, (len > offset) ? len - offset : 0,
920 ssize_t len local
[all...]
/frameworks/rs/
H A DrsAllocation.cpp126 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { argument
127 if (len >= sizeof(uint32_t) * 9) {
556 void Allocation::copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) { argument
936 void rsi_AllocationAdapterOffset(Context *rsc, RsAllocation va, const uint32_t *offsets, size_t len) { argument
938 a->adapterOffset(rsc, offsets, len);
H A DrsHidlAdaptation.cpp390 void RsHidlAdaptation::ContextSendMessage (RsContext context, uint32_t id, const uint8_t *data, size_t len) argument
393 _data.setToExternal(const_cast<uint8_t *>(data), len); local
743 void RsHidlAdaptation::ScriptInvokeV (RsContext context, RsScript script, uint32_t slot, const void *data, size_t len) argument
747 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), len);
881 void RsHidlAdaptation::ScriptSetVarV (RsContext context, RsScript script, uint32_t slot, const void* data, size_t len) argument
885 _data.setToExternal(reinterpret_cast<uint8_t *>(const_cast<void *>(data)), len);
890 void RsHidlAdaptation::ScriptGetVarV (RsContext context, RsScript script, uint32_t slot, void* data, size_t len) argument
894 GetIContextHandle(context)->scriptGetVarV(_script, slot, len,
895 [data, len] (const hidl_vec<uint8_t> &retData) {
896 memcpy(data, retData.data(), len);
900 ScriptSetVarVE(RsContext context, RsScript script, uint32_t slot, const void *data, size_t len, RsElement ve, const uint32_t *dims, size_t dimLen) argument
[all...]
/frameworks/rs/rsov/driver/
H A DrsovRuntimeStubs.cpp725 uint32_t rsSendToClient(int cmdID, const void *data, uint32_t len) { argument
727 return rsrToClient(rsc, cmdID, data, len);
735 uint32_t rsSendToClientBlocking(int cmdID, const void *data, uint32_t len) { argument
737 return rsrToClientBlocking(rsc, cmdID, data, len);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp137 ALOGE("Invalid filter len %d", val);
479 int len = readlink(buffer, linkto, sizeof(linkto)); local
480 if(len > 0) {
481 if(len > 255) {
487 linkto[len] = 0;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4lib_int.h443 int len; member in struct:tagVLCtable
/frameworks/base/core/java/android/os/
H A DParcel.java283 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); argument
284 private static native void nativeWriteBlob(long nativePtr, byte[] b, int offset, int len); argument
548 * @param len Number of bytes to write.
550 public final void writeByteArray(byte[] b, int offset, int len) { argument
555 Arrays.checkOffsetAndCount(b.length, offset, len);
556 nativeWriteByteArray(mNativePtr, b, offset, len);
575 * @param len Number of bytes to write.
579 public final void writeBlob(byte[] b, int offset, int len) { argument
584 Arrays.checkOffsetAndCount(b.length, offset, len);
585 nativeWriteBlob(mNativePtr, b, offset, len);
[all...]
/frameworks/native/libs/binder/
H A DParcel.cpp450 status_t Parcel::setData(const uint8_t* buffer, size_t len) argument
452 if (len > INT32_MAX) {
458 status_t err = restartWrite(len);
460 memcpy(const_cast<uint8_t*>(data()), buffer, len);
461 mDataSize = len;
467 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) argument
477 if (len == 0) {
481 if (len > INT32_MAX) {
489 || (len > parcel->mDataSize)
490 || (offset + len > parce
659 finishWrite(size_t len) argument
678 writeUnpadded(const void* data, size_t len) argument
703 write(const void* data, size_t len) argument
719 writeInplace(size_t len) argument
943 writeInt32Array(size_t len, const int32_t *val) argument
959 writeByteArray(size_t len, const uint8_t *val) argument
1063 writeString16(const char16_t* str, size_t len) argument
1194 writeBlob(size_t len, bool mutableCopy, WritableBlob* outBlob) argument
1263 const size_t len = val.getFlattenedSize(); local
1940 const size_t len = eos - str; local
1986 size_t len; local
2018 size_t len; local
2179 readBlob(size_t len, ReadableBlob* outBlob) const argument
2210 const size_t len = this->readInt32(); local
2471 growData(size_t len) argument
[all...]
/frameworks/rs/cpp/
H A DrsCppStructs.h1461 explicit FieldPacker(size_t len) argument
1462 : mPos(0), mLen(len) {
1463 mData = new unsigned char[len];
1487 // ALOGE("Out of bounds: i (%zu) >= len (%zu)", i, mLen);
1496 // ALOGE("Exceeded buffer length: i (%zu) > len (%zu)", i, mLen);
1704 void setVar(uint32_t index, const void *, size_t len) const;
1706 void invoke(uint32_t slot, const void *v, size_t len) const;
/frameworks/rs/driver/
H A DrsdRuntimeStubs.cpp793 uint32_t rsSendToClient(int cmdID, const void *data, uint32_t len) { argument
795 return rsrToClient(rsc, cmdID, data, len);
803 uint32_t rsSendToClientBlocking(int cmdID, const void *data, uint32_t len) { argument
805 return rsrToClientBlocking(rsc, cmdID, data, len);
1059 void rsgDrawMesh(::rs_mesh ism, uint primitiveIndex, uint start, uint len) { argument
1061 rsrDrawMeshPrimitiveRange(rsc, (Mesh *)ism.p, primitiveIndex, start, len);

Completed in 6298 milliseconds

<<111213