Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 127) sorted by relevance

123456

/base/notification/common_event_service/test/systemtest/common/resource/fuzzTest/src/
DfuzzTestManager.cpp79 std::shared_ptr<AsyncCommonEventResult> temp = GetParamAsyncCommonEventResult(); in RegisterAsyncCommonEventResult() local
80 temp.get()->SetCode(GetU32Param()); in RegisterAsyncCommonEventResult()
81 std::cout << temp->GetCode(); in RegisterAsyncCommonEventResult()
84 std::shared_ptr<AsyncCommonEventResult> temp = GetParamAsyncCommonEventResult(); in RegisterAsyncCommonEventResult() local
85 temp->GetCode(); in RegisterAsyncCommonEventResult()
88 std::shared_ptr<AsyncCommonEventResult> temp = GetParamAsyncCommonEventResult(); in RegisterAsyncCommonEventResult() local
89 temp->SetData(GetStringParam()); in RegisterAsyncCommonEventResult()
92 std::shared_ptr<AsyncCommonEventResult> temp = GetParamAsyncCommonEventResult(); in RegisterAsyncCommonEventResult() local
93 temp->GetData(); in RegisterAsyncCommonEventResult()
96 std::shared_ptr<AsyncCommonEventResult> temp = GetParamAsyncCommonEventResult(); in RegisterAsyncCommonEventResult() local
[all …]
/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp101 unsigned char temp; in DigitToBcd() local
108 temp = 0x0A; in DigitToBcd()
111 temp = 0x0B; in DigitToBcd()
115 temp = 0x0C; in DigitToBcd()
118 temp = digit[i] - '0'; in DigitToBcd()
122 bcd[offset] = temp & 0x0F; in DigitToBcd()
124 bcd[offset++] |= ((temp & 0x0F) << 0x04); in DigitToBcd()
137 unsigned char temp; in BcdToDigit() local
142 temp = bcd[i] & 0x0F; in BcdToDigit()
143 digit[offset++] = BcdToChar(temp); in BcdToDigit()
[all …]
Dstring_utils.cpp58 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex() local
59 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
68 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex() local
69 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
78 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex() local
79 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
112 …auto temp = static_cast<uint8_t>((HexCharToInt(str.at(i)) << HEX_OFFSET) | HexCharToInt(str.at(i +… in HexToByteVector() local
113 ret.push_back(temp); in HexToByteVector()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_center_mock.cpp53 std::string temp = networkId; in GetNodeKeyInfo() local
54 temp += ":udid-001"; in GetNodeKeyInfo()
55 strncpy_s(reinterpret_cast<char *>(info), infoLen, temp.c_str(), temp.length()); in GetNodeKeyInfo()
56 infoLen = temp.length(); in GetNodeKeyInfo()
59 std::string temp = networkId; in GetNodeKeyInfo() local
60 temp += ":uuid-001"; in GetNodeKeyInfo()
61 strncpy_s(reinterpret_cast<char *>(info), infoLen, temp.c_str(), temp.length()); in GetNodeKeyInfo()
/base/notification/distributed_notification_service/test/resource/notificationfuzztest/src/
Dnotificationfuzztestmanager.cpp351 … std::shared_ptr<OHOS::Notification::NotificationSorting> temp = GetParamNotificationSorting(); in RegisterNotificationSorting() local
352 temp->GetRanking(); in RegisterNotificationSorting()
356 … std::shared_ptr<OHOS::Notification::NotificationSorting> temp = GetParamNotificationSorting(); in RegisterNotificationSorting() local
357 temp->GetKey(); in RegisterNotificationSorting()
361 … std::shared_ptr<OHOS::Notification::NotificationSorting> temp = GetParamNotificationSorting(); in RegisterNotificationSorting() local
362 temp->GetImportance(); in RegisterNotificationSorting()
366 … std::shared_ptr<OHOS::Notification::NotificationSorting> temp = GetParamNotificationSorting(); in RegisterNotificationSorting() local
367 temp->GetSlot(); in RegisterNotificationSorting()
371 … std::shared_ptr<OHOS::Notification::NotificationSorting> temp = GetParamNotificationSorting(); in RegisterNotificationSorting() local
372 temp->GetVisiblenessOverride(); in RegisterNotificationSorting()
[all …]
/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_mgr_interface_test.cpp172 int32_t temp = 41000; variable
174 std::string sTemp = to_string(temp) + "\n";
184 EXPECT_EQ(true, temp == out) << "ThermalMgrInterfaceTest001 Failed";
197 int32_t temp = 10000; variable
199 std::string sTemp = to_string(temp) + "\n";
209 EXPECT_EQ(true, temp == out) << "ThermalMgrInterfaceTest002 Failed";
222 int32_t temp = 11000; variable
224 std::string sTemp = to_string(temp) + "\n";
234 EXPECT_EQ(true, temp == out) << "ThermalMgrInterfaceTest003 Failed";
247 int32_t temp = 12000; variable
[all …]
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_task_main.c65 DasProtocolEntity *temp = (DasProtocolEntity *)(*ptr); in GetMaxVersion() local
66 version->third = (version->third) | temp->algInProtocol; in GetMaxVersion()
203 SubTaskBase *temp = (SubTaskBase *)(*ptr); in NegotiateAndProcessTask() local
204 if (g_taskTypeToProtocolType[temp->getTaskType(temp)] == protocolType) { in NegotiateAndProcessTask()
205 subTask = temp; in NegotiateAndProcessTask()
208 temp->destroyTask(temp); in NegotiateAndProcessTask()
301 DasProtocolEntity *temp = (DasProtocolEntity *)(*ptr); in CreateMultiSubTask() local
302 SubTaskBase *subTask = temp->createSubTask(in); in CreateMultiSubTask()
304 LOGE("Create subTask failed, protocolType: %d.", temp->type); in CreateMultiSubTask()
338 DasProtocolEntity *temp = (DasProtocolEntity *)(*ptr); in CreateSingleSubTask() local
[all …]
Ddas_module.c113 Task *temp = (Task *)*ptr; in ProcessDasTask() local
114 if (taskId == temp->taskId) { in ProcessDasTask()
115 return temp->processTask(temp, in, out, status); in ProcessDasTask()
130 Task *temp = (Task *)(*ptr); in DestroyDasTask() local
131 if (taskId == temp->taskId) { in DestroyDasTask()
132 temp->destroyTask(temp); in DestroyDasTask()
/base/powermgr/thermal_manager/utils/native/src/
Dstring_operation.cpp33 std::string temp; in SplitString() local
38 temp = str.substr(begin, pos - begin); in SplitString()
41 temp = str.substr(begin); in SplitString()
45 if (!temp.empty()) { in SplitString()
46 ret.push_back(temp); in SplitString()
47 temp.clear(); in SplitString()
/base/customization/enterprise_device_management/services/edm/src/utils/
Dbool_serializer.cpp27 std::string temp; in Deserialize() local
28 temp.resize(jsonString.size()); in Deserialize()
29 std::transform(jsonString.begin(), jsonString.end(), temp.begin(), ::tolower); in Deserialize()
30 if (temp == TRUE_VALUE) { in Deserialize()
34 if (temp == FALSE_VALUE) { in Deserialize()
/base/global/i18n_lite/frameworks/i18n/src/
Dplural_format_impl.cpp143 double temp = number * pow(10, i); in ComputeDecimalInfo() local
144 if (i == MAX_FRACTION_NUMBERS && temp - ((int)temp) >= EPS) { in ComputeDecimalInfo()
145 temp = round(temp); in ComputeDecimalInfo()
147 if (temp - ((int)temp) < EPS) { in ComputeDecimalInfo()
148 while (i > 1 && (int) temp % 10 == 0) { in ComputeDecimalInfo()
150 temp /= 10; in ComputeDecimalInfo()
153 fractionNumber = (int)(temp - integerNumber * pow(10, i)); in ComputeDecimalInfo()
312 bool temp = false; in CompareResult() local
322 temp = true; in CompareResult()
327 temp = true; in CompareResult()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_locale.cpp48 char *temp = new(std::nothrow) char[len + 1]; in SetLanguage() local
49 if (temp == nullptr) { in SetLanguage()
53 this->language_ = temp; in SetLanguage()
56 *(temp + i) = tolower(*(language + i)); in SetLanguage()
59 *(temp + len) = '\0'; in SetLanguage()
70 char *temp = new(std::nothrow) char[len + 1]; in SetRegion() local
71 if (temp == nullptr) { in SetRegion()
75 this->region_ = temp; in SetRegion()
78 *(temp + i) = toupper(*(region + i)); in SetRegion()
81 *(temp + len) = '\0'; in SetRegion()
[all …]
Dresource_manager_impl.cpp86 std::string temp; in GetStringFormatById() local
87 RState rState = GetString(idItem, temp); in GetStringFormatById()
93 outValue = FormatString(temp.c_str(), args); in GetStringFormatById()
101 std::string temp; in GetStringFormatByName() local
102 RState rState = GetString(idItem, temp); in GetStringFormatByName()
108 outValue = FormatString(temp.c_str(), args); in GetStringFormatByName()
195 std::string temp; in GetPluralStringByIdFormat() local
196 RState rState = GetPluralString(vuqd, quantity, temp); in GetPluralStringByIdFormat()
203 outValue = FormatString(temp.c_str(), args); in GetPluralStringByIdFormat()
213 std::string temp; in GetPluralStringByNameFormat() local
[all …]
Dres_config_impl.cpp142 ResLocale *temp = new(std::nothrow) ResLocale; in CopyLocale() local
143 if (temp == nullptr) { in CopyLocale()
146 RState rs = temp->CopyFromLocaleInfo(other.GetLocaleInfo()); in CopyLocale()
148 delete temp; in CopyLocale()
154 delete temp; in CopyLocale()
159 this->resLocale_ = temp; in CopyLocale()
306 ResConfigImpl *temp = new(std::nothrow) ResConfigImpl; in CreateResConfig() local
307 return temp; in CreateResConfig()
/base/global/resource_management/frameworks/resmgr/src/
Dres_locale.cpp52 char *temp = new(std::nothrow) char[len + 1]; in SetLanguage() local
53 if (temp == nullptr) { in SetLanguage()
57 this->language_ = temp; in SetLanguage()
60 *(temp + i) = tolower(*(language + i)); in SetLanguage()
63 *(temp + len) = '\0'; in SetLanguage()
74 char *temp = new(std::nothrow) char[len + 1]; in SetRegion() local
75 if (temp == nullptr) { in SetRegion()
79 this->region_ = temp; in SetRegion()
82 *(temp + i) = toupper(*(region + i)); in SetRegion()
85 *(temp + len) = '\0'; in SetRegion()
[all …]
/base/telephony/core_service/services/sim/src/
Dicc_operator_rule.cpp55 std::string temp(it, ed); in parseSimpleTLV() local
56 …TELEPHONY_LOGE("parseSimpleTLV from '%{public}s' size:%{public}zu < %{public}d", temp.data(), inpu… in parseSimpleTLV()
68 std::string temp(it, ed); in parseSimpleTLV() local
69 …TELEPHONY_LOGE("parseSimpleTLV from '%{public}s' size:%{public}zu < %{public}d", temp.data(), inpu… in parseSimpleTLV()
82 std::string temp(it, ed); in parseSimpleTLV() local
83 …TELEPHONY_LOGE("parseSimpleTLV from '%{public}s' size:%{public}zu < %{public}d", temp.data(), inpu… in parseSimpleTLV()
107 std::string temp(hexStrBeg, hexStrEnd); in CreateFromTLV() local
108 …TELEPHONY_LOGE("hexStr:[%{public}s] not strartWith '%{public}s' !", temp.data(), TAG_ALL_RULE.data… in CreateFromTLV()
141 std::string temp(hexStrBeg, hexStrEnd); in DecodeTLVTagCertPkg() local
142 …TELEPHONY_LOGE("hexStr:[%{public}s] not strartWith '%{public}s' !", temp.data(), TAG_CERT_PKG.data… in DecodeTLVTagCertPkg()
[all …]
/base/security/device_security_level/baselib/utils/include/
Dutils_list.h63 #define FOREACH_LIST_NODE_SAFE(item, head, temp) \ argument
64 …for ((item) = (head)->next, (temp) = (item)->next; (item) != (head); (item) = (temp), (temp) = (it…
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DPluralFetcher.java60 String[] temp = getPluralItems(line); in init() local
61 map.put(temp[0], temp[1]); in init()
72 String[] temp = getPluralItems(line); in init() local
73 decimalMap.put(temp[0], temp[1]); in init()
DMeasureFormatPatternFetcher.java78 String[] temp = getPatterns(line); in init() local
79 if (temp.length == 2) { in init()
80 locale2Pattern.put(temp[0], temp[1]); in init()
/base/global/i18n/frameworks/zone/src/
Dzone_util.cpp64 string temp(country); in GetDefaultZone() local
65 for (size_t i = 0; i < temp.size(); i++) { in GetDefaultZone()
66 temp[i] = (char)toupper(temp[i]); in GetDefaultZone()
68 if (defaultMap.find(temp) != defaultMap.end()) { in GetDefaultZone()
69 return defaultMap[temp]; in GetDefaultZone()
72 StringEnumeration *strEnum = TimeZone::createEnumeration(temp.c_str()); in GetDefaultZone()
/base/powermgr/thermal_manager/interfaces/innerkits/native/include/
Dthermal_srv_sensor_info.h29 explicit ThermalSrvSensorInfo(std::string &type, int32_t &temp);
47 inline void SetTemp(const int32_t &temp) in SetTemp() argument
49 temp_ = temp; in SetTemp()
/base/hiviewdfx/hiview/core/test/unittest/common/
Devent_dispatch_queue_test.cpp106 for (auto& temp : listenerInfo1) { variable
107 printf("listenerInfo1 begin == %d end == %d\n", temp.begin, temp.end);
113 for (auto& temp : listenerInfo2) { variable
114 printf("listenerInfo2 begin == %d end == %d\n", temp.begin, temp.end);
/base/hiviewdfx/blackbox/
Dblackbox_core.c194 struct BBoxOps *temp = NULL; in PrintModuleOps() local
197 UTILS_DL_LIST_FOR_EACH_ENTRY(temp, &g_opsList, struct BBoxOps, opsList) { in PrintModuleOps()
200 temp->ops.module, temp->ops.Dump, temp->ops.Reset, in PrintModuleOps()
201 temp->ops.GetLastLogInfo, temp->ops.SaveLastLog); in PrintModuleOps()
209 struct BBoxOps *temp = NULL; in BBoxRegisterModuleOps() local
232 UTILS_DL_LIST_FOR_EACH_ENTRY(temp, &g_opsList, struct BBoxOps, opsList) { in BBoxRegisterModuleOps()
233 if (strcmp(temp->ops.module, ops->module) == 0) { in BBoxRegisterModuleOps()
/base/telephony/sms_mms/services/
Dsms_cb_message.cpp135 unsigned char temp; in Decode2gHeader() local
145 temp = pdu[offset++]; in Decode2gHeader()
146 cbHeader_->serialNum.geoScope = (temp & 0xC0) >> 0x06; in Decode2gHeader()
147 cbHeader_->serialNum.msgCode = (temp & 0x3F) << 0x04; in Decode2gHeader()
149 temp = pdu[offset++]; in Decode2gHeader()
150 cbHeader_->serialNum.msgCode |= (temp & 0xF0) >> 0x04; in Decode2gHeader()
151 cbHeader_->serialNum.updateNum = temp & 0x0F; in Decode2gHeader()
153 temp = pdu[offset++]; in Decode2gHeader()
154 cbHeader_->msgId = (temp << 0x08) | pdu[offset++]; in Decode2gHeader()
158 temp = pdu[offset++]; in Decode2gHeader()
[all …]
/base/security/huks/interfaces/innerkits/huks_lite/
Dhks_tmp_client.c32 struct HksBlob temp = { random->size, random->data }; in hks_generate_random() local
33 return HksGenerateRandom(NULL, &temp); in hks_generate_random()

123456