Home
last modified time | relevance | path

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

/base/security/device_security_level/baselib/utils/src/
H A Dutils_base64.c9 * Unless required by applicable law or agreed to in writing, software
35 static const uint8_t g_base64DecodeTable[256] = { /* 256 due to character size */
57 static int32_t Base64Encode(const uint8_t *from, uint32_t fromLen, uint8_t *to, uint32_t toCheckLen) in Base64Encode() argument
59 bool isInvalidParam = ((from == NULL) || (to == NULL) || (fromLen == 0)); in Base64Encode()
66 int padding = (int)(tmpLen % 3); /* len % 3 to get the padding size. This must be signed type! */ in Base64Encode()
86 to[j++] = g_base64EncodeTable[(byte >> 18) & 0x3F]; /* get the 1st block by shift 18 */ in Base64Encode()
87 to[j++] = g_base64EncodeTable[(byte >> 12) & 0x3F]; /* get the 2nd block by shift 12 */ in Base64Encode()
88 to[j++] = g_base64EncodeTable[(byte >> 6) & 0x3F]; /* get the 3rd block by shift 6 */ in Base64Encode()
89 to[j++] = g_base64EncodeTable[(byte >> 0) & 0x3F]; in Base64Encode()
93 to[toLe in Base64Encode()
105 Base64Decode(const uint8_t *from, uint8_t *to, uint32_t toCheckLen) Base64Decode() argument
189 Base64DecodeApp(const uint8_t *src, uint8_t **to) Base64DecodeApp() argument
220 Base64UrlDecodeApp(const uint8_t *src, uint8_t **to) Base64UrlDecodeApp() argument
[all...]
/base/startup/appspawn/service/hnp/base/
H A Dhnp_sal.c9 * Unless required by applicable law or agreed to in writing, software
62 char *to = strdup(toPath); in HnpRelPath() local
63 if (to == NULL) { in HnpRelPath()
71 char *toHead = to; in HnpRelPath()
73 while ((*from != '\0') && (*to != '\0') && (*from == *to)) { in HnpRelPath()
75 to++; in HnpRelPath()
80 to--; in HnpRelPath()
94 HNP_LOGE("Failed to strcat rel path"); in HnpRelPath()
100 ret = strcat_s(relPath, MAX_FILE_PATH_LEN, to); in HnpRelPath()
[all...]
H A Dhnp_log.c9 * Unless required by applicable law or agreed to in writing, software
32 static char* ReplaceSubstring(const char* str, const char* from, const char* to) in ReplaceSubstring() argument
37 int lenTo = strlen(to); in ReplaceSubstring()
60 if (strcpy_s(&result[j], lenStr + 1 - j, to) != EOK) { in ReplaceSubstring()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_base64.h9 * Unless required by applicable law or agreed to in writing, software
25 int32_t Base64DecodeApp(const uint8_t *src, uint8_t **to);
27 int32_t Base64UrlDecodeApp(const uint8_t *src, uint8_t **to);
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/
H A Devent_scan_handler.cpp9 * Unless required by applicable law or agreed to in writing, software
39 HIVIEW_LOGW("failed to get file info %{public}s", StringUtil::HideDeviceIdInfo(file).c_str()); in GetFileLastModifiedTime()
45 uint64_t GetDuration(uint64_t from, uint64_t to) in GetDuration() argument
47 return ((from >= to) ? (from - to) : (to - from)); in GetDuration()
/base/powermgr/display_manager/brightness_manager/src/
H A Dbrightness_dimming.cpp9 * Unless required by applicable law or agreed to in writing, software
60 void BrightnessDimming::StartDimming(uint32_t from, uint32_t to, uint32_t duration) in StartDimming() argument
63 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "animation is running, no need to start again, from=%{public}u, "\ in StartDimming()
64 " to=%{public}u, duration=%{public}u", from, to, duration); in StartDimming()
67 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "animation from=%{public}u, to=%{public}u, duration=%{public}u", in StartDimming()
68 from, to, duration); in StartDimming()
74 mToBrightness = to; in StartDimming()
/base/telephony/sms_mms/frameworks/js/napi/include/
H A Dnapi_mms.h9 * Unless required by applicable law or agreed to in writing, software
77 std::vector<MmsAddress> to {};
119 std::vector<MmsAddress> to {};
141 std::vector<MmsAddress> to {};
149 std::vector<MmsAddress> to {};
158 std::vector<MmsAddress> to {};
/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_baselib_utils_test.cpp9 * Unless required by applicable law or agreed to in writing, software
342 uint8_t *to = nullptr; in HWTEST_F() local
349 int32_t ret = Base64UrlDecodeApp(nullptr, &to); in HWTEST_F()
359 int32_t ret = Base64UrlDecodeApp(src, &to); in HWTEST_F()
360 ASSERT_NE(to, nullptr); in HWTEST_F()
363 EXPECT_EQ('\xEF', to[1]); in HWTEST_F()
364 EXPECT_EQ('\xDD', to[2]); in HWTEST_F()
365 FREE(to); in HWTEST_F()
377 uint8_t *to = nullptr; in HWTEST_F() local
385 int32_t ret = Base64DecodeApp(nullptr, &to); in HWTEST_F()
[all...]
H A Ddslm_msg_lib_test.cpp9 * Unless required by applicable law or agreed to in writing, software
458 char to[UINT8_MAX] = {0}; in HWTEST_F() local
459 EXPECT_EQ(0, UtGetClientName(name, to, 0, false)); in HWTEST_F()
463 char to[UINT8_MAX] = {0}; in HWTEST_F() local
464 EXPECT_EQ(0, UtGetClientName(name, to, 0, true)); in HWTEST_F()
/base/powermgr/display_manager/state_manager/service/native/src/
H A Dgradual_animator.cpp9 * Unless required by applicable law or agreed to in writing, software
40 void GradualAnimator::StartAnimation(uint32_t from, uint32_t to, uint32_t duration) in StartAnimation() argument
43 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "animation is running, no need to start again"); in StartAnimation()
46 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "animation from=%{public}u, to=%{public}u, duration=%{public}u", in StartAnimation()
47 from, to, duration); in StartAnimation()
53 toBrightness_ = to; in StartAnimation()
/base/telephony/core_service/services/sim/src/
H A Doperator_config_cache.cpp9 * Unless required by applicable law or agreed to in writing, software
172 void OperatorConfigCache::CopyOperatorConfig(const OperatorConfig &from, OperatorConfig &to) in CopyOperatorConfig() argument
175 to.configValue[it.first] = it.second; in CopyOperatorConfig()
178 to.boolValue[it.first] = it.second; in CopyOperatorConfig()
181 to.intValue[it.first] = it.second; in CopyOperatorConfig()
184 to.longValue[it.first] = it.second; in CopyOperatorConfig()
187 to.stringValue[it.first] = it.second; in CopyOperatorConfig()
190 to.intArrayValue[it.first] = std::vector<int32_t>(it.second); in CopyOperatorConfig()
193 to.longArrayValue[it.first] = std::vector<int64_t>(it.second); in CopyOperatorConfig()
196 to in CopyOperatorConfig()
[all...]
/base/powermgr/display_manager/brightness_manager/include/
H A Dbrightness_dimming.h9 * Unless required by applicable law or agreed to in writing, software
39 void StartDimming(uint32_t from, uint32_t to, uint32_t duration);
/base/powermgr/display_manager/state_manager/service/native/include/
H A Dgradual_animator.h9 * Unless required by applicable law or agreed to in writing, software
39 void StartAnimation(uint32_t from, uint32_t to, uint32_t duration);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/
H A Dsys_event_service_ohos_test.cpp9 * Unless required by applicable law or agreed to in writing, software
201 std::vector<std::u16string> to; in HWTEST_F() local
202 auto result1 = AshMemUtils::ReadBulkData(msgParcel, to); in HWTEST_F()
204 ASSERT_TRUE(from.size() == to.size()); in HWTEST_F()
205 ASSERT_TRUE(Str16ToStr8(to[0]) == "11" && Str16ToStr8(to[1]) == "22"); in HWTEST_F()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Drsa_asy_key_generator_openssl.c9 * Unless required by applicable law or agreed to in writing, software
83 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams()
91 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams()
97 LOGE("Set invalid primes %d to Keygen bits %d.", params->primes, params->bits); in CheckRsaKeyGenParams()
101 case OPENSSL_RSA_KEY_SIZE_8192: // This keySize can use primes from 2 to 5. in CheckRsaKeyGenParams()
188 LOGD("[error] fail to get n"); in GetRsaPriKeySpecBigInteger()
199 LOGD("[error] fail to get sk"); in GetRsaPriKeySpecBigInteger()
230 LOGD("[error] fail to get n"); in GetRsaPubKeySpecBigInteger()
241 LOGD("[error] fail to get pk"); in GetRsaPubKeySpecBigInteger()
579 LOGD("[error] RSA private key missing p, q, not support to ge in GetPriKeyEncoded()
1449 DecodeParams(HcfAsyKeyGenParams *from, HcfAsyKeyGenSpiRsaParams **to) DecodeParams() argument
[all...]
/base/hiviewdfx/hiview/base/event_raw/include/encoded/
H A Draw_data_builder.h9 * Unless required by applicable law or agreed to in writing, software
417 bool ParseAndSetTraceInfo(T& to, V from) in ParseAndSetTraceInfo() argument
420 to = TransNumToHexStr(from); in ParseAndSetTraceInfo()
423 return ParseValue(to, from); in ParseAndSetTraceInfo()
478 bool ParseValue(T& to, V from) in ParseValue() argument
481 to = from; in ParseValue()
485 to = static_cast<std::decay_t<T>>(from); in ParseValue()
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_mms.cpp9 * Unless required by applicable law or agreed to in writing, software
156 mmsMsg.GetMmsTo(asyncContext.to); in GetMmsSendReq()
205 mmsMsg.GetMmsTo(asyncContext.to); in GetMmsRetrieveConf()
235 asyncContext.to.assign(toAddress.begin(), toAddress.end()); in GetMmsDeliveryInd()
248 mmsMsg.GetMmsTo(asyncContext.to); in GetMmsReadOrigInd()
261 mmsMsg.GetMmsTo(asyncContext.to); in GetMmsReadRecInd()
394 ParseAddressArr(env, sendReqObj, "to", sendReqContext.to); in ParseSendReqValue()
469 ParseAddressArr(env, retrieveConfObj, "to", retrieveConfContext.to); in ParseRetrieveConfValue()
[all...]
/base/telephony/core_service/services/sim/include/
H A Doperator_config_cache.h9 * Unless required by applicable law or agreed to in writing, software
46 void CopyOperatorConfig(const OperatorConfig &from, OperatorConfig &to);
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter/
H A Dhitrace_meter.h9 * Unless required by applicable law or agreed to in writing, software
95 #error HITRACE_TAG must be defined to be one of the tags defined in hitrace_meter.h
97 #error HITRACE_TAG must be defined to be one of the tags defined in hitrace_meter.h
176 RET_FAIL_MKDIR = 1002, // Failed to create dir
177 RET_FAIL_SETACL = 1003, // Failed to set the acl permission
179 RET_FAIL_EACCES = 1005, // No permission to open file
/base/telephony/cellular_call/services/utils/src/
H A Dcellular_call_config.cpp9 * Unless required by applicable law or agreed to in writing, software
138 TELEPHONY_LOGE("Enable ims switch failed due to volte is not supported."); in SetImsSwitchStatus()
142 TELEPHONY_LOGE("Enable ims switch failed due to volte provisioning disabled."); in SetImsSwitchStatus()
147 TELEPHONY_LOGE("failed due to invalid sim id %{public}d", simId); in SetImsSwitchStatus()
195 TELEPHONY_LOGE("Enable VoNR switch failed due to VoNR is not supported."); in SetVoNRSwitchStatus()
211 TELEPHONY_LOGE("Enable VoNR switch failed due to VoNR is not supported."); in GetVoNRSwitchStatus()
236 TELEPHONY_LOGE("return due to no sim card"); in HandleFactoryReset()
239 // Set VoLTE to default in HandleFactoryReset()
380 TELEPHONY_LOGE("failed due to get operator config"); in HandleOperatorConfigChanged()
386 TELEPHONY_LOGE("failed due to pars in HandleOperatorConfigChanged()
558 EmergencyCall to = {}; BuildEmergencyCall() local
[all...]
/base/update/updater/services/flashd/
H A Dflashd_basepkg.bat8 @rem Unless required by applicable law or agreed to in writing, software
/base/security/crypto_framework/test/unittest/src/
H A Dopenssl_adapter_mock.c9 * Unless required by applicable law or agreed to in writing, software
122 int OpensslBn2BinPad(const BIGNUM *a, unsigned char *to, int toLen) in OpensslBn2BinPad() argument
127 return BN_bn2binpad(a, to, toLen); in OpensslBn2BinPad()
130 int OpensslBn2LeBinPad(const BIGNUM *a, unsigned char *to, int tolen) in OpensslBn2LeBinPad() argument
135 return BN_bn2lebinpad(a, to, tolen); in OpensslBn2LeBinPad()
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Dopenssl_adapter.h9 * Unless required by applicable law or agreed to in writing, software
53 int OpensslBn2BinPad(const BIGNUM *a, unsigned char *to, int toLen);
54 int OpensslBn2LeBinPad(const BIGNUM *a, unsigned char *to, int toLen);
/base/powermgr/power_manager/services/native/src/
H A Dpower_state_machine.cpp9 * Unless required by applicable law or agreed to in writing, software
144 // allow AWAKE to INACTIVE without going to DIM for UTs to pass in InitTransitMap()
154 // allow AWAKE to INACTIVE without going to DIM for UTs to pass in InitTransitMap()
168 POWER_HILOGD(FEATURE_POWER_STATE, "Start to GetMovementState"); in IsMovementStateOn()
190 bool PowerStateMachine::CanTransitTo(PowerState to, StateChangeReason reason) in CanTransitTo() argument
192 bool isForbidden = forbidMap_.count(currentState_) && forbidMap_[currentState_].count(to); in CanTransitTo()
[all...]
/base/powermgr/power_manager/services/native/include/
H A Dpower_state_machine.h9 * Unless required by applicable law or agreed to in writing, software
317 bool CanTransitTo(PowerState to, StateChangeReason reason);
348 // all change to currentState_ should be inside stateMutex_

Completed in 26 milliseconds