Home
last modified time | relevance | path

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

/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/volume/src/
H A Dvolume_manager_service.cpp54 if (state == VolumeState::REMOVED || state == VolumeState::BAD_REMOVAL) { in OnVolumeStateChanged()
89 volumePtr->SetState(VolumeState::MOUNTED); in OnVolumeMounted()
90 VolumeStateNotify(VolumeState::MOUNTED, volumePtr); in OnVolumeMounted()
104 if (volumePtr->GetState() != VolumeState::UNMOUNTED) { in Mount()
114 volumePtr->SetState(VolumeState::UNMOUNTED); in Mount()
117 volumePtr->SetState(VolumeState::UNMOUNTED); in Mount()
133 if (volumePtr->GetState() != VolumeState::MOUNTED) { in Unmount()
139 volumePtr->SetState(VolumeState::EJECTING); in Unmount()
142 volumePtr->SetState(VolumeState::UNMOUNTED); in Unmount()
145 volumePtr->SetState(VolumeState::MOUNTED); in Unmount()
[all …]
H A Dnotification.cpp33 void Notification::NotifyVolumeChange(VolumeState notifyCode, std::shared_ptr<VolumeExternal> volum… in NotifyVolumeChange()
46 case VolumeState::REMOVED: in NotifyVolumeChange()
50 case VolumeState::UNMOUNTED: in NotifyVolumeChange()
55 case VolumeState::MOUNTED: in NotifyVolumeChange()
62 case VolumeState::BAD_REMOVAL: in NotifyVolumeChange()
66 case VolumeState::EJECTING: in NotifyVolumeChange()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/volume/test/
H A Dnotification_test.cpp52 notification->NotifyVolumeChange(VolumeState::REMOVED, volume);
76 notification->NotifyVolumeChange(VolumeState::UNMOUNTED, volume);
102 notification->NotifyVolumeChange(VolumeState::MOUNTED, volume);
126 notification->NotifyVolumeChange(VolumeState::BAD_REMOVAL, volume);
150 notification->NotifyVolumeChange(VolumeState::EJECTING, volume);
174 notification->NotifyVolumeChange(VolumeState::CHECKING, volume);
H A Dvolume_manager_service_test.cpp57 vmService->OnVolumeStateChanged(volumeId, VolumeState::BAD_REMOVAL);
109 vc.SetState(VolumeState::MOUNTED);
136 vc.SetState(VolumeState::MOUNTED);
139 vmService->OnVolumeStateChanged(volumeId, VolumeState::REMOVED);
168 vmService->OnVolumeStateChanged(volumeId, VolumeState::BAD_REMOVAL);
217 vmService->OnVolumeStateChanged(volumeId, VolumeState::BAD_REMOVAL);
387 VolumeCore vc(volumeId, fsType, diskId, VolumeState::MOUNTED);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/volume/src/
H A Dvolume_info.cpp68 VolumeState state = REMOVED; in Destroy()
77 … if (client.NotifyVolumeStateChanged(id_, StorageManager::VolumeState::BAD_REMOVAL) != E_OK) { in Destroy()
81 if (client.NotifyVolumeStateChanged(id_, StorageManager::VolumeState::REMOVED) != E_OK) { in Destroy()
154 if (client.NotifyVolumeStateChanged(id_, StorageManager::VolumeState::EJECTING) != E_OK) { in UMount()
165 if (client.NotifyVolumeStateChanged(id_, StorageManager::VolumeState::UNMOUNTED) != E_OK) { in UMount()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/volume/
H A Dvolume_info.h24 enum VolumeState { enum
68 VolumeState mountState_;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/volume/
H A Dvolume_manager_service.h35 void OnVolumeStateChanged(std::string volumeId, VolumeState state);
44 void VolumeStateNotify(VolumeState state, std::shared_ptr<VolumeExternal> volume);
H A Dnotification.h28 void NotifyVolumeChange(VolumeState notifyCode, std::shared_ptr<VolumeExternal> volume);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/ipc/
H A Dstorage_manager_client.h35 int32_t NotifyVolumeStateChanged(std::string volId, StorageManager::VolumeState state);
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/
H A Dvolume_core.h27 enum VolumeState { enum
H A Distorage_manager.h57 virtual int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) = 0;
H A Dstorage_manager_proxy.h49 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/
H A Dstorage_manager_client.cpp118 …torageManagerClient::NotifyVolumeStateChanged(std::string volId, StorageManager::VolumeState state) in NotifyVolumeStateChanged()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/
H A Dstorage_manager_stub_mock.h45 MOCK_METHOD2(NotifyVolumeStateChanged, int32_t(std::string, VolumeState));
H A Dstorage_manager_service_mock.h125 virtual int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override in NotifyVolumeStateChanged()
H A Dstorage_manager_proxy_test.cpp594 int64_t result = proxy->NotifyVolumeStateChanged(volumeId, VolumeState::BAD_REMOVAL);
940 proxy->NotifyVolumeStateChanged(volumeId, VolumeState::BAD_REMOVAL);
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/ipc/
H A Dstorage_manager.h54 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/
H A Dstorage_manager_proxy_mock.h49 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/
H A Dstorage_manager_proxy_mock.cpp141 int32_t StorageManagerProxy::NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/
H A Dstoragemanagerproxymock.h121 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override in NotifyVolumeStateChanged()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/
H A Dmock_storage_manager_service.h121 virtual int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override in NotifyVolumeStateChanged()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/src/
H A Dstorage_manager_stub.cpp588 VolumeState state = VolumeState(data.ReadInt32()); in HandleNotifyVolumeStateChanged()
H A Dstorage_manager.cpp247 int32_t StorageManager::NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/account_iam/
H A Daccount_iam_manager_test.cpp152 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/
H A Dstorage_manager_proxy.cpp626 int32_t StorageManagerProxy::NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()