/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()
|
D | FreeTypeMinikinFontForTest.cpp | 70 mFontSize = st.st_size; in FreeTypeMinikinFontForTest()
|
/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/libstagefright/ |
D | ClearFileSource.cpp | 70 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/ |
D | MetadataRetrieverClient.cpp | 149 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/ |
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/opengl/libs/EGL/ |
D | FileBlobCache.cpp | 72 size_t fileSize = statBuf.st_size; in FileBlobCache() 75 static_cast<off64_t>(statBuf.st_size)); in FileBlobCache()
|
/frameworks/minikin/tests/perftests/ |
D | main.cpp | 31 void* data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in main()
|
/frameworks/compile/libbcc/bcinfo/Wrap/ |
D | file_wrapper_input.cpp | 52 _size = st.st_size; in Size()
|
/frameworks/minikin/tests/unittest/ |
D | ICUEnvironment.h | 46 mSize = sb.st_size; in SetUp()
|
/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/ml/nn/driver/cache/nnCache/ |
D | nnCache.cpp | 254 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() 257 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/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;
|
/frameworks/base/core/jni/ |
D | android_text_Hyphenator.cpp | 51 void* ptr = mmap(nullptr, st.st_size, PROT_READ, MAP_SHARED, fd, 0 /* offset */); in mmapPatternFile()
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 183 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/ |
D | Files.cpp | 230 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/ |
D | slesTestDecodeAac.cpp | 431 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()
|