Home
last modified time | relevance | path

Searched refs:GetStorage (Results 1 - 18 of 18) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_persistent.cpp71 if (!StorageProxy::GetInstance()->GetStorage()) { in Set()
75 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in Set()
88 auto storage = StorageProxy::GetInstance()->GetStorage(); in Get()
116 if (!StorageProxy::GetInstance()->GetStorage()) { in Has()
120 std::string value = StorageProxy::GetInstance()->GetStorage()->GetString(key); in Has()
135 if (!StorageProxy::GetInstance()->GetStorage()) { in Delete()
139 StorageProxy::GetInstance()->GetStorage()->Delete(key); in Delete()
149 if (!StorageProxy::GetInstance()->GetStorage()) { in Clear()
153 StorageProxy::GetInstance()->GetStorage()->Clear(); in Clear()
/foundation/arkui/ace_engine/frameworks/core/common/storage/
H A Dstorage_proxy.cpp41 RefPtr<Storage> StorageProxy::GetStorage() const in GetStorage() function in OHOS::Ace::StorageProxy
44 return delegate_->GetStorage(); in GetStorage()
47 RefPtr<Storage> StorageProxy::GetStorage(const std::string& sessionId, in GetStorage() function in OHOS::Ace::StorageProxy
51 return distributedDelegate_->GetStorage(sessionId, std::move(notifier), taskExecutor); in GetStorage()
H A Dstorage_interface.h29 virtual RefPtr<Storage> GetStorage() const in GetStorage() function in OHOS::Ace::StorageInterface
34 virtual RefPtr<Storage> GetStorage(const std::string& sessionId, std::function<void(const std::string&)>&& notifier, in GetStorage() function in OHOS::Ace::StorageInterface
H A Dstorage_proxy.h29 RefPtr<Storage> GetStorage() const override;
30 RefPtr<Storage> GetStorage(const std::string& sessionId, std::function<void(const std::string&)>&& notifier,
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dmemory_file.cpp55 if ((index_ + toRead) > buffer_->GetStorage().size()) { in Read()
56 toRead = buffer_->GetStorage().size() - index_; in Read()
61 if (CloneData(buffer, static_cast<size_t>(count), &(buffer_->GetStorage().data()[index_]), in Read()
82 return buffer_->GetStorage().size(); in GetLength()
87 if (aOffset < buffer_->GetStorage().size()) { in Seek()
H A Dmemory_file.h38 const ByteBuffer& GetStorage() const in GetStorage() function in MemoryFileStorage
/foundation/arkui/ace_engine/test/unittest/core/common/storage/
H A Dstorage_test.cpp67 * @tc.steps: step2. call the GetStorage and take the return value with delegate. in HWTEST_F()
72 RefPtr<Storage> stroage = StorageProxy::GetInstance()->GetStorage(); in HWTEST_F()
86 * @tc.steps: step2. call the GetStorage and take the return value with delegate. in HWTEST_F()
94 RefPtr<Storage> distributedStorage = StorageProxy::GetInstance()->GetStorage(testSessionId, notifier, taskExecutor); in HWTEST_F()
108 * @tc.steps: step2. call the GetStorage and take the return value with delegate. in HWTEST_F()
113 RefPtr<Storage> stroage = StorageProxy::GetInstance()->GetStorage(); in HWTEST_F()
129 * @tc.steps: step2. call the GetStorage and take the return value with delegate. in HWTEST_F()
137 RefPtr<Storage> distributedStorage = StorageProxy::GetInstance()->GetStorage(testSessionId, notifier, taskExecutor); in HWTEST_F()
H A Dmock_storage.h93 RefPtr<Storage> GetStorage() const override
104 RefPtr<Storage> GetStorage(const std::string& sessionId, std::function<void(const std::string&)>&& notifier,
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/
H A Dcj_persistent_storage_ffi.cpp31 std::string valueStr = StorageProxy::GetInstance()->GetStorage()->GetString(key); in GetValueFromStorage()
46 if (!StorageProxy::GetInstance()->GetStorage()) { in SetValueToStorage()
50 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in SetValueToStorage()
189 StorageProxy::GetInstance()->GetStorage()->Delete(key); in FfiOHOSAceFrameworkPersistentDelete()
203 StorageProxy::GetInstance()->GetStorage()->Clear(); in FfiOHOSAceFrameworkPersistentClear()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_storage_manager.cpp95 shared_ptr<Storage> MtpStorageManager::GetStorage(uint32_t id) in GetStorage() function in OHOS::Media::MtpStorageManager
112 result = (GetStorage(id) != nullptr); in HasStorage()
H A Dmtp_operation_utils.cpp587 shared_ptr<Storage> storage = MtpStorageManager::GetInstance()->GetStorage(context_->storageInfoID); in GetStorageInfo()
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dmtp_storage_manager.h40 std::shared_ptr<Storage> GetStorage(uint32_t id);
/foundation/arkui/ace_engine/adapter/ohos/capability/preference/
H A Dstorage_impl.h65 RefPtr<Storage> GetStorage() const override;
H A Dstorage_impl.cpp67 RefPtr<Storage> StorageProxyImpl::GetStorage() const in GetStorage() function in OHOS::Ace::StorageProxyImpl
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/
H A Dnapi_storage_helper.cpp70 napi_value GetStorage(napi_env env, napi_callback_info info) in GetStorage() function
72 LOG_DEBUG("GetStorage start"); in GetStorage()
95 return AsyncCall::Call(env, context, "GetStorage"); in GetStorage()
217 DECLARE_NAPI_FUNCTION("getStorage", GetStorage), in InitPreferenceHelper()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dohos_file.h112 const std::unique_ptr<uint8_t[]>& GetStorage() const in GetStorage() function in OhosFileStorage
H A Dohos_file.cpp207 if (CloneData(buffer, static_cast<size_t>(count), &(buffer_->GetStorage()[index_]), in Read()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_mtp_test/src/
H A Dmock_mtp_operation_utils.cpp480 std::shared_ptr<Storage> storage = MtpStorageManager::GetInstance()->GetStorage(context_->storageInfoID); in GetStorageInfo()

Completed in 11 milliseconds