/frameworks/minikin/tests/util/ |
D | FileUtils.cpp | 32 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/ |
D | ReadWriteUtils.cpp | 44 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/ |
D | FileSource.cpp | 70 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/ |
D | UnderlineTest.cpp | 66 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/ |
D | syscall_emulation_arch.cc | 54 guest_stat->st_size = host_stat.st_size; in ConvertHostStatToGuestArch()
|
D | guest_types.h | 86 alignas(8) int64_t st_size; member 103 CHECK_FIELD_LAYOUT(Guest_stat, st_size, 384, 64);
|
/frameworks/av/media/libmediaplayerservice/ |
D | MetadataRetrieverClient.cpp | 150 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/ |
D | FileUtils.cpp | 41 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/ |
D | report_directory.cpp | 74 totalSize += st.st_size; in clean_directory() 92 totalSize -= it->second.st_size; in clean_directory()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_FileSystemUtils.cpp | 93 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()
|
D | android_text_Hyphenator.cpp | 52 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/ |
D | MemoryHeapBase.cpp | 152 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/ |
D | EncryptedLocalTransport.java | 56 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/ |
D | Typeface.cpp | 188 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/ |
D | ELFReader.cpp | 76 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/ |
D | service.cpp | 212 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/ |
D | FileBlobCache.cpp | 79 size_t fileSize = statBuf.st_size; in FileBlobCache() 82 static_cast<off64_t>(statBuf.st_size)); in FileBlobCache()
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
D | file_wrapper_input.cpp | 52 _size = st.st_size; in Size()
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 123 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/ |
D | android_GenericPlayer.cpp | 115 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/ |
D | MediaTranscoderTests.cpp | 86 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/ |
D | BackupHelpers.cpp | 369 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/ |
D | NativeExtractor.cpp | 39 size_t fileSize = buf.st_size; in Java_com_android_media_benchmark_library_Native_Extract()
|
/frameworks/av/media/module/mpeg2ts/test/ |
D | Mpeg2tsUnitTest.cpp | 78 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/ |
D | ExtractorTest.cpp | 44 size_t fileSize = buf.st_size; in TEST_P()
|