Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/minikin/tests/util/
DFileUtils.cpp32 std::vector<uint8_t> result(st.st_size); in readWholeFile()
33 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); in readWholeFile()
/frameworks/av/drm/common/
DReadWriteUtils.cpp44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { in readBytes()
45 off64_t length = sb.st_size; in readBytes()
66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { in readBytes()
67 length = sb.st_size; in readBytes()
/frameworks/av/media/libdatasource/
DFileSource.cpp70 if (mOffset > s.st_size) { in FileSource()
71 mOffset = s.st_size; in FileSource()
74 if (mOffset + mLength > s.st_size) { in FileSource()
75 mLength = s.st_size - mOffset; in FileSource()
/frameworks/base/libs/hwui/tests/unit/
DUnderlineTest.cpp66 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in buildFamily()
68 SkData::MakeWithProc(data, st.st_size, unmap, reinterpret_cast<void*>(st.st_size)); in buildFamily()
74 std::make_shared<MinikinFontSkia>(std::move(typeface), 0, data, st.st_size, fileName, 0, in buildFamily()
/frameworks/libs/binary_translation/kernel_api/riscv64/
Dsyscall_emulation_arch.cc54 guest_stat->st_size = host_stat.st_size; in ConvertHostStatToGuestArch()
Dguest_types.h86 alignas(8) int64_t st_size; member
103 CHECK_FIELD_LAYOUT(Guest_stat, st_size, 384, 64);
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp150 ALOGV("st_size = %llu", static_cast<unsigned long long>(sb.st_size)); in setDataSource()
152 if (offset >= sb.st_size) { in setDataSource()
154 (long long)offset, (unsigned long long)sb.st_size); in setDataSource()
157 if (offset + length > sb.st_size) { in setDataSource()
158 length = sb.st_size - offset; in setDataSource()
/frameworks/native/libs/binder/tests/
DFileUtils.cpp41 if (fstat(fd.get(), &sb) != -1 && sb.st_size > 0) { in ReadFdToString()
42 content->reserve(sb.st_size); in ReadFdToString()
/frameworks/base/cmds/incidentd/src/
Dreport_directory.cpp74 totalSize += st.st_size; in clean_directory()
92 totalSize -= it->second.st_size; in clean_directory()
/frameworks/base/core/jni/
Dcom_android_internal_content_FileSystemUtils.cpp93 static_cast<uint64_t>(beforePunch.st_size)); in punchHoles()
199 static_cast<uint64_t>(afterPunch.st_size)); in punchHoles()
276 static_cast<uint64_t>(beforePunch.st_size)); in punchHolesInZip()
351 static_cast<uint64_t>(afterPunch.st_size)); in punchHolesInZip()
Dandroid_text_Hyphenator.cpp52 void* ptr = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0 /* offset */); in mmapPatternFile()
57 return std::make_pair(reinterpret_cast<const uint8_t*>(ptr), st.st_size); in mmapPatternFile()
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp152 size = (size_t)sb.st_size; in mapfd()
154 if ((off_t)size != sb.st_size) { in mapfd()
156 __func__, (long long)sb.st_size); in mapfd()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java56 if (stat.st_size > KEY_VALUE_BACKUP_SIZE_QUOTA) { in performBackup()
57 Log.w(TAG, "New datastore size " + stat.st_size in performBackup()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp188 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setRobotoTypefaceForTest()
189 std::unique_ptr<SkStreamAsset> fontData(new SkMemoryStream(data, st.st_size)); in setRobotoTypefaceForTest()
196 std::make_shared<MinikinFontSkia>(std::move(typeface), 0, data, st.st_size, kRobotoFont, in setRobotoTypefaceForTest()
/frameworks/compile/mclinker/lib/LD/
DELFReader.cpp76 uint32_t st_size = 0x0; in readSymbols() local
94 st_size = symtab[idx].st_size; in readSymbols()
99 st_size = mcld::bswap32(symtab[idx].st_size); in readSymbols()
147 st_size, in readSymbols()
576 uint64_t st_size = 0x0; in readSymbols() local
594 st_size = symtab[idx].st_size; in readSymbols()
599 st_size = mcld::bswap64(symtab[idx].st_size); in readSymbols()
647 st_size, in readSymbols()
/frameworks/native/cmds/service/
Dservice.cpp212 int afd = ashmem_create_region("test", statbuf.st_size); in main()
213 void* ptr = mmap(NULL, statbuf.st_size, in main()
215 (void)read(fd, ptr, statbuf.st_size); in main()
/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp79 size_t fileSize = statBuf.st_size; in FileBlobCache()
82 static_cast<off64_t>(statBuf.st_size)); in FileBlobCache()
/frameworks/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_input.cpp52 _size = st.st_size; in Size()
/frameworks/base/libs/hwui/service/
DGraphicsStatsService.cpp123 if (fstat(fd, &sb) || sb.st_size < sHeaderSize) { in parseFromFile()
129 strerror(err), (int)sb.st_size); in parseFromFile()
133 void* addr = mmap(nullptr, sb.st_size, PROT_READ, MAP_SHARED, fd, 0); in parseFromFile()
146 munmap(addr, sb.st_size); in parseFromFile()
151 int dataSize = sb.st_size - sHeaderSize; in parseFromFile()
158 munmap(addr, sb.st_size); in parseFromFile()
/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.cpp115 if (offset >= sb.st_size) { in setDataSource()
122 mDataLocator.fdi.length = sb.st_size; in setDataSource()
123 } else if (offset + length > sb.st_size) { in setDataSource()
124 mDataLocator.fdi.length = sb.st_size - offset; in setDataSource()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp86 int64_t diff = s2.st_size - s1.st_size; in getFileSizeDiffPercent()
89 return (float)diff * 100.0f / s1.st_size; in getFileSizeDiffPercent()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp369 r.s.size = st.st_size; in back_up_files()
528 if (s.st_size > 077777777777LL) { in write_tarfile()
536 if (isdir) s.st_size = 0; // directories get no actual data in the tar stream in write_tarfile()
541 *outSize = 512 + (needExtended ? 1024 : 0) + 512*((s.st_size + 511)/512); in write_tarfile()
588 snprintf(buf + 124, 12, "%011llo", (isdir) ? 0LL : s.st_size); in write_tarfile()
650 snprintf(sizeStr, sizeof(sizeStr), "%lld", (long long)s.st_size); in write_tarfile()
690 off64_t toWrite = s.st_size; in write_tarfile()
818 r.s.size = st.st_size; in WriteFile()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeExtractor.cpp39 size_t fileSize = buf.st_size; in Java_com_android_media_benchmark_library_Native_Extract()
/frameworks/av/media/module/mpeg2ts/test/
DMpeg2tsUnitTest.cpp78 long fileSize = buf.st_size; in SetUp()
83 mSource = new FileSource(dup(fd), 0, buf.st_size); in SetUp()
/frameworks/av/media/tests/benchmark/tests/
DExtractorTest.cpp44 size_t fileSize = buf.st_size; in TEST_P()

1234