Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 54) 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()
DFreeTypeMinikinFontForTest.cpp70 mFontSize = st.st_size; in FreeTypeMinikinFontForTest()
/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/libstagefright/
DClearFileSource.cpp70 if (mOffset > s.st_size) { in ClearFileSource()
71 mOffset = s.st_size; in ClearFileSource()
74 if (mOffset + mLength > s.st_size) { in ClearFileSource()
75 mLength = s.st_size - mOffset; in ClearFileSource()
/frameworks/av/media/libmediaplayerservice/
DMetadataRetrieverClient.cpp149 ALOGV("st_size = %llu", static_cast<unsigned long long>(sb.st_size)); in setDataSource()
151 if (offset >= sb.st_size) { in setDataSource()
153 (long long)offset, (unsigned long long)sb.st_size); in setDataSource()
156 if (offset + length > sb.st_size) { in setDataSource()
157 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/opengl/libs/EGL/
DFileBlobCache.cpp72 size_t fileSize = statBuf.st_size; in FileBlobCache()
75 static_cast<off64_t>(statBuf.st_size)); in FileBlobCache()
/frameworks/minikin/tests/perftests/
Dmain.cpp31 void* data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in main()
/frameworks/compile/libbcc/bcinfo/Wrap/
Dfile_wrapper_input.cpp52 _size = st.st_size; in Size()
/frameworks/minikin/tests/unittest/
DICUEnvironment.h46 mSize = sb.st_size; in SetUp()
/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/ml/nn/driver/cache/nnCache/
DnnCache.cpp254 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked()
257 static_cast<off64_t>(statBuf.st_size)); in loadBlobCacheLocked()
/frameworks/minikin/app/
DHyphTool.cpp20 size_t size = statbuf.st_size; in loadHybFile()
/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;
/frameworks/base/core/jni/
Dandroid_text_Hyphenator.cpp51 void* ptr = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0 /* offset */); in mmapPatternFile()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java183 mStatSize = stat.st_size; in loadFromDisk()
237 return !stat.st_mtim.equals(mStatTimestamp) || mStatSize != stat.st_size; in hasFileChangedUnexpectedly()
797 mStatSize = stat.st_size; in writeToFile()
/frameworks/base/tools/aapt2/util/
DFiles.cpp230 if (filestats.st_size == 0) { in MmapPath()
235 if (!filemap.create(path.c_str(), fd, 0, filestats.st_size, true)) { in MmapPath()
/frameworks/wilhelm/tests/examples/
DslesTestDecodeAac.cpp431 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); in TestDecToBuffQueue()
437 filelen = statbuf.st_size; in TestDecToBuffQueue()
849 ok = munmap(ptr, statbuf.st_size); in TestDecToBuffQueue()

123