Home
last modified time | relevance | path

Searched refs:Partition (Results 1 – 25 of 69) sorted by relevance

123

/ohos5.0/base/update/updater/services/flashd/
H A Dpartition.h24 class Partition {
26 explicit Partition(const std::string &devName) : devName_(devName) {} in Partition() function
27 Partition(const std::string &devName, std::unique_ptr<FlashdWriter> writer) : devName_(devName), in Partition() function
29 ~Partition() {}; in ~Partition()
H A Dpartition.cpp28 int Partition::DoFlash(const uint8_t *buffer, int bufferSize) const in DoFlash()
42 int Partition::DoErase() const in DoErase()
76 int Partition::DoFormat() const in DoFormat()
92 uint64_t Partition::GetBlockDeviceSize(int fd) const in GetBlockDeviceSize()
/ohos5.0/base/update/updater/test/fuzztest/dopartitions_fuzzer/
H A Ddopartitions_fuzzer.cpp29 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition()
43 struct Partition myPaty; in FuzzDoPartitions()
44 (void)memset_s(&myPaty, sizeof(struct Partition), 0, sizeof(struct Partition)); in FuzzDoPartitions()
/ohos5.0/base/update/updater/services/include/fs_manager/
H A Dpartitions.h67 struct Partition;
68 using PartitonList = std::vector<struct Partition *>;
82 struct Partition { struct
111 extern struct Partition *GetPartition(const Disk &disk, int partn); argument
/ohos5.0/base/update/updater/services/fs_manager/
H A Ddo_partition.cpp39 static int BlkpgPartCommand(const Partition &part, struct blkpg_partition &pg, int op) in BlkpgPartCommand()
57 static int DoUmountDiskPartition(const Partition &part) in DoUmountDiskPartition()
90 static int BlkpgRemovePartition(const Partition &part) in BlkpgRemovePartition()
121 Partition *part = nullptr; in DoRmPartition()
141 static int BlkpgAddPartition(Partition &part) in BlkpgAddPartition()
167 static bool DoAddPartition(const Disk &disk, Partition &part) in DoAddPartition()
244 std::sort(nlist.begin(), nlist.end(), [](const struct Partition *a, const struct Partition *b) { in WriteDiskPartitionToMisc()
H A Dpartitions.cpp327 static struct Partition* NewPartition(const BlockDevice &dev, int partn) in NewPartition()
329 Partition* part = (Partition*) calloc (1, sizeof (Partition)); in NewPartition()
380 struct Partition* GetPartition(const Disk &disk, int partn) in GetPartition()
382 struct Partition *part = nullptr; in GetPartition()
407 struct Partition* part = nullptr; in ProbeAllPartitions()
H A Dcmp_partition.cpp22 static PartitionChangeType ComparePartition(const PartitonList &plist, struct Partition &newp) in ComparePartition()
25 struct Partition *oldp = nullptr; in ComparePartition()
/ohos5.0/base/update/updater/test/unittest/fs_manager/
H A Ddo_partition_unittest.cpp68 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition()
82 struct Partition myPaty[PARTITION_NUMBER];
83 EXPECT_EQ(memset_s(myPaty, sizeof(struct Partition) * PARTITION_NUMBER, 0,
84 sizeof(struct Partition) * PARTITION_NUMBER), 0);
/ohos5.0/base/update/updater/services/updater_binary/
H A Dupdate_partitions.cpp50 bool UpdatePartitions::SetPartitionInfo(const cJSON *partitions, int idx, struct Partition *myParti… in SetPartitionInfo()
115 …struct Partition* myPartition = static_cast<struct Partition*>(calloc(1, sizeof(struct Partition))… in ParsePartitionInfo()
H A Dupdate_partitions.h33 bool SetPartitionInfo(const cJSON* partitions, int idx, struct Partition* myPartition) const;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/disk/src/
H A Ddisk_manager_service.cpp56 int32_t DiskManagerService::Partition(std::string diskId, int32_t type) in Partition() function in OHOS::StorageManager::DiskManagerService
64 int32_t err = sdCommunication->Partition(diskId, type); in Partition()
/ohos5.0/base/update/updater/test/unittest/flashd_test/
H A Dflashd_unittest.cpp255 Partition partTest(partitionName);
263 Partition partTest(partitionName);
278 … std::unique_ptr<Partition> partition_ = std::make_unique<Partition>(partName, std::move(writer));
286 partition_ = std::make_unique<Partition>(partName, std::move(writer));
298 Partition partTest(partitionName);
357 Partition partTest(partitionName);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/disk/test/
H A Ddisk_info_test.cpp331 EXPECT_CALL(*mock, Partition()).WillOnce(testing::Return(E_OK));
332 int ret = mock->Partition();
364 EXPECT_CALL(*mock, Partition()).WillOnce(testing::Return(E_ERR));
365 int ret = mock->Partition();
666 int ret = diskInfo->Partition();
763 int ret = diskInfo->Partition();
H A Ddisk_info_test_mock.h33 MOCK_METHOD0(Partition, int(void));
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dvolumemanager_napi.cpp38 DECLARE_NAPI_FUNCTION("partition", Partition), in VolumeManagerExport()
H A Dstorage_manager_connect.cpp293 int32_t StorageManagerConnect::Partition(std::string diskId, int32_t type) in Partition() function in OHOS::StorageManager::StorageManagerConnect
304 return storageManager_->Partition(diskId, type); in Partition()
/ohos5.0/base/update/updater/services/flashd/daemon/
H A Dflash_commander.h36 std::unique_ptr<Partition> partition_ = {};
H A Derase_commander.cpp59 Partition part(partitionName); in DoErase()
H A Dformat_commander.cpp70 Partition part(partitionName); in DoFormat()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/disk/
H A Ddisk_manager_service.h31 int32_t Partition(std::string diskId, int32_t type);
/ohos5.0/foundation/filemanagement/storage_service/interfaces/kits/js/storage_manager/include/
H A Dvolumemanager_n_exporter.h32 napi_value Partition(napi_env env, napi_callback_info info);
H A Dstorage_manager_connect.h50 int32_t Partition(std::string diskId, int32_t type);
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-security-selinux-sample-file.md3 ## File in a Read-Only Partition
19 ## File in a Read/Write Partition
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/disk/
H A Ddisk_info.h50 int Partition();
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/disk/test/
H A Ddisk_manager_service_test.cpp273 result = dmService->Partition(diskId, type);
303 result = dmService->Partition(diskId, type);

123