Home
last modified time | relevance | path

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

123

/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/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/
DMemoryHeapBase.cpp107 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/
DGraphicsStatsService.cpp119 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/
Dreport_directory.cpp74 totalSize += st.st_size; in clean_directory()
92 totalSize -= it->second.st_size; in clean_directory()
DWorkDirectory.cpp410 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/
DTypeface.cpp180 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/
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.cpp229 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/
DFileBlobCache.cpp74 size_t fileSize = statBuf.st_size; in FileBlobCache()
77 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/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/base/libs/androidfw/
DBackupHelpers.cpp365 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/
DMpeg2tsUnitTest.cpp79 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/
DnnCache.cpp248 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/
DHyphTool.cpp20 size_t size = statbuf.st_size; in loadHybFile()
/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()
DNativeDecoder.cpp55 size_t fileSize = buf.st_size; in Java_com_android_media_benchmark_library_Native_Decode()
/frameworks/av/media/tests/benchmark/tests/
DExtractorTest.cpp40 size_t fileSize = buf.st_size; in TEST_P()
/frameworks/av/media/libstagefright/foundation/tests/OpusHeader/
DOpusHeaderTest.cpp127 size_t fileSize = buf.st_size; in TEST_P()
218 size_t fileSize = buf.st_size; in TEST_P()
/frameworks/base/tools/lock_agent/
Dagent.cpp499 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/
DTypefaceTests.cpp50 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/
DRevocableFileDescriptor.java114 return Os.fstat(mInner).st_size;

123