/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_map.cpp | 64 unsigned long digit = *cp; in ScanHex() local 65 if ((digit - '0') <= 9) { // 9 : max 9 in ScanHex() 66 digit -= '0'; in ScanHex() 67 } else if ((digit - 'a') < 6) { // 6 : 16 - 10 in ScanHex() 68 digit -= 'a' - 10; // 10 : base 10 in ScanHex() 69 } else if ((digit - 'A') < 6) { // 6 : 16 - 10 in ScanHex() 70 digit -= 'A' - 10; // 10 : base 10 in ScanHex() 74 val = (val << 4) | digit; // 4 : hex in ScanHex() 94 unsigned long digit = 0; in ScanDec() local 97 digit in ScanDec() [all...] |
/base/telephony/sms_mms/test/gtest/ |
H A D | zero_branch_utils_test.cpp | 160 const char *digit = (const char *)str.c_str(); in HWTEST_F() local 174 EXPECT_EQ(gsmUtils->DigitToBcd(digit, 1, nullptr, 0, len), 0); in HWTEST_F() 176 EXPECT_FALSE(gsmUtils->DigitToBcd(digit, DIGIT_LEN, packData, 1, len)); in HWTEST_F() 192 const char *digit = (const char *)digitTestStr.c_str(); in HWTEST_F() local 197 EXPECT_FALSE(gsmUtils->DigitToBcd(digit, DIGIT_LEN, packData, DIGIT_LEN, len)); in HWTEST_F() 198 EXPECT_FALSE(gsmUtils->DigitToBcd(digit, DIGIT_LEN, packData, DIGIT_LEN - 1, len)); in HWTEST_F() 200 EXPECT_TRUE(gsmUtils->DigitToBcd(digit, DIGIT_LEN2, packData, DIGIT_LEN2, len)); in HWTEST_F() 216 const char *digit = (const char *)digitTestStr.c_str(); in HWTEST_F() local 221 EXPECT_TRUE(gsmUtils->DigitToBcd(digit, DIGIT_LEN2, packData, DIGIT_LEN2, len)); in HWTEST_F() 237 const char *digit in HWTEST_F() local 257 const char *digit = (const char *)digitTestStr.c_str(); HWTEST_F() local 278 const char *digit = (const char *)digitTestStr.c_str(); HWTEST_F() local [all...] |
/base/telephony/sms_mms/services/sms/gsm/ |
H A D | gsm_sms_common_utils.cpp | 206 bool GsmSmsCommonUtils::DigitToBcd(const char *digit, uint8_t digitLen, uint8_t *bcd, uint8_t bcdLen, uint8_t &len) in DigitToBcd() argument 208 if (digit == nullptr || bcd == nullptr || len >= bcdLen) { in DigitToBcd() 214 uint8_t temp = charToBcd(digit[i]); in DigitToBcd() 238 bool GsmSmsCommonUtils::BcdToDigit(const uint8_t *bcd, uint8_t bcdLen, std::string &digit, uint8_t maxDigitLen) in BcdToDigit() argument 246 if (digit.size() + MIN_REMAIN_LEN >= maxDigitLen) { in BcdToDigit() 247 TELEPHONY_LOGE("digit size over max"); in BcdToDigit() 250 digit.push_back(BcdToChar(temp)); in BcdToDigit() 255 digit.push_back(BcdToChar(temp)); in BcdToDigit()
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
H A D | gsm_sms_common_utils.h | 34 bool DigitToBcd(const char *digit, uint8_t digitLen, uint8_t *bcd, uint8_t bcdLen, uint8_t &len); 35 bool BcdToDigit(const uint8_t *bcd, uint8_t bcdLen, std::string &digit, uint8_t maxDigitLen);
|
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/ |
H A D | dump_common_utils.h | 42 static std::vector<std::string> GetSubNodes(const std::string &path, bool digit); 45 static std::vector<std::string> GetSubDir(const std::string &path, bool digit);
|
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/ |
H A D | fault_detector_util.h | 51 static std::vector<std::string> GetSubDir(const std::string &path, bool digit = false); 52 static std::vector<std::string> GetSubFile(const std::string &path, bool digit = false);
|
H A D | fault_detector_util.cpp | 138 vector<string> FaultDetectorUtil::GetSubDir(const string &path, bool digit) in GetSubDir() argument 151 if (digit && !isdigit(childNode[0])) { in GetSubDir() 163 vector<string> FaultDetectorUtil::GetSubFile(const string &path, bool digit) in GetSubFile() argument 176 if (digit && !isdigit(childNode[0])) { in GetSubFile()
|
/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_common_utils.cpp | 39 std::vector<std::string> DumpCommonUtils::GetSubNodes(const std::string &path, bool digit) in GetSubNodes() argument 51 if (digit && !IsNumericStr(childNode)) { in GetSubNodes() 70 std::vector<std::string> DumpCommonUtils::GetSubDir(const std::string &path, bool digit) in GetSubDir() argument 83 if (digit && !IsNumericStr(childNode)) { in GetSubDir()
|
/base/telephony/call_manager/services/audio/include/ |
H A D | tone.h | 76 static ToneDescriptor ConvertDigitToTone(char digit);
|
/base/telephony/call_manager/services/audio/src/ |
H A D | tone.cpp | 124 ToneDescriptor Tone::ConvertDigitToTone(char digit) in ConvertDigitToTone() argument 127 switch (digit) { in ConvertDigitToTone()
|
/base/hiviewdfx/hidumper/test/unittest/common/ |
H A D | hidumper_configutils_test.cpp | 368 bool digit = true; in HWTEST_F() local 369 std::vector<std::string> strs = DUMP_COMMON_UTILS.GetSubNodes(path, digit); in HWTEST_F() 372 digit = false; in HWTEST_F() 373 strs = DUMP_COMMON_UTILS.GetSubNodes(path, digit); in HWTEST_F()
|
/base/hiviewdfx/hilog_lite/frameworks/featured/ |
H A D | hiview_log.c | 723 /* add digit to current precision */ in HiLogSecOutputS() 1029 SecUnsignedInt32 digit = 0; /* ascii value of digit */ in HiLogSecOutputS() local 1204 &digit)) { in HiLogSecOutputS() 1208 *--formatBuf.str = digits[digit]; in HiLogSecOutputS()
|