/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | storage_proxy.cpp | 24 StorageProxy::StorageProxy(ICloudSyncStorageInterface *iCloud) in StorageProxy() function in DistributedDB::StorageProxy 31 std::shared_ptr<StorageProxy> StorageProxy::GetCloudDb(ICloudSyncStorageInterface *iCloud) in GetCloudDb() 33 std::shared_ptr<StorageProxy> proxy = std::make_shared<StorageProxy>(iCloud); in GetCloudDb() 38 void StorageProxy::Init() in Init() 43 int StorageProxy::Close() in Close() 139 int StorageProxy::Commit() in Commit() 152 int StorageProxy::Rollback() in Rollback() 504 int StorageProxy::ClearAllTempSyncTrigger() in ClearAllTempSyncTrigger() 609 void StorageProxy::OnSyncFinish() in OnSyncFinish() 618 void StorageProxy::OnUploadStart() in OnUploadStart() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/storage/ |
H A D | storage_test.cpp | 45 StorageProxy* firstTestGetInstance; 46 firstTestGetInstance = StorageProxy::GetInstance(); 53 StorageProxy* secondTestGetInstance; 54 secondTestGetInstance = StorageProxy::GetInstance(); 70 StorageProxy::GetInstance()->SetDelegate(nullptr); 72 RefPtr<Storage> stroage = StorageProxy::GetInstance()->GetStorage(); 89 StorageProxy::GetInstance()->SetDistributedDelegate(nullptr); 94 …RefPtr<Storage> distributedStorage = StorageProxy::GetInstance()->GetStorage(testSessionId, notifi… 111 StorageProxy::GetInstance()->SetDelegate(std::make_unique<MockStorageProxyImpl>()); 113 RefPtr<Storage> stroage = StorageProxy::GetInstance()->GetStorage(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/storage/ |
H A D | storage_proxy.cpp | 21 StorageProxy* StorageProxy::inst_ = nullptr; 23 StorageProxy* StorageProxy::GetInstance() in GetInstance() 26 inst_ = new StorageProxy(); in GetInstance() 31 void StorageProxy::SetDelegate(std::unique_ptr<StorageInterface>&& delegate) in SetDelegate() 36 void StorageProxy::SetDistributedDelegate(std::unique_ptr<StorageInterface>&& delegate) in SetDistributedDelegate() 41 RefPtr<Storage> StorageProxy::GetStorage() const in GetStorage() 47 RefPtr<Storage> StorageProxy::GetStorage(const std::string& sessionId, in GetStorage()
|
H A D | storage_proxy.h | 24 class ACE_FORCE_EXPORT StorageProxy : public StorageInterface { 26 ACE_EXPORT static StorageProxy* GetInstance(); 32 StorageProxy() = default; 33 ~StorageProxy() = default; 38 static StorageProxy* inst_;
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/src/ |
H A D | napi_storage.cpp | 52 StorageProxy::StorageProxy(std::shared_ptr<OHOS::NativePreferences::Preferences> &value) in StorageProxy() function in OHOS::StorageJsKit::StorageProxy 57 StorageProxy::~StorageProxy() in ~StorageProxy() 67 StorageProxy *obj = static_cast<StorageProxy *>(nativeObject); in Destructor() 149 StorageProxy *obj = new (std::nothrow) StorageProxy(preference); in New() 216 StorageProxy *obj = nullptr; in GetValueSync() 358 StorageProxy *obj = reinterpret_cast<StorageProxy *>(context->boundObj); in GetValue() 448 StorageProxy *obj = reinterpret_cast<StorageProxy *>(context->boundObj); in SetValue() 503 StorageProxy *obj = reinterpret_cast<StorageProxy *>(context->boundObj); in Delete() 551 StorageProxy *obj = reinterpret_cast<StorageProxy *>(context->boundObj); in HasKey() 576 StorageProxy *obj = reinterpret_cast<StorageProxy *>(context->boundObj); in Flush() [all …]
|
H A D | entry_point_storage.cpp | 28 StorageProxy::Init(env, exports); in Init()
|
H A D | napi_storage_helper.cpp | 47 NAPI_CALL(env, StorageProxy::NewInstance(env, args[0], &instance)); in GetStorageSync() 87 auto ret = StorageProxy::NewInstance(env, path, &result); in GetStorage()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_persistent.cpp | 72 if (!StorageProxy::GetInstance()->GetStorage()) { in Set() 76 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in Set() 89 auto storage = StorageProxy::GetInstance()->GetStorage(); in Get() 117 if (!StorageProxy::GetInstance()->GetStorage()) { in Has() 121 std::string value = StorageProxy::GetInstance()->GetStorage()->GetString(key); in Has() 136 if (!StorageProxy::GetInstance()->GetStorage()) { in Delete() 140 StorageProxy::GetInstance()->GetStorage()->Delete(key); in Delete() 150 if (!StorageProxy::GetInstance()->GetStorage()) { in Clear() 154 StorageProxy::GetInstance()->GetStorage()->Clear(); in Clear()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/ |
H A D | cj_persistent_storage_ffi.cpp | 34 std::string valueStr = StorageProxy::GetInstance()->GetStorage()->GetString(key); in GetValueFromStorage() 49 if (!StorageProxy::GetInstance()->GetStorage()) { in SetValueToStorage() 53 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in SetValueToStorage() 192 StorageProxy::GetInstance()->GetStorage()->Delete(key); in FfiOHOSAceFrameworkPersistentDelete() 206 StorageProxy::GetInstance()->GetStorage()->Clear(); in FfiOHOSAceFrameworkPersistentClear()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/include/ |
H A D | napi_storage.h | 33 class StorageProxy { 41 explicit StorageProxy(std::shared_ptr<OHOS::NativePreferences::Preferences> &value); 42 ~StorageProxy();
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | storage_proxy.h | 33 class StorageProxy { 35 StorageProxy(ICloudSyncStorageInterface *iCloud); 36 virtual ~StorageProxy() {}; in ~StorageProxy() 38 static std::shared_ptr<StorageProxy> GetCloudDb(ICloudSyncStorageInterface *iCloud);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/ |
H A D | distributeddb_cloud_meta_data_test.cpp | 44 std::shared_ptr<StorageProxy> g_storageProxy = nullptr; 87 std::shared_ptr<StorageProxy> GetStorageProxy(ICloudSyncStorageInterface *store) in GetStorageProxy() 89 return StorageProxy::GetCloudDb(store); in GetStorageProxy() 217 StorageProxy proxyObj(nullptr); 276 StorageProxy proxyObj(nullptr);
|
H A D | distributeddb_cloud_save_cloud_data_test.cpp | 251 std::shared_ptr<StorageProxy> GetStorageProxy(ICloudSyncStorageInterface *store) in GetStorageProxy() 253 return StorageProxy::GetCloudDb(store); in GetStorageProxy() 269 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); in GetInfoByPrimaryKeyOrGidTest() 460 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); in VbucketWithoutPrimaryDataTest() 537 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); in PrimaryKeyCollateTest() 840 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); in SaveCloudDataTest() 1064 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); 1097 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); 1149 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); 1183 std::shared_ptr<StorageProxy> storageProxy = GetStorageProxy(g_cloudStore); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | capability_registry.cpp | 30 StorageProxy::GetInstance()->SetDelegate(std::make_unique<StorageProxyImpl>()); in Register()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/ |
H A D | storage_fuzzer.cpp | 52 std::shared_ptr<StorageProxy> g_storageProxy = nullptr; 158 std::shared_ptr<StorageProxy> GetStorageProxy(ICloudSyncStorageInterface *store) in GetStorageProxy() 160 return StorageProxy::GetCloudDb(store); in GetStorageProxy()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/ |
H A D | virtual_cloud_syncer.h | 22 explicit VirtualCloudSyncer(std::shared_ptr<StorageProxy> storageProxy);
|
H A D | distributeddb_cloud_db_proxy_test.cpp | 302 auto cloudSyncer = new(std::nothrow) VirtualCloudSyncer(StorageProxy::GetCloudDb(iCloud.get())); 394 auto cloudSyncer = new(std::nothrow) VirtualCloudSyncer(StorageProxy::GetCloudDb(iCloud.get())); 637 auto cloudSyncer = new(std::nothrow) VirtualCloudSyncer(StorageProxy::GetCloudDb(iCloud.get())); 677 auto cloudSyncer = new(std::nothrow) VirtualCloudSyncer(StorageProxy::GetCloudDb(iCloud.get())); 716 auto cloudSyncer = new(std::nothrow) VirtualCloudSyncer(StorageProxy::GetCloudDb(iCloud.get()));
|
H A D | virtual_cloud_syncer.cpp | 19 VirtualCloudSyncer::VirtualCloudSyncer(std::shared_ptr<StorageProxy> storageProxy) in VirtualCloudSyncer()
|
H A D | cloud_syncer_test.h | 36 class TestStorageProxy : public StorageProxy { 38 explicit TestStorageProxy(ICloudSyncStorageInterface *iCloud) : StorageProxy(iCloud) in TestStorageProxy()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/ |
H A D | cloud_syncer.h | 43 explicit CloudSyncer(std::shared_ptr<StorageProxy> storageProxy, bool isKvScene = false, 451 std::shared_ptr<StorageProxy> storageProxy_;
|
H A D | cloud_syncer.cpp | 38 … std::shared_ptr<StorageProxy> storageProxy, bool isKvScene, SingleVerConflictResolvePolicy policy) in CloudSyncer()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | sync_able_kvdb.cpp | 529 …StorageProxy::GetCloudDb(cloudStorage), true, static_cast<SingleVerConflictResolvePolicy>(conflict… in StartCloudSyncer()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_cloud_syncable_storage_test.cpp | 71 std::shared_ptr<StorageProxy> g_storageProxy = nullptr; 376 std::shared_ptr<StorageProxy> GetStorageProxy(ICloudSyncStorageInterface *store) in GetStorageProxy() 378 return StorageProxy::GetCloudDb(store); in GetStorageProxy()
|
/ohos5.0/foundation/arkui/ace_engine/build/ |
H A D | libace.map | 246 OHOS::Ace::StorageProxy::*;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_relational_store.cpp | 305 … cloudSyncer_ = new (std::nothrow) CloudSyncer(StorageProxy::GetCloudDb(storageEngine_), false); in Open()
|