Home
last modified time | relevance | path

Searched refs:number (Results 1 – 25 of 228) sorted by relevance

12345678910

/base/sensors/medical_sensor/interfaces/plugin/test/unittest/
Dmedical_js_test.cpp190 int32_t number = INT32_MAX; variable
193 napi_value value = GetNapiInt32(number, env);
196 ASSERT_EQ(ret, number);
209 int32_t number = INT32_MIN; variable
212 napi_value value = GetNapiInt32(number, env);
215 ASSERT_EQ(ret, number);
228 int32_t number = static_cast<int32_t>(true); variable
231 napi_value value = GetNapiInt32(number, env);
234 ASSERT_EQ(ret, number);
247 int32_t number = static_cast<int32_t>(false); variable
[all …]
/base/telephony/core_service/services/sim/src/
Dsim_number_decode.cpp54 bool SimNumberDecode::IsValidNumberString(const std::string &number) in IsValidNumberString() argument
56 for (const auto &num : number) { in IsValidNumberString()
123 …const std::string &number, std::vector<uint8_t> &bcdCodes, const bool includeLen, const int bcdExt… in NumberConvertToBCD() argument
129 const bool hasPlus = (number.find('+') != std::string::npos); in NumberConvertToBCD()
130 uint8_t length = number.length(); in NumberConvertToBCD()
140 for (const auto &num : number) { in NumberConvertToBCD()
186 const std::vector<uint8_t>::const_iterator &codeEnd, std::string &number, const int bcdExtType) in BCDSectionConvertToString() argument
199 number.push_back(c); in BCDSectionConvertToString()
209 number.push_back(c); in BCDSectionConvertToString()
215 const std::vector<uint8_t>::const_iterator &codeEnd, std::string &number, const int bcdExtType) in BCDConvertToString() argument
[all …]
/base/telephony/core_service/
DREADME_zh.md75 | function getSimState(slotId: number, callback: AsyncCallback\<SimState>): void; | 获取指定卡槽的SIM卡状态 …
76 | function getSimGid1(slotId: number, callback: AsyncCallback\<string>): void; | 获取指定卡槽SIM卡的GID1(Gr…
77 | function getSimIccId(slotId: number, callback: AsyncCallback\<string>): void; | 获取指定卡槽SIM卡的ICCID(…
78 | function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\<string>): void; | 获取指定卡…
79 | function getSimOperatorNumeric(slotId: number, callback: AsyncCallback\<string>): void; | 获取指定卡槽S…
80 | function getSimSpn(slotId: number, callback: AsyncCallback\<string>): void; | 获取指定卡槽SIM卡的运营商SPN(S…
81 | function getDefaultVoiceSlotId(callback: AsyncCallback\<number>): void; | 获取语音业务的默认卡卡槽 …
82 | function isSimActive(slotId: number, callback: AsyncCallback\<boolean>): void | 检查指定卡槽的SIM卡是否激活 …
83 | function hasSimCard(slotId: number, callback: AsyncCallback\<boolean>): void | 检查SIM卡是否插入指定卡槽 …
84 | function getSimTelephoneNumber(slotId: number, callback: AsyncCallback\<string>): void | 获取指定卡槽SI…
[all …]
DREADME.md76 | function getSimState(slotId: number, callback: AsyncCallback\<SimState>): void; | Obtains the sta…
77 | function getSimGid1(slotId: number, callback: AsyncCallback\<string>): void; | Obtains the group …
78 | function getSimIccId(slotId: number, callback: AsyncCallback\<string>): void; | Obtains the integ…
79 | function getISOCountryCodeForSim(slotId: number, callback: AsyncCallback\<string>): void; | Obtai…
80 | function getSimOperatorNumeric(slotId: number, callback: AsyncCallback\<string>): void; | Obtains…
81 | function getSimSpn(slotId: number, callback: AsyncCallback\<string>): void; | Obtains the service…
82 | function getDefaultVoiceSlotId(callback: AsyncCallback\<number>): void; | Obtains the slot of the…
83 | function isSimActive(slotId: number, callback: AsyncCallback\<boolean>): void | Checks whether th…
84 | function hasSimCard(slotId: number, callback: AsyncCallback\<boolean>): void | Checks whether th…
85 | function getSimTelephoneNumber(slotId: number, callback: AsyncCallback\<string>): void | Obtains …
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dplural_format_impl.cpp79 int PluralFormatImpl::GetPluralRuleIndex(double number, I18nStatus status) const in GetPluralRuleIndex() argument
87 int integerNumber = (int)number; in GetPluralRuleIndex()
89 ComputeDecimalInfo(number, integerNumber, numberInfo, NUMBER_INFO_SIZE); in GetPluralRuleIndex()
135 void PluralFormatImpl::ComputeDecimalInfo(double number, int integerNumber, int *numberInfo, in ComputeDecimalInfo() argument
143 double temp = number * pow(10, i); in ComputeDecimalInfo()
219 int PluralFormatImpl::GetPluralRuleIndex(int number, I18nStatus status) const in GetPluralRuleIndex() argument
227 …s->mZeroRuleSize > 0) && ParseRule(mPluralRules->mZeroRule, mPluralRules->mZeroRuleSize, number)) { in GetPluralRuleIndex()
230 ParseRule(mPluralRules->mOneRule, mPluralRules->mOneRuleSize, number)) { in GetPluralRuleIndex()
233 ParseRule(mPluralRules->mTwoRule, mPluralRules->mTwoRuleSize, number)) { in GetPluralRuleIndex()
236 ParseRule(mPluralRules->mFewRule, mPluralRules->mFewRuleSize, number)) { in GetPluralRuleIndex()
[all …]
Dplural_format.cpp59 int PluralFormat::GetPluralRuleIndex(int number, I18nStatus status) in GetPluralRuleIndex() argument
67 return impl->GetPluralRuleIndex(number, status); in GetPluralRuleIndex()
70 int PluralFormat::GetPluralRuleIndex(double number, I18nStatus status) in GetPluralRuleIndex() argument
78 return impl->GetPluralRuleIndex(number, status); in GetPluralRuleIndex()
/base/global/i18n_lite/frameworks/i18n/include/
Dplural_format_impl.h30 int GetPluralRuleIndex(int number, I18nStatus status) const;
31 int GetPluralRuleIndex(double number, I18nStatus status) const;
39 bool ParseRule(const std::string &rule, const int ruleSize, const int number) const;
40 …bool ParseFormula(const std::string &rule, const int ruleSize, int &index, const int number) const;
41 …bool CompareResult(const std::string &rule, const int ruleSize, int &index, const int number) cons…
42 …areNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int number) const;
48 …void ComputeDecimalInfo(double number, int integerNumber, int *numberInfo, const int numberInfoSiz…
/base/telephony/sms_mms/
DREADME_zh.md68 | function createMessage(pdu: Array\<number>, specification: string, callback: AsyncCallback、\<Shor…
69 | function createMessage(pdu: Array\<number>, specification: string): Promise\<ShortMessage> | 根据协议…
70 | function getDefaultSmsSlotId(callback: AsyncCallback\<number>): void | 获取发送短信的默认SIM卡槽,使用callback方…
71 | function getDefaultSmsSlotId():Promise\<number> | 获取发送短信的默认SIM卡,使用Promise方式异步返回默认SIM…
72 | function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback\<void>): void | 设置…
73 | function setSmscAddr(slotId: number, smscAddr: string): Promise\<void> | 设置短信服务中心地址,使用Promise方式异步…
74 | function getSmscAddr(slotId: number, callback: AsyncCallback\<string>): void | 获取短信服务中心地址,使用callb…
75 | function getSmscAddr(slotId: number): Promise\<string> | 获取短信服务中心地址,使用Promise方式异步返回短信服务中心地址…
81 | slotId | number | 卡槽id | 是 …
84 | content | content \| Array\<number> | 短信内容 | 是 …
[all …]
/base/telephony/core_service/interfaces/innerkits/include/
Ddialling_numbers_info.h105 DiallingNumbersInfo(std::u16string &alphaTag, std::u16string &number) in DiallingNumbersInfo() argument
107 DiallingNumbersInfo(0, 0, alphaTag, number); in DiallingNumbersInfo()
110 …DiallingNumbersInfo(std::u16string alphaTag, std::u16string number, std::vector<std::u16string> &e… in DiallingNumbersInfo() argument
112 DiallingNumbersInfo(0, 0, alphaTag, number, emails); in DiallingNumbersInfo()
115 …lingNumbersInfo(int32_t efid, int32_t recordNumber, std::u16string alphaTag, std::u16string number, in DiallingNumbersInfo() argument
121 number_ = number; in DiallingNumbersInfo()
125 …ngNumbersInfo(int32_t efid, int32_t recordNumber, std::u16string &alphaTag, std::u16string &number) in DiallingNumbersInfo() argument
130 number_ = number; in DiallingNumbersInfo()
155 void UpdateNumber(std::u16string number) in UpdateNumber() argument
157 number_ = number; in UpdateNumber()
/base/telephony/cellular_call/test/fuzztest/registercallmanagercallback_fuzzer/
Dregistercallmanagercallback_fuzzer.cpp57 std::string number(reinterpret_cast<const char *>(data), size); in ReportCallsInfo()
58 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportCallsInfo()
59 if (memcpy_s(callReportInfo.accountNum, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportCallsInfo()
102 std::string number(reinterpret_cast<const char *>(data), size); in ReportSetRestrictionResult()
103 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetRestrictionResult()
104 if (memcpy_s(callTransferResponse.number, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetRestrictionResult()
145 std::string number(reinterpret_cast<const char *>(data), size); in ReportSetImsConfigResult()
146 details.message = number; in ReportSetImsConfigResult()
156 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetImsConfigResult()
157 if (memcpy_s(mmiCodeInfo.message, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetImsConfigResult()
/base/global/i18n/frameworks/intl/test/fuzztest/breakiterator_fuzzer/
Dbreakiterator_fuzzer.cpp29 int32_t number = static_cast<int32_t>(data[size - 1]); in DoSomethingInterestingWithMyAPI() local
34 iterator.isBoundary(number); in DoSomethingInterestingWithMyAPI()
38 iterator.next(number); in DoSomethingInterestingWithMyAPI()
41 iterator.following(number); in DoSomethingInterestingWithMyAPI()
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_config.cpp29 FaultLoggerConfig::FaultLoggerConfig(const int number, const long size, const std::string& path, co… in FaultLoggerConfig() argument
30 :logFileNumber_(number), logFileSize_(size), logFilePath_(path), debugLogFilePath_(debugPath) in FaultLoggerConfig()
33 FAULTLOGGER_CONFIG_TAG.c_str(), number, size, path.c_str(), debugPath.c_str()); in FaultLoggerConfig()
47 bool FaultLoggerConfig::SetLogFileMaxNumber(const int number) in SetLogFileMaxNumber() argument
49 logFileNumber_ = number; in SetLogFileMaxNumber()
/base/sensors/medical_sensor/interfaces/plugin/src/
Dmedical_napi_utils.cpp38 napi_value GetNapiInt32(int32_t number, napi_env env) in GetNapiInt32() argument
41 napi_create_int32(env, number, &value); in GetNapiInt32()
54 int32_t number; in GetCppInt32() local
55 napi_get_value_int32(env, value, &number); in GetCppInt32()
56 return number; in GetCppInt32()
61 int64_t number; in GetCppInt64() local
62 napi_get_value_int64(env, value, &number); in GetCppInt64()
63 return number; in GetCppInt64()
68 bool number; in GetCppBool() local
69 napi_get_value_bool(env, value, &number); in GetCppBool()
[all …]
/base/startup/init/services/begetctl/
Dmain.c51 int number = argc; in main() local
54 number = argc - 1; in main()
57 if (number >= 1 && strcmp(args[0], "devctl") == 0) { in main()
72 BShellEnvDirectExecute(handle, number, args); in main()
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/
Dimsclient_fuzzer.cpp56 std::string number(reinterpret_cast<const char *>(data), length); in TestImsCallClientWithCallInfo()
61 const char *cDtmfCode = number.c_str(); in TestImsCallClientWithCallInfo()
62 if (strcpy_s(callInfo.phoneNum, sizeof(callInfo.phoneNum), number.c_str()) != EOK) { in TestImsCallClientWithCallInfo()
69 numberList.push_back(number); in TestImsCallClientWithCallInfo()
81 imsCallClient->StartRtt(slotId, number); in TestImsCallClientWithCallInfo()
134 std::string number(reinterpret_cast<const char *>(data), length); in TestImsCallClientWithSettingFunction()
140 imsCallClient->SetImsConfig(static_cast<ImsConfigItem>(item), number); in TestImsCallClientWithSettingFunction()
155 … if (strcpy_s(transferInfo.transferNum, sizeof(transferInfo.transferNum), number.c_str()) != EOK) { in TestImsCallClientWithSettingFunction()
160 imsCallClient->SetCallTransfer(slotId, type, mode, number, type); in TestImsCallClientWithSettingFunction()
162 imsCallClient->SetCallRestriction(slotId, number, mode, number); in TestImsCallClientWithSettingFunction()
[all …]
/base/global/i18n/frameworks/intl/src/
Dplural_rules.cpp142 …numberFormatter = icu::number::NumberFormatter::withLocale(locale).roundingMode(UNUM_ROUND_HALFUP); in InitNumberFormatter()
144 … numberFormatter = numberFormatter.integerWidth(icu::number::IntegerWidth::zeroFillTo(minInteger)); in InitNumberFormatter()
149 … icu::number::Precision precision = icu::number::Precision::minMaxSignificantDigits(minSignificant, in InitNumberFormatter()
153 …icu::number::Precision precision = icu::number::Precision::minMaxFraction(minFraction, maxFraction… in InitNumberFormatter()
174 std::string PluralRules::Select(double number) in Select() argument
180 icu::number::FormattedNumber formattedNumber = numberFormatter.formatDouble(number, status); in Select()
183 formattedNumber = numberFormatter.formatDouble(number, status); in Select()
Dphone_number_format.cpp86 bool PhoneNumberFormat::isValidPhoneNumber(const std::string &number) const in isValidPhoneNumber()
89 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in isValidPhoneNumber()
96 std::string PhoneNumberFormat::format(const std::string &number) const in format()
99 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in format()
108 std::string PhoneNumberFormat::getLocationName(const std::string &number, const std::string &locale… in getLocationName() argument
122 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in getLocationName()
130 const char* numberStr = number.c_str(); in getLocationName()
/base/inputmethod/imf/unitest/src/
Dinput_method_ability_test.cpp443 int32_t number = 3; variable
445 auto ret = inputMethodAbility_->GetTextAfterCursor(number, text);
448 ret = inputMethodAbility_->GetTextBeforeCursor(number, text);
465 int32_t number = 3; variable
467 auto ret = inputMethodAbility_->GetTextAfterCursor(number, text);
470 ret = inputMethodAbility_->GetTextBeforeCursor(number, text);
487 int32_t number = 3; variable
489 auto ret = inputMethodAbility_->GetTextAfterCursor(number, text);
492 ret = inputMethodAbility_->GetTextBeforeCursor(number, text);
509 int32_t number = 3; variable
[all …]
/base/inputmethod/imf/frameworks/inputmethod_controller/src/
Dinput_data_channel_stub.cpp60 auto number = data.ReadInt32(); in OnRemoteRequest() local
62 reply.WriteInt32(HandleGetOperation(number, text, GET_TEXT_BEFORE_CURSOR)); in OnRemoteRequest()
67 auto number = data.ReadInt32(); in OnRemoteRequest() local
69 reply.WriteInt32(HandleGetOperation(number, text, GET_TEXT_AFTER_CURSOR)); in OnRemoteRequest()
165 int32_t InputDataChannelStub::GetTextBeforeCursor(int32_t number, std::u16string &text) in GetTextBeforeCursor() argument
168 return InputMethodController::GetInstance()->GetTextBeforeCursor(number, text); in GetTextBeforeCursor()
171 int32_t InputDataChannelStub::GetTextAfterCursor(int32_t number, std::u16string &text) in GetTextAfterCursor() argument
174 return InputMethodController::GetInstance()->GetTextAfterCursor(number, text); in GetTextAfterCursor()
189 …int32_t InputDataChannelStub::HandleGetOperation(int32_t number, std::u16string &text, int32_t msg… in HandleGetOperation() argument
191 …IMSA_HILOGI("InputDataChannelStub::start, msgId: %{public}d, number: %{public}d", msgType, number); in HandleGetOperation()
[all …]
/base/telephony/call_manager/services/audio/src/
Dcall_state_processor.cpp113 int32_t number = EMPTY_VALUE; in GetCallNumber() local
116 number = static_cast<int32_t>(dialingCalls_.size()); in GetCallNumber()
119 number = static_cast<int32_t>(alertingCalls_.size()); in GetCallNumber()
122 number = static_cast<int32_t>(incomingCalls_.size()); in GetCallNumber()
125 number = static_cast<int32_t>(activeCalls_.size()); in GetCallNumber()
128 number = static_cast<int32_t>(holdingCalls_.size()); in GetCallNumber()
133 return number; in GetCallNumber()
/base/telephony/call_manager/services/bluetooth/src/
Dbluetooth_call_service.cpp114 std::string number = ""; in GetCallState() local
117 number = GetCallNumber(TelCallState::CALL_STATUS_HOLDING); in GetCallState()
121 number = GetCallNumber(TelCallState::CALL_STATUS_ACTIVE); in GetCallState()
125 number = GetCallNumber(TelCallState::CALL_STATUS_DIALING); in GetCallState()
129 number = GetCallNumber(TelCallState::CALL_STATUS_ALERTING); in GetCallState()
133 number = GetCallNumber(TelCallState::CALL_STATUS_INCOMING); in GetCallState()
137 number = GetCallNumber(TelCallState::CALL_STATUS_WAITING); in GetCallState()
141 number = GetCallNumber(TelCallState::CALL_STATUS_DISCONNECTED); in GetCallState()
145 number = GetCallNumber(TelCallState::CALL_STATUS_DISCONNECTING); in GetCallState()
148 SendBtCallState(numActive, numHeld, callState, number); in GetCallState()
/base/global/i18n/frameworks/intl/test/fuzztest/relativetimeformat_fuzzer/
Drelativetimeformat_fuzzer.cpp34 double number = static_cast<double>(data[0]); in DoSomethingInterestingWithMyAPI() local
35 formatter.Format(number, input); in DoSomethingInterestingWithMyAPI()
38 formatter.FormatToParts(number, input, timeVector); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/include/
Dphone_number_format.h33 bool isValidPhoneNumber(const std::string &number) const;
34 std::string format(const std::string &number) const;
37 std::string getLocationName(const std::string &number, const std::string &locale) const;
/base/telephony/core_service/services/sim/include/
Dsim_number_decode.h35 static bool NumberConvertToBCD(const std::string &number, std::vector<uint8_t> &bcdCodes,
39 const std::vector<uint8_t>::const_iterator &codeEnd, std::string &number,
45 static bool IsValidNumberString(const std::string &number);
49 … const std::vector<uint8_t>::const_iterator &codeEnd, std::string &number, const int bcdExtType);
/base/web/webview/interfaces/kits/napi/common/
Dnapi_parse_utils.cpp31 napi_value NapiParseUtils::ToInt32Value(napi_env env, int32_t number) in ToInt32Value() argument
34 napi_create_int32(env, number, &result); in ToInt32Value()
47 int32_t number = 0; in ParseInt32() local
48 napi_get_value_int32(env, argv, &number); in ParseInt32()
49 outValue = number; in ParseInt32()

12345678910