/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | trust_profile_manager_test.cpp | 256 profile.SetStatus(0); 287 profile.SetStatus(0); 332 profile.SetStatus(0); 693 profile.clear(); 725 profile.clear(); 757 profile.clear(); 809 profile.clear(); 816 profile.clear(); 823 profile.clear(); 855 profile.clear(); [all …]
|
H A D | distributed_device_profile_client_rdb_test.cpp | 174 AccessControlProfile profile; variable 176 profile.SetSessionKey("key1"); 177 profile.SetBindType(4); 179 profile.SetDeviceIdType(1); 181 profile.SetStatus(0); 182 profile.SetValidPeriod(66); 183 profile.SetLastAuthTime(20); 184 profile.SetBindLevel(0); 224 AccessControlProfile profile; variable 275 TrustDeviceProfile profile; variable [all …]
|
H A D | dp_content_sensor_test.cpp | 80 DeviceProfile profile; variable 81 profile.SetDeviceId("test"); 83 collector.Collect(profile); 121 DeviceProfile profile; variable 137 DeviceProfile profile; variable 138 profile.SetDeviceId(""); 139 profile.SetDeviceName(""); 153 DeviceProfile profile; variable 154 profile.SetDeviceId(""); 169 DeviceProfile profile; variable [all …]
|
H A D | profile_utils_test.cpp | 370 profile.SetStatus(1); 416 profile.SetBindType(1); 420 profile.SetStatus(0); 466 profile.SetBindType(1); 470 profile.SetStatus(0); 526 profile.SetStatus(0); 582 profile.SetStatus(0); 678 profile.SetStatus(0); 728 profile.SetStatus(0); 1507 Accesser profile; variable [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager/ |
H A D | trust_profile_manager.h | 51 std::vector<AccessControlProfile>& profile); 67 std::vector<AccessControlProfile>& profile); 83 std::vector<AccessControlProfile>& profile); 86 int32_t SetAccessControlId(AccessControlProfile& profile); 87 int32_t SetAccesserId(AccessControlProfile& profile); 88 int32_t SetAccesseeId(AccessControlProfile& profile); 111 std::vector<AccessControlProfile>& profile); 116 std::vector<AccessControlProfile>& profile); 120 int32_t UpdateAclCheck(const AccessControlProfile& profile); 121 int32_t PutAclCheck(const AccessControlProfile& profile); [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | content_sensor_test.cpp | 160 ServiceCharacteristicProfile profile; variable 202 profile.SetServiceId("test"); 203 profile.SetServiceType("test"); 218 profile.SetServiceId(""); 219 profile.SetServiceType(""); 234 profile.SetServiceId(""); 235 profile.SetServiceType("test"); 250 profile.SetServiceId("test"); 251 profile.SetServiceType(""); 266 profile.SetServiceId("test"); [all …]
|
H A D | profile_crud_test.cpp | 128 profile.SetServiceId(""); 129 profile.SetServiceType("test"); 153 profile.SetServiceId("test"); 154 profile.SetServiceType(""); 178 profile.SetServiceId("test"); 179 profile.SetServiceType("test"); 202 profile.SetServiceId("test"); 203 profile.SetServiceType("test"); 897 profile.SetServiceId("test"); 915 profile.SetServiceId("test"); [all …]
|
H A D | profile_storage_test.cpp | 273 profile.SetServiceId("test"); 274 profile.SetServiceType("test"); 292 profile.SetServiceId(""); 293 profile.SetServiceType("test"); 311 profile.SetServiceId("test"); 312 profile.SetServiceType(""); 343 profile.SetServiceId(SERVICE_ID); 360 profile.SetServiceId(SERVICE_ID); 375 profile.SetServiceId(SERVICE_ID); 1029 profile.SetServiceId(""); [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_state_machine.cpp | 93 if (profile == nullptr) { in ProcessDisconnectCfm() 142 if (profile == nullptr) { in ProcessDisconnectInd() 182 if (profile == nullptr) { in ProcessSetConfigInd() 227 if (profile == nullptr) { in ProcessDiscoverReq() 253 if (profile == nullptr) { in ProcessSDPFailure() 344 if (profile == nullptr) { in ProcessDisconnectInd() 364 if (profile == nullptr) { in ProcessOpenInd() 395 if (profile == nullptr) { in ProcessSetConfigInd() 438 if (profile == nullptr) { in ProcessDelayReportInd() 759 if (!profile->HasOpen() && profile->GetDisalbeTag()) { in ProcessCloseCfm() [all …]
|
H A D | a2dp_avdtp.cpp | 312 if (profile == nullptr) { in ParseAvdtpDisconnectInd() 336 if (profile == nullptr) { in ParseAvdtpConfigureInd() 380 if (profile == nullptr) { in ParseAvdtpReconfigureInd() 427 if (profile == nullptr) { in ParseAvdtpOpenInd() 450 if (profile == nullptr) { in ParseAvdtpCloseInd() 476 if (profile == nullptr) { in ParseAvdtpCloseChannelInd() 496 if (profile == nullptr) { in ParseAvdtpStartInd() 544 if (profile == nullptr) { in ParseAvdtpConnectCFM() 571 if (profile == nullptr) { in ParseAvdtpDisconnectCFM() 592 if (profile == nullptr) { in ParseAvdtpDiscoverCFM() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_disturb_service.cpp | 73 for (const auto &profile : jsonObject) { in OnRestore() local 75 item->FromJson(profile.dump()); in OnRestore() 90 for (auto profile = profiles_.begin(); profile != profiles_.end();) { in OnRestore() local 93 name = (*profile)->GetProfileName(); in OnRestore() 101 profile = profiles_.erase(profile); in OnRestore() 104 profile++; in OnRestore() 110 for (auto profile = profiles_.begin(); profile != profiles_.end(); profile++) { in OnRestore() local 182 for (auto profile = profiles_.begin(); profile != profiles_.end();) { in HandlerBundleEvent() local 191 profile = profiles_.erase(profile); in HandlerBundleEvent() 194 profile++; in HandlerBundleEvent() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_lane_common.c | 40 profile->linkType = LANE_BR; in BrInfoProc() 59 profile->linkType = LANE_BLE; in BleInfoProc() 71 profile->linkType = LANE_P2P; in P2pInfoProc() 72 profile->bw = linkInfo->linkInfo.p2p.bw; in P2pInfoProc() 85 profile->linkType = LANE_HML; in HmlInfoProc() 86 profile->bw = linkInfo->linkInfo.p2p.bw; in HmlInfoProc() 105 profile->linkType = LANE_P2P_REUSE; in P2pReuseInfoProc() 117 profile->linkType = LANE_WLAN_2P4G; in Wlan2P4GInfoProc() 131 profile->linkType = LANE_WLAN_5G; in Wlan5GInfoProc() 146 profile->linkType = LANE_BLE_DIRECT; in BleDirectInfoProc() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/bind/ |
H A D | auth_device_profile_listener.cpp | 51 DelNotTrustDevice(profile.GetDeviceId().c_str()); in OnTrustDeviceProfileAdd() 52 g_deviceProfileChange.onDeviceProfileAdd(profile.GetDeviceId().c_str(), NULL); in OnTrustDeviceProfileAdd() 64 g_deviceProfileChange.onDeviceProfileDeleted(profile.GetDeviceId().c_str()); in OnTrustDeviceProfileDelete() 78 int32_t AuthDeviceProfileListener::OnDeviceProfileAdd(const DeviceProfile &profile) in OnDeviceProfileAdd() argument 80 (void)profile; in OnDeviceProfileAdd() 86 (void)profile; in OnDeviceProfileDelete() 98 int32_t AuthDeviceProfileListener::OnServiceProfileAdd(const ServiceProfile &profile) in OnServiceProfileAdd() argument 100 (void)profile; in OnServiceProfileAdd() 106 (void)profile; in OnServiceProfileDelete() 120 (void)profile; in OnCharacteristicProfileAdd() [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/trustprofilemanager_fuzzer/ |
H A D | trustprofilemanager_fuzzer.cpp | 42 std::vector<AccessControlProfile> profile; in GetAccessControlProfileByTokenIdFuzzTest() local 44 profile.push_back(acProfile); in GetAccessControlProfileByTokenIdFuzzTest() 55 std::vector<AccessControlProfile> profile; in GetAccessControlProfileOneFuzzTest() local 57 profile.push_back(acProfile); in GetAccessControlProfileOneFuzzTest() 67 std::vector<AccessControlProfile> profile; in GetAccessControlProfileTwoFuzzTest() local 69 profile.push_back(acProfile); in GetAccessControlProfileTwoFuzzTest() 78 std::vector<AccessControlProfile> profile; in GetAllAccessControlProfileFuzzTest() local 80 profile.push_back(acProfile); in GetAllAccessControlProfileFuzzTest() 94 profile.push_back(acProfile); in GetAccessControlProfileThreeFuzzTest() 108 profile.push_back(acProfile); in GetAccessControlProfileFourFuzzTest() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/security/ |
H A D | hapsigntool-guidelines.md | 126 7. 生成profile调试/发布证书。 129 generate-profile-cert : 生成profile调试/发布证书 178 9. profile文件签名。 181 sign-profile : profile文件签名 193 10. profile文件验签。 196 verify-profile : profile文件验签 236 - 对profile文件进行签名 313 3. **对profile文件进行签名** 315 调用profile文件签名接口,使用Profile签名密钥对profile文件进行签名。 332 sign-profile:签名profile文件 [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/trustprofilemanager/ |
H A D | trust_profile_manager.cpp | 207 this->UpdateAccesserProfile(profile.GetAccesserId(), profile); in UpdateAccessControlProfile() 208 this->UpdateAccesseeProfile(profile.GetAccesseeId(), profile); in UpdateAccessControlProfile() 292 if (profile.empty()) { in GetAllTrustDeviceProfile() 328 if (profile.empty()) { in GetAccessControlProfile() 366 if (profile.empty()) { in GetAccessControlProfile() 403 if (profile.empty()) { in GetAccessControlProfileByTokenId() 450 if (profile.empty()) { in GetAccessControlProfile() 490 if (profile.empty()) { in GetAccessControlProfile() 529 if (profile.empty()) { in GetAllAccessControlProfile() 565 if (profile.empty()) { in GetAccessControlProfile() [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | profile_utils.cpp | 487 profile.GetCharacteristicKey()); in CharacteristicProfileToEntries() 499 profile.SetDeviceId(strValue); in EntriesToTrustDeviceProfile() 508 profile.SetStatus(intValue); in EntriesToTrustDeviceProfile() 528 profile.SetSessionKey(strValue); in EntriesToAccessControlProfile() 531 profile.SetBindType(intValue); in EntriesToAccessControlProfile() 537 profile.SetBindLevel(intValue); in EntriesToAccessControlProfile() 540 profile.SetStatus(intValue); in EntriesToAccessControlProfile() 543 profile.SetValidPeriod(intValue); in EntriesToAccessControlProfile() 638 profile.SetOsType(osType); in EntriesToDeviceProfile() 642 profile.SetOsType(osType); in EntriesToDeviceProfile() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | camera_output_capability.cpp | 140 for (auto& profile : previewProfiles) { in IsMatchPreviewProfiles() local 144 … "height: %{public}d] cant match", profile.GetCameraFormat(), profile.GetSize().width, in IsMatchPreviewProfiles() 145 profile.GetSize().height); in IsMatchPreviewProfiles() 157 for (auto& profile : photoProfiles) { in IsMatchPhotoProfiles() local 161 … "height: %{public}d] cant match", profile.GetCameraFormat(), profile.GetSize().width, in IsMatchPhotoProfiles() 162 profile.GetSize().height); in IsMatchPhotoProfiles() 174 for (auto& profile : videoProfiles) { in IsMatchVideoProfiles() local 183 …std::string frameratesStr = Container2String(profile.framerates_.begin(), profile.framerates_.end(… in IsMatchVideoProfiles() 186 profile.GetSize().width, profile.GetSize().height, frameratesStr.c_str()); in IsMatchVideoProfiles() 212 for (const auto& profile : profiles) { in RemoveDuplicatesProfile() local [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_statemachine.h | 167 HfpAgState(HfpAgSmInfo stu, HfpAgProfile &profile, in HfpAgState() argument 171 profile_(profile), in HfpAgState() 177 HfpAgState(const std::string &name, utility::StateMachine &statemachine, HfpAgProfile &profile, in HfpAgState() argument 180 profile_(profile), in HfpAgState() 202 …AgDisconnected(const std::string &name, utility::StateMachine &statemachine, HfpAgProfile &profile, in HfpAgDisconnected() argument 204 : HfpAgState(name, statemachine, profile, eventDispatch, HFP_AG_STATE_DISCONNECTED) in HfpAgDisconnected() 217 …fpAgConnecting(const std::string &name, utility::StateMachine &statemachine, HfpAgProfile &profile, in HfpAgConnecting() argument 219 : HfpAgState(name, statemachine, profile, eventDispatch, HFP_AG_STATE_CONNECTING) in HfpAgConnecting() 233 : HfpAgState(name, statemachine, profile, eventDispatch, HFP_AG_STATE_DISCONNECTING) in HfpAgDisconnecting() 243 …HfpAgConnected(const std::string &name, utility::StateMachine &statemachine, HfpAgProfile &profile, in HfpAgConnected() argument [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/interfaces/ |
H A D | profile_change_listener_proxy.cpp | 33 if (!profile.Marshalling(data)) { in OnTrustDeviceProfileAdd() 48 if (!profile.Marshalling(data)) { in OnTrustDeviceProfileDelete() 77 int32_t ProfileListenerProxy::OnDeviceProfileAdd(const DeviceProfile& profile) in OnDeviceProfileAdd() argument 83 if (!profile.Marshalling(data)) { in OnDeviceProfileAdd() 92 int32_t ProfileListenerProxy::OnDeviceProfileDelete(const DeviceProfile& profile) in OnDeviceProfileDelete() argument 98 if (!profile.Marshalling(data)) { in OnDeviceProfileDelete() 126 int32_t ProfileListenerProxy::OnServiceProfileAdd(const ServiceProfile& profile) in OnServiceProfileAdd() argument 132 if (!profile.Marshalling(data)) { in OnServiceProfileAdd() 147 if (!profile.Marshalling(data)) { in OnServiceProfileDelete() 181 if (!profile.Marshalling(data)) { in OnCharacteristicProfileAdd() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/ |
H A D | camera_output_capability.h | 79 Profile& operator=(const Profile& profile) 81 if (this != &profile) { 82 this->format_ = profile.format_; 83 this->size_ = profile.size_; 84 this->fps_ = profile.fps_; 85 this->abilityId_ = profile.abilityId_; 89 bool operator==(const Profile& profile) 91 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && 140 bool operator==(const VideoProfile& profile) 142 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/device/ |
H A D | dev_profile.cpp | 163 DistributedDeviceProfile::CharacteristicProfile profile; in PutEnabledStatus() local 164 profile.SetDeviceId(udid); in PutEnabledStatus() 165 profile.SetServiceName(SWITCH_ID); in PutEnabledStatus() 166 profile.SetCharacteristicKey(CHARACTER_ID); in PutEnabledStatus() 167 profile.SetCharacteristicValue(enabledStatus); in PutEnabledStatus() 187 DistributedDeviceProfile::CharacteristicProfile profile; in GetEnabledStatus() local 189 CHARACTER_ID, profile); in GetEnabledStatus() 190 if (ret == HANDLE_OK && profile.GetCharacteristicValue() == SUPPORT_STATUS) { in GetEnabledStatus() 212 DistributedDeviceProfile::CharacteristicProfile profile; in GetRemoteDeviceVersion() local 215 udid, SERVICE_ID, STATIC_CHARACTER_ID, profile); in GetRemoteDeviceVersion() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
H A D | hfp_hf_statemachine.h | 400 : State(name, statemachine, parent), profile_(profile), in HfpHfState() 404 : State(name, statemachine), profile_(profile), in HfpHfState() 423 : HfpHfState(name, statemachine, profile, HFP_HF_STATE_DISCONNECTED) in HfpHfDisconnected() 436 …fpHfConnecting(const std::string &name, utility::StateMachine &statemachine, HfpHfProfile &profile) in HfpHfConnecting() argument 437 : HfpHfState(name, statemachine, profile, HFP_HF_STATE_CONNECTING) in HfpHfConnecting() 448 : HfpHfState(name, statemachine, profile, HFP_HF_STATE_DISCONNECTING) in HfpHfDisconnecting() 458 …HfpHfConnected(const std::string &name, utility::StateMachine &statemachine, HfpHfProfile &profile) in HfpHfConnected() argument 459 : HfpHfState(name, statemachine, profile, HFP_HF_STATE_CONNECTED) in HfpHfConnected() 472 : HfpHfState(name, statemachine, profile, HFP_HF_AUDIO_STATE_CONNECTING, parent) in HfpHfAudioConnecting() 484 : HfpHfState(name, statemachine, profile, HFP_HF_AUDIO_STATE_DISCONNECTING, parent) in HfpHfAudioDisconnecting() [all …]
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/profileutils_fuzzer/ |
H A D | profileutils_fuzzer.cpp | 135 TrustDeviceProfile profile; in TrustDeviceProfileToEntriesFuzzTest() local 138 profile.SetDeviceIdType(1); in TrustDeviceProfileToEntriesFuzzTest() 139 profile.SetStatus(1); in TrustDeviceProfileToEntriesFuzzTest() 168 AccessControlProfile profile; in AccessControlProfileToEntriesFuzzTest() local 171 profile.SetBindType(1); in AccessControlProfileToEntriesFuzzTest() 173 profile.SetDeviceIdType(1); in AccessControlProfileToEntriesFuzzTest() 175 profile.SetStatus(0); in AccessControlProfileToEntriesFuzzTest() 176 profile.SetValidPeriod(1); in AccessControlProfileToEntriesFuzzTest() 178 profile.SetBindLevel(0); in AccessControlProfileToEntriesFuzzTest() 193 Accesser profile; in EntriesToAccesserFuzzTest() local [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/hfp/ |
H A D | napi_bluetooth_hfp_ag.cpp | 112 profile->RegisterObserver(observer_); in On() 139 int errorCode = profile->GetConnectedDevices(devices); in GetConnectionDevices() 201 int state = profile->GetScoState(device); in GetScoState() 233 bool isOK = profile->SetActiveDevice(device); in ConnectSco() 235 isOK = profile->ConnectSco(); in ConnectSco() 267 bool isOK = profile->SetActiveDevice(device); in DisconnectSco() 269 isOK = profile->DisconnectSco(); in DisconnectSco() 301 bool isOK = profile->OpenVoiceRecognition(device); in OpenVoiceRecognition() 332 bool isOK = profile->CloseVoiceRecognition(device); in CloseVoiceRecognition() 348 int32_t errorCode = profile->Connect(device); in Connect() [all …]
|