/base/sensors/medical_sensor/interfaces/plugin/test/unittest/ |
D | medical_js_test.cpp | 190 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/ |
D | sim_number_decode.cpp | 54 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/time/time_service/ |
D | README_zh.md | 37 | setTime(time : number) : Promise | 设置系统时间(1970-01-01至今毫秒数),Promise方式。… 38 | setTime(time : number, callback : AsyncCallback<boolean>) : void | 设置系统时间(1970-01-01至今毫秒数),callba… 39 | getCurrentTime(isNano?: boolean): Promise<number> | 获取自Unix纪元以来经过的时间,… 40 | getCurrentTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自Unix纪元以来经过的时间,callbac… 41 | getCurrentTime(callback: AsyncCallback<number>): void | 获取自Unix纪元以来经过的时间,callback方式。 | 42 | getRealActiveTime(isNano?: boolean): Promise<number> | 获取自系统启动以来经过的时间… 43 | getRealActiveTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,不包括深度睡… 44 | getRealActiveTime(callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,不包括深度睡眠时间,callback方式。 | 45 | getRealTime(isNano?: boolean): Promise<number> | 获取自系统启动以来经过的时间,包括深度睡… 46 | getRealTime(isNano: boolean, callback: AsyncCallback<number>): void | 获取自系统启动以来经过的时间,包括深度睡眠时间,cal… [all …]
|
D | README.md | 34 | setTime(time : number) : Promise<boolean> | Set the system time (1970-01-01 to… 35 | setTime(time : number, callback : AsyncCallback<boolean>) : void | Set the system time (1970-01-0… 45 | createTimer(options: TimerOptions, callback: AsyncCallback<number>): void | Create timer, callbac… 46 | createTimer(options: TimerOptions): Promise<number> | Create timer, promise method … 47 | startTimer(timer: number, triggerTime: number, callback: AsyncCallback<boolean>): void | Start th… 48 | startTimer(timer: number, triggerTime: number): Promise<boolean> | Start the timer, promise mode … 49 | stopTimer(timer: number, callback: AsyncCallback<boolean>): void | Stop the timer, callback mode… 50 | stopTimer(timer: number): Promise<boolean> | Stop the timer, promise mode … 51 | destroyTimer(timer: number, callback: AsyncCallback<boolean>): void | Destroy the timer, callback… 52 | destroyTimer(timer: number): Promise<boolean> | Destroy the timer, the promise met… [all …]
|
/base/telephony/core_service/ |
D | README_zh.md | 75 | 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 getDefaultVoiceSimId(callback: AsyncCallback\<number>): void; | 获取语音业务的默认卡ID … 83 | function isSimActive(slotId: number, callback: AsyncCallback\<boolean>): void | 检查指定卡槽的SIM卡是否激活 … 84 | function hasSimCard(slotId: number, callback: AsyncCallback\<boolean>): void | 检查SIM卡是否插入指定卡槽 … [all …]
|
D | README.md | 76 | 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 getDefaultVoiceSimId(callback: AsyncCallback\<number>): void; | Obtains the sim id of th… 84 | function isSimActive(slotId: number, callback: AsyncCallback\<boolean>): void | Checks whether th… 85 | function hasSimCard(slotId: number, callback: AsyncCallback\<boolean>): void | Checks whether th… [all …]
|
/base/telephony/sms_mms/ |
D | README_zh.md | 68 | 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 getDefaultSmsSimId(callback: AsyncCallback\<number>): void | 获取发送短信的默认SIM卡ID,使用callback方… 73 | function getDefaultSmsSimId():Promise\<number> | 获取发送短信的默认SIM卡ID,使用Promise方式异步返回默认SI… 74 | function setSmscAddr(slotId: number, smscAddr: string, callback: AsyncCallback\<void>): void | 设置… 75 | function setSmscAddr(slotId: number, smscAddr: string): Promise\<void> | 设置短信服务中心地址,使用Promise方式异步… 76 | function getSmscAddr(slotId: number, callback: AsyncCallback\<string>): void | 获取短信服务中心地址,使用callb… 77 | function getSmscAddr(slotId: number): Promise\<string> | 获取短信服务中心地址,使用Promise方式异步返回短信服务中心地址… [all …]
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | plural_format_impl.cpp | 79 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 …]
|
D | plural_format.cpp | 59 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/ |
D | plural_format_impl.h | 30 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/core_service/interfaces/innerkits/include/ |
D | dialling_numbers_info.h | 112 DiallingNumbersInfo(std::u16string &alphaTag, std::u16string &number) in DiallingNumbersInfo() argument 114 DiallingNumbersInfo(0, 0, alphaTag, number); in DiallingNumbersInfo() 117 …DiallingNumbersInfo(std::u16string alphaTag, std::u16string number, std::vector<std::u16string> &e… in DiallingNumbersInfo() argument 119 DiallingNumbersInfo(0, 0, alphaTag, number, emails); in DiallingNumbersInfo() 122 …lingNumbersInfo(int32_t efid, int32_t recordNumber, std::u16string alphaTag, std::u16string number, in DiallingNumbersInfo() argument 128 number_ = number; in DiallingNumbersInfo() 132 …ngNumbersInfo(int32_t efid, int32_t recordNumber, std::u16string &alphaTag, std::u16string &number) in DiallingNumbersInfo() argument 137 number_ = number; in DiallingNumbersInfo() 162 void UpdateNumber(std::u16string number) in UpdateNumber() argument 164 number_ = number; in UpdateNumber()
|
/base/global/i18n/frameworks/intl/test/fuzztest/breakiterator_fuzzer/ |
D | breakiterator_fuzzer.cpp | 29 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/telephony/cellular_call/test/fuzztest/registercallmanagercallback_fuzzer/ |
D | registercallmanagercallback_fuzzer.cpp | 57 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() 103 std::string number(reinterpret_cast<const char *>(data), size); in ReportSetRestrictionResult() 104 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetRestrictionResult() 105 if (memcpy_s(callTransferResponse.number, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetRestrictionResult() 146 std::string number(reinterpret_cast<const char *>(data), size); in ReportSetImsConfigResult() 147 details.message = number; in ReportSetImsConfigResult() 157 int32_t length = number.length() > kMaxNumberLen ? kMaxNumberLen : number.length(); in ReportSetImsConfigResult() 158 if (memcpy_s(mmiCodeInfo.message, kMaxNumberLen, number.c_str(), length) != EOK) { in ReportSetImsConfigResult()
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_config.cpp | 27 FaultLoggerConfig::FaultLoggerConfig(const int number, const long size, const std::string& path, co… in FaultLoggerConfig() argument 28 :logFileNumber_(number), logFileSize_(size), logFilePath_(path), debugLogFilePath_(debugPath) in FaultLoggerConfig() 31 FAULTLOGGER_CONFIG_TAG.c_str(), number, size, path.c_str(), debugPath.c_str()); in FaultLoggerConfig() 45 bool FaultLoggerConfig::SetLogFileMaxNumber(const int number) in SetLogFileMaxNumber() argument 47 logFileNumber_ = number; in SetLogFileMaxNumber()
|
/base/sensors/medical_sensor/interfaces/plugin/src/ |
D | medical_napi_utils.cpp | 38 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/ |
D | main.c | 51 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/powermgr/battery_statistics/test/fuzztest/batterystats_fuzzer/ |
D | batterystats_fuzzer.cpp | 88 int32_t number = GetInt32(data, size); in GetTotalTimeSecond() local 89 …statsClient.GetTotalTimeSecond(static_cast<OHOS::PowerMgr::StatsUtils::StatsType>(number), number); in GetTotalTimeSecond() 94 int32_t number = GetInt32(data, size); in GetTotalDataBytes() local 95 …ystatsClient.GetTotalDataBytes(static_cast<OHOS::PowerMgr::StatsUtils::StatsType>(number), number); in GetTotalDataBytes() 144 int32_t number = randomNum(engine); in DoSomethingInterestingWithMyAPI() local 145 fuzzFunc[number](data, size); in DoSomethingInterestingWithMyAPI()
|
/base/global/i18n/frameworks/intl/src/ |
D | plural_rules.cpp | 142 …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()
|
D | phone_number_format.cpp | 83 bool PhoneNumberFormat::isValidPhoneNumber(const std::string &number) const in isValidPhoneNumber() 86 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in isValidPhoneNumber() 93 std::string PhoneNumberFormat::format(const std::string &number) const in format() 96 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in format() 105 std::string PhoneNumberFormat::getLocationName(const std::string &number, const std::string &locale) in getLocationName() argument 123 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in getLocationName() 131 const char* numberStr = number.c_str(); in getLocationName()
|
/base/telephony/cellular_call/test/fuzztest/imsclient_fuzzer/ |
D | imsclient_fuzzer.cpp | 56 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() 141 imsCallClient->SetImsConfig(static_cast<ImsConfigItem>(item), number); in TestImsCallClientWithSettingFunction() 156 … if (strcpy_s(transferInfo.transferNum, sizeof(transferInfo.transferNum), number.c_str()) != EOK) { in TestImsCallClientWithSettingFunction() 163 imsCallClient->SetCallRestriction(slotId, number, mode, number, index); in TestImsCallClientWithSettingFunction() 164 imsCallClient->GetCallRestriction(slotId, number, index); in TestImsCallClientWithSettingFunction() [all …]
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
D | js_get_input_method_textchange_listener.cpp | 68 std::u16string JsGetInputMethodTextChangedListener::GetLeftTextOfCursor(int32_t number) in GetLeftTextOfCursor() argument 70 return JsGetInputMethodController::GetInstance()->GetText("getLeftTextOfCursor", number); in GetLeftTextOfCursor() 73 std::u16string JsGetInputMethodTextChangedListener::GetRightTextOfCursor(int32_t number) in GetRightTextOfCursor() argument 75 return JsGetInputMethodController::GetInstance()->GetText("getRightTextOfCursor", number); in GetRightTextOfCursor()
|
/base/global/i18n/frameworks/intl/test/fuzztest/relativetimeformat_fuzzer/ |
D | relativetimeformat_fuzzer.cpp | 34 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/telephony/call_manager/services/audio/src/ |
D | call_state_processor.cpp | 116 int32_t number = EMPTY_VALUE; in GetCallNumber() local 119 number = static_cast<int32_t>(dialingCalls_.size()); in GetCallNumber() 122 number = static_cast<int32_t>(alertingCalls_.size()); in GetCallNumber() 125 number = static_cast<int32_t>(incomingCalls_.size()); in GetCallNumber() 128 number = static_cast<int32_t>(activeCalls_.size()); in GetCallNumber() 131 number = static_cast<int32_t>(holdingCalls_.size()); in GetCallNumber() 136 return number; in GetCallNumber()
|
/base/telephony/call_manager/services/bluetooth/src/ |
D | bluetooth_call_service.cpp | 114 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/telephony/core_service/services/sim/include/ |
D | sim_number_decode.h | 35 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);
|