Home
last modified time | relevance | path

Searched refs:profile (Results 1 - 25 of 327) sorted by relevance

12345678910>>...14

/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dtrust_profile_manager_test.cpp94 std::vector<TrustDeviceProfile> profile; in HWTEST_F() local
96 GetInstance().GetAllTrustDeviceProfile(profile); in HWTEST_F()
107 std::vector<AccessControlProfile> profile; in HWTEST_F() local
109 GetInstance().GetAllAccessControlProfile(profile); in HWTEST_F()
110 for (size_t i = 0; i < profile.size(); i++) { in HWTEST_F()
111 std::cout << profile[i].dump() <<std::endl; in HWTEST_F()
112 std::cout << profile[i].GetAccesser().dump() <<std::endl; in HWTEST_F()
113 std::cout << profile[i].GetAccessee().dump() <<std::endl; in HWTEST_F()
125 std::vector<AccessControlProfile> profile; in HWTEST_F() local
127 GetInstance().GetAccessControlProfile(1, "111", profile); in HWTEST_F()
196 AccessControlProfile profile; HWTEST_F() local
249 AccessControlProfile profile; HWTEST_F() local
280 AccessControlProfile profile; HWTEST_F() local
325 AccessControlProfile profile; HWTEST_F() local
370 AccessControlProfile profile; HWTEST_F() local
415 AccessControlProfile profile; HWTEST_F() local
460 AccessControlProfile profile; HWTEST_F() local
505 AccessControlProfile profile; HWTEST_F() local
550 AccessControlProfile profile; HWTEST_F() local
595 AccessControlProfile profile; HWTEST_F() local
640 AccessControlProfile profile; HWTEST_F() local
667 std::vector<AccessControlProfile> profile; HWTEST_F() local
712 std::vector<AccessControlProfile> profile; HWTEST_F() local
744 std::vector<AccessControlProfile> profile; HWTEST_F() local
776 std::vector<AccessControlProfile> profile; HWTEST_F() local
796 std::vector<AccessControlProfile> profile; HWTEST_F() local
842 std::vector<AccessControlProfile> profile; HWTEST_F() local
874 std::vector<AccessControlProfile> profile; HWTEST_F() local
894 std::vector<AccessControlProfile> profile; HWTEST_F() local
926 std::vector<AccessControlProfile> profile; HWTEST_F() local
946 std::vector<AccessControlProfile> profile; HWTEST_F() local
991 std::vector<AccessControlProfile> profile; HWTEST_F() local
1042 std::vector<AccessControlProfile> profile; HWTEST_F() local
1109 AccessControlProfile profile; HWTEST_F() local
1139 TrustDeviceProfile profile; HWTEST_F() local
1174 AccessControlProfile profile; HWTEST_F() local
1224 AccessControlProfile profile; HWTEST_F() local
1314 std::vector<AccessControlProfile> profile; HWTEST_F() local
1332 std::vector<TrustDeviceProfile> profile; HWTEST_F() local
1348 TrustDeviceProfile profile; HWTEST_F() local
1365 TrustDeviceProfile profile; HWTEST_F() local
1421 TrustDeviceProfile profile; HWTEST_F() local
1454 AccessControlProfile profile; HWTEST_F() local
1571 AccessControlProfile profile; HWTEST_F() local
[all...]
H A Ddistributed_device_profile_client_rdb_test.cpp58 int32_t OnTrustDeviceProfileAdd(const TrustDeviceProfile& profile) in OnTrustDeviceProfileAdd() argument
60 cout << "OnTrustDeviceProfileAdd" << profile.dump() <<endl; in OnTrustDeviceProfileAdd()
63 int32_t OnTrustDeviceProfileDelete(const TrustDeviceProfile& profile) in OnTrustDeviceProfileDelete() argument
65 cout << "OnTrustDeviceProfileDelete" << profile.dump() <<endl; in OnTrustDeviceProfileDelete()
74 int32_t OnDeviceProfileAdd(const DeviceProfile& profile) in OnDeviceProfileAdd() argument
78 int32_t OnDeviceProfileDelete(const DeviceProfile& profile) in OnDeviceProfileDelete() argument
86 int32_t OnServiceProfileAdd(const ServiceProfile& profile) in OnServiceProfileAdd() argument
90 int32_t OnServiceProfileDelete(const ServiceProfile& profile) in OnServiceProfileDelete() argument
98 int32_t OnCharacteristicProfileAdd(const CharacteristicProfile& profile) in OnCharacteristicProfileAdd() argument
102 int32_t OnCharacteristicProfileDelete(const CharacteristicProfile& profile) in OnCharacteristicProfileDelete() argument
174 AccessControlProfile profile; HWTEST_F() local
209 std::vector<AccessControlProfile> profile; HWTEST_F() local
224 AccessControlProfile profile; HWTEST_F() local
249 std::vector<AccessControlProfile> profile; HWTEST_F() local
262 std::vector<TrustDeviceProfile> profile; HWTEST_F() local
275 TrustDeviceProfile profile; HWTEST_F() local
286 TrustDeviceProfile profile; HWTEST_F() local
[all...]
H A Ddp_content_sensor_test.cpp80 DeviceProfile profile; in HWTEST_F() local
81 profile.SetDeviceId("test"); in HWTEST_F()
82 profile.SetDeviceName("test"); in HWTEST_F()
83 collector.Collect(profile); in HWTEST_F()
121 DeviceProfile profile; in HWTEST_F() local
122 profile.SetDeviceId("test"); in HWTEST_F()
123 profile.SetDeviceName("test"); in HWTEST_F()
125 bool result = syscapInfo.ConvertToProfile(profile); in HWTEST_F()
137 DeviceProfile profile; in HWTEST_F() local
138 profile in HWTEST_F()
153 DeviceProfile profile; HWTEST_F() local
169 DeviceProfile profile; HWTEST_F() local
[all...]
H A Dprofile_utils_test.cpp366 TrustDeviceProfile profile; in HWTEST_F() local
367 profile.SetDeviceId("deviceId"); in HWTEST_F()
368 profile.SetDeviceIdHash("deviceIdHash"); in HWTEST_F()
369 profile.SetDeviceIdType(1); in HWTEST_F()
370 profile.SetStatus(1); in HWTEST_F()
375 int32_t res1 = ProfileUtils::TrustDeviceProfileToEntries(profile, values); in HWTEST_F()
413 AccessControlProfile profile; in HWTEST_F() local
414 profile.SetTrustDeviceId("123456"); in HWTEST_F()
415 profile.SetSessionKey("key1"); in HWTEST_F()
416 profile in HWTEST_F()
463 AccessControlProfile profile; HWTEST_F() local
519 AccessControlProfile profile; HWTEST_F() local
575 AccessControlProfile profile; HWTEST_F() local
671 AccessControlProfile profile; HWTEST_F() local
721 AccessControlProfile profile; HWTEST_F() local
1445 TrustDeviceProfile profile; HWTEST_F() local
1490 AccessControlProfile profile; HWTEST_F() local
1507 Accesser profile; HWTEST_F() local
1550 Accessee profile; HWTEST_F() local
1591 DeviceProfile profile; HWTEST_F() local
1615 ServiceProfile profile; HWTEST_F() local
1664 CharacteristicProfile profile; HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_device_profile_listener_test.cpp76 AuthToDeviceProfile::TrustDeviceProfile profile; in HWTEST_F() local
77 profile.SetBindType((uint32_t)OHOS::DistributedDeviceProfile::BindType::SAME_ACCOUNT); in HWTEST_F()
78 int32_t ret = listener->OnTrustDeviceProfileAdd(profile); in HWTEST_F()
90 AuthToDeviceProfile::TrustDeviceProfile profile; in HWTEST_F() local
93 int32_t ret = listener->OnTrustDeviceProfileAdd(profile); in HWTEST_F()
109 AuthToDeviceProfile::TrustDeviceProfile profile; in HWTEST_F() local
110 int32_t ret = listener->OnTrustDeviceProfileAdd(profile); in HWTEST_F()
124 AuthToDeviceProfile::TrustDeviceProfile profile; in HWTEST_F() local
125 int32_t ret = listener->OnTrustDeviceProfileDelete(profile); in HWTEST_F()
138 AuthToDeviceProfile::TrustDeviceProfile profile; in HWTEST_F() local
153 AuthToDeviceProfile::TrustDeviceProfile profile; HWTEST_F() local
166 AuthToDeviceProfile::DeviceProfile profile; HWTEST_F() local
179 AuthToDeviceProfile::DeviceProfile profile; HWTEST_F() local
192 AuthToDeviceProfile::DeviceProfile profile; HWTEST_F() local
205 AuthToDeviceProfile::ServiceProfile profile; HWTEST_F() local
218 DistributedDeviceProfile::ServiceProfile profile; HWTEST_F() local
231 DistributedDeviceProfile::ServiceProfile profile; HWTEST_F() local
244 DistributedDeviceProfile::CharacteristicProfile profile; HWTEST_F() local
257 DistributedDeviceProfile::CharacteristicProfile profile; HWTEST_F() local
270 DistributedDeviceProfile::CharacteristicProfile profile; HWTEST_F() local
[all...]
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/
H A Dcontent_sensor_test.cpp160 ServiceCharacteristicProfile profile; in HWTEST_F() local
161 bool result = appInfoCollector.ConvertToProfileData(profile); in HWTEST_F()
174 ServiceCharacteristicProfile profile; in HWTEST_F() local
175 bool result = pasteboardInfoCollector.ConvertToProfileData(profile); in HWTEST_F()
201 ServiceCharacteristicProfile profile; in HWTEST_F() local
202 profile.SetServiceId("test"); in HWTEST_F()
203 profile.SetServiceType("test"); in HWTEST_F()
205 bool result = syscapInfo.ConvertToProfileData(profile); in HWTEST_F()
217 ServiceCharacteristicProfile profile; in HWTEST_F() local
218 profile in HWTEST_F()
233 ServiceCharacteristicProfile profile; HWTEST_F() local
249 ServiceCharacteristicProfile profile; HWTEST_F() local
265 ServiceCharacteristicProfile profile; HWTEST_F() local
[all...]
H A Dservice_profile_test.cpp58 * @tc.desc: set service profile json
65 ServiceCharacteristicProfile profile; in HWTEST_F() local
66 profile.SetServiceProfileJson(profileJson); in HWTEST_F()
72 * @tc.desc: get service profile json
79 ServiceCharacteristicProfile profile; in HWTEST_F() local
80 std::string result = profile.GetServiceProfileJson(); in HWTEST_F()
93 ServiceCharacteristicProfile profile; in HWTEST_F() local
94 bool result = profile.Marshalling(parcel); in HWTEST_F()
107 ServiceCharacteristicProfile profile; in HWTEST_F() local
108 bool result = profile in HWTEST_F()
[all...]
/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager/
H A Dtrust_profile_manager.h43 int32_t PutTrustDeviceProfile(const TrustDeviceProfile& profile);
44 int32_t PutAccessControlProfile(const AccessControlProfile& profile);
45 int32_t UpdateTrustDeviceProfile(const TrustDeviceProfile& profile);
46 int32_t UpdateAccessControlProfile(const AccessControlProfile& profile);
47 int32_t GetTrustDeviceProfile(const std::string& deviceId, TrustDeviceProfile& profile);
48 int32_t GetAllTrustDeviceProfile(std::vector<TrustDeviceProfile>& profile);
49 int32_t GetAllAccessControlProfile(std::vector<AccessControlProfile>& profile);
51 std::vector<AccessControlProfile>& profile);
59 int32_t status, std::vector<AccessControlProfile>& profile);
61 const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile);
[all...]
/foundation/communication/dsoftbus/core/authentication/bind/
H A Dauth_device_profile_listener.cpp40 int32_t AuthDeviceProfileListener::OnTrustDeviceProfileAdd(const TrustDeviceProfile &profile) in OnTrustDeviceProfileAdd() argument
43 if (profile.GetBindType() == (uint32_t)OHOS::DistributedDeviceProfile::BindType::SAME_ACCOUNT) { in OnTrustDeviceProfileAdd()
51 DelNotTrustDevice(profile.GetDeviceId().c_str()); in OnTrustDeviceProfileAdd()
52 g_deviceProfileChange.onDeviceProfileAdd(profile.GetDeviceId().c_str(), NULL); in OnTrustDeviceProfileAdd()
57 int32_t AuthDeviceProfileListener::OnTrustDeviceProfileDelete(const TrustDeviceProfile &profile) in OnTrustDeviceProfileDelete() argument
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()
84 int32_t AuthDeviceProfileListener::OnDeviceProfileDelete(const DeviceProfile &profile) in OnDeviceProfileDelete() argument
86 (void)profile; in OnDeviceProfileDelete()
98 OnServiceProfileAdd(const ServiceProfile &profile) OnServiceProfileAdd() argument
104 OnServiceProfileDelete(const ServiceProfile &profile) OnServiceProfileDelete() argument
118 OnCharacteristicProfileAdd(const CharacteristicProfile &profile) OnCharacteristicProfileAdd() argument
124 OnCharacteristicProfileDelete(const CharacteristicProfile &profile) OnCharacteristicProfileDelete() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/
H A Da2dp_state_machine.cpp92 A2dpProfile *profile = GetProfileInstance(role); in ProcessDisconnectCfm() local
93 if (profile == nullptr) { in ProcessDisconnectCfm()
94 LOG_ERROR("[A2dpStateIdle]%{public}s Failed to get profile instance\n", __func__); in ProcessDisconnectCfm()
103 profile->ConnectStateChangedNotify(addr, STREAM_DISCONNECT, (void *)&param); in ProcessDisconnectCfm()
121 A2dpProfile *profile = GetProfileInstance(role); in ProcessDisconnectReq() local
123 profile->ConnectStateChangedNotify(addr, STREAM_DISCONNECT, (void *)&param); in ProcessDisconnectReq()
141 A2dpProfile *profile = GetProfileInstance(role); in ProcessDisconnectInd() local
142 if (profile == nullptr) { in ProcessDisconnectInd()
143 LOG_ERROR("[A2dpStateIdle]%{public}s Failed to get profile instance\n", __func__); in ProcessDisconnectInd()
151 profile in ProcessDisconnectInd()
172 A2dpProfile *profile = GetProfileInstance(role); ProcessSetConfigInd() local
223 A2dpProfile *profile = GetProfileInstance(role); ProcessDiscoverReq() local
251 A2dpProfile *profile = GetProfileInstance(role); ProcessSDPFailure() local
342 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectInd() local
363 A2dpProfile *profile = GetProfileInstance(role); ProcessOpenInd() local
386 A2dpProfile *profile = GetProfileInstance(role); ProcessSetConfigInd() local
437 A2dpProfile *profile = GetProfileInstance(role); ProcessDelayReportInd() local
502 A2dpProfile *profile = GetProfileInstance(role); ProcessOpenCfm() local
539 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectInd() local
562 A2dpProfile *profile = GetProfileInstance(role); ProcessDelayReportInd() local
677 A2dpProfile *profile = GetProfileInstance(role); ProcessStartInd() local
703 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectInd() local
732 A2dpProfile *profile = GetProfileInstance(role); ProcessReconfigCfm() local
758 A2dpProfile *profile = GetProfileInstance(role); ProcessCloseCfm() local
777 A2dpProfile *profile = GetProfileInstance(role); ProcessStartCfm() local
802 A2dpProfile *profile = GetProfileInstance(role); ProcessDelayReportInd() local
835 A2dpProfile *profile = GetProfileInstance(role); ProcessSuspendInd() local
853 A2dpProfile *profile = GetProfileInstance(role); ProcessSuspendCfm() local
999 A2dpProfile *profile = GetProfileInstance(role); ProcessStartInd() local
1023 A2dpProfile *profile = GetProfileInstance(role); ProcessStartCfm() local
1043 A2dpProfile *profile = GetProfileInstance(role); ProcessSuspendInd() local
1062 A2dpProfile *profile = GetProfileInstance(role); ProcessSuspendCfm() local
1096 A2dpProfile *profile = GetProfileInstance(A2DP_ROLE_SOURCE); ProcessWriteCfm() local
1127 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectInd() local
1147 A2dpProfile *profile = GetProfileInstance(role); ProcessCloseCfm() local
1172 A2dpProfile *profile = GetProfileInstance(role); ProcessDelayReportInd() local
1220 A2dpProfile *profile = GetProfileInstance(role); ProcessCloseStreamInd() local
1241 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectInd() local
1262 A2dpProfile *profile = GetProfileInstance(role); ProcessDisconnectCfm() local
[all...]
H A Da2dp_avdtp.cpp311 A2dpProfile *profile = GetProfileInstance(role); in ParseAvdtpDisconnectInd() local
312 if (profile == nullptr) { in ParseAvdtpDisconnectInd()
313 LOG_ERROR("[A2dpAvdtp] %{public}s Failed to get profile instance \n", __func__); in ParseAvdtpDisconnectInd()
317 A2dpProfilePeer *peer = profile->FindPeerByAddress(bdAddr); in ParseAvdtpDisconnectInd()
335 A2dpProfile *profile = GetProfileInstance(role); in ParseAvdtpConfigureInd() local
336 if (profile == nullptr) { in ParseAvdtpConfigureInd()
337 LOG_ERROR("[A2dpAvdtp] %{public}s Failed to get profile instance \n", __func__); in ParseAvdtpConfigureInd()
341 A2dpProfilePeer *peer = profile->FindPeerByAddress(bdAddr); in ParseAvdtpConfigureInd()
379 A2dpProfile *profile = GetProfileInstance(role); in ParseAvdtpReconfigureInd() local
380 if (profile in ParseAvdtpReconfigureInd()
426 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpOpenInd() local
449 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpCloseInd() local
475 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpCloseChannelInd() local
495 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpStartInd() local
543 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpConnectCFM() local
570 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpDisconnectCFM() local
591 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpDiscoverCFM() local
625 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpGetCapabilityCFM() local
669 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpGetALLCapCFM() local
713 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpConfigureCFM() local
744 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpGetConfigureCFM() local
763 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpReconfigureCFM() local
804 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpOpenCFM() local
827 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpStartCFM() local
848 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpSuspendCFM() local
869 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpStreamCloseCFM() local
890 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpAbortCFM() local
910 A2dpProfile *profile = GetProfileInstance(role); ParseAvdtpWriteCFM() local
[all...]
/foundation/deviceprofile/device_info_manager/services/core/test/fuzztest/trustprofilemanager_fuzzer/
H A Dtrustprofilemanager_fuzzer.cpp42 std::vector<AccessControlProfile> profile; in GetAccessControlProfileByTokenIdFuzzTest() local
44 profile.push_back(acProfile); in GetAccessControlProfileByTokenIdFuzzTest()
45 TrustProfileManager::GetInstance().GetAccessControlProfileByTokenId(tokenId, trustDeviceId, status, profile); in GetAccessControlProfileByTokenIdFuzzTest()
55 std::vector<AccessControlProfile> profile; in GetAccessControlProfileOneFuzzTest() local
57 profile.push_back(acProfile); in GetAccessControlProfileOneFuzzTest()
58 TrustProfileManager::GetInstance().GetAccessControlProfile(userId, accountId, profile); in GetAccessControlProfileOneFuzzTest()
67 std::vector<AccessControlProfile> profile; in GetAccessControlProfileTwoFuzzTest() local
69 profile.push_back(acProfile); in GetAccessControlProfileTwoFuzzTest()
70 TrustProfileManager::GetInstance().GetAccessControlProfile(userId, profile); in GetAccessControlProfileTwoFuzzTest()
78 std::vector<AccessControlProfile> profile; in GetAllAccessControlProfileFuzzTest() local
92 std::vector<AccessControlProfile> profile; GetAccessControlProfileThreeFuzzTest() local
106 std::vector<AccessControlProfile> profile; GetAccessControlProfileFourFuzzTest() local
118 std::vector<AccessControlProfile> profile; GetAccessControlProfileFiveFuzzTest() local
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_common.c33 static int32_t BrInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) in BrInfoProc() argument
40 profile->linkType = LANE_BR; in BrInfoProc()
44 static int32_t BleInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) in BleInfoProc() argument
59 profile->linkType = LANE_BLE; in BleInfoProc()
63 static int32_t P2pInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) in P2pInfoProc() argument
71 profile->linkType = LANE_P2P; in P2pInfoProc()
72 profile->bw = linkInfo->linkInfo.p2p.bw; in P2pInfoProc()
73 profile->phyChannel = linkInfo->linkInfo.p2p.channel; in P2pInfoProc()
77 static int32_t HmlInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) in HmlInfoProc() argument
85 profile in HmlInfoProc()
91 HmlRawInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) HmlRawInfoProc() argument
101 P2pReuseInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) P2pReuseInfoProc() argument
109 Wlan2P4GInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) Wlan2P4GInfoProc() argument
123 Wlan5GInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) Wlan5GInfoProc() argument
137 BleDirectInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) BleDirectInfoProc() argument
150 CocInfoProc(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) CocInfoProc() argument
183 LaneInfoProcess(const LaneLinkInfo *linkInfo, LaneConnInfo *connInfo, LaneProfile *profile) LaneInfoProcess() argument
[all...]
/foundation/deviceprofile/device_info_manager/common/include/interfaces/
H A Dprofile_change_listener_proxy.h31 int32_t OnTrustDeviceProfileAdd(const TrustDeviceProfile& profile) override;
32 int32_t OnTrustDeviceProfileDelete(const TrustDeviceProfile& profile) override;
35 int32_t OnDeviceProfileAdd(const DeviceProfile& profile) override;
36 int32_t OnDeviceProfileDelete(const DeviceProfile& profile) override;
38 int32_t OnServiceProfileAdd(const ServiceProfile& profile) override;
39 int32_t OnServiceProfileDelete(const ServiceProfile& profile) override;
41 int32_t OnCharacteristicProfileAdd(const CharacteristicProfile& profile) override;
42 int32_t OnCharacteristicProfileDelete(const CharacteristicProfile& profile) override;
H A Di_profile_change_listener.h32 virtual int32_t OnTrustDeviceProfileAdd(const TrustDeviceProfile& profile) = 0;
33 virtual int32_t OnTrustDeviceProfileDelete(const TrustDeviceProfile& profile) = 0;
36 virtual int32_t OnDeviceProfileAdd(const DeviceProfile& profile) = 0;
37 virtual int32_t OnDeviceProfileDelete(const DeviceProfile& profile) = 0;
39 virtual int32_t OnServiceProfileAdd(const ServiceProfile& profile) = 0;
40 virtual int32_t OnServiceProfileDelete(const ServiceProfile& profile) = 0;
42 virtual int32_t OnCharacteristicProfileAdd(const CharacteristicProfile& profile) = 0;
43 virtual int32_t OnCharacteristicProfileDelete(const CharacteristicProfile& profile) = 0;
/foundation/deviceprofile/device_info_manager/common/test/profilechangelistenerstubunittest/
H A Dprofile_change_listener_stub_test.h40 int32_t OnTrustDeviceProfileAdd(const TrustDeviceProfile& profile) override;
41 int32_t OnTrustDeviceProfileDelete(const TrustDeviceProfile& profile) override;
44 int32_t OnDeviceProfileAdd(const DeviceProfile& profile) override;
45 int32_t OnDeviceProfileDelete(const DeviceProfile& profile) override;
47 int32_t OnServiceProfileAdd(const ServiceProfile& profile) override;
48 int32_t OnServiceProfileDelete(const ServiceProfile& profile) override;
50 int32_t OnCharacteristicProfileAdd(const CharacteristicProfile& profile) override;
51 int32_t OnCharacteristicProfileDelete(const CharacteristicProfile& profile) override;
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dcamera_output_capability.cpp140 for (auto& profile : previewProfiles) { in IsMatchPreviewProfiles()
141 auto it = std::find(previewProfiles_.begin(), previewProfiles_.end(), profile); in IsMatchPreviewProfiles()
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()
158 auto it = std::find(photoProfiles_.begin(), photoProfiles_.end(), profile); in IsMatchPhotoProfiles()
161 "height: %{public}d] cant match", profile.GetCameraFormat(), profile.GetSize().width, in IsMatchPhotoProfiles()
162 profile in IsMatchPhotoProfiles()
[all...]
/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_device_profile_listener.h34 int32_t OnTrustDeviceProfileAdd(const TrustDeviceProfile &profile);
35 int32_t OnTrustDeviceProfileDelete(const TrustDeviceProfile &profile);
37 int32_t OnDeviceProfileAdd(const DeviceProfile &profile);
38 int32_t OnDeviceProfileDelete(const DeviceProfile &profile);
40 int32_t OnServiceProfileAdd(const ServiceProfile &profile);
41 int32_t OnServiceProfileDelete(const ServiceProfile &profile);
43 int32_t OnCharacteristicProfileAdd(const CharacteristicProfile &profile);
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/
H A Dprofile.cpp16 #include "profile.h"
36 Profile *profile = new (std::nothrow) Profile(); in Unmarshalling() local
37 if (profile && !profile->ReadFromParcel(parcel)) { in Unmarshalling()
39 delete profile; in Unmarshalling()
40 profile = nullptr; in Unmarshalling()
42 return profile; in Unmarshalling()
/foundation/deviceprofile/device_info_manager/services/core/src/trustprofilemanager/
H A Dtrust_profile_manager.cpp74 int32_t TrustProfileManager::PutTrustDeviceProfile(const TrustDeviceProfile& profile) in PutTrustDeviceProfile() argument
77 ProfileUtils::TrustDeviceProfileToEntries(profile, values); in PutTrustDeviceProfile()
93 ret = SubscribeProfileManager::GetInstance().NotifyTrustDeviceProfileAdd(profile); in PutTrustDeviceProfile()
102 int32_t TrustProfileManager::PutAccessControlProfile(const AccessControlProfile& profile) in PutAccessControlProfile() argument
104 AccessControlProfile accessControlProfile(profile); in PutAccessControlProfile()
153 int32_t TrustProfileManager::UpdateTrustDeviceProfile(const TrustDeviceProfile& profile) in UpdateTrustDeviceProfile() argument
155 std::string deviceId = profile.GetDeviceId(); in UpdateTrustDeviceProfile()
180 ProfileUtils::TrustDeviceProfileToEntries(profile, values); in UpdateTrustDeviceProfile()
189 std::vector<ValueObject>{ ValueObject(profile.GetDeviceId()) }); in UpdateTrustDeviceProfile()
195 this->UpdateTrustDeviceProfileNotify(oldProfile, profile); in UpdateTrustDeviceProfile()
200 UpdateAccessControlProfile(const AccessControlProfile& profile) UpdateAccessControlProfile() argument
244 GetTrustDeviceProfile(const std::string& deviceId, TrustDeviceProfile& profile) GetTrustDeviceProfile() argument
271 GetAllTrustDeviceProfile(std::vector<TrustDeviceProfile>& profile) GetAllTrustDeviceProfile() argument
299 GetAccessControlProfile(int32_t userId, const std::string& bundleName, int32_t bindType, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
336 GetAccessControlProfile(int32_t userId, const std::string& bundleName, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
374 GetAccessControlProfileByTokenId(int64_t tokenId, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfileByTokenId() argument
411 GetAccessControlProfile(int32_t userId, const std::string& accountId, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
458 GetAccessControlProfile(int32_t userId, std::vector<AccessControlProfile> &profile) GetAccessControlProfile() argument
498 GetAllAccessControlProfile(std::vector<AccessControlProfile>& profile) GetAllAccessControlProfile() argument
536 GetAccessControlProfile(const std::string& bundleName, int32_t bindType, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
573 GetAccessControlProfile(const std::string& bundleName, const std::string& trustDeviceId, int32_t status, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
610 GetAccessControlProfile(const std::map<std::string, std::string>& params, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
680 TrustDeviceProfile profile; DeleteTrustDeviceProfile() local
803 GetAclProfileByUserIdAndBundleName(std::shared_ptr<ResultSet> resultSet, int32_t userId, const std::string& bundleName, std::vector<AccessControlProfile>& profile) GetAclProfileByUserIdAndBundleName() argument
843 GetAclProfileByUserIdAndAccountId(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, int32_t userId, const std::string& accountId, std::vector<AccessControlProfile>& profile) GetAclProfileByUserIdAndAccountId() argument
892 GetAclProfileByTokenId(std::shared_ptr<ResultSet> resultSet, const std::string& trustDeviceId, int64_t tokenId, std::vector<AccessControlProfile>& profile) GetAclProfileByTokenId() argument
933 GetAclProfileByBundleName(std::shared_ptr<ResultSet> resultSet, const std::string& bundleName, std::vector<AccessControlProfile>& profile) GetAclProfileByBundleName() argument
972 ConvertToAccessControlProfiles(std::shared_ptr<ResultSet> resultSet, std::shared_ptr<ResultSet> accesserResultSet, std::shared_ptr<ResultSet> accesseeResultSet, std::vector<AccessControlProfile>& profile) ConvertToAccessControlProfiles() argument
1003 PutAccesserProfile(const AccessControlProfile& profile) PutAccesserProfile() argument
1043 PutAccesseeProfile(const AccessControlProfile& profile) PutAccesseeProfile() argument
1083 SetAccessControlId(AccessControlProfile& profile) SetAccessControlId() argument
1108 SetAccesserId(AccessControlProfile& profile) SetAccesserId() argument
1155 SetAccesseeId(AccessControlProfile& profile) SetAccesseeId() argument
1202 UpdateAccesserProfile(int64_t accesserId, const AccessControlProfile& profile) UpdateAccesserProfile() argument
1224 UpdateAccesseeProfile(int64_t accesseeId, const AccessControlProfile& profile) UpdateAccesseeProfile() argument
1306 GetAccessControlProfile(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, std::vector<AccessControlProfile>& profile) GetAccessControlProfile() argument
1343 GetAccessControlProfilesByDeviceId( std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, const std::string& trustDeviceId, std::vector<AccessControlProfile>& profile) GetAccessControlProfilesByDeviceId() argument
1400 AccessControlProfile profile; DeleteAccessControlProfileCheck() local
1613 GetAccessControlProfiles(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, int32_t userId, const std::string& bundleName, std::vector<AccessControlProfile>& profile) GetAccessControlProfiles() argument
1663 GetAccessControlProfiles(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, int32_t userId, std::vector<AccessControlProfile>& profile) GetAccessControlProfiles() argument
1712 GetAccessControlProfiles(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, const std::string& bundleName, std::vector<AccessControlProfile>& profile) GetAccessControlProfiles() argument
1761 GetAccessControlProfilesByTokenId(std::shared_ptr<ResultSet> resultSet, int64_t accesserId, int64_t accesseeId, const std::string& trustDeviceId, int64_t tokenId, std::vector<AccessControlProfile> &profile) GetAccessControlProfilesByTokenId() argument
1841 UpdateAclCheck(const AccessControlProfile& profile) UpdateAclCheck() argument
1871 PutAclCheck(const AccessControlProfile& profile) PutAclCheck() argument
1903 IsAclExists(const AccessControlProfile &profile) IsAclExists() argument
1959 DeleteTrustDeviceCheck(const AccessControlProfile& profile) DeleteTrustDeviceCheck() argument
[all...]
/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dprofile_utils.cpp406 int32_t ProfileUtils::TrustDeviceProfileToEntries(const TrustDeviceProfile& profile, ValuesBucket& values) in TrustDeviceProfileToEntries() argument
408 values.PutString(DEVICE_ID, profile.GetDeviceId()); in TrustDeviceProfileToEntries()
409 values.PutInt(DEVICE_ID_TYPE, profile.GetDeviceIdType()); in TrustDeviceProfileToEntries()
410 values.PutString(DEVICE_ID_HASH, profile.GetDeviceIdHash()); in TrustDeviceProfileToEntries()
411 values.PutInt(STATUS, profile.GetStatus()); in TrustDeviceProfileToEntries()
415 int32_t ProfileUtils::AccessControlProfileToEntries(const AccessControlProfile& profile, ValuesBucket& values) in AccessControlProfileToEntries() argument
417 values.PutLong(ACCESS_CONTROL_ID, profile.GetAccessControlId()); in AccessControlProfileToEntries()
418 values.PutLong(ACCESSER_ID, profile.GetAccesserId()); in AccessControlProfileToEntries()
419 values.PutLong(ACCESSEE_ID, profile.GetAccesseeId()); in AccessControlProfileToEntries()
420 values.PutString(TRUST_DEVICE_ID, profile in AccessControlProfileToEntries()
461 DeviceProfileToEntries(const DeviceProfile& profile, std::map<std::string, std::string>& values) DeviceProfileToEntries() argument
472 ServiceProfileToEntries(const ServiceProfile& profile, std::map<std::string, std::string>& values) ServiceProfileToEntries() argument
482 CharacteristicProfileToEntries(const CharacteristicProfile& profile, std::map<std::string, std::string>& values) CharacteristicProfileToEntries() argument
493 EntriesToTrustDeviceProfile(const ValuesBucket& values, TrustDeviceProfile& profile) EntriesToTrustDeviceProfile() argument
513 EntriesToAccessControlProfile(const ValuesBucket& values, AccessControlProfile& profile) EntriesToAccessControlProfile() argument
620 EntriesToDeviceProfile(std::map<std::string, std::string> values, DeviceProfile& profile) EntriesToDeviceProfile() argument
647 EntriesToServiceProfile(std::map<std::string, std::string> values, ServiceProfile& profile) EntriesToServiceProfile() argument
667 EntriesToCharProfile(std::map<std::string, std::string> values, CharacteristicProfile& profile) EntriesToCharProfile() argument
800 GetDbKeyByProfile(const CharacteristicProfile& profile) GetDbKeyByProfile() argument
[all...]
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/output/
H A Dcamera_output_capability.h79 Profile& operator=(const Profile& profile) in operator =() argument
81 if (this != &profile) { in operator =()
82 this->format_ = profile.format_; in operator =()
83 this->size_ = profile.size_; in operator =()
84 this->fps_ = profile.fps_; in operator =()
85 this->abilityId_ = profile.abilityId_; in operator =()
89 bool operator==(const Profile& profile) in operator ==() argument
91 return this->format_ == profile.format_ && this->size_.width == profile.size_.width && in operator ==()
92 this->size_.height == profile in operator ==()
140 operator ==(const VideoProfile& profile) operator ==() argument
[all...]
/foundation/deviceprofile/device_info_manager/common/src/interfaces/
H A Dprofile_change_listener_proxy.cpp27 int32_t ProfileListenerProxy::OnTrustDeviceProfileAdd(const TrustDeviceProfile& profile) in OnTrustDeviceProfileAdd() argument
33 if (!profile.Marshalling(data)) { in OnTrustDeviceProfileAdd()
42 int32_t ProfileListenerProxy::OnTrustDeviceProfileDelete(const TrustDeviceProfile& profile) in OnTrustDeviceProfileDelete() argument
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 in OnServiceProfileAdd()
141 OnServiceProfileDelete(const ServiceProfile& profile) OnServiceProfileDelete() argument
175 OnCharacteristicProfileAdd(const CharacteristicProfile& profile) OnCharacteristicProfileAdd() argument
190 OnCharacteristicProfileDelete(const CharacteristicProfile& profile) OnCharacteristicProfileDelete() argument
[all...]
/foundation/distributeddatamgr/pasteboard/framework/framework/device/
H A Ddev_profile.cpp46 int32_t DevProfile::SubscribeDPChangeListener::OnTrustDeviceProfileAdd(const TrustDeviceProfile &profile) in OnTrustDeviceProfileAdd() argument
52 int32_t DevProfile::SubscribeDPChangeListener::OnTrustDeviceProfileDelete(const TrustDeviceProfile &profile) in OnTrustDeviceProfileDelete() argument
65 int32_t DevProfile::SubscribeDPChangeListener::OnDeviceProfileAdd(const DeviceProfile &profile) in OnDeviceProfileAdd() argument
71 int32_t DevProfile::SubscribeDPChangeListener::OnDeviceProfileDelete(const DeviceProfile &profile) in OnDeviceProfileDelete() argument
84 int32_t DevProfile::SubscribeDPChangeListener::OnServiceProfileAdd(const ServiceProfile &profile) in OnServiceProfileAdd() argument
90 int32_t DevProfile::SubscribeDPChangeListener::OnServiceProfileDelete(const ServiceProfile &profile) in OnServiceProfileDelete() argument
103 int32_t DevProfile::SubscribeDPChangeListener::OnCharacteristicProfileAdd(const CharacteristicProfile &profile) in OnCharacteristicProfileAdd() argument
109 int32_t DevProfile::SubscribeDPChangeListener::OnCharacteristicProfileDelete(const CharacteristicProfile &profile) in OnCharacteristicProfileDelete() argument
153 DistributedDeviceProfile::CharacteristicProfile profile; in PutEnabledStatus() local
154 profile in PutEnabledStatus()
177 DistributedDeviceProfile::CharacteristicProfile profile; GetEnabledStatus() local
202 DistributedDeviceProfile::CharacteristicProfile profile; GetRemoteDeviceVersion() local
[all...]
/foundation/multimedia/player_framework/frameworks/native/recorder_profiles/test/unittest/
H A Drecorder_profiles_unit_test.cpp39 * @tc.desc: recorde profile IsAudioRecorderConfigSupported
45 std::shared_ptr<AudioRecorderProfile> profile = std::make_shared<AudioRecorderProfile>(); in HWTEST_F() local
46 profile->containerFormatType = ContainerFormatType::CFT_MPEG_4; in HWTEST_F()
47 profile->audioCodec = CodecMimeType::AUDIO_AAC; in HWTEST_F()
48 profile->audioBitrate = 96000; // 96000 common bitrate in HWTEST_F()
49 profile->audioSampleRate = 48000; // 48000 common sample rate in HWTEST_F()
50 profile->audioChannels = 2; // 2 common channels in HWTEST_F()
51 EXPECT_TRUE(RecorderProfilesFactory::CreateRecorderProfiles().IsAudioRecorderConfigSupported(*profile)); in HWTEST_F()
56 * @tc.desc: recorde profile IsAudioRecorderConfigSupported when match the wrong audioChannels
62 std::shared_ptr<AudioRecorderProfile> profile in HWTEST_F() local
[all...]

Completed in 15 milliseconds

12345678910>>...14