/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/volume/src/ |
H A D | volume_manager_service.cpp | 54 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 D | notification.cpp | 33 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 D | notification_test.cpp | 52 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 D | volume_manager_service_test.cpp | 57 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 D | volume_info.cpp | 68 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 D | volume_info.h | 24 enum VolumeState { enum 68 VolumeState mountState_;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/volume/ |
H A D | volume_manager_service.h | 35 void OnVolumeStateChanged(std::string volumeId, VolumeState state); 44 void VolumeStateNotify(VolumeState state, std::shared_ptr<VolumeExternal> volume);
|
H A D | notification.h | 28 void NotifyVolumeChange(VolumeState notifyCode, std::shared_ptr<VolumeExternal> volume);
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/ipc/ |
H A D | storage_manager_client.h | 35 int32_t NotifyVolumeStateChanged(std::string volId, StorageManager::VolumeState state);
|
/ohos5.0/foundation/filemanagement/storage_service/interfaces/innerkits/storage_manager/native/ |
H A D | volume_core.h | 27 enum VolumeState { enum
|
H A D | istorage_manager.h | 57 virtual int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) = 0;
|
H A D | storage_manager_proxy.h | 49 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/ipc/src/ |
H A D | storage_manager_client.cpp | 118 …torageManagerClient::NotifyVolumeStateChanged(std::string volId, StorageManager::VolumeState state) in NotifyVolumeStateChanged()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/ipc/test/ |
H A D | storage_manager_stub_mock.h | 45 MOCK_METHOD2(NotifyVolumeStateChanged, int32_t(std::string, VolumeState));
|
H A D | storage_manager_service_mock.h | 125 virtual int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override in NotifyVolumeStateChanged()
|
H A D | storage_manager_proxy_test.cpp | 594 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 D | storage_manager.h | 54 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/mock/ |
H A D | storage_manager_proxy_mock.h | 49 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) override;
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/mock/ |
H A D | storage_manager_proxy_mock.cpp | 141 int32_t StorageManagerProxy::NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
|
/ohos5.0/foundation/filemanagement/storage_service/test/fuzztest/storagemanagerproxy_fuzzer/ |
H A D | storagemanagerproxymock.h | 121 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 D | mock_storage_manager_service.h | 121 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 D | storage_manager_stub.cpp | 588 VolumeState state = VolumeState(data.ReadInt32()); in HandleNotifyVolumeStateChanged()
|
H A D | storage_manager.cpp | 247 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 D | account_iam_manager_test.cpp | 152 int32_t NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/ |
H A D | storage_manager_proxy.cpp | 626 int32_t StorageManagerProxy::NotifyVolumeStateChanged(std::string volumeId, VolumeState state) in NotifyVolumeStateChanged()
|