/frameworks/base/core/jni/ |
H A D | android_os_Debug.cpp | 249 int len, nameLen; local 282 len = strlen(line); 283 if (len < 1) return; 284 line[--len] = 0; 797 int len = read(fd, buffer, sizeof(buffer)-1); local 800 if (len < 0) { 804 buffer[len] = 0; 898 int len = snprintf(compare, 128, "proc %d", getpid()); local 905 } while (strncmp(compare, line, len)); 908 len [all...] |
H A D | android_util_AssetManager.cpp | 1278 jint offset, jint len) { 1279 if (len == 0) { 1284 if (offset < 0 || offset >= buffer_len || len < 0 || len > buffer_len || 1285 offset > buffer_len - len) { 1296 ssize_t res = asset->read(byte_array.get() + offset, len); 1277 NativeAssetRead(JNIEnv* env, jclass , jlong asset_ptr, jbyteArray java_buffer, jint offset, jint len) argument
|
H A D | android_util_Binder.cpp | 1138 static int getprocname(pid_t pid, char *buf, size_t len) { argument 1148 if (!fgets(buf, len, f)) { 1158 jint len = strlen(str); local 1159 int space_needed = 1 + sizeof(len) + len; 1167 memcpy(*pos, &len, sizeof(len)); 1168 *pos += sizeof(len); 1169 memcpy(*pos, str, len); 1170 *pos += len; [all...] |
H A D | android_util_Process.cpp | 376 size_t len = 0; local 377 ssize_t num_read = getline(&line, &len, file); 614 const int len = read(fd, buffer, sizeof(buffer)-1); local 617 if (len < 0) { 621 buffer[len] = 0; 724 int len = read(fd, buffer, BUFFER_SIZE-1); local 727 if (len < 0) { 729 len = 0; 731 buffer[len] = 0; 1038 const int len local 1164 const int len = read(fd, data, sizeof(data)-1); local [all...] |
H A D | android_hardware_camera2_DngCreator.cpp | 350 size_t len = BYTE_ARRAY_LENGTH; local 351 len = (count > len) ? len : count; 352 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); 359 0, len); 365 count -= len; 366 offset += len; 1036 size_t len = strlen(captureTime) + 1; local 1037 if (len ! 1877 size_t len = description.bytes() + 1; local [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 115 int len; local 120 len = strlen(str); 121 newStr = new char[len+1]; 122 memcpy(newStr, str, len+1);
|
/frameworks/base/libs/hwui/ |
H A D | SpotShadow.cpp | 279 bool SpotShadow::testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len) { argument 283 for (int i = 0, j = len - 1; i < len; j = i++) { 301 * @param len the number of points of the polygon 303 void SpotShadow::reverse(Vector2* polygon, int len) { argument 304 int n = len / 2; 307 int k = len - 1 - i;
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 248 int len = phoneNumber.length(); 249 StringBuilder ret = new StringBuilder(len); 251 for (int i = 0; i < len; i++) { 287 int len = phoneNumber.length(); 288 StringBuilder ret = new StringBuilder(len); 291 for (int i = 0; i < len; i++) { 318 int len = phoneNumber.length(); 319 StringBuilder ret = new StringBuilder(len); 321 for (int i = 0; i < len; i++) { 359 int len 2880 matchIntlPrefix(String a, int len) argument 2919 matchIntlPrefixAndCC(String a, int len) argument 2968 matchTrunkPrefix(String a, int len) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 40 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 D | Command.cpp | 315 size_t len; local 332 const char16_t* ctag16 = tree.getElementName(&len); 418 size_t len; local 424 const char16_t* ctag16 = tree.getElementName(&len); 437 const char16_t* ctag16 = tree.getElementName(&len); 871 size_t len; local 884 const char16_t* ctag16 = tree.getElementName(&len); 970 size_t len; local 1205 const char16_t* ctag16 = tree.getElementName(&len);
|
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 176 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { argument 178 U16_NEXT(chars, *iter, (ssize_t)len, result); 185 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { argument 186 if (size_t(*iter) == len) { 189 uint32_t cp = decodeUtf16(chars, len, iter); 192 if (size_t(*iter) == len) break; 194 cp = decodeUtf16(chars, len, iter);
|
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.cpp | 494 size_t len = strlen(path); local 495 if (path[len - 1] == '/') { /* Directory? */ 498 return strcmp(path + len - sizeof(stat) + 1, stat); /* .../stat? */
|
H A D | utils.cpp | 303 size_t len = strcspn(cmdline, "\f\b\r\n"); local 304 cmdline[len] = ']'; 305 cmdline[len+1] = '\0'; 423 static void snprcent(char *buffer, size_t len, size_t spc, argument 442 snprintf(buffer + offset, (len > offset) ? len - offset : 0, 447 static void snprdec(char *buffer, size_t len, size_t spc, unsigned permille) { argument 452 snprintf(buffer + offset, (len > offset) ? len - offset : 0, 962 ssize_t len local [all...] |
/frameworks/native/vulkan/libvulkan/ |
H A D | api.cpp | 205 void AddImplicitLayer(int priority, const char* name, size_t len) { argument 213 layer.name_offset = AddImplicitLayerName(name, len); 218 size_t AddImplicitLayerName(const char* name, size_t len) { argument 219 if (!GrowImplicitLayerArray(0, len + 1)) 227 std::copy(name, name + len, dst); 228 dst[len] = '\0'; 230 arr.pool_size += len + 1;
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 126 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 D | rsHidlAdaptation.cpp | 390 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 D | rsovRuntimeStubs.cpp | 725 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 D | MediaPlayerService.cpp | 138 ALOGE("Invalid filter len %d", val); 484 int len = readlink(buffer, linkto, sizeof(linkto)); local 485 if(len > 0) { 486 if(len > 255) { 492 linkto[len] = 0;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4lib_int.h | 443 int len; member in struct:tagVLCtable
|
/frameworks/base/core/java/android/os/ |
H A D | Parcel.java | 292 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); argument 293 private static native void nativeWriteBlob(long nativePtr, byte[] b, int offset, int len); argument 627 * @param len Number of bytes to write. 629 public final void writeByteArray(byte[] b, int offset, int len) { argument 634 Arrays.checkOffsetAndCount(b.length, offset, len); 635 nativeWriteByteArray(mNativePtr, b, offset, len); 654 * @param len Number of bytes to write. 658 public final void writeBlob(byte[] b, int offset, int len) { argument 663 Arrays.checkOffsetAndCount(b.length, offset, len); 664 nativeWriteBlob(mNativePtr, b, offset, len); [all...] |
/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.cpp | 1509 size_t len; local 1510 if (!entry->GetResFileOffsets(&pb_compiled_file, &offset, &len)) { 1524 if (!MergeCompiledFile(resource_file, file->CreateFileSegment(offset, len), override)) {
|
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 451 status_t Parcel::setData(const uint8_t* buffer, size_t len) argument 453 if (len > INT32_MAX) { 459 status_t err = restartWrite(len); 461 memcpy(const_cast<uint8_t*>(data()), buffer, len); 462 mDataSize = len; 468 status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len) argument 478 if (len == 0) { 482 if (len > INT32_MAX) { 490 || (len > parcel->mDataSize) 491 || (offset + len > parce 660 finishWrite(size_t len) argument 679 writeUnpadded(const void* data, size_t len) argument 704 write(const void* data, size_t len) argument 720 writeInplace(size_t len) argument 944 writeInt32Array(size_t len, const int32_t *val) argument 960 writeByteArray(size_t len, const uint8_t *val) argument 1064 writeString16(const char16_t* str, size_t len) argument 1195 writeBlob(size_t len, bool mutableCopy, WritableBlob* outBlob) argument 1264 const size_t len = val.getFlattenedSize(); local 2022 const size_t len = eos - str; local 2068 size_t len; local 2100 size_t len; local 2261 readBlob(size_t len, ReadableBlob* outBlob) const argument 2292 const size_t len = this->readInt32(); local 2554 growData(size_t len) argument [all...] |
/frameworks/rs/cpp/ |
H A D | rsCppStructs.h | 1461 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 D | rsdRuntimeStubs.cpp | 793 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);
|
/frameworks/av/media/extractors/mp4/ |
H A D | MPEG4Extractor.cpp | 1843 uint16_t len; local 1844 if (!mDataSource->getUInt16(data_offset, &len)) { 1849 if (len < 4 || len > chunk_data_size - 4) { 1856 std::unique_ptr<char[]> buffer(new (std::nothrow) char[len+2]()); 1862 data_offset + 4, &buffer[0], len) < len) { 1866 len = strlen(&buffer[0]); 1867 if (len < 4) { 1871 if (buffer[len [all...] |