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

<<111213

/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp249 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 Dandroid_util_AssetManager.cpp1278 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 Dandroid_util_Binder.cpp1138 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 Dandroid_util_Process.cpp376 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 Dandroid_hardware_camera2_DngCreator.cpp350 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 DAssetManager.cpp115 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 DSpotShadow.cpp279 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 DPhoneNumberUtils.java248 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 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.cpp315 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 DLayout.cpp176 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 Ddumpstate.cpp494 size_t len = strlen(path); local
495 if (path[len - 1] == '/') { /* Directory? */
498 return strcmp(path + len - sizeof(stat) + 1, stat); /* .../stat? */
H A Dutils.cpp303 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 Dapi.cpp205 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 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.cpp138 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 Dmp4lib_int.h443 int len; member in struct:tagVLCtable
/frameworks/base/core/java/android/os/
H A DParcel.java292 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 DLink.cpp1509 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 DParcel.cpp451 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 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);
/frameworks/av/media/extractors/mp4/
H A DMPEG4Extractor.cpp1843 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...]

Completed in 134 milliseconds

<<111213