/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/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/ |
D | MemoryHeapBase.cpp | 107 size = (size_t)sb.st_size; in mapfd() 109 if ((off_t)size != sb.st_size) { in mapfd() 111 __func__, (long long)sb.st_size); in mapfd()
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 119 if (fstat(fd, &sb) || sb.st_size < sHeaderSize) { in parseFromFile() 125 strerror(err), (int)sb.st_size); in parseFromFile() 129 void* addr = mmap(nullptr, sb.st_size, PROT_READ, MAP_SHARED, fd, 0); in parseFromFile() 142 munmap(addr, sb.st_size); in parseFromFile() 147 int dataSize = sb.st_size - sHeaderSize; in parseFromFile() 154 munmap(addr, sb.st_size); in parseFromFile()
|
/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()
|
D | WorkDirectory.cpp | 410 if (st.st_size != mEnvelope.data_file_size()) { in startFilteringData() 413 (int64_t)mEnvelope.data_file_size(), st.st_size, mDataFileName.c_str()); in startFilteringData() 742 entry.size += st.st_size; in get_directory_contents_locked() 743 totalSize += st.st_size; in get_directory_contents_locked()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 180 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in setRobotoTypefaceForTest() 181 std::unique_ptr<SkStreamAsset> fontData(new SkMemoryStream(data, st.st_size)); in setRobotoTypefaceForTest() 186 std::move(typeface), data, st.st_size, kRobotoFont, 0, 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 | 229 int afd = ashmem_create_region("test", statbuf.st_size); in main() 230 void* ptr = mmap(NULL, statbuf.st_size, in main() 232 read(fd, ptr, statbuf.st_size); in main()
|
/frameworks/native/opengl/libs/EGL/ |
D | FileBlobCache.cpp | 74 size_t fileSize = statBuf.st_size; in FileBlobCache() 77 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/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/base/libs/androidfw/ |
D | BackupHelpers.cpp | 365 r.s.size = st.st_size; in back_up_files() 524 if (s.st_size > 077777777777LL) { in write_tarfile() 532 if (isdir) s.st_size = 0; // directories get no actual data in the tar stream in write_tarfile() 537 *outSize = 512 + (needExtended ? 1024 : 0) + 512*((s.st_size + 511)/512); in write_tarfile() 583 snprintf(buf + 124, 12, "%011llo", (isdir) ? 0LL : s.st_size); in write_tarfile() 645 snprintf(sizeStr, sizeof(sizeStr), "%lld", (long long)s.st_size); in write_tarfile() 685 off64_t toWrite = s.st_size; in write_tarfile() 813 r.s.size = st.st_size; in WriteFile()
|
/frameworks/av/media/libstagefright/mpeg2ts/test/ |
D | Mpeg2tsUnitTest.cpp | 79 long fileSize = buf.st_size; in SetUp() 84 mSource = new FileSource(dup(fd), 0, buf.st_size); in SetUp()
|
/frameworks/ml/nn/driver/cache/nnCache/ |
D | nnCache.cpp | 248 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() 250 ALOGE("cache file is too large: %#" PRIx64, static_cast<off64_t>(statBuf.st_size)); in loadBlobCacheLocked()
|
/frameworks/minikin/app/ |
D | HyphTool.cpp | 20 size_t size = statbuf.st_size; in loadHybFile()
|
/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()
|
D | NativeDecoder.cpp | 55 size_t fileSize = buf.st_size; in Java_com_android_media_benchmark_library_Native_Decode()
|
/frameworks/av/media/tests/benchmark/tests/ |
D | ExtractorTest.cpp | 40 size_t fileSize = buf.st_size; in TEST_P()
|
/frameworks/av/media/libstagefright/foundation/tests/OpusHeader/ |
D | OpusHeaderTest.cpp | 127 size_t fileSize = buf.st_size; in TEST_P() 218 size_t fileSize = buf.st_size; in TEST_P()
|
/frameworks/base/tools/lock_agent/ |
D | agent.cpp | 499 std::unique_ptr<char[]> data(new char[statBuf.st_size]); in locktest_main() 505 if (!android::base::ReadFully(fd.get(), data.get(), statBuf.st_size)) { in locktest_main() 525 std::pair<dex::u1*, size_t> result = maybeTransform(argv[2], statBuf.st_size, in locktest_main()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 50 void* data = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in buildFamily() 52 SkData::MakeWithProc(data, st.st_size, unmap, reinterpret_cast<void*>(st.st_size)); in buildFamily() 58 std::make_shared<MinikinFontSkia>(std::move(typeface), data, st.st_size, fileName, 0, in buildFamily()
|
/frameworks/base/core/java/android/os/ |
D | RevocableFileDescriptor.java | 114 return Os.fstat(mInner).st_size;
|