Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/base/telephony/sms_mms/test/unittest/
Dsms_gsm_message_test.cpp93 ShortMessage *message = new ShortMessage(); in Test7BitSubmitSms() local
94 if (message == nullptr) { in Test7BitSubmitSms()
98 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in Test7BitSubmitSms()
99 gsmMessage_ = std::unique_ptr<ShortMessage>(message); in Test7BitSubmitSms()
111 ShortMessage *message = new ShortMessage(); in TestUcs2SubmitSms() local
112 if (message == nullptr) { in TestUcs2SubmitSms()
116 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestUcs2SubmitSms()
117 gsmMessage_ = std::unique_ptr<ShortMessage>(message); in TestUcs2SubmitSms()
130 ShortMessage *message = new ShortMessage(); in Test7BitDeliverySms() local
131 if (message == nullptr) { in Test7BitDeliverySms()
[all …]
/base/update/update_app/common/src/main/ets/util/
DLogUtils.ts33 export function debug(tag: string, message: string, ...args: (string | number)[]): void {
34 Logger.debug(DOMAIN, tag, filterSensitiveInfo(message), ...args);
44 export function log(tag: string, message: string, ...args: (string | number)[]): void {
45 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args);
55 export function info(tag: string, message: string, ...args: (string | number)[]): void {
56 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args);
66 export function warn(tag: string, message: string, ...args: (string | number)[]): void {
67 Logger.warn(DOMAIN, tag, filterSensitiveInfo(message), ...args);
77 export function error(tag: string, message: string, ...args: (string | number)[]): void {
78 Logger.error(DOMAIN, tag, filterSensitiveInfo(message), ...args);
[all …]
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_receive_handler.cpp49 CdmaSmsMessage *message = static_cast<CdmaSmsMessage *>(smsBaseMessage.get()); in HandleSmsByType() local
50 if (message->IsBroadcastMsg()) { in HandleSmsByType()
54 int service = message->GetTransTeleService(); in HandleSmsByType()
58 if (message->IsStatusReport() && !cdmaSmsSender_.expired()) { in HandleSmsByType()
66 statusInfo->SetMsgRefId(message->GetMsgRef()); in HandleSmsByType()
67 statusInfo->SetPdu(message->GetRawPdu()); in HandleSmsByType()
80 CdmaSmsMessage *message = static_cast<CdmaSmsMessage *>(smsBaseMessage.get()); in HandleSmsOtherSvcid() local
83 if (!message->IsConcatMsg()) { in HandleSmsOtherSvcid()
84 … indexer = std::make_shared<SmsReceiveIndexer>(message->GetRawPdu(), message->GetScTimestamp(), in HandleSmsOtherSvcid()
85 message->GetDestPort(), true, false, message->GetOriginatingAddress(), in HandleSmsOtherSvcid()
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_receive_handler.cpp84 GsmSmsMessage *message = (GsmSmsMessage *)smsBaseMessage.get(); in HandleSmsByType() local
85 if (message->IsSpecialMessage()) { in HandleSmsByType()
122 GsmSmsMessage *message = (GsmSmsMessage *)smsBaseMessage.get(); in HandleNormalSmsByType() local
125 if (!message->IsConcatMsg()) { in HandleNormalSmsByType()
126 indexer = make_shared<SmsReceiveIndexer>(message->GetRawPdu(), message->GetScTimestamp(), in HandleNormalSmsByType()
127 message->GetDestPort(), !message->GetGsm(), false, message->GetOriginatingAddress(), in HandleNormalSmsByType()
128 message->GetVisibleOriginatingAddress(), message->GetVisibleMessageBody()); in HandleNormalSmsByType()
130 std::shared_ptr<SmsConcat> smsConcat = message->GetConcatMsg(); in HandleNormalSmsByType()
135 indexer = make_shared<SmsReceiveIndexer>(message->GetRawPdu(), message->GetScTimestamp(), in HandleNormalSmsByType()
136 message->GetDestPort(), !message->GetGsm(), message->GetOriginatingAddress(), in HandleNormalSmsByType()
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/barometer/
DExampleJsunit.test.js74 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
85 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
91 console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
93 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
109 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
120 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
126 console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
128 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
144 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
160 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
[all …]
/base/startup/appspawn/lite/
Dappspawn_process.c87 return prctl(PR_SET_NAME, appProperty->message.bundleName); in SetProcessName()
105 APPSPAWN_LOGE("SetUidGid %d %d", appProperty->message.uID, appProperty->message.gID); in SetUidGid()
106 if (setgid(appProperty->message.gID) != 0) { in SetUidGid()
107 … APPSPAWN_LOGE("[appspawn] setgid failed, gID %u, err: %d.", appProperty->message.gID, errno); in SetUidGid()
111 if (setuid(appProperty->message.uID) != 0) { in SetUidGid()
112 … APPSPAWN_LOGE("[appspawn] setuid failed, uID %u, err: %d.", appProperty->message.uID, errno); in SetUidGid()
117 … if (appProperty->message.gID >= LOWER_BOUND_GID && appProperty->message.gID <= UPPER_BOUND_GID) { in SetUidGid()
118 groups[0] = appProperty->message.gID; in SetUidGid()
121 … APPSPAWN_LOGE("[appspawn] setgroups failed, uID %u, err: %d.", appProperty->message.uID, errno); in SetUidGid()
134 APPSPAWN_LOGE("SetCapabilities appProperty->message.capsCnt %d", appProperty->message.capsCnt); in SetCapabilities()
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/sar/
DExampleJsunit.test.js74 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
85 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
91 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
93 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
109 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
120 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
126 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
128 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
144 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
160 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/gyroscope/
DExampleJsunit.test.js78 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
89 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
95 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
97 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
113 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
124 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
130 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
132 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
148 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
164 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
[all …]
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_sm3_cipher.cpp92 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; variable
93 ASSERT_NE(message.data, nullptr);
95 message.data[ii] = ReadHex((const uint8_t *)&hexData[HKS_COUNT_OF_HALF * ii]);
100 RunTestCase(&message, &hash);
101 HksFree(message.data);
114 HksBlob message = { .size = dataLen, .data = (uint8_t *)HksMalloc(dataLen) }; variable
115 ASSERT_NE(message.data, nullptr);
117 message.data[ii] = ReadHex((const uint8_t *)&hexData[HKS_COUNT_OF_HALF * ii]);
122 RunTestCase(&message, &hash);
123 HksFree(message.data);
[all …]
Dhks_crypto_hal_api_openssl.cpp152 HksBlob message = { .size = 0, .data = nullptr }; variable
157 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
161 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
164 message = { .size = 1, .data = buff };
165 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
169 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
172 ret = HksCryptoHalEncrypt(&key, &spec, &message, &cipherText, &tagAead);
187 HksBlob message = { .size = 0, .data = nullptr }; variable
191 ret = HksCryptoHalDecrypt(&key, nullptr, &message, &cipherText);
195 ret = HksCryptoHalDecrypt(&key, nullptr, &message, &cipherText);
[all …]
Dhks_crypto_hal_api_mbedtls.cpp132 HksBlob message = { .size = 0, .data = nullptr }; variable
137 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
141 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
144 message = { .size = 1, .data = buff };
145 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
149 ret = HksCryptoHalEncrypt(&key, nullptr, &message, &cipherText, &tagAead);
152 ret = HksCryptoHalEncrypt(&key, &spec, &message, &cipherText, &tagAead);
167 HksBlob message = { .size = 0, .data = nullptr }; variable
171 ret = HksCryptoHalDecrypt(&key, nullptr, &message, &cipherText);
175 ret = HksCryptoHalDecrypt(&key, nullptr, &message, &cipherText);
[all …]
/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/
Ddistribution.c35 struct message *receive, struct message *send);
37 struct message *receive, struct message *send);
39 struct message *receive, struct message *send);
41 struct message *receive, struct message *send);
43 struct message *receive, struct message *send);
45 struct message *receive, struct message *send);
47 struct message *receive, struct message *send);
49 struct message *receive, struct message *send);
51 struct message *receive, struct message *send);
53 struct message *receive, struct message *send);
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/color/
DExampleJsunit.test.js76 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
87 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
93 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
95 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
111 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
122 console.error('On fail, errCode:' + error.code + ' ,msg:' + error.message);
128 console.info('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
130 expect(error.message).assertEqual(PARAMETER_ERROR_MSG);
146 … console.error('getSingleSensor fail, errCode:' + error.code + ' ,msg:' + error.message);
162 console.info('On fail, errCode:' + error.code + ' ,msg:' + error.message);
[all …]
/base/time/time_service/framework/js/napi/common/include/
Dnapi_utils.h30 #define NAPI_ASSERTS_BASE(env, assertion, code, message, retVal) \ argument
33 NapiUtils::ThrowError(env, message, code); \
38 #define NAPI_ASSERTP(env, assertion, message) \ argument
39 NAPI_ASSERTS_BASE(env, assertion, ERROR, message, nullptr)
42 #define CHECK_ARGS_RETURN_VOID(module, context, condition, message, code) \ argument
46 (context)->errMessage = std::string(message); \
48 TIME_HILOGE(module, "test (" #condition ") failed: " message); \
53 #define CHECK_STATUS_RETURN_VOID(module, context, message, code) \ argument
56 (context)->errMessage = std::string(message); \
58 TIME_HILOGE(module, "test (context->status == napi_ok) failed: " message); \
[all …]
/base/theme/screenlock_mgr/frameworks/js/napi/test/unittest/src/
DScreenlock.test.js58 console.error(`SUB_MISC_THEME_screenLock_API_0001: ${error.code}, ${error.message}`);
76 console.error(`SUB_MISC_THEME_screenLock_API_0002: ${error.code}, ${error.message}`);
90 … console.info("unlock filed: error.code : " + err.code + "error.message :" + err.message);
101 console.error(`SUB_MISC_THEME_screenLock_API_0003: ${error.code}, ${error.message}`);
120 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${err.code}, ${err.message}`);
125 console.error(`SUB_MISC_THEME_screenLock_API_0004: ${error.code}, ${error.message}`);
139 … console.error(`SUB_MISC_THEME_screenLock_API_0005: ${err.code}, ${err.message}`);
150 console.error(`SUB_MISC_THEME_screenLock_API_0005: ${error.code}, ${error.message}`);
169 console.error(`SUB_MISC_THEME_screenLock_API_0006: ${err.code}, ${err.message}`);
175 console.error(`SUB_MISC_THEME_screenLock_API_0006: ${error.code}, ${error.message}`);
[all …]
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_rpc_process_test.cpp65 const uint8_t message[] = {'1', '2'}; variable
66 ret = OnPeerMsgReceived(&identify, message, 0);
98 …const char *message = R"({"message":1,"payload":{"version":131072,"challenge111":"0102030405060708… variable
99 uint32_t messageLen = strlen(message) + 1;
100 int32_t ret = OnPeerMsgReceived(&identify, (const uint8_t *)message, messageLen);
113 …const char *message = R"({"message":2,"payload":{"version":131072,"challenge111":"0102030405060708… variable
114 uint32_t messageLen = strlen(message) + 1;
115 int32_t ret = OnPeerMsgReceived(&identify, (const uint8_t *)message, messageLen);
128 …const char *message = R"({"message":3,"payload":{"version":131072,"challenge111":"0102030405060708… variable
129 uint32_t messageLen = strlen(message) + 1;
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_aes.c99 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCrypt() argument
126 message->size, in AesCbcNoPaddingCrypt()
128 message->data, in AesCbcNoPaddingCrypt()
136 cipherText->size = message->size; in AesCbcNoPaddingCrypt()
183 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptUpdate() argument
194 if (message->size % HKS_AES_CBC_DATA_BLOB_SIZE != 0) { in AesCbcNoPaddingCryptUpdate()
210 message->size, in AesCbcNoPaddingCryptUpdate()
212 message->data, in AesCbcNoPaddingCryptUpdate()
221 cipherText->size = message->size; in AesCbcNoPaddingCryptUpdate()
229 const struct HksBlob *message, const bool encrypt, struct HksBlob *cipherText) in AesCbcNoPaddingCryptFinal() argument
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/include/
Dhks_openssl_aes.h40 int32_t HksOpensslAesEncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *…
42 int32_t HksOpensslAesEncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *…
47 int32_t HksOpensslAesDecryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *…
49 int32_t HksOpensslAesDecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *…
55 const struct HksBlob *message, struct HksBlob *cipherText, struct HksBlob *tagAead);
58 const struct HksBlob *message, struct HksBlob *plainText);
91 void *cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText);
94 void **cryptoCtx, const struct HksBlob *message, struct HksBlob *cipherText);
97 void *cryptoCtx, const struct HksBlob *message, struct HksBlob *plainText);
100 void **cryptoCtx, const struct HksBlob *message, struct HksBlob *plainText);
Dhks_openssl_sm4.h35 int32_t HksOpensslSm4EncryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *…
37 int32_t HksOpensslSm4EncryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *…
42 int32_t HksOpensslSm4DecryptUpdate(void *cryptoCtx, const struct HksBlob *message, struct HksBlob *…
44 int32_t HksOpensslSm4DecryptFinal(void **cryptoCtx, const struct HksBlob *message, struct HksBlob *…
49 const struct HksBlob *message, struct HksBlob *cipherText);
52 const struct HksBlob *message, struct HksBlob *plaintext);
/base/telephony/call_manager/test/fuzztest/callnotification_fuzzer/
Dcallnotification_fuzzer.cpp64 std::string message(reinterpret_cast<const char *>(data), size); in IncomingCallNotificationFunc()
70 notification->IncomingCallHungUp(callObjectPtr, true, message); in IncomingCallNotificationFunc()
88 std::string message(reinterpret_cast<const char *>(data), size); in IncomingCallWakeupFunc()
97 notification->IncomingCallHungUp(callObjectPtr, true, message); in IncomingCallWakeupFunc()
112 std::string message(reinterpret_cast<const char *>(data), size); in ProximitySensorFunc()
118 notification->IncomingCallHungUp(callObjectPtr, true, message); in ProximitySensorFunc()
133 std::string message(reinterpret_cast<const char *>(data), size); in StatusBarFunc()
142 notification->IncomingCallHungUp(callObjectPtr, true, message); in StatusBarFunc()
157 std::string message(reinterpret_cast<const char *>(data), size); in WiredHeadsetHandlerFunc()
164 notification->IncomingCallHungUp(callObjectPtr, true, message); in WiredHeadsetHandlerFunc()
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/pedometer/
DExampleJsunit.test.js106 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
117 console.error('On fail, errCode:' + err.code + ' ,msg:' + err.message);
125 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
150 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
157 console.error('On fail, errCode:' + err.code + ' ,msg:' + err.message);
159 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
166 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
191 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
202 console.error('Once fail, errCode:' + err.code + ' ,msg:' + err.message);
210 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/pedometer_detection/
DExampleJsunit.test.js106 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
117 console.error('On fail, errCode:' + err.code + ' ,msg:' + err.message);
125 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
150 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
157 console.error('On fail, errCode:' + err.code + ' ,msg:' + err.message);
159 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
166 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
191 … console.error('getSingleSensor fail, errCode:' + err.code + ' ,msg:' + err.message);
202 console.error('Once fail, errCode:' + err.code + ' ,msg:' + err.message);
210 expect(err.message).assertEqual(PARAMETER_ERROR_MSG);
[all …]
/base/telephony/cellular_call/services/control/include/
Dcellular_call_supplement.h299 void EventGetClip(const GetClipResult &getClipResult, const std::string &message, int32_t flag);
311 void EventSetClip(int32_t result, const std::string &message, int32_t flag);
323 void EventGetClir(const GetClirResult &result, const std::string &message, int32_t flag);
335 void EventSetClir(int32_t result, const std::string &message, int32_t flag);
347 void EventGetColr(const GetColrResult &result, const std::string &message, int32_t flag);
359 void EventSetColr(int32_t result, const std::string &message, int32_t flag);
371 void EventGetColp(const GetColpResult &result, const std::string &message, int32_t flag);
383 void EventSetColp(int32_t result, const std::string &message, int32_t flag);
395 …void EventGetCallRestriction(const CallRestrictionResult &result, const std::string &message, int3…
407 void EventSetCallRestriction(int32_t result, const std::string &message, int32_t flag);
[all …]
/base/theme/wallpaper_mgr/frameworks/js/napi/
Djs_error.cpp22 napi_value message; in ThrowError() local
23 …L_RETURN_VOID(env, napi_create_string_utf8(env, errorMessage.c_str(), NAPI_AUTO_LENGTH, &message)); in ThrowError()
25 NAPI_CALL_RETURN_VOID(env, napi_create_error(env, nullptr, message, &error)); in ThrowError()
39 errorObject.message = PARAMETERERRORMESSAGE; in ConvertErrorCode()
43 errorObject.message = PERMISSIONDENIEDMESSAGE; in ConvertErrorCode()
47 errorObject.message = PERMISSIONFAILEDMESSAGE; in ConvertErrorCode()
/base/notification/eventhandler/frameworks/test/moduletest/
Devent_handler_press_module_test.cpp40 std::string message = ""; in CreateData() local
42 message += std::to_string(RandomInTen()); in CreateData()
44 return message; in CreateData()
87 char message[messageSize]; in OnReadable() local
88 ssize_t retVal = read(fileDescriptor, message, sizeof(message) - 1); in OnReadable()
90 message[retVal] = '\0'; in OnReadable()
104 std::string message = CreateData(dataSize); in OnWritable() local
105 … auto f = [fileDescriptor, message]() { write(fileDescriptor, message.c_str(), message.size()); }; in OnWritable()
107 g_writeDataSize += message.size(); in OnWritable()

12345678910>>...17