/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/ |
H A D | avctp_gap.c | 75 LOG_DEBUG("[AVCT] %{public}s: channelId.l2capPsm is (%x),serviceId(%{public}d),chlink(%hhu) ", in AvctSecurityResult() 78 serviceInfo.serviceId, in AvctSecurityResult() 80 if ((serviceInfo.serviceId == AVRCP_CT) || (serviceInfo.serviceId == AVRCP_TG)) { in AvctSecurityResult() 90 } else if ((serviceInfo.serviceId == AVRCP_CT_BROWSING) || (serviceInfo.serviceId == AVRCP_TG_BROWSING)) { in AvctSecurityResult() 102 LOG_WARN("[AVCT] %{public}s: ServiceID(%{public}d) from GAP is error!", __func__, serviceInfo.serviceId); in AvctSecurityResult() 152 if ((serviceInfo.serviceId == AVRCP_CT) || (serviceInfo.serviceId == AVRCP_TG)) { in AvctRevConnSecurityResult() 154 } else if ((serviceInfo.serviceId in AvctRevConnSecurityResult() 175 AvctRequestSecurity(const AvctCbDev *cbDev, GAP_Service serviceId, uint16_t psm) AvctRequestSecurity() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/ |
H A D | socket_gap_server.cpp | 22 uint8_t scn, int securityFlag, GAP_Service serviceId) in RegisterServiceSecurity() 33 serviceInfo.serviceId = serviceId; in RegisterServiceSecurity() 40 LOG_INFO("[sock]%{public}s serviceId:%{public}d securityLevel:%hu", __func__, serviceId, securityLevel); in RegisterServiceSecurity() 44 int SocketGapServer::UnregisterSecurity(const BtAddr addr, uint8_t scn, GAP_Service serviceId) in UnregisterSecurity() argument 54 serviceInfo.serviceId = serviceId; in UnregisterSecurity() 56 LOG_INFO("[sock]%{public}s serviceId:%{public}d ", __func__, serviceId); in UnregisterSecurity() 21 RegisterServiceSecurity( uint8_t scn, int securityFlag, GAP_Service serviceId) RegisterServiceSecurity() argument [all...] |
H A D | socket_gap_client.cpp | 22 const BtAddr addr, uint8_t scn, int securityFlag, GAP_Service serviceId) in RegisterServiceSecurity() 33 serviceInfo.serviceId = serviceId; in RegisterServiceSecurity() 40 LOG_INFO("[sock]%{public}s serviceId:%{public}d securityLevel:%hu", __func__, serviceId, securityLevel); in RegisterServiceSecurity() 44 int SocketGapClient::UnregisterSecurity(const BtAddr addr, uint8_t scn, GAP_Service serviceId) in UnregisterSecurity() argument 54 serviceInfo.serviceId = serviceId; in UnregisterSecurity() 56 LOG_INFO("[sock]%{public}s serviceId:%{public}d ", __func__, serviceId); in UnregisterSecurity() 21 RegisterServiceSecurity( const BtAddr addr, uint8_t scn, int securityFlag, GAP_Service serviceId) RegisterServiceSecurity() argument [all...] |
H A D | socket_gap_client.h | 47 const BtAddr addr, uint8_t scn, int securityFlag, GAP_Service serviceId); 52 * @param serviceId service id 55 static int UnregisterSecurity(const BtAddr addr, uint8_t scn, GAP_Service serviceId);
|
H A D | socket_gap_server.h | 47 uint8_t scn, int securityFlag, GAP_Service serviceId); 52 * @param serviceId service id 55 static int UnregisterSecurity(const BtAddr addr, uint8_t scn, GAP_Service serviceId);
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/subscribeprofileeventinner_fuzzer/ |
H A D | subscribeprofileeventinner_fuzzer.cpp | 47 int32_t GetDeviceProfile(const std::string& udid, const std::string& serviceId, in GetDeviceProfile() argument 51 (void)serviceId; in GetDeviceProfile() 55 int32_t DeleteDeviceProfile(const std::string& serviceId) in DeleteDeviceProfile() argument 57 (void)serviceId; in DeleteDeviceProfile() 128 std::string serviceId(reinterpret_cast<const char*>(data), size); in PutAccessControlProfileInnerTest() 131 messageData.WriteString(serviceId); in PutAccessControlProfileInnerTest() 163 std::string serviceId(reinterpret_cast<const char*>(data), size); in UpdateAccessControlProfileInnerTest() 166 messageData.WriteString(serviceId); in UpdateAccessControlProfileInnerTest() 181 std::string serviceId(reinterpret_cast<const char*>(data), size); in GetAllAccessControlProfileInnerTest() 184 messageData.WriteString(serviceId); in GetAllAccessControlProfileInnerTest() [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/src/authority/ |
H A D | authority_manager.cpp | 201 const std::string& serviceId) in CheckServiceAuthority() 203 return CheckServicesAuthority(authVal, { serviceId }); in CheckServiceAuthority() 210 [](const auto& serviceId) { return serviceId.empty(); }); in CheckServicesAuthority() 212 HILOGE("empty serviceId"); in CheckServicesAuthority() 255 for (const auto& serviceId : serviceIds) { in CheckServicesAuth() 257 CheckSpecificServiceAuth(specificSvcsJson, serviceId, authVal)) { in CheckServicesAuth() 261 CheckPrefixServiceAuth(prefixSvcsJson, serviceId, authVal)) { in CheckServicesAuth() 264 HILOGE("denied to access service:%{public}s", serviceId.c_str()); in CheckServicesAuth() 272 const std::string& serviceId, AuthValu in CheckSpecificServiceAuth() 200 CheckServiceAuthority(AuthValue authVal, const std::string& serviceId) CheckServiceAuthority() argument 271 CheckSpecificServiceAuth(const nlohmann::json& specificSvcsJson, const std::string& serviceId, AuthValue authVal) CheckSpecificServiceAuth() argument 285 CheckPrefixServiceAuth(const nlohmann::json& prefixSvcsJson, const std::string& serviceId, AuthValue authVal) CheckPrefixServiceAuth() argument [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/syncdeviceprofileinner_fuzzer/ |
H A D | syncdeviceprofileinner_fuzzer.cpp | 38 int32_t GetDeviceProfile(const std::string& udid, const std::string& serviceId, in GetDeviceProfile() argument 42 (void)serviceId; in GetDeviceProfile() 46 int32_t DeleteDeviceProfile(const std::string& serviceId) in DeleteDeviceProfile() argument 48 (void)serviceId; in DeleteDeviceProfile() 80 std::string serviceId(reinterpret_cast<const char*>(data), size); in FuzzDumpLocalProfile() 83 messageData.WriteString(serviceId); in FuzzDumpLocalProfile()
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/putdeviceprofileinner_fuzzer/ |
H A D | putdeviceprofileinner_fuzzer.cpp | 39 int32_t GetDeviceProfile(const std::string& udid, const std::string& serviceId, in GetDeviceProfile() argument 43 (void)serviceId; in GetDeviceProfile() 47 int32_t DeleteDeviceProfile(const std::string& serviceId) in DeleteDeviceProfile() argument 49 (void)serviceId; in DeleteDeviceProfile() 81 std::string serviceId(reinterpret_cast<const char*>(data), size); in FuzzDumpLocalProfile() 84 messageData.WriteString(serviceId); in FuzzDumpLocalProfile()
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/getdeviceprofile_fuzzer/ |
H A D | getdeviceprofile_fuzzer.cpp | 43 std::string serviceId(reinterpret_cast<const char*>(data), size); in FuzzGetDeviceProfile() 45 profile.SetServiceId(serviceId); in FuzzGetDeviceProfile() 51 DeviceProfileStorageManager::GetInstance().GetDeviceProfile("", serviceId, profile); in FuzzGetDeviceProfile() 53 DeviceProfileStorageManager::GetInstance().DeleteDeviceProfile(serviceId); in FuzzGetDeviceProfile()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/ |
H A D | device_profile_storage_manager.cpp | 154 std::string serviceId = profile.GetServiceId(); in PutDeviceProfile() local 155 keys.emplace_back(GenerateKey(localUdid_, serviceId, KeyType::SERVICE)); in PutDeviceProfile() 158 if (servicesJson_[serviceId] == nullptr) { in PutDeviceProfile() 161 servicesJson_[serviceId] = j; in PutDeviceProfile() 184 .hostName = DpRadarHelper::GetInstance().GetHostNameByServiceId(serviceId), in PutDeviceProfile() 195 const std::string& serviceId, ServiceCharacteristicProfile& profile) in GetDeviceProfile() 211 key = GenerateKey(localUdid_, serviceId, KeyType::SERVICE); in GetDeviceProfile() 212 SetServiceType(udid, serviceId, profile); in GetDeviceProfile() 220 key = GenerateKey(queryUdid, serviceId, KeyType::SERVICE); in GetDeviceProfile() 221 SetServiceType(queryUdid, serviceId, profil in GetDeviceProfile() 194 GetDeviceProfile(const std::string& udid, const std::string& serviceId, ServiceCharacteristicProfile& profile) GetDeviceProfile() argument 248 SetServiceType(const std::string& udid, const std::string& serviceId, ServiceCharacteristicProfile& profile) SetServiceType() argument 281 DeleteDeviceProfile(const std::string& serviceId) DeleteDeviceProfile() argument [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | service.c | 35 impl->serviceId = INVALID_INDEX;
in SAMGR_CreateServiceImpl() 71 Identity id = {impl->serviceId, INVALID_INDEX, (impl->taskPool != NULL) ? impl->taskPool->queueId : NULL};
in DEFAULT_Initialize() 92 if (serviceImpl->serviceId != identity->serviceId) {
in DEFAULT_MessageHandle() 120 Identity id = {service->serviceId, INVALID_INDEX, (service->taskPool != NULL) ? service->taskPool->queueId : NULL};
in DEFAULT_StopService() 151 identity.serviceId = serviceImpl->serviceId;
in DEFAULT_GetFeatureId() 181 Identity id = {serviceImpl->serviceId, INVALID_INDEX, NULL};
in DEFAULT_DeleteFeature()
|
H A D | service_impl.h | 52 int16 serviceId;
member 71 ServiceImpl *SAMGR_GetServiceByID(int16 serviceId);
|
/foundation/deviceprofile/device_info_manager/old/services/core/include/authority/ |
H A D | authority_manager.h | 45 bool CheckServiceAuthority(AuthValue authVal, const std::string& serviceId); 62 const std::string& serviceId, AuthValue authVal); 64 const std::string& serviceId, AuthValue authVal);
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/ |
H A D | profile_change_handler.cpp | 44 std::string serviceId; member 72 profileKey->serviceId = std::move(vec[index]); in Parse() 143 std::string trimmedKey = std::move(profileKey->serviceId); in ConvertEntry() 243 std::string serviceId = serviceIdJson; in FilterChangedProfileLocked() local 244 HILOGI("serviceId = %{public}s", serviceId.c_str()); in FilterChangedProfileLocked() 245 auto iter = service2Index.find(serviceId); in FilterChangedProfileLocked() 271 std::string serviceId = serviceIdJson; in Subscribe() local 272 HILOGI("serviceId = %{public}s", serviceId in Subscribe() [all...] |
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/ |
H A D | mock_system_ability_manager.h | 31 sptr<IRemoteObject> GetSystemAbility(int serviceId);
35 sptr<IRemoteObject> MockSystemAbilityManager::GetSystemAbility(int serviceId)
in GetSystemAbility() argument
|
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/ |
H A D | system_ability_mock.cpp | 43 SystemAbility::SystemAbility(const int32_t serviceId, bool runOnCreate) in SystemAbility() argument 46 UNITTEST_INFO_LOG("serviceId:%d, runOnCreate:%d", serviceId, runOnCreate); in SystemAbility() 49 mock->SystemAbilityCtor(serviceId, runOnCreate); in SystemAbility()
|
/foundation/deviceprofile/device_info_manager/old/tools/dp/src/ |
H A D | dp_command.cpp | 172 std::string serviceId; in QueryCommand() local 183 result = HandleNormalOption(option, deviceId, serviceId, serviceType); in QueryCommand() 188 DistributedDeviceProfileClient::GetInstance().GetDeviceProfile(deviceId, serviceId, profile); in QueryCommand() 203 std::string serviceId; in PutCommand() local 214 result = HandleNormalOption(option, deviceId, serviceId, serviceType); in PutCommand() 219 profile.SetServiceId(serviceId); in PutCommand() 237 std::string serviceId; in DeleteCommand() local 249 result = HandleNormalOption(option, deviceId, serviceId, serviceType); in DeleteCommand() 253 DistributedDeviceProfileClient::GetInstance().DeleteDeviceProfile(serviceId); in DeleteCommand() 344 std::string& serviceId, st in HandleNormalOption() 343 HandleNormalOption(int option, std::string& deviceId, std::string& serviceId, std::string& serviceType) HandleNormalOption() argument [all...] |
/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/include/ |
H A D | idistributed_device_profile.h | 33 virtual int32_t GetDeviceProfile(const std::string& udid, const std::string& serviceId, 35 virtual int32_t DeleteDeviceProfile(const std::string& serviceId) = 0;
|
H A D | distributed_device_profile_proxy.h | 39 int32_t GetDeviceProfile(const std::string& udid, const std::string& serviceId, 41 int32_t DeleteDeviceProfile(const std::string& serviceId) override;
|
/foundation/deviceprofile/device_info_manager/old/interfaces/innerkits/core/src/ |
H A D | distributed_device_profile_proxy.cpp | 56 int32_t DistributedDeviceProfileProxy::GetDeviceProfile(const std::string& udid, const std::string& serviceId, in GetDeviceProfile() argument 66 PARCEL_WRITE_HELPER(data, String, serviceId); in GetDeviceProfile() 84 int32_t DistributedDeviceProfileProxy::DeleteDeviceProfile(const std::string& serviceId) in DeleteDeviceProfile() argument 92 PARCEL_WRITE_HELPER(data, String, serviceId); in DeleteDeviceProfile()
|
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/include/ |
H A D | system_ability.h | 45 MOCK_METHOD(void, SystemAbilityCtor, (const int32_t serviceId, bool runOnCreate)); 59 SystemAbility(const int32_t serviceId, bool runOnCreate = false);
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/ |
H A D | service_characteristic_profile.cpp | 31 void ServiceCharacteristicProfile::SetServiceId(const std::string& serviceId) in SetServiceId() argument 33 serviceId_ = serviceId; in SetServiceId()
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/putdeviceprofile_fuzzer/ |
H A D | putdeviceprofile_fuzzer.cpp | 46 std::string serviceId(reinterpret_cast<const char*>(data), size); in FuzzPutDeviceProfile() 49 profile.SetServiceId(serviceId); in FuzzPutDeviceProfile()
|
/foundation/deviceprofile/device_info_manager/services/core/src/staticcapabilityloader/ |
H A D | static_capability_loader.cpp | 283 std::string serviceId = abilityKeyItem->valuestring; in GenerateStaticProfiles() local 284 if (!HasStaticCapability(serviceId, staticCapability)) { in GenerateStaticProfiles() 285 HILOGW("service: %{public}s does not have static capability", serviceId.c_str()); in GenerateStaticProfiles() 288 HILOGD("service: %{public}s has static capability", serviceId.c_str()); in GenerateStaticProfiles() 296 CharacteristicProfile characteristicProfile(deviceId, serviceId, STATIC_CHARACTERISTIC_KEY, charValue); in GenerateStaticProfiles() 297 charProfiles[ProfileUtils::GenerateCharProfileKey(deviceId, serviceId, STATIC_CHARACTERISTIC_KEY)] = in GenerateStaticProfiles() 463 bool StaticCapabilityLoader::HasStaticCapability(const std::string& serviceId, const std::string& staticCapability) in HasStaticCapability() argument 466 int32_t capabilityFlag = static_cast<int32_t>(CAPABILITY_FLAG_MAP.at(serviceId)); in HasStaticCapability() 468 HILOGE("HasStaticCapability fail, capabilityFlag is out of range, serviceId: %{public}s", in HasStaticCapability() 469 ProfileUtils::GetAnonyString(serviceId) in HasStaticCapability() [all...] |