/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/ |
H A D | disk.cpp | 20 Disk::Disk() {} in Disk() function in OHOS::StorageManager::Disk 22 Disk::Disk(std::string diskId, int64_t sizeBytes, std::string sysPath, std::string vendor, int32_t … in Disk() function in OHOS::StorageManager::Disk 25 std::string Disk::GetDiskId() in GetDiskId() 30 int64_t Disk::GetSizeBytes() in GetSizeBytes() 35 std::string Disk::GetSysPath() in GetSysPath() 40 std::string Disk::GetVendor() in GetVendor() 45 int32_t Disk::GetFlag() in GetFlag() 50 void Disk::SetFlag(int32_t flag) in SetFlag() 55 bool Disk::Marshalling(Parcel &parcel) const in Marshalling() 80 std::unique_ptr<Disk> Disk::Unmarshalling(Parcel &parcel) in Unmarshalling() [all …]
|
H A D | storage_manager_proxy.cpp | 734 int32_t StorageManagerProxy::NotifyDiskCreated(Disk disk) in NotifyDiskCreated() 799 int32_t StorageManagerProxy::GetAllDisks(std::vector<Disk> &vecOfDisk) in GetAllDisks() 825 std::unique_ptr<Disk> disk = Disk::Unmarshalling(reply); in GetAllDisks() 1084 int32_t StorageManagerProxy::GetDiskById(std::string diskId, Disk &disk) in GetDiskById() 1103 disk = *Disk::Unmarshalling(reply); in GetDiskById()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/disk/test/ |
H A D | disk_manager_service_test.cpp | 53 std::shared_ptr<Disk> result; 54 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 84 std::shared_ptr<Disk> result; 85 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 116 std::shared_ptr<Disk> result; 117 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 149 std::shared_ptr<Disk> result; 150 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 179 std::shared_ptr<Disk> result; 180 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/disk/src/ |
H A D | disk_manager_service.cpp | 28 std::shared_ptr<Disk> DiskManagerService::GetDiskById(std::string diskId) in GetDiskById() 36 void DiskManagerService::OnDiskCreated(Disk disk) in OnDiskCreated() 43 auto diskPtr = std::make_shared<Disk>(disk); in OnDiskCreated() 68 std::vector<Disk> DiskManagerService::GetAllDisks() in GetAllDisks() 70 std::vector<Disk> result; in GetAllDisks() 72 Disk disk = *(it->second); in GetAllDisks() 78 int32_t DiskManagerService::GetDiskById(std::string diskId, Disk &disk) in GetDiskById()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/disk/ |
H A D | disk_manager_service.h | 30 std::shared_ptr<Disk> GetDiskById(std::string diskId); 32 void OnDiskCreated(Disk disk); 34 std::vector<Disk> GetAllDisks(); 35 int32_t GetDiskById(std::string diskId, Disk &disk); 37 StorageService::StorageRlMap<std::string, std::shared_ptr<Disk>> diskMap_;
|
/ohos5.0/base/update/updater/services/fs_manager/ |
H A D | do_partition.cpp | 81 static int BlockSync(const Disk &disk) in BlockSync() 100 static int BlockDiskOpen(Disk &disk) in BlockDiskOpen() 109 static void BlockDiskClose(Disk &disk) in BlockDiskClose() 119 static bool DoRmPartition(const Disk &disk, int partn) in DoRmPartition() 167 static bool DoAddPartition(const Disk &disk, Partition &part) in DoAddPartition() 183 static void DestroyDiskPartitions(Disk &disk) in DestroyDiskPartitions() 195 static void DestroyDiskDevices(const Disk &disk) in DestroyDiskDevices() 277 static bool AddPartitions(const Disk &disk, const PartitonList &ulist, int &partitionAddedCounter) in AddPartitions() 310 static bool RemovePartitions(const Disk &disk, int &partitionRemovedCounter) in RemovePartitions() 352 int AdjustPartitions(Disk *disk, int &partitionChangedCounter) in AdjustPartitions() [all …]
|
H A D | partitions.cpp | 27 static struct Disk *g_disks; 291 static Disk* NewBlockDisk(const BlockDevice &dev, const DiskType diskType) in NewBlockDisk() 293 Disk *disk = nullptr; in NewBlockDisk() 295 disk = static_cast<Disk*>(calloc (1, sizeof (Disk))); in NewBlockDisk() 310 struct Disk *disk = nullptr; in DiskAlloc() 380 struct Partition* GetPartition(const Disk &disk, int partn) in GetPartition() 401 struct Disk* disk = nullptr; in ProbeAllPartitions() 420 Disk* GetRegisterBlockDisk(const std::string &path) in GetRegisterBlockDisk() 425 Disk *p = nullptr; in GetRegisterBlockDisk()
|
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/ |
H A D | disk.h | 27 class Disk : public Parcelable { 29 Disk(); 30 …Disk(std::string diskId, int64_t sizeBytes, std::string sysPath, std::string vendor, int32_t flag); 40 static std::unique_ptr<Disk> Unmarshalling(Parcel &parcel);
|
H A D | istorage_manager.h | 61 virtual int32_t NotifyDiskCreated(Disk disk) = 0; 64 virtual int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) = 0; 69 virtual int32_t GetDiskById(std::string diskId, Disk &disk) = 0;
|
H A D | storage_manager_proxy.h | 53 int32_t NotifyDiskCreated(Disk disk) override; 56 int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override; 61 int32_t GetDiskById(std::string diskId, Disk &disk) override;
|
/ohos5.0/base/update/updater/services/include/fs_manager/ |
H A D | partitions.h | 94 struct Disk { struct 110 extern Disk *GetRegisterBlockDisk(const std::string &path); argument 111 extern struct Partition *GetPartition(const Disk &disk, int partn);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/test/ |
H A D | disk_test.cpp | 50 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 82 Disk disk(diskId, sizeBytes, sysPath, vendor, flag); 116 Disk disk("400", 4000, "/", "", SD_FLAG);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/ |
H A D | storage_manager_stub_mock.h | 49 MOCK_METHOD1(NotifyDiskCreated, int32_t(Disk)); 52 MOCK_METHOD1(GetAllDisks, int32_t(std::vector<Disk> &)); 57 MOCK_METHOD2(GetDiskById, int32_t(std::string, Disk &));
|
H A D | storage_manager_service_mock.h | 145 virtual int32_t NotifyDiskCreated(Disk disk) override in NotifyDiskCreated() 160 virtual int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override in GetAllDisks() 185 virtual int32_t GetDiskById(std::string diskId, Disk &disk) override in GetDiskById()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/ipc/ |
H A D | storage_manager.h | 61 int32_t NotifyDiskCreated(Disk disk) override; 64 int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override; 70 int32_t GetDiskById(std::string diskId, Disk &disk) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/ |
H A D | storage_manager_proxy_mock.h | 53 int32_t NotifyDiskCreated(Disk disk) override; 56 int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override; 61 int32_t GetDiskById(std::string diskId, Disk &disk) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/ |
H A D | storage_manager_proxy_mock.cpp | 161 int32_t StorageManagerProxy::NotifyDiskCreated(Disk disk) in NotifyDiskCreated() 176 int32_t StorageManagerProxy::GetAllDisks(std::vector<Disk> &vecOfDisk) in GetAllDisks() 231 int32_t StorageManagerProxy::GetDiskById(std::string diskId, Disk &disk) in GetDiskById()
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/ |
H A D | storagemanagerproxymock.h | 141 int32_t NotifyDiskCreated(Disk disk) override in NotifyDiskCreated() 156 int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override in GetAllDisks() 181 int32_t GetDiskById(std::string diskId, Disk &disk) override in GetDiskById()
|
H A D | storagemanagerproxy_fuzzer.cpp | 37 Disk disk; in StorageManagerProxyFuzzTest() 90 std::vector<Disk> vecOfDisk; in StorageManagerProxyGetFuzzTest()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/ |
H A D | mock_storage_manager_service.h | 141 virtual int32_t NotifyDiskCreated(Disk disk) override in NotifyDiskCreated() 156 virtual int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) override in GetAllDisks() 181 virtual int32_t GetDiskById(std::string diskId, Disk &disk) override in GetDiskById()
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/disk_fuzzer/ |
H A D | disk_fuzzer.cpp | 27 StorageManager::Disk disk; in FileUtilFuzzTest()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/ |
H A D | storage_manager_client.cpp | 67 StorageManager::Disk disk(diskInfo.GetId(), diskInfo.GetDevDSize(), in NotifyDiskCreated()
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-file-du.md | 45 Disk space occupied by **testfile**.
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/ |
H A D | storage_manager.cpp | 289 int32_t StorageManager::NotifyDiskCreated(Disk disk) in NotifyDiskCreated() 323 int32_t StorageManager::GetAllDisks(std::vector<Disk> &vecOfDisk) in GetAllDisks() 379 int32_t StorageManager::GetDiskById(std::string diskId, Disk &disk) in GetDiskById()
|
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
H A D | account_iam_manager_test.cpp | 172 int32_t NotifyDiskCreated(Disk disk) in NotifyDiskCreated() 187 int32_t GetAllDisks(std::vector<Disk> &vecOfDisk) in GetAllDisks() 212 int32_t GetDiskById(std::string diskId, Disk &disk) in GetDiskById()
|