Home
last modified time | relevance | path

Searched refs:profileId (Results 1 - 25 of 35) sorted by relevance

12

/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_preferences_info_test.cpp103 int32_t profileId = 1; in HWTEST_F() local
105 auto res = preferencesInfo->MakeDoNotDisturbProfileKey(userId, profileId); in HWTEST_F()
120 int32_t profileId = 1; in HWTEST_F() local
121 profile->SetProfileId(profileId); in HWTEST_F()
125 auto res = preferencesInfo->GetDoNotDisturbProfiles(profileId, userId, profile); in HWTEST_F()
142 int32_t profileId = 1; in HWTEST_F() local
143 auto res = preferencesInfo->GetDoNotDisturbProfiles(profileId, userId, profile); in HWTEST_F()
158 int32_t profileId = 1; in HWTEST_F() local
159 profile->SetProfileId(profileId); in HWTEST_F()
162 auto res = preferencesInfo->GetDoNotDisturbProfiles(profileId, userI in HWTEST_F()
[all...]
H A Dnotification_preferences_test.cpp1481 * @tc.desc: test GetDoNotDisturbProfile when profileId Not within the correct range.
1486 int32_t profileId = 0; in HWTEST_F() local
1489 auto res = NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(profileId, userId, profile); in HWTEST_F()
1500 int32_t profileId = 1; in HWTEST_F() local
1503 auto res = NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(profileId, userId, profile); in HWTEST_F()
1515 int32_t profileId = 1; in HWTEST_F() local
1518 profile->SetProfileId(profileId); in HWTEST_F()
1521 auto res = NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(profileId, userId, profile); in HWTEST_F()
/base/telephony/cellular_data/services/include/
H A Ddata_connection_params.h30 sptr<ApnHolder> apnHolder, int32_t profileId, int32_t radioTechnology, bool nonTrafficUseOnly, in DataConnectionParams()
32 : apnHolder_(std::move(apnHolder)), profileId_(profileId), rat_(radioTechnology), roamingState_(roamingState), in DataConnectionParams()
53 void SetProfileId(int32_t profileId) in SetProfileId() argument
55 profileId_ = profileId; in SetProfileId()
29 DataConnectionParams( sptr<ApnHolder> apnHolder, int32_t profileId, int32_t radioTechnology, bool nonTrafficUseOnly, bool roamingState, bool userDataRoaming) DataConnectionParams() argument
/base/notification/distributed_notification_service/services/ans/src/clone/
H A Dnotification_clone_disturb_service.cpp87 int32_t profileId = -1; in OnRestore()
94 profileId = (*profile)->GetProfileId(); in OnRestore()
95 ANS_LOGI("Notification disturb profile %{public}d, %{public}zu.", profileId, in OnRestore()
99 profileId, name, exitBunldleList); in OnRestore()
107 profileId = -1; in OnRestore()
180 int32_t profileId = -1; in HandlerBundleEvent()
184 profileId = (*profile)->GetProfileId(); in HandlerBundleEvent()
189 profileId, name, bundleList); in HandlerBundleEvent()
197 profileId = -1; in HandlerBundleEvent()
/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
H A Dril_data_test.cpp52 dataProfileInfo.profileId = 0; in HWTEST_F()
83 dataProfileInfo.profileId = 0; in HWTEST_F()
194 dataProfileInfo.profileId = 0; in HWTEST_F()
220 dataProfileInfo.profileId = 0; in HWTEST_F()
443 dataProfileInfo.profileId = 0; in HWTEST_F()
473 dataProfileInfo.profileId = 0; in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_info.h314 std::string MakeDoNotDisturbProfileKey(int32_t userId, int32_t profileId);
317 bool GetDoNotDisturbProfiles(int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profiles);
H A Dnotification_preferences.h363 ErrCode UpdateDoNotDisturbProfiles(int32_t userId, int32_t profileId,
380 ErrCode GetDoNotDisturbProfile(int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile);
381 bool CheckDoNotDisturbProfileID(int32_t profileId);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Ddisturb_mode.cpp112 int profileId = 0; in GetDoNotDisturbProfile() local
121 napi_get_value_int32(env, obj, &profileId); in GetDoNotDisturbProfile()
122 if (profileId < DO_NOT_DISTURB_PROFILE_MIN_ID || profileId > DO_NOT_DISTURB_PROFILE_MAX_ID) { in GetDoNotDisturbProfile()
126 profile->SetProfileId(profileId); in GetDoNotDisturbProfile()
563 // argv[0]: profileId in ParseParameters()
571 NAPI_CALL(env, napi_get_value_int32(env, argv[PARAM0], &params.profileId)); in ParseParameters()
/base/telephony/telephony_data/pdp_profile/src/
H A Dpdp_profile_ability.cpp188 int PdpProfileAbility::SetPreferApn(int simId, int profileId) in SetPreferApn() argument
195 DATA_STORAGE_LOGI("simId:%{public}d profileId:%{public}d", simId, profileId); in SetPreferApn()
196 return preferencesUtil->SaveInt(PREFER_APN_ID + std::to_string(simId), profileId); in SetPreferApn()
302 int profileId = INVALID_PROFILE_ID; in UpdatePreferApn() local
304 profileId = ceil(temp); in UpdatePreferApn()
313 return SetPreferApn(simId, profileId); in UpdatePreferApn()
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences.cpp522 bool NotificationPreferences::CheckDoNotDisturbProfileID(int32_t profileId) in CheckDoNotDisturbProfileID() argument
524 if (profileId < DO_NOT_DISTURB_PROFILE_MIN_ID || profileId > DO_NOT_DISTURB_PROFILE_MAX_ID) { in CheckDoNotDisturbProfileID()
610 ErrCode NotificationPreferences::UpdateDoNotDisturbProfiles(int32_t userId, int32_t profileId, in UpdateDoNotDisturbProfiles() argument
613 ANS_LOGI("Called update Profile %{public}d %{public}d %{public}zu.", userId, profileId, bundleList.size()); in UpdateDoNotDisturbProfiles()
614 if (!CheckDoNotDisturbProfileID(profileId) || bundleList.empty()) { in UpdateDoNotDisturbProfiles()
621 if (preferencesInfo.GetDoNotDisturbProfiles(profileId, userId, profile)) { in UpdateDoNotDisturbProfiles()
626 profile->SetProfileId(profileId); in UpdateDoNotDisturbProfiles()
750 int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) in GetDoNotDisturbProfile()
752 if (!CheckDoNotDisturbProfileID(profileId)) { in GetDoNotDisturbProfile()
749 GetDoNotDisturbProfile( int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) GetDoNotDisturbProfile() argument
[all...]
H A Dnotification_preferences_info.cpp275 std::string NotificationPreferencesInfo::MakeDoNotDisturbProfileKey(int32_t userId, int32_t profileId) in MakeDoNotDisturbProfileKey() argument
277 return std::to_string(userId).append(KEY_UNDER_LINE).append(std::to_string(profileId)); in MakeDoNotDisturbProfileKey()
309 int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) in GetDoNotDisturbProfiles()
315 std::string key = MakeDoNotDisturbProfileKey(userId, profileId); in GetDoNotDisturbProfiles()
308 GetDoNotDisturbProfiles( int32_t profileId, int32_t userId, sptr<NotificationDoNotDisturbProfile> &profile) GetDoNotDisturbProfiles() argument
H A Dadvanced_notification_service.cpp701 std::string &enable, std::string &profileId) in QueryDoNotDisturbProfile()
719 ret = datashareHelper->Query(idUri, KEY_FOCUS_MODE_PROFILE, profileId); in QueryDoNotDisturbProfile()
758 std::string profileId; in CheckDoNotDisturbProfile() local
759 QueryDoNotDisturbProfile(userId, enable, profileId); in CheckDoNotDisturbProfile()
768 if (NotificationPreferences::GetInstance()->GetDoNotDisturbProfile(atoi(profileId.c_str()), userId, profile) != in CheckDoNotDisturbProfile()
771 ANS_LOGE("profile failed. pid: %{public}s, userid: %{public}d", profileId.c_str(), userId); in CheckDoNotDisturbProfile()
700 QueryDoNotDisturbProfile(const int32_t &userId, std::string &enable, std::string &profileId) QueryDoNotDisturbProfile() argument
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Ddisturb_mode.h25 int32_t profileId = INVALID_PROFILE_ID; member
/base/telephony/core_service/interfaces/innerkits/include/
H A Dtel_ril_data_parcel.h149 int32_t profileId = 0; member
H A Dtelephony_types.h212 int profileId = 0; member
/base/telephony/core_service/services/tel_ril/src/
H A Dtel_ril_data.cpp32 dataProfileInfo.profileId = dataProfile.profileId; in ChangeDPToHalDataProfile()
46 dataProfileInfoWithApnTypes.profileId = dataProfile.profileId; in ChangeDPToHalDataProfileWithApnTypes()
/base/telephony/telephony_data/pdp_profile/include/
H A Dpdp_profile_ability.h97 int SetPreferApn(int simId, int profileId);
/base/telephony/telephony_data/interfaces/innerkits/include/
H A Dpdp_profile_data.h122 int profileId = 0; member
/base/telephony/core_service/test/fuzztest/sendsmsmoremode_fuzzer/
H A Dsendsmsmoremode_fuzzer.cpp158 int32_t profileId = static_cast<int32_t>(*data + offset); in DeactivatePdpContext() local
171 dataProfile.profileId = profileId; in DeactivatePdpContext()
/base/telephony/cellular_data/services/src/apn_manager/
H A Dapn_item.cpp97 apnItem->attr_.profileId_ = apnData.profileId; in MakeApn()
H A Dapn_manager.cpp259 preferId_ = preferApnVec[0].profileId; in CreateAllApnItemByDatabase()
346 TELEPHONY_LOGI("profileId = %{public}d, profileName = %{public}s, mvnoType = %{public}s", in MakeSpecificApnItem()
347 apnData.profileId, apnData.profileName.c_str(), apnData.mvnoType.c_str()); in MakeSpecificApnItem()
348 if (apnData.profileId == preferId_ && apnData.apnTypes.empty()) { in MakeSpecificApnItem()
/base/telephony/cellular_data/test/
H A Dapn_manager_test.cpp405 pdpProfile.profileId = preferId; in HWTEST_F()
423 pdpProfile.profileId = preferId; in HWTEST_F()
441 pdpProfile.profileId = preferId; in HWTEST_F()
H A Dcellualr_data_branch_test.cpp442 int32_t profileId = 0; in HWTEST_F() local
448 profileId, radioTechnology, nonTrafficUseOnly, roamingState, userDataRoaming); in HWTEST_F()
/base/telephony/cellular_data/services/src/
H A Dcellular_data_handler.cpp772 TELEPHONY_LOGI("Slot%{public}d: MSG_SM_CONNECT profileId:%{public}d type:%{public}s networkType:%{public}d", in EstablishDataConnection()
873 void CellularDataHandler::UpdateApnInfo(const int32_t profileId) in UpdateApnInfo() argument
891 if (profileIdValue != profileId) { in UpdateApnInfo()
894 double profileIdAsDouble = static_cast<double>(profileId); in UpdateApnInfo()
1784 dataProfile.profileId = 0; in SetRilAttachApn()
1797 dataProfile.profileId = attachApn->attr_.profileId_; in SetRilAttachApn()
1805 TELEPHONY_LOGI("Slot%{public}d: DataProfile profileId = %{public}d", slotId_, dataProfile.profileId); in SetRilAttachApn()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_disturb_mode.cpp398 asynccallbackinfo->params.profileId, asynccallbackinfo->data); in NapiGetDoNotDisturbProfile()

Completed in 34 milliseconds

12