/base/telephony/core_service/frameworks/native/src/ |
H A D | profile_info_list_parcel.cpp | 23 bool GetEuiccProfileInfoListResult::ReadProfileFromParcel(Parcel &parcel, EuiccProfile &profile)
in ReadProfileFromParcel() argument 28 if (!parcel.ReadString16(profile.iccId_) || !parcel.ReadString16(profile.nickName_) ||
in ReadProfileFromParcel() 29 !parcel.ReadString16(profile.serviceProviderName_) || !parcel.ReadString16(profile.profileName_) ||
in ReadProfileFromParcel() 31 !parcel.ReadString16(profile.carrierId_.mcc_) || !parcel.ReadString16(profile.carrierId_.mnc_) ||
in ReadProfileFromParcel() 32 !parcel.ReadString16(profile.carrierId_.gid1_) || !parcel.ReadString16(profile.carrierId_.gid2_) ||
in ReadProfileFromParcel() 36 profile in ReadProfileFromParcel() [all...] |
H A D | get_downloadable_profiles_result_parcel.cpp | 41 for (auto &profile : downloadableProfiles_) {
in ReadFromParcel() 42 if (!parcel.ReadString16(profile.encodedActivationCode_) ||
in ReadFromParcel() 43 !parcel.ReadString16(profile.confirmationCode_) ||
in ReadFromParcel() 44 !parcel.ReadString16(profile.carrierName_)) {
in ReadFromParcel() 57 profile.accessRules_.resize(count);
in ReadFromParcel() 58 for (auto &rule : profile.accessRules_) {
in ReadFromParcel() 76 for (auto const &profile : downloadableProfiles_) {
in Marshalling() 77 if (!parcel.WriteString16(profile.encodedActivationCode_) ||
in Marshalling() 78 !parcel.WriteString16(profile.confirmationCode_) ||
in Marshalling() 79 !parcel.WriteString16(profile in Marshalling() [all...] |
/base/notification/distributed_notification_service/services/ans/src/clone/ |
H A D | notification_clone_disturb_service.cpp | 51 ANS_LOGI("Notification disturb profile list is empty."); in OnBackup() 60 ANS_LOGD("Notification disturb profile list %{public}s", jsonObject.dump().c_str()); in OnBackup() 66 ANS_LOGI("Notification disturb profile list on restore."); in OnRestore() 68 ANS_LOGI("Notification disturb profile list is null or not array."); in OnRestore() 73 for (const auto &profile : jsonObject) { in OnRestore() 75 item->FromJson(profile.dump()); in OnRestore() 86 ANS_LOGI("Notification disturb profile ffrt start %{public}zu.", profiles_.size()); in OnRestore() 90 for (auto profile = profiles_.begin(); profile != profiles_.end();) { in OnRestore() 93 name = (*profile) in OnRestore() [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_info_test.cpp | 119 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 121 profile->SetProfileId(profileId); in HWTEST_F() 122 profiles.emplace_back(profile); in HWTEST_F() 125 auto res = preferencesInfo->GetDoNotDisturbProfiles(profileId, userId, profile); in HWTEST_F() 139 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 140 profiles.emplace_back(profile); in HWTEST_F() 143 auto res = preferencesInfo->GetDoNotDisturbProfiles(profileId, userId, profile); in HWTEST_F() 157 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 159 profile->SetProfileId(profileId); in HWTEST_F() 160 profiles.emplace_back(profile); in HWTEST_F() [all...] |
H A D | notification_preferences_test.cpp | 1388 * @tc.desc: test AddDoNotDisturbProfiles id of profile out of range. 1395 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 1396 profile->SetProfileId(0); in HWTEST_F() 1397 profiles.emplace_back(profile); in HWTEST_F() 1425 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 1426 profile->SetProfileId(1); in HWTEST_F() 1427 profiles.emplace_back(profile); in HWTEST_F() 1434 * @tc.desc: test RemoveDoNotDisturbProfiles id of profile out of range. 1441 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in HWTEST_F() local 1442 profile in HWTEST_F() 1472 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); HWTEST_F() local 1488 sptr<NotificationDoNotDisturbProfile> profile; HWTEST_F() local 1502 sptr<NotificationDoNotDisturbProfile> profile; HWTEST_F() local 1516 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); HWTEST_F() local [all...] |
/base/telephony/call_manager/services/bluetooth/src/ |
H A D | bluetooth_connection.cpp | 65 Bluetooth::HandsFreeAudioGateway *profile = Bluetooth::HandsFreeAudioGateway::GetProfile(); in Init() local 66 if (profile == nullptr) { in Init() 67 TELEPHONY_LOGE("profile is nullptr"); in Init() 70 int32_t result = profile->GetConnectedDevices(devices); in Init() 104 Bluetooth::HandsFreeAudioGateway *profile = Bluetooth::HandsFreeAudioGateway::GetProfile(); in SendBtCallState() local 105 if (profile == nullptr) { in SendBtCallState() 106 TELEPHONY_LOGE("profile is nullptr"); in SendBtCallState() 111 profile->PhoneStateChanged(numActive, numHeld, callState, number, PHONE_NUMBER_TYPE, nickName); in SendBtCallState() 121 Bluetooth::HandsFreeAudioGateway *profile = Bluetooth::HandsFreeAudioGateway::GetProfile(); in SendCallDetailsChange() local 122 if (profile in SendCallDetailsChange() 148 Bluetooth::HandsFreeAudioGateway *profile = Bluetooth::HandsFreeAudioGateway::GetProfile(); RegisterObserver() local [all...] |
/base/useriam/user_auth_framework/services/context/src/ |
H A D | auth_widget_helper.cpp | 37 ContextFactory::AuthProfile profile; in InitWidgetContextParam() local 38 if (!GetUserAuthProfile(para.userId, authType, profile)) { in InitWidgetContextParam() 39 IAM_LOGE("get user auth profile failed"); in InitWidgetContextParam() 42 para.authProfileMap[authType] = profile; in InitWidgetContextParam() 44 WidgetClient::Instance().SetPinSubType(static_cast<PinSubType>(profile.pinSubType)); in InitWidgetContextParam() 46 WidgetClient::Instance().SetSensorInfo(profile.sensorInfo); in InitWidgetContextParam() 60 ContextFactory::AuthProfile &profile) in GetUserAuthProfile() 103 return ParseAttributes(values, authType, profile); in GetUserAuthProfile() 107 ContextFactory::AuthProfile &profile) in ParseAttributes() 110 if (!values.GetInt32Value(Attributes::ATTR_PIN_SUB_TYPE, profile in ParseAttributes() 59 GetUserAuthProfile(int32_t userId, const AuthType &authType, ContextFactory::AuthProfile &profile) GetUserAuthProfile() argument 106 ParseAttributes(const Attributes &values, const AuthType &authType, ContextFactory::AuthProfile &profile) ParseAttributes() argument [all...] |
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
H A D | hap_profile_verify_utils.cpp | 29 const HapByteBuffer& pkcs7ProfileBlock, std::string& profile)
in ParseProfile() 33 profile = std::string(pkcs7ProfileBlock.GetBufferPtr(), pkcs7ProfileBlock.GetCapacity());
in ParseProfile() 44 profile = std::string(profilePkcs7Context.content.GetBufferPtr(), profilePkcs7Context.content.GetCapacity());
in ParseProfile() 56 HAPVERIFY_LOG_ERROR("verify profile signature failed");
in VerifyProfile() 72 HAPVERIFY_LOG_ERROR("profile signature is not trusted source, subject: %{private}s, issuer: %{public}s",
in VerifyProfile() 76 HAPVERIFY_LOG_DEBUG("profile subject: %{private}s, issuer: %{public}s",
in VerifyProfile() 28 ParseProfile(Pkcs7Context& profilePkcs7Context, const Pkcs7Context& hapPkcs7Context, const HapByteBuffer& pkcs7ProfileBlock, std::string& profile) ParseProfile() argument
|
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/ |
H A D | fusion_device_profile_adapter.cpp | 134 ServiceCharacteristicProfile profile; in UpdateCrossSwitchState() local 135 profile.SetServiceId(SERVICE_ID); in UpdateCrossSwitchState() 136 profile.SetServiceType(SERVICE_TYPE); in UpdateCrossSwitchState() 143 profile.SetCharacteristicProfileJson(smsg); in UpdateCrossSwitchState() 145 return DistributedDeviceProfileClient::GetInstance().PutDeviceProfile(profile); in UpdateCrossSwitchState() 152 ServiceCharacteristicProfile profile; in SyncCrossSwitchState() local 153 profile.SetServiceId(SERVICE_ID); in SyncCrossSwitchState() 154 profile.SetServiceType(SERVICE_TYPE); in SyncCrossSwitchState() 161 profile.SetCharacteristicProfileJson(smsg); in SyncCrossSwitchState() 164 int32_t ret = DistributedDeviceProfileClient::GetInstance().PutDeviceProfile(profile); in SyncCrossSwitchState() 175 ServiceCharacteristicProfile profile; GetCrossSwitchState() local [all...] |
H A D | fusion_device_profile.cpp | 74 int32_t PutDeviceProfile(const CServiceCharacteristicProfile* profile) in PutDeviceProfile() argument 80 int32_t GetDeviceProfile(const char* udId, const char* serviceId, CServiceCharacteristicProfile* profile) in GetDeviceProfile() argument 151 ProfileEvent profile = static_cast<ProfileEvent>(cPro); in UnsubscribeProfileEvents() local 152 profiles.push_back(profile); in UnsubscribeProfileEvents()
|
/base/useriam/user_auth_framework/services/context/inc/ |
H A D | auth_widget_helper.h | 35 ContextFactory::AuthProfile &profile); 41 ContextFactory::AuthProfile &profile);
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences_info.cpp | 283 for (auto profile : profiles) { in AddDoNotDisturbProfiles() 284 if (profile == nullptr) { in AddDoNotDisturbProfiles() 285 ANS_LOGE("The profile is nullptr."); in AddDoNotDisturbProfiles() 288 std::string key = MakeDoNotDisturbProfileKey(userId, profile->GetProfileId()); in AddDoNotDisturbProfiles() 290 doNotDisturbProfiles_.insert_or_assign(key, profile); in AddDoNotDisturbProfiles() 297 for (auto profile : profiles) { in RemoveDoNotDisturbProfiles() 298 if (profile == nullptr) { in RemoveDoNotDisturbProfiles() 299 ANS_LOGE("The profile is nullptr."); in RemoveDoNotDisturbProfiles() 302 std::string key = MakeDoNotDisturbProfileKey(userId, profile->GetProfileId()); in RemoveDoNotDisturbProfiles() 309 int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) in GetDoNotDisturbProfiles() 308 GetDoNotDisturbProfiles( int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) GetDoNotDisturbProfiles() argument 332 auto profile = doNotDisturbProfile.second; GetAllDoNotDisturbProfiles() local [all...] |
H A D | notification_preferences.cpp | 525 ANS_LOGE("The profile id is out of range."); in CheckDoNotDisturbProfileID() 535 for (auto profile : profiles) { in AddDoNotDisturbProfiles() 536 if (profile == nullptr) { in AddDoNotDisturbProfiles() 537 ANS_LOGE("The profile is nullptr."); in AddDoNotDisturbProfiles() 540 if (!CheckDoNotDisturbProfileID(profile->GetProfileId())) { in AddDoNotDisturbProfiles() 543 auto trustList = profile->GetProfileTrustList(); in AddDoNotDisturbProfiles() 550 profile->SetProfileTrustList(trustList); in AddDoNotDisturbProfiles() 570 for (auto profile : profiles) { in RemoveDoNotDisturbProfiles() 571 if (profile == nullptr) { in RemoveDoNotDisturbProfiles() 572 ANS_LOGE("The profile i in RemoveDoNotDisturbProfiles() 618 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); UpdateDoNotDisturbProfiles() local 749 GetDoNotDisturbProfile( int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) GetDoNotDisturbProfile() argument [all...] |
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
H A D | hap_verify_test.cpp | 187 ProvisionInfo profile = hapVerifyResult.GetProvisionInfo(); in HWTEST_F() local 188 ASSERT_TRUE(profile.type == ProvisionType::RELEASE); in HWTEST_F() 210 * @tc.steps: step4. change profile pkcs7 data. in HWTEST_F() 256 ProvisionInfo profile = hapVerifyResult.GetProvisionInfo(); in HWTEST_F() local 257 ASSERT_EQ(profile.type, ProvisionType::RELEASE); in HWTEST_F() 258 ASSERT_EQ(profile.fingerprint, TEST_FINGERPRINT); in HWTEST_F() 259 ASSERT_EQ(profile.versionCode, TEST_VERSION_CODE); in HWTEST_F() 260 ASSERT_EQ(profile.versionName, TEST_VERSION_NAME); in HWTEST_F() 261 ASSERT_EQ(profile.distributionType, AppDistType::OS_INTEGRATION); in HWTEST_F()
|
H A D | hap_verify_v2_test.cpp | 181 * @tc.desc: The static function will return result of verify profile info;
187 * @tc.steps: step1. profile match with debug and profile type is release.
in HWTEST_F() 198 * @tc.steps: step2. profile debug cert is null.
in HWTEST_F() 217 * @tc.steps: step4. profile distributed cert is null.
in HWTEST_F() 233 * @tc.steps: step1. input a null profile.
in HWTEST_F() 237 std::string profile;
in HWTEST_F() local 239 ASSERT_FALSE(v2.ParseAndVerifyProfileIfNeed(profile, provisionInfo, false));
in HWTEST_F() 241 * @tc.steps: step1. input no need parse and verify profile.
in HWTEST_F() 244 ASSERT_TRUE(v2.ParseAndVerifyProfileIfNeed(profile, provisionInf in HWTEST_F() [all...] |
/base/msdp/device_status/rust/subsystem/device_profile/binding/include/ |
H A D | fusion_device_profile.h | 89 int32_t PutDeviceProfile(const CServiceCharacteristicProfile* profile); 90 int32_t GetDeviceProfile(const char* udId, const char* serviceId, CServiceCharacteristicProfile* profile);
|
/base/security/code_signature/services/key_enable/src/ |
H A D | profile_utils.rs | 50 const PROFILE_STORE_TAIL: &str = "profile.p7b"; 67 /// profile error 72 /// profile error report to hisysevent 90 /// the interface to enable key in profile 93 profile: *const u8, in EnableKeyInProfileByRust() 96 match enable_key_in_profile_internal(bundle_name, profile, profile_size) { in EnableKeyInProfileByRust() 103 /// the interface remove key in profile 117 let profile = verify_pkcs7_signature(pkcs7, root_store, flags)?; in parse_pkcs7_data() 118 let profile_json = parse_and_validate_profile(profile, check_udid)?; in parse_pkcs7_data() 128 let mut profile in verify_pkcs7_signature() variables [all...] |
/base/useriam/user_auth_framework/test/unittest/services/src/ |
H A D | widget_json_test.cpp | 161 auto &profile = item.second; in HWTEST_F() local 168 if (at == AuthType::FINGERPRINT && !profile.sensorInfo.empty()) { in HWTEST_F() 169 cmd.sensorInfo = profile.sensorInfo; in HWTEST_F() 171 cmd.remainAttempts = profile.remainTimes; in HWTEST_F() 172 cmd.lockoutDuration = profile.freezingTime; in HWTEST_F() 230 auto &profile = item.second; in HWTEST_F() local 237 if (at == AuthType::FINGERPRINT && !profile.sensorInfo.empty()) { in HWTEST_F() 238 cmd.sensorInfo = profile.sensorInfo; in HWTEST_F() 240 cmd.remainAttempts = profile.remainTimes; in HWTEST_F() 241 cmd.lockoutDuration = profile in HWTEST_F() [all...] |
/base/security/code_signature/services/key_enable/src/asan/ |
H A D | disable_rust_interface.cpp | 19 int32_t EnableKeyInProfileByRust(const char* bundleName, const uint8_t* profile, uint32_t profileSize) in EnableKeyInProfileByRust() argument
|
/base/security/code_signature/services/key_enable/include/ |
H A D | rust_interface.h | 24 int32_t EnableKeyInProfileByRust(const char* bundleName, const uint8_t* profile, uint32_t profileSize);
|
/base/security/appverify/interfaces/innerkits/appverify/src/verify/ |
H A D | hap_verify_v2.cpp | 177 std::string profile; in VerifyAppSourceAndParseProfile() local 178 if (!HapProfileVerifyUtils::ParseProfile(profileContext, pkcs7Context, hapProfileBlock, profile)) { in VerifyAppSourceAndParseProfile() 179 HAPVERIFY_LOG_ERROR("Parse profile pkcs7 failed"); in VerifyAppSourceAndParseProfile() 188 * If app source is not trusted, verify profile. in VerifyAppSourceAndParseProfile() 189 * If profile is debug, check whether app signed cert is same as the debug cert in profile. in VerifyAppSourceAndParseProfile() 190 * If profile is release, do not allow installation of this app. in VerifyAppSourceAndParseProfile() 196 HAPVERIFY_LOG_ERROR("profile verify failed"); in VerifyAppSourceAndParseProfile() 200 HAPVERIFY_LOG_ERROR("MatchProfileRootCa failed, target rootCa: %{public}s, rootCa in profile: %{public}s", in VerifyAppSourceAndParseProfile() 204 AppProvisionVerifyResult profileRet = ParseAndVerify(profile, provisionInf in VerifyAppSourceAndParseProfile() 374 ParseAndVerifyProfileIfNeed(const std::string& profile, ProvisionInfo& provisionInfo, bool isCallParseAndVerify) ParseAndVerifyProfileIfNeed() argument 464 std::string profile = std::string(profileContext.content.GetBufferPtr(), profileContext.content.GetCapacity()); ParseHapProfile() local [all...] |
/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
H A D | hap_profile_verify_utils.h | 30 const HapByteBuffer& pkcs7ProfileBlock, std::string& profile);
|
/base/telephony/core_service/frameworks/js/esim/include/ |
H A D | napi_esim.h | 88 AsyncDownloadableProfile profile; member 117 AsyncDownloadableProfile profile; member
|
/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | profile_info_list_parcel.h | 35 bool ReadProfileFromParcel(Parcel &parcel, EuiccProfile &profile);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | disturb_mode.cpp | 103 const napi_env &env, const napi_value &value, sptr<NotificationDoNotDisturbProfile> &profile) in GetDoNotDisturbProfile() 123 ANS_LOGE("The profile id is out of range."); in GetDoNotDisturbProfile() 126 profile->SetProfileId(profileId); in GetDoNotDisturbProfile() 142 profile->SetProfileName(name); in GetDoNotDisturbProfile() 144 return AnalyseTrustlist(env, value, profile); in GetDoNotDisturbProfile() 147 bool AnalyseTrustlist(const napi_env &env, const napi_value &value, sptr<NotificationDoNotDisturbProfile> &profile) in AnalyseTrustlist() argument 184 profile->SetProfileTrustList(options); in AnalyseTrustlist() 284 sptr<NotificationDoNotDisturbProfile> profile = new (std::nothrow) NotificationDoNotDisturbProfile(); in ParseProfilesParameters() local 285 if (profile == nullptr) { in ParseProfilesParameters() 289 if (!GetDoNotDisturbProfile(env, nProfile, profile)) { in ParseProfilesParameters() 102 GetDoNotDisturbProfile( const napi_env &env, const napi_value &value, sptr<NotificationDoNotDisturbProfile> &profile) GetDoNotDisturbProfile() argument [all...] |