/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 359 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { argument 364 if (size_t(*iter) < len && (v & 0xfc00) == 0xd800) { 382 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { argument 383 if (size_t(*iter) == len) { 386 uint32_t cp = decodeUtf16(chars, len, iter); 389 if (size_t(*iter) == len) 392 cp = decodeUtf16(chars, len, iter);
|
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.cpp | 223 size_t len = strlen(path); local 224 if (path[len - 1] == '/') { /* Directory? */ 227 return strcmp(path + len - sizeof(stat) + 1, stat); /* .../stat? */
|
H A D | utils.cpp | 161 size_t len = strcspn(cmdline, "\f\b\r\n"); local 162 cmdline[len] = ']'; 163 cmdline[len+1] = '\0'; 271 static void snprcent(char *buffer, size_t len, size_t spc, argument 290 snprintf(buffer + offset, (len > offset) ? len - offset : 0, 295 static void snprdec(char *buffer, size_t len, size_t spc, unsigned permille) { argument 300 snprintf(buffer + offset, (len > offset) ? len - offset : 0, 1063 ssize_t len local [all...] |
/frameworks/native/cmds/installd/ |
H A D | utils.cpp | 251 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1) 543 static void* _cache_malloc(cache_t* cache, size_t len) argument 545 len = (len+3)&~3; 546 if (len > (CACHE_BLOCK_SIZE/2)) { 550 int8_t* res = (int8_t*)malloc(len+sizeof(void*)); 554 CACHE_NOISY(ALOGI("Allocated large cache mem block: %p size %d", res, len)); 566 int8_t* nextPos = res + len; 577 nextPos = res + len; 580 res, len, cach 585 _cache_realloc(cache_t* cache, void* cur, size_t origLen, size_t len) argument 1136 int len = len_s1 + len_s2 + 1; local 1152 int len = len_s1 + len_s2 + len_s3 + 1; local [all...] |
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 476 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/native/libs/gui/ |
H A D | Surface.cpp | 1329 size_t len; local 1330 const char16_t* str = parcel->readString16Inplace(&len); 1332 return String16(str, len);
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 127 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { argument 128 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 976 void rsi_AllocationAdapterOffset(Context *rsc, RsAllocation va, const uint32_t *offsets, size_t len) { argument 978 a->adapterOffset(rsc, offsets, len);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 136 ALOGE("Invalid filter len %d", val); 491 int len = readlink(buffer, linkto, sizeof(linkto)); local 492 if(len > 0) { 493 if(len > 255) { 499 linkto[len] = 0;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4lib_int.h | 442 int len; member in struct:tagVLCtable
|
/frameworks/base/core/java/android/os/ |
H A D | Parcel.java | 267 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); argument 268 private static native void nativeWriteBlob(long nativePtr, byte[] b, int offset, int len); argument 499 * @param len Number of bytes to write. 501 public final void writeByteArray(byte[] b, int offset, int len) { argument 506 Arrays.checkOffsetAndCount(b.length, offset, len); 507 nativeWriteByteArray(mNativePtr, b, offset, len); 526 * @param len Number of bytes to write. 530 public final void writeBlob(byte[] b, int offset, int len) { argument 535 Arrays.checkOffsetAndCount(b.length, offset, len); 536 nativeWriteBlob(mNativePtr, b, offset, len); [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 348 size_t len = BYTE_ARRAY_LENGTH; local 349 len = (count > len) ? len : count; 350 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); 357 0, len); 363 count -= len; 364 offset += len; 1034 size_t len = strlen(captureTime) + 1; local 1035 if (len ! 1806 size_t len = description.bytes() + 1; local [all...] |
H A D | android_util_AssetManager.cpp | 462 jint off, jint len) 471 if (len == 0) { 476 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) { 482 ssize_t res = a->read(b+off, len); 460 android_content_AssetManager_readAsset(JNIEnv* env, jobject clazz, jlong assetHandle, jbyteArray bArray, jint off, jint len) argument
|
H A D | android_opengl_GLES20.cpp | 1950 GLint len = 0; local 1951 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 1952 if (!len) { 1955 char* buf = (char*) malloc(len); 1998 (GLsizei)len, 2046 GLint len = 0; local 2047 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 2048 if (!len) { 2051 char* buf = (char*) malloc(len); 2071 (GLsizei)len, 2276 GLint len = 0; local 2370 GLint len = 0; local [all...] |
H A D | android_opengl_GLES30.cpp | 2099 GLint len = 0; local 2100 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 2101 if (!len) { 2104 char* buf = (char*) malloc(len); 2147 (GLsizei)len, 2195 GLint len = 0; local 2196 glGetProgramiv((GLuint)program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, &len); 2197 if (!len) { 2200 char* buf = (char*) malloc(len); 2220 (GLsizei)len, 3706 GLint len = 0; local [all...] |
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 329 size_t len; local 346 const char16_t* ctag16 = tree.getElementName(&len); 420 size_t len; local 426 const char16_t* ctag16 = tree.getElementName(&len); 439 const char16_t* ctag16 = tree.getElementName(&len); 838 size_t len; local 851 const char16_t* ctag16 = tree.getElementName(&len); 930 size_t len; local 1164 const char16_t* ctag16 = tree.getElementName(&len);
|
H A D | Resource.cpp | 247 size_t len; local 253 if (strcmp16(block.getElementName(&len), String16("manifest").string()) != 0) { 256 String8(block.getElementName(&len)).string()); 267 assets->setPackage(String8(block.getAttributeStringValue(nameIndex, &len))); 271 bundle->setRevisionCode(String8(block.getAttributeStringValue(revisionCodeIndex, &len)).string()); 278 if (strcmp16(block.getElementName(&len), uses_sdk16.string()) == 0) { 282 const char16_t* minSdk16 = block.getAttributeStringValue(minSdkIndex, &len); 480 size_t len; local 493 String8(parser.getElementName(&len)).string(), attr, 501 str = pool->stringAt(value.data, &len); 979 size_t len; local 1795 size_t len; local 1836 size_t len; local 2842 size_t len; local 2972 size_t len; local 3025 size_t len; local 3035 size_t len; local [all...] |
H A D | ResourceTable.cpp | 207 static uint32_t parse_flags(const char16_t* str, size_t len, argument 210 while (len > 0 && isspace(*str)) { 212 len--; 214 while (len > 0 && isspace(str[len-1])) { 215 len--; 218 const char16_t* const end = str + len; 336 size_t len; local 341 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); 351 block.getComment(&len) 858 size_t len; local 3050 size_t len; local 4153 size_t len; local [all...] |
/frameworks/opt/net/wifi/service/jni/ |
H A D | com_android_server_wifi_WifiNative.cpp | 186 int len = strlen(rawSsid); local 188 if (len > 0) { 189 JNIObject<jbyteArray> ssidBytes = helper.newByteArray(len); 190 helper.setByteArrayRegion(ssidBytes, 0, len, (jbyte *) rawSsid); 1162 if (result->LCI != NULL && result->LCI->len > 0) { 1165 JNIObject<jbyteArray> elements = helper.newByteArray(result->LCI->len); 1167 helper.setByteArrayRegion(elements, 0, result->LCI->len, bytes); 1178 if (result->LCR != NULL && result->LCR->len > 0) { 1181 JNIObject<jbyteArray> elements = helper.newByteArray(result->LCI->len); 1183 helper.setByteArrayRegion(elements, 0, result->LCI->len, byte 1216 int len = helper.getArrayLength((jobjectArray)params); local 1285 int len = helper.getArrayLength((jobjectArray)params); local 1371 int len = helper.getArrayLength(param); local 2196 size_t len = helper.getArrayLength(list); local 2288 size_t len = helper.getArrayLength((jobjectArray)list); local [all...] |
/frameworks/rs/cpp/ |
H A D | rsCppStructs.h | 1461 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 D | rsdRuntimeStubs.cpp | 732 uint32_t rsSendToClient(int cmdID, const void *data, uint32_t len) { argument 734 return rsrToClient(rsc, cmdID, data, len); 742 uint32_t rsSendToClientBlocking(int cmdID, const void *data, uint32_t len) { argument 744 return rsrToClientBlocking(rsc, cmdID, data, len); 998 void rsgDrawMesh(::rs_mesh ism, uint primitiveIndex, uint start, uint len) { argument 1000 rsrDrawMeshPrimitiveRange(rsc, (Mesh *)ism.p, primitiveIndex, start, len);
|
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Extractor.cpp | 576 char* MPEG4Extractor::getDrmTrackInfo(size_t trackID, int *len) { argument 590 *len = sinf->len; 724 sinf->len = dataLen - 3; 725 sinf->IPMPData = new (std::nothrow) char[sinf->len]; 731 if (mDataSource->readAt(data_offset, sinf->IPMPData, sinf->len) < sinf->len) { 734 data_offset += sinf->len;
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 41 jint len = 0; \ 53 len = _env->GetArrayLength((jfloatArray)data); \ 58 len = len / 3 * 4; \ 60 count = len / 4; \ 62 ptr = malloc (len * typeBytes); \ 78 len = _env->GetArrayLength((jdoubleArray)data); \ 83 len = len / 3 * 4; \ 85 count = len / 856 jint len = _env->GetArrayLength(data); local 904 jint len = 0; local 1176 jint len = _env->GetArrayLength(data); local 1449 jint len = _env->GetArrayLength(data); local 1464 jint len = _env->GetArrayLength(data); local 1515 jint len = _env->GetArrayLength(data); local 1547 jint len = _env->GetArrayLength(params); local 1604 jint len = _env->GetArrayLength(params); local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | Threads.cpp | 906 const int len = s.length(); local 907 if (len > 2) { 908 (void) s.lockBuffer(len); // needed? 909 s.unlockBuffer(len - 2); // remove trailing ", "
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 666 size_t len = **str; local 667 if ((len & 0x8000) != 0) { 669 len = ((len & 0x7FFF) << 16) | **str; 672 return len; 688 size_t len = **str; local 689 if ((len & 0x80) != 0) { 691 len = ((len & 0x7F) << 8) | **str; 694 return len; 826 size_t len; local 865 size_t len; local 2697 size_t len = unpackLanguage(buf); local 2717 size_t len = unpackLanguage(buf); local 4062 size_t len; local 4489 size_t len; member in struct:android::id_name_map 4520 size_t len; local 4797 size_t len; member in struct:android::unit_entry 4823 const size_t len = end-str; local 4849 U16StringToInt(const char16_t* s, size_t len, Res_value* outValue) argument 4938 stringToInt(const char16_t* s, size_t len, Res_value* outValue) argument 4943 stringToFloat(const char16_t* s, size_t len, Res_value* outValue) argument 5038 stringToValue(Res_value* outValue, String16* outString, const char16_t* s, size_t len, bool preserveSpaces, bool coerceType, uint32_t attrID, const String16* defType, const String16* defPackage, Accessor* accessor, void* accessorCookie, uint32_t attrType, bool enforcePrivate) const argument 5607 collectString(String16* outString, const char16_t* s, size_t len, bool preserveSpaces, const char** outErrorMsg, bool append) argument 6850 size_t len; local [all...] |
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 53 jint len = 0; \ 65 len = _env->GetArrayLength((jfloatArray)data); \ 74 len = len / 3 * 4; \ 76 count = len / 4; \ 78 ptr = malloc (len * typeBytes); \ 94 len = _env->GetArrayLength((jdoubleArray)data); \ 103 len = len / 3 * 4; \ 105 count = len / 775 jint len = _env->GetArrayLength(str); local 973 jint len = _env->GetArrayLength(data); local 1036 jint len = 0; local 1406 jint len = _env->GetArrayLength(data); local 1548 jint len = _env->GetArrayLength(data); local 1883 jint len = _env->GetArrayLength(data); local 1899 jint len = _env->GetArrayLength(data); local 1916 jint len = _env->GetArrayLength(data); local 1972 jint len = _env->GetArrayLength(data); local [all...] |