Home
last modified time | relevance | path

Searched refs:fileId (Results 1 – 14 of 14) sorted by relevance

/system/core/adb/client/
Dincremental_server.cpp239 SendResult SendDataBlock(FileId fileId, BlockIdx blockIdx, bool flush = false);
241 bool SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx);
242 bool SendTreeBlocksForDataBlock(FileId fileId, BlockIdx blockIdx);
352 bool IncrementalServer::SendTreeBlocksForDataBlock(const FileId fileId, const BlockIdx blockIdx) { in SendTreeBlocksForDataBlock() argument
353 auto& file = files_[fileId]; in SendTreeBlocksForDataBlock()
369 if (!SendTreeBlock(fileId, blockIdx, leaf_idx)) { in SendTreeBlocksForDataBlock()
380 if (!SendTreeBlock(fileId, blockIdx, i)) { in SendTreeBlocksForDataBlock()
388 bool IncrementalServer::SendTreeBlock(FileId fileId, int32_t fileBlockIdx, BlockIdx blockIdx) { in SendTreeBlock() argument
389 const auto& file = files_[fileId]; in SendTreeBlock()
401 buffer.header.file_id = toBigEndian(fileId); in SendTreeBlock()
[all …]
/system/incremental_delivery/incfs/include/
Dincfs_inline.h77 inline bool isValidFileId(FileId fileId) { in isValidFileId() argument
78 return IncFs_IsValidFileId(fileId); in isValidFileId()
81 inline std::string toString(FileId fileId) { in toString() argument
83 auto err = IncFs_FileIdToString(fileId, res.data()); in toString()
164 inline ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, in makeFile() argument
166 return IncFs_MakeFile(control, details::c_str(path), mode, fileId, params); in makeFile()
175 inline RawMetadata getMetadata(const Control& control, FileId fileId) { in getMetadata() argument
178 if (IncFs_GetMetadataById(control, fileId, metadata.data(), &size) < 0) { in getMetadata()
195 inline RawSignature getSignature(const Control& control, FileId fileId) { in getSignature() argument
198 if (IncFs_GetSignatureById(control, fileId, signature.data(), &size) < 0) { in getSignature()
[all …]
Dincfs.h191 bool isValidFileId(FileId fileId);
192 std::string toString(FileId fileId);
208 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId,
213 RawMetadata getMetadata(const Control& control, FileId fileId);
217 RawSignature getSignature(const Control& control, FileId fileId);
230 UniqueFd openForSpecialOps(const Control& control, FileId fileId);
Dincfs_ndk.h145 static inline bool IncFs_IsValidFileId(IncFsFileId fileId) { in IncFs_IsValidFileId() argument
146 return memcmp(&fileId, &kIncFsInvalidFileId, sizeof(fileId)) != 0; in IncFs_IsValidFileId()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp92 static IncFsFileId fileId(uint64_t i) { in fileId() function in IncFsTest
122 int res = makeFile(control_, mountPath(test_file_name_), 0555, fileId(id), in makeFileWithHash()
134 auto wfd = openForSpecialOps(control_, fileId(id)); in writeTestRanges()
286 makeFile(control_, test_file, 0555, fileId(1), in TEST_F()
330 makeFile(control_, file_path, 0111, fileId(1), in TEST_F()
342 makeFile(control_, file_path, 0555, fileId(1), in TEST_F()
350 auto id = fileId(1); in TEST_F()
363 makeFile(control_, mountPath(test_file_name_), 0555, fileId(1), in TEST_F()
372 const auto raw_metadata = getMetadata(control_, fileId(1)); in TEST_F()
380 ASSERT_EQ(0, makeFile(control_, mountPath(test_file_name_), 0555, fileId(1), {.size = 0})); in TEST_F()
[all …]
/system/vold/
DAppFuseUtil.h31 int OpenAppFuseFile(uid_t uid, int mountId, int fileId, int flags);
DAppFuseUtil.cpp152 int OpenAppFuseFile(uid_t uid, int mountId, int fileId, int flags) { in OpenAppFuseFile() argument
162 std::string path = StringPrintf("%s/%d", mountPoint.c_str(), fileId); in OpenAppFuseFile()
DVolumeManager.h132 int openAppFuseFile(uid_t uid, int mountId, int fileId, int flags);
DVoldNativeService.cpp462 binder::Status VoldNativeService::openAppFuseFile(int32_t uid, int32_t mountId, int32_t fileId, in openAppFuseFile() argument
468 int fd = VolumeManager::Instance()->openAppFuseFile(uid, mountId, fileId, flags); in openAppFuseFile()
471 " mountId: " + std::to_string(mountId) + " fileId: " + std::to_string(fileId) + in openAppFuseFile()
DVolumeManager.cpp750 int VolumeManager::openAppFuseFile(uid_t uid, int mountId, int fileId, int flags) { in openAppFuseFile() argument
751 return android::vold::OpenAppFuseFile(uid, mountId, fileId, flags); in openAppFuseFile()
DVoldNativeService.h85 binder::Status openAppFuseFile(int32_t uid, int32_t mountId, int32_t fileId, int32_t flags,
/system/extras/simpleperf/scripts/
Dreport_html.js169 return {fileId: func.s[0], startLine: func.s[1], endLine: func.s[2]};
1467 constructor(fileId) { argument
1468 this.path = getSourceFilePath(fileId);
1469 this.code = getSourceCode(fileId);
1501 function getFile(fileId) { argument
1502 let file = sourceFiles[fileId];
1504 file = sourceFiles[fileId] = new SourceFile(fileId);
1512 let file = getFile(funcRange.fileId);
1526 let file = getFile(funcRange.fileId);
1530 delete sourceFiles[funcRange.fileId];
[all …]
/system/vold/binder/android/os/
DIVold.aidl129 FileDescriptor openAppFuseFile(int uid, int mountId, int fileId, int flags); in openAppFuseFile() argument
/system/incremental_delivery/incfs/
Dincfs.cpp789 IncFsErrorCode IncFs_GetMetadataById(const IncFsControl* control, IncFsFileId fileId, char buffer[], in IncFs_GetMetadataById() argument
799 auto name = android::incfs::path::join(root, android::incfs::kIndexDir, toStringImpl(fileId)); in IncFs_GetMetadataById()
852 IncFsErrorCode IncFs_GetSignatureById(const IncFsControl* control, IncFsFileId fileId, in IncFs_GetSignatureById() argument
862 auto file = android::incfs::path::join(root, android::incfs::kIndexDir, toStringImpl(fileId)); in IncFs_GetSignatureById()