/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_manager.cpp | 32 std::shared_ptr<SingleKvStore> StoreManager::GetKVStore(const AppId &appId, const StoreId &storeId, in GetKVStore() argument 36 ZLOGD("appId:%{public}s, storeId:%{public}s type:%{public}d area:%{public}d dir:%{public}s", appId.appId.c_str(), in GetKVStore() 39 if (!appId.IsValid() || !storeId.IsValid() || !options.IsValidType()) { in GetKVStore() 46 status = service->BeforeCreate(appId, storeId, options); in GetKVStore() 49 ZLOGE("appId:%{public}s, storeId:%{public}s type:%{public}d encrypt:%{public}d", appId.appId.c_str(), in GetKVStore() 54 auto kvStore = StoreFactory::GetInstance().GetOrOpenStore(appId, storeI in GetKVStore() 83 GetSecretKeyFromService(const AppId &appId, const StoreId &storeId, const std::string &path) GetSecretKeyFromService() argument 111 CloseKVStore(const AppId &appId, const StoreId &storeId) CloseKVStore() argument 121 CloseAllKVStore(const AppId &appId) CloseAllKVStore() argument 131 GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) GetStoreIds() argument 145 Delete(const AppId &appId, const StoreId &storeId, const std::string &path) Delete() argument 162 PutSwitch(const AppId &appId, const SwitchData &data) PutSwitch() argument 175 GetSwitch(const AppId &appId, const std::string &networkId) GetSwitch() argument 190 SubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer) SubscribeSwitchData() argument 212 UnsubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer) UnsubscribeSwitchData() argument [all...] |
H A D | kvdb_service_client.cpp | 106 Status KVDBServiceClient::GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) in GetStoreIds() argument 110 reply, appId, StoreId(), storeIds); in GetStoreIds() 112 ZLOGE("status:0x%{public}x, appId:%{public}s", status, appId.appId.c_str()); in GetStoreIds() 118 Status KVDBServiceClient::BeforeCreate(const AppId &appId, const StoreId &storeId, const Options &options) in BeforeCreate() argument 122 reply, appId, storeId, options); in BeforeCreate() 124 ZLOGE("status:0x%{public}x appId:%{public}s, storeId:%{public}s", status, appId.appId in BeforeCreate() 130 AfterCreate( const AppId &appId, const StoreId &storeId, const Options &options, const std::vector<uint8_t> &password) AfterCreate() argument 143 Delete(const AppId &appId, const StoreId &storeId) Delete() argument 155 Close(const AppId &appId, const StoreId &storeId) Close() argument 167 Sync(const AppId &appId, const StoreId &storeId, SyncInfo &syncInfo) Sync() argument 179 CloudSync(const AppId &appId, const StoreId &storeId, const SyncInfo &syncInfo) CloudSync() argument 191 NotifyDataChange(const AppId &appId, const StoreId &storeId, uint64_t delay) NotifyDataChange() argument 203 RegServiceNotifier(const AppId &appId, sptr<IKVDBNotifier> notifier) RegServiceNotifier() argument 215 UnregServiceNotifier(const AppId &appId) UnregServiceNotifier() argument 226 SetSyncParam(const AppId &appId, const StoreId &storeId, const KvSyncParam &syncParam) SetSyncParam() argument 238 GetSyncParam(const AppId &appId, const StoreId &storeId, KvSyncParam &syncParam) GetSyncParam() argument 252 EnableCapability(const AppId &appId, const StoreId &storeId) EnableCapability() argument 264 DisableCapability(const AppId &appId, const StoreId &storeId) DisableCapability() argument 276 SetCapability(const AppId &appId, const StoreId &storeId, const std::vector<std::string> &local, const std::vector<std::string> &remote) SetCapability() argument 289 AddSubscribeInfo(const AppId &appId, const StoreId &storeId, const SyncInfo &syncInfo) AddSubscribeInfo() argument 302 RmvSubscribeInfo(const AppId &appId, const StoreId &storeId, const SyncInfo &syncInfo) RmvSubscribeInfo() argument 315 Subscribe(const AppId &appId, const StoreId &storeId, sptr<IKvStoreObserver> observer) Subscribe() argument 328 Unsubscribe(const AppId &appId, const StoreId &storeId, sptr<IKvStoreObserver> observer) Unsubscribe() argument 341 GetBackupPassword( const AppId &appId, const StoreId &storeId, std::vector<uint8_t> &password, int32_t passwordType) GetBackupPassword() argument 355 GetServiceAgent(const AppId &appId) GetServiceAgent() argument 370 PutSwitch(const AppId &appId, const SwitchData &data) PutSwitch() argument 381 GetSwitch(const AppId &appId, const std::string &networkId, SwitchData &data) GetSwitch() argument 394 SubscribeSwitchData(const AppId &appId) SubscribeSwitchData() argument 405 UnsubscribeSwitchData(const AppId &appId) UnsubscribeSwitchData() argument 416 SetConfig(const AppId &appId, const StoreId &storeId, const StoreConfig &storeConfig) SetConfig() argument 428 RemoveDeviceData(const AppId &appId, const StoreId &storeId, const std::string &device) RemoveDeviceData() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvdb_service_stub.cpp | 78 ZLOGE("PERMISSION_DENIED uid:%{public}d appId:%{public}s storeId:%{public}s", storeInfo.uid, in OnRemoteRequest() 82 ZLOGE("Marshal PERMISSION_DENIED code:%{public}u appId:%{public}s storeId:%{public}s", code, in OnRemoteRequest() 91 AppId appId; in GetStoreInfo() local 93 if (!ITypesUtil::Unmarshal(data, appId, storeId)) { in GetStoreInfo() 94 ZLOGE("Unmarshal appId:%{public}s storeId:%{public}s", in GetStoreInfo() 95 appId.appId.c_str(), Anonymous::Change(storeId.storeId).c_str()); in GetStoreInfo() 98 appId.appId = Constant::TrimCopy(appId in GetStoreInfo() 117 OnGetStoreIds( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnGetStoreIds() argument 129 OnBeforeCreate( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnBeforeCreate() argument 147 OnAfterCreate( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnAfterCreate() argument 167 OnDelete(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnDelete() argument 178 OnClose(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnClose() argument 189 OnSync(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSync() argument 206 OnCloudSync( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnCloudSync() argument 224 OnNotifyDataChange( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnNotifyDataChange() argument 242 OnRegServiceNotifier( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnRegServiceNotifier() argument 261 OnUnregServiceNotifier( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnUnregServiceNotifier() argument 273 OnSetSyncParam( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSetSyncParam() argument 291 OnGetSyncParam( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnGetSyncParam() argument 304 OnEnableCap( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnEnableCap() argument 316 OnDisableCap( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnDisableCap() argument 328 OnSetCapability( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSetCapability() argument 347 OnAddSubInfo(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnAddSubInfo() argument 365 OnRmvSubInfo(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnRmvSubInfo() argument 383 OnSubscribe( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSubscribe() argument 402 OnUnsubscribe( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnUnsubscribe() argument 421 OnGetBackupPassword( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnGetBackupPassword() argument 442 OnPutSwitch( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnPutSwitch() argument 458 OnGetSwitch( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnGetSwitch() argument 477 OnSubscribeSwitchData( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSubscribeSwitchData() argument 488 OnUnsubscribeSwitchData( const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnUnsubscribeSwitchData() argument 499 OnSetConfig(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnSetConfig() argument 516 OnRemoveDeviceData(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply) OnRemoveDeviceData() argument [all...] |
H A D | kvdb_service_stub.h | 31 const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 32 int32_t OnGetStoreIds(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 33 int32_t OnBeforeCreate(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 34 int32_t OnAfterCreate(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 35 int32_t OnDelete(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 36 int32_t OnClose(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 37 int32_t OnSync(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 38 int32_t OnCloudSync(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 39 int32_t OnRegServiceNotifier(const AppId &appId, const StoreId &storeId, MessageParcel &data, MessageParcel &reply); 41 const AppId &appId, cons [all...] |
H A D | kvdb_service_impl.h | 44 Status GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) override; 45 Status BeforeCreate(const AppId &appId, const StoreId &storeId, const Options &options) override; 46 Status AfterCreate(const AppId &appId, const StoreId &storeId, const Options &options, 48 Status Delete(const AppId &appId, const StoreId &storeId) override; 49 Status Close(const AppId &appId, const StoreId &storeId) override; 50 Status CloudSync(const AppId &appId, const StoreId &storeId, const SyncInfo &syncInfo) override; 51 Status Sync(const AppId &appId, const StoreId &storeId, SyncInfo &syncInfo) override; 52 Status RegServiceNotifier(const AppId &appId, sptr<IKVDBNotifier> notifier) override; 53 Status UnregServiceNotifier(const AppId &appId) override; 54 Status SetSyncParam(const AppId &appId, cons [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/src/ |
H A D | store_manager.cpp | 28 std::shared_ptr<SingleKvStore> StoreManager::GetKVStore(const AppId &appId, const StoreId &storeId, in GetKVStore() argument 31 ZLOGD("appId:%{public}s, storeId:%{public}s type:%{public}d area:%{public}d dir:%{public}s", appId.appId.c_str(), in GetKVStore() 34 if (!appId.IsValid() || !storeId.IsValid() || !options.IsValidType()) { in GetKVStore() 40 auto kvStore = StoreFactory::GetInstance().GetOrOpenStore(appId, storeId, options, status, isCreate); in GetKVStore() 49 Status StoreManager::CloseKVStore(const AppId &appId, const StoreId &storeId) in CloseKVStore() argument 51 ZLOGD("appId:%{public}s, storeId:%{public}s", appId.appId in CloseKVStore() 59 CloseKVStore(const AppId &appId, std::shared_ptr<SingleKvStore> &kvStore) CloseKVStore() argument 70 CloseAllKVStore(const AppId &appId) CloseAllKVStore() argument 80 Delete(const AppId &appId, const StoreId &storeId, const std::string &path) Delete() argument 91 GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) GetStoreIds() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | kvdb_service_client.h | 33 Status GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) override; 34 Status BeforeCreate(const AppId &appId, const StoreId &storeId, const Options &options) override; 35 Status AfterCreate(const AppId &appId, const StoreId &storeId, const Options &options, 37 Status Delete(const AppId &appId, const StoreId &storeId) override; 38 Status Close(const AppId &appId, const StoreId &storeId) override; 39 Status Sync(const AppId &appId, const StoreId &storeId, SyncInfo &syncInfo) override; 40 Status RegServiceNotifier(const AppId &appId, sptr<IKVDBNotifier> notifier) override; 42 Status SetSyncParam(const AppId &appId, const StoreId &storeId, const KvSyncParam &syncParam) override; 43 Status GetSyncParam(const AppId &appId, const StoreId &storeId, KvSyncParam &syncParam) override; 44 Status EnableCapability(const AppId &appId, cons [all...] |
H A D | kvdb_service.h | 49 virtual Status GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds) = 0; 50 virtual Status BeforeCreate(const AppId &appId, const StoreId &storeId, const Options &options) = 0; 52 const AppId &appId, const StoreId &storeId, const Options &options, const std::vector<uint8_t> &password) = 0; 53 virtual Status Delete(const AppId &appId, const StoreId &storeId) = 0; 54 virtual Status Close(const AppId &appId, const StoreId &storeId) = 0; 55 virtual Status Sync(const AppId &appId, const StoreId &storeId, SyncInfo &syncInfo) = 0; 56 virtual Status RegServiceNotifier(const AppId &appId, sptr<IKVDBNotifier> notifier) = 0; 57 virtual Status UnregServiceNotifier(const AppId &appId) = 0; 58 virtual Status SetSyncParam(const AppId &appId, const StoreId &storeId, const KvSyncParam &syncParam) = 0; 59 virtual Status GetSyncParam(const AppId &appId, cons [all...] |
H A D | store_manager.h | 22 std::shared_ptr<SingleKvStore> GetKVStore(const AppId &appId, const StoreId &storeId, const Options &options, 24 Status CloseKVStore(const AppId &appId, const StoreId &storeId); 25 Status CloseAllKVStore(const AppId &appId); 26 Status GetStoreIds(const AppId &appId, std::vector<StoreId> &storeIds); 27 Status Delete(const AppId &appId, const StoreId &storeId, const std::string &path); 28 Status PutSwitch(const AppId &appId, const SwitchData &data); 29 std::pair<Status, SwitchData> GetSwitch(const AppId &appId, const std::string &networkId); 30 Status SubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer); 31 Status UnsubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer); 34 Status GetSecretKeyFromService(const AppId &appId, cons [all...] |
/foundation/distributeddatamgr/kv_store/test/fuzztest/distributedkvdatamanager_fuzzer/ |
H A D | distributedkvdatamanager_fuzzer.cpp | 39 static AppId appId; member 72 appId.appId = "distributedkvdatamanagerfuzzertest"; in SetUpTestCase() 78 create.baseDir = std::string("/data/service/el1/public/database/") + appId.appId; in SetUpTestCase() 81 manager.CloseAllKvStore(appId); in SetUpTestCase() 82 manager.DeleteAllKvStore(appId, create.baseDir); in SetUpTestCase() 87 manager.CloseAllKvStore(appId); in TearDown() 88 manager.DeleteAllKvStore(appId, create.baseDir); in TearDown() 99 manager.GetSingleKvStore(create, appId, storeI in GetKvStoreFuzz() [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/ |
H A D | i_bluetooth_gatt_client.h | 37 const BluetoothRawAddress &addr, int32_t transport, int &appId) = 0; 38 virtual int DeregisterApplication(int32_t appId) = 0; 39 virtual int Connect(int32_t appId, bool autoConnect) = 0; 40 virtual int Disconnect(int32_t appId) = 0; 41 virtual int DiscoveryServices(int32_t appId) = 0; 42 virtual int ReadCharacteristic(int32_t appId, const BluetoothGattCharacteristic &characteristic) = 0; 44 int32_t appId, BluetoothGattCharacteristic *characteristic, bool withoutRespond) = 0; 45 virtual int SignedWriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic) = 0; 46 virtual int ReadDescriptor(int32_t appId, const BluetoothGattDescriptor &descriptor) = 0; 47 virtual int WriteDescriptor(int32_t appId, BluetoothGattDescripto [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/include/ |
H A D | bluetooth_gatt_client_server.h | 35 int32_t transport, int &appId) override; 39 int DeregisterApplication(int32_t appId) override; 40 int Connect(int32_t appId, bool autoConnect) override; 41 int Disconnect(int32_t appId) override; 42 int DiscoveryServices(int32_t appId) override; 43 int ReadCharacteristic(int32_t appId, const BluetoothGattCharacteristic &characteristic) override; 44 int WriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic, bool withoutRespond) override; 45 int SignedWriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic) override; 46 int ReadDescriptor(int32_t appId, const BluetoothGattDescriptor &descriptor) override; 47 int WriteDescriptor(int32_t appId, BluetoothGattDescripto [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/include/ |
H A D | bluetooth_gatt_client_proxy.h | 35 int32_t transport, int &appId) override; 36 int DeregisterApplication(int32_t appId) override; 37 int Connect(int32_t appId, bool autoConnect) override; 38 int Disconnect(int32_t appId) override; 39 int DiscoveryServices(int32_t appId) override; 40 int ReadCharacteristic(int32_t appId, const BluetoothGattCharacteristic &characteristic) override; 41 int WriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic, bool withoutRespond) override; 42 int SignedWriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic) override; 43 int ReadDescriptor(int32_t appId, const BluetoothGattDescriptor &descriptor) override; 44 int WriteDescriptor(int32_t appId, BluetoothGattDescripto [all...] |
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | switch_adapter_test.cpp | 69 const std::string appId; in HWTEST_F() local 73 SwitchAdapter::GetInstance().PutSwitch(appId, value, length); in HWTEST_F() 84 const std::string appId = "6666"; in HWTEST_F() local 88 SwitchAdapter::GetInstance().PutSwitch(appId, value, length); in HWTEST_F() 99 const std::string appId = ""; in HWTEST_F() local 104 SwitchAdapter::GetInstance().GetSwitch(appId, networkId, value, switchLength); in HWTEST_F() 115 const std::string appId = "appid"; in HWTEST_F() local 120 SwitchAdapter::GetInstance().GetSwitch(appId, networkId, value, switchLength); in HWTEST_F() 131 const std::string appId = "appid"; in HWTEST_F() local 136 SwitchAdapter::GetInstance().GetSwitch(appId, networkI in HWTEST_F() 147 const std::string appId = ""; HWTEST_F() local 160 const std::string appId = "appid"; HWTEST_F() local 173 const std::string appId = ""; HWTEST_F() local 186 const std::string appId = "appid"; HWTEST_F() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_profile_gatt_client.h | 162 * @param appId Application id. 167 virtual int DeregisterApplication(int appId) = 0; 171 * @param appId Application id. 176 virtual int Connect(int appId, bool autoConnect) = 0; 180 * @param appId Application id. 185 virtual int Disconnect(int appId) = 0; 189 * @param appId Application id. 194 virtual int DiscoveryServices(int appId) = 0; 198 * @param appId Application id. 204 virtual int ReadCharacteristic(int appId, cons [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_client_service.h | 36 int DeregisterApplication(int appId) override; 37 int Connect(int appId, bool autoConnect = false) override; 38 int Disconnect(int appId) override; 39 int DiscoveryServices(int appId) override; 40 int ReadCharacteristic(int appId, const Characteristic &characteristic) override; 41 int ReadCharacteristicByUuid(int appId, const Uuid &uuid) override; 42 int WriteCharacteristic(int appId, Characteristic &characteristic, bool withoutRespond = false) override; 43 int SignedWriteCharacteristic(int appId, Characteristic &characteristic) override; 44 int ReadDescriptor(int appId, const Descriptor &descriptor) override; 45 int WriteDescriptor(int appId, Descripto [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | distributed_kv_data_manager.cpp | 43 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const StoreId &storeId, in GetSingleKvStore() argument 51 ZLOGE("invalid security level, appId = %{private}s, storeId = %{private}s, kvStoreType = %{private}d", in GetSingleKvStore() 52 appId.appId.c_str(), storeId.storeId.c_str(), options.kvStoreType); in GetSingleKvStore() 67 KvStoreServiceDeathNotifier::SetAppId(appId); in GetSingleKvStore() 70 singleKvStore = StoreManager::GetInstance().GetKVStore(appId, storeId, options, status); in GetSingleKvStore() 74 Status DistributedKvDataManager::GetAllKvStoreId(const AppId &appId, std::vector<StoreId> &storeIds) in GetAllKvStoreId() argument 78 KvStoreServiceDeathNotifier::SetAppId(appId); in GetAllKvStoreId() 79 return StoreManager::GetInstance().GetStoreIds(appId, storeIds); in GetAllKvStoreId() 82 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, cons argument 96 CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &kvStorePtr) CloseKvStore() argument 112 CloseAllKvStore(const AppId &appId) CloseAllKvStore() argument 121 DeleteKvStore(const AppId &appId, const StoreId &storeId, const std::string &path) DeleteKvStore() argument 138 DeleteAllKvStore(const AppId &appId, const std::string &path) DeleteAllKvStore() argument 243 PutSwitch(const AppId &appId, const SwitchData &data) PutSwitch() argument 248 GetSwitch(const AppId &appId, const std::string &networkId) GetSwitch() argument 253 SubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer) SubscribeSwitchData() argument 258 UnsubscribeSwitchData(const AppId &appId, std::shared_ptr<KvStoreObserver> observer) UnsubscribeSwitchData() argument [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/ |
H A D | distributed_kv_data_manager_test.cpp | 41 static AppId appId; member in OHOS::Test::DistributedKvDataManagerTest 91 AppId DistributedKvDataManagerTest::appId; member in OHOS::Test::DistributedKvDataManagerTest 102 manager.CloseAllKvStore(appId); in RemoveAllStore() 103 manager.DeleteAllKvStore(appId, create.baseDir); in RemoveAllStore() 110 appId.appId = "ohos.kvdatamanager.test"; in SetUpTestCase() 117 create.baseDir = std::string("/data/service/el1/public/database/") + appId.appId; in SetUpTestCase() 170 Status status = manager.GetSingleKvStore(create, appId, storeId64, notExistKvStore); in HWTEST_F() 175 status = manager.GetSingleKvStore(noCreate, appId, storeId6 in HWTEST_F() [all...] |
/foundation/deviceprofile/device_info_manager/services/core/src/persistenceadapter/kvadapter/ |
H A D | switch_adapter.cpp | 43 int32_t SwitchAdapter::PutSwitch(const std::string& appId, uint32_t value, uint16_t length) in PutSwitch() argument 46 if (appId.empty()) { in PutSwitch() 51 appID.appId = appId; in PutSwitch() 61 int32_t SwitchAdapter::GetSwitch(const std::string& appId, const std::string& networkId, in GetSwitch() argument 65 if (appId.empty() || networkId.empty()) { in GetSwitch() 70 appID.appId = appId; in GetSwitch() 82 int32_t SwitchAdapter::SubscribeSwitchData(const std::string& appId) in SubscribeSwitchData() argument 85 if (appId in SubscribeSwitchData() 104 UnsubscribeSwitchData(const std::string& appId) UnsubscribeSwitchData() argument [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/metadata/ |
H A D | appid_meta_data.cpp | 21 SetValue(node[GET_NAME(appId)], appId); in Marshal() 28 GetValue(node, GET_NAME(appId), appId); in Unmarshal() 37 AppIDMetaData::AppIDMetaData(const std::string &appId, const std::string &bundleName) in AppIDMetaData() argument 38 : appId(appId), bundleName(bundleName) in AppIDMetaData() 48 return appId; in GetKey()
|
/foundation/distributedhardware/device_manager/test/unittest/mock/ |
H A D | device_auth.h | 38 #define FIELD_APP_ID "appId" 162 int32_t (*regCallback)(const char *appId, const DeviceAuthCallback *callback); 163 int32_t (*unRegCallback)(const char *appId); 164 int32_t (*regDataChangeListener)(const char *appId, const DataChangeListener *listener); 165 int32_t (*unRegDataChangeListener)(const char *appId); 166 int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams); 167 int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams); 168 int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *addParams); 169 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId, 172 int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, cons [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | distributed_kv_data_manager.cpp | 30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const StoreId &storeId, in GetSingleKvStore() argument 37 singleKvStore = StoreManager::GetInstance().GetKVStore(appId, storeId, options, status); in GetSingleKvStore() 44 Status DistributedKvDataManager::GetAllKvStoreId(const AppId &appId, std::vector<StoreId> &storeIds) in GetAllKvStoreId() argument 46 auto status = StoreManager::GetInstance().GetStoreIds(appId, storeIds); in GetAllKvStoreId() 53 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() argument 55 auto status = StoreManager::GetInstance().CloseKVStore(appId, storeId); in CloseKvStore() 63 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &kvStorePtr) in CloseKvStore() argument 72 auto status = StoreManager::GetInstance().CloseKVStore(appId, storeId); in CloseKvStore() 80 Status DistributedKvDataManager::CloseAllKvStore(const AppId &appId) in CloseAllKvStore() argument 82 auto status = StoreManager::GetInstance().CloseAllKVStore(appId); in CloseAllKvStore() 87 DeleteKvStore(const AppId &appId, const StoreId &storeId, const std::string &path) DeleteKvStore() argument 96 DeleteAllKvStore(const AppId &appId, const std::string &path) DeleteAllKvStore() argument [all...] |
/foundation/distributedhardware/device_manager/utils/src/appInfo/standard/ |
H A D | app_manager.cpp | 37 std::string appId = ""; in GetAppId() local 41 return appId; in GetAppId() 46 return appId; in GetAppId() 50 return appId; in GetAppId() 56 return appId; in GetAppId() 66 return appId; in GetAppId() 68 appId = bundleInfo.appId; in GetAppId() 69 return appId; in GetAppId() 78 std::string appId in RegisterCallerAppId() local 103 GetAppIdByPkgName(const std::string &pkgName, std::string &appId) GetAppIdByPkgName() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_gatt_client_server.cpp | 178 void SetAppId(int appId) in SetAppId() argument 180 applicationId_ = appId; in SetAppId() 283 int appId = 0; in RegisterApplication() local 284 int ret = RegisterApplication(callback, addr, transport, appId); in RegisterApplication() 285 return (ret == NO_ERROR) ? appId : ret; in RegisterApplication() 289 const sptr<IBluetoothGattClientCallback> &callback, const BluetoothRawAddress &addr, int32_t transport, int &appId) in RegisterApplication() 300 appId = pimpl->clientService_->RegisterSharedApplication(*it->get(), (RawAddress)addr, transport); in RegisterApplication() 301 if (appId >= 0) { in RegisterApplication() 302 HILOGI("appId: %{public}d", appId); in RegisterApplication() 288 RegisterApplication( const sptr<IBluetoothGattClientCallback> &callback, const BluetoothRawAddress &addr, int32_t transport, int &appId) RegisterApplication() argument 315 DeregisterApplication(int32_t appId) DeregisterApplication() argument 344 Connect(int32_t appId, bool autoConnect) Connect() argument 362 Disconnect(int32_t appId) Disconnect() argument 377 DiscoveryServices(int32_t appId) DiscoveryServices() argument 388 ReadCharacteristic(int32_t appId, const BluetoothGattCharacteristic &characteristic) ReadCharacteristic() argument 403 WriteCharacteristic( int32_t appId, BluetoothGattCharacteristic *characteristic, bool withoutRespond) WriteCharacteristic() argument 422 SignedWriteCharacteristic(int32_t appId, BluetoothGattCharacteristic *characteristic) SignedWriteCharacteristic() argument 437 ReadDescriptor(int32_t appId, const BluetoothGattDescriptor &descriptor) ReadDescriptor() argument 452 WriteDescriptor(int32_t appId, BluetoothGattDescriptor *descriptor) WriteDescriptor() argument 471 RequestExchangeMtu(int32_t appId, int32_t mtu) RequestExchangeMtu() argument 499 RequestConnectionPriority(int32_t appId, int32_t connPriority) RequestConnectionPriority() argument 510 GetServices(int32_t appId, ::std::vector<BluetoothGattService> &service) GetServices() argument 534 ReadRemoteRssiValue(int32_t appId) ReadRemoteRssiValue() argument 540 RequestNotification(int32_t appId, uint16_t characterHandle, bool enable) RequestNotification() argument [all...] |
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
H A D | distributed_kv_data_manager.h | 50 * @param appId The name of the application. 58 * if appId has no permission, PERMISSION_DENIED and nullptr, 62 API_EXPORT Status GetSingleKvStore(const Options &options, const AppId &appId, const StoreId &storeId, 67 * @param appId The name of the application. 70 * if appId is invalid, PERMISSION_DENIED and empty vector, 73 API_EXPORT Status GetAllKvStoreId(const AppId &appId, std::vector<StoreId> &storeIds); 85 * @param appId The name of the application. 89 API_EXPORT Status CloseKvStore(const AppId &appId, const StoreId &storeId); 101 * @param appId The name of the application. 105 API_EXPORT Status CloseKvStore(const AppId &appId, st [all...] |