/base/telephony/ril_adapter/frameworks/src/ |
D | hril_base_parcel.cpp | 21 bool Read(Parcel &parcel, int8_t &value) in Read() argument 23 return parcel.ReadInt8(value); in Read() 26 bool Read(Parcel &parcel, uint8_t &value) in Read() argument 28 return parcel.ReadUint8(value); in Read() 31 bool Read(Parcel &parcel, int32_t &value) in Read() argument 33 return parcel.ReadInt32(value); in Read() 36 bool Read(Parcel &parcel, uint32_t &value) in Read() argument 38 return parcel.ReadUint32(value); in Read() 41 bool Read(Parcel &parcel, int64_t &value) in Read() argument 43 return parcel.ReadInt64(value); in Read() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_c.cpp | 39 …= void (*)(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value); 41 …lParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolParamValue() argument 43 appEventPack->AddParam(name, value->value.bool_v); in AddBoolParamValue() 46 …yParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddBoolArrayParamValue() argument 48 AddArrayParam(appEventPack, name, value->value.bool_arr_v, value->arrSize); in AddBoolArrayParamValue() 51 …8ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ParamValue() argument 53 appEventPack->AddParam(name, value->value.int8_v); in AddInt8ParamValue() 56 …yParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt8ArrayParamValue() argument 58 AddArrayParam(appEventPack, name, value->value.int8_arr_v, value->arrSize); in AddInt8ArrayParamValue() 61 …6ParamValue(std::shared_ptr<AppEventPack>& appEventPack, const char* name, const ParamValue* value) in AddInt16ParamValue() argument [all …]
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_encode_buffer.cpp | 33 bool MmsEncodeBuffer::EncodeUintvar(uint32_t value) in EncodeUintvar() argument 40 reversed[0] = (char)value & setHighestBitZero; in EncodeUintvar() 41 value = value >> shiftUintBits; in EncodeUintvar() 42 while (value > 0) { in EncodeUintvar() 43 reversed[len] = setNotHighestBitZero | (value & setHighestBitZero); in EncodeUintvar() 45 value = value >> shiftUintBits; in EncodeUintvar() 58 bool MmsEncodeBuffer::WriteByte(uint8_t value) in WriteByte() argument 64 pduBuffer_[curPosition_++] = value; in WriteByte() 110 bool MmsEncodeBuffer::EncodeShortLength(uint8_t value) in EncodeShortLength() argument 113 if (value > minShortLength) { in EncodeShortLength() [all …]
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_common.c | 23 unsigned long long value = 0; in HapGetInt64() local 28 value = (value << BYTE_BITS) | (*(buf + len)); in HapGetInt64() 30 return (long long)value; in HapGetInt64() 35 unsigned int value = HapGetUnsignedInt(buf, len); in HapGetInt() local 36 return (int)value; in HapGetInt() 44 unsigned int value = 0; in HapGetUnsignedInt() local 49 value = (value << BYTE_BITS) | (*(buf + len)); in HapGetUnsignedInt() 51 return value; in HapGetUnsignedInt() 59 unsigned short value = 0; in HapGetShort() local 64 value = (value << BYTE_BITS) | (*(buf + len)); in HapGetShort() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_record_c.cpp | 26 int GetParamValue(const HiSysEventRecord& record, const char* name, T& value) in GetParamValue() argument 32 return recordObj.GetParamValue(name, value); in GetParamValue() 35 int GetParamValue(const HiSysEventRecord& record, const char* name, char** value) in GetParamValue() argument 45 return OHOS::HiviewDFX::StringUtil::ConvertCString(str, value); in GetParamValue() 49 int GetParamValues(const HiSysEventRecord& record, const char* name, T** value, size_t& len) in GetParamValues() argument 67 *value = data; in GetParamValues() 71 int GetParamValues(const HiSysEventRecord& record, const char* name, char*** value, size_t& len) in GetParamValues() argument 84 return OHOS::HiviewDFX::StringUtil::ConvertCStringVec(dataVec, value, len); in GetParamValues() 101 int GetParamInt64Value(const HiSysEventRecord& record, const char* name, int64_t& value) in GetParamInt64Value() argument 103 return GetParamValue<int64_t>(record, name, value); in GetParamInt64Value() [all …]
|
/base/security/access_token/interfaces/kits/common/src/ |
D | napi_common.cpp | 25 bool CheckType(const napi_env& env, const napi_value& value, const napi_valuetype& type) in CheckType() argument 28 napi_typeof(env, value, &valuetype); in CheckType() 36 bool ParseBool(const napi_env& env, const napi_value& value, bool& result) in ParseBool() argument 38 if (!CheckType(env, value, napi_boolean)) { in ParseBool() 42 if (napi_get_value_bool(env, value, &result) != napi_ok) { in ParseBool() 49 bool ParseInt32(const napi_env& env, const napi_value& value, int32_t& result) in ParseInt32() argument 51 if (!CheckType(env, value, napi_number)) { in ParseInt32() 54 if (napi_get_value_int32(env, value, &result) != napi_ok) { in ParseInt32() 61 bool ParseInt64(const napi_env& env, const napi_value& value, int64_t& result) in ParseInt64() argument 63 if (!CheckType(env, value, napi_number)) { in ParseInt64() [all …]
|
/base/powermgr/battery_statistics/services/native/test/unittest/mock/source/ |
D | mock_parcel.cpp | 200 bool Parcel::Write(T value) in Write() argument 202 (void)value; in Write() 206 bool Parcel::WriteBool(bool value) in WriteBool() argument 208 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 211 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 213 return Write<bool>(value); in WriteBoolUnaligned() 216 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 218 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 221 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 223 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/base/powermgr/display_manager/test/unittest/common/native/mock/src/ |
D | mock_parcel.cpp | 198 bool Parcel::Write(T value) in Write() argument 200 (void)value; in Write() 204 bool Parcel::WriteBool(bool value) in WriteBool() argument 206 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 209 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 211 return Write<bool>(value); in WriteBoolUnaligned() 214 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 216 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 219 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 221 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/base/powermgr/thermal_manager/services/native/test/unittest/mock/src/ |
D | mock_parcel.cpp | 199 bool Parcel::Write(T value) in Write() argument 201 (void)value; in Write() 209 bool Parcel::WriteBool(bool value) in WriteBool() argument 211 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 214 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 216 return Write<bool>(value); in WriteBoolUnaligned() 219 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 221 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 224 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 226 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/base/powermgr/battery_manager/services/native/test/unittest/mock/source/ |
D | mock_parcel.cpp | 198 bool Parcel::Write(T value) in Write() argument 200 (void)value; in Write() 204 bool Parcel::WriteBool(bool value) in WriteBool() argument 206 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 209 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 211 return Write<bool>(value); in WriteBoolUnaligned() 214 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 216 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 219 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 221 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/base/powermgr/power_manager/services/native/test/unittest/mock/ |
D | mock_parcel.cpp | 198 bool Parcel::Write(T value) in Write() argument 200 (void)value; in Write() 204 bool Parcel::WriteBool(bool value) in WriteBool() argument 206 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 209 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 211 return Write<bool>(value); in WriteBoolUnaligned() 214 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 216 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 219 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 221 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/ |
D | action_popup.cpp | 54 void ActionPopup::AddActionValue(std::string value) in AddActionValue() argument 56 THERMAL_HILOGD(COMP_SVC, "value=%{public}s", value.c_str()); in AddActionValue() 57 if (value.empty()) { in AddActionValue() 60 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 66 uint32_t value; in Execute() local 71 value = static_cast<uint32_t>(atoi(iter->second.c_str())); in Execute() 72 if (value != lastValue_) { in Execute() 73 HandlePopupEvent(value); in Execute() 74 WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); in Execute() 76 lastValue_ = value; in Execute() [all …]
|
D | action_display.cpp | 52 void ActionDisplay::AddActionValue(std::string value) in AddActionValue() argument 54 THERMAL_HILOGD(COMP_SVC, "value=%{public}s", value.c_str()); in AddActionValue() 55 if (value.empty()) return; in AddActionValue() 56 valueList_.push_back(atof(value.c_str())); in AddActionValue() 62 float value; in Execute() local 67 value = static_cast<float>(atof(iter->second.c_str())); in Execute() 68 if ((value != lastValue_) && (!g_service->GetSimulationXml())) { in Execute() 69 DisplayRequest(value); in Execute() 70 } else if (value != lastValue_) { in Execute() 71 DisplayExecution(value); in Execute() [all …]
|
/base/useriam/user_auth_framework/interfaces/inner_api/ |
D | attributes.h | 75 bool SetBoolValue(AttributeKey key, bool value); 76 bool SetUint64Value(AttributeKey key, uint64_t value); 77 bool SetUint32Value(AttributeKey key, uint32_t value); 78 bool SetUint16Value(AttributeKey key, uint16_t value); 79 bool SetUint8Value(AttributeKey key, uint8_t value); 80 bool SetInt32Value(AttributeKey key, int32_t value); 81 bool SetStringValue(AttributeKey key, const std::string &value); 82 bool SetAttributesValue(AttributeKey key, const Attributes &value); 83 bool SetUint64ArrayValue(AttributeKey key, const std::vector<uint64_t> &value); 84 bool SetUint32ArrayValue(AttributeKey key, const std::vector<uint32_t> &value); [all …]
|
/base/update/updater/services/script/script_interpreter/ |
D | script_context.cpp | 29 int32_t UScriptInstructionContext::PushParam(int32_t value) in PushParam() argument 31 UScriptValuePtr valuePtr = std::make_shared<IntegerValue>(value); in PushParam() 37 int32_t UScriptInstructionContext::PushParam(float value) in PushParam() argument 39 UScriptValuePtr valuePtr = std::make_shared<FloatValue>(value); in PushParam() 45 int32_t UScriptInstructionContext::PushParam(const std::string& value) in PushParam() argument 47 UScriptValuePtr valuePtr = std::make_shared<StringValue>(value); in PushParam() 58 int32_t UScriptInstructionContext::GetParam(int32_t index, int32_t &value) in GetParam() argument 60 return GetParam<int32_t, IntegerValue>(index, value); in GetParam() 63 int32_t UScriptInstructionContext::GetParam(int32_t index, float &value) in GetParam() argument 65 return GetParam<float, FloatValue>(index, value); in GetParam() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/action_soc/ |
D | action_cpu_lit.cpp | 50 void ActionCpuLit::AddActionValue(std::string value) in AddActionValue() argument 52 if (value.empty()) return; in AddActionValue() 53 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 59 uint32_t value; in Execute() local 63 value = static_cast<uint32_t>(atoi(iter->second.c_str())); in Execute() 64 if (value != lastValue_) { in Execute() 65 CpuRuquest(value); in Execute() 66 WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); in Execute() 68 lastValue_ = value; in Execute() 75 value = 0; in Execute() [all …]
|
D | action_cpu_big.cpp | 50 void ActionCpuBig::AddActionValue(std::string value) in AddActionValue() argument 52 if (value.empty()) return; in AddActionValue() 53 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 59 uint32_t value; in Execute() local 63 value = static_cast<uint32_t>(atoi(iter->second.c_str())); in Execute() 64 if (value != lastValue_) { in Execute() 65 CpuRuquest(value); in Execute() 66 WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); in Execute() 68 lastValue_ = value; in Execute() 75 value = 0; in Execute() [all …]
|
D | action_cpu_med.cpp | 50 void ActionCpuMed::AddActionValue(std::string value) in AddActionValue() argument 52 if (value.empty()) return; in AddActionValue() 53 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 59 uint32_t value; in Execute() local 63 value = static_cast<uint32_t>(atoi(iter->second.c_str())); in Execute() 64 if (value != lastValue_) { in Execute() 65 CpuRuquest(value); in Execute() 66 WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); in Execute() 68 lastValue_ = value; in Execute() 75 value = 0; in Execute() [all …]
|
D | action_gpu.cpp | 50 void ActionGpu::AddActionValue(std::string value) in AddActionValue() argument 52 valueList_.push_back(atoi(value.c_str())); in AddActionValue() 58 uint32_t value; in Execute() local 62 value = static_cast<uint32_t>(atoi(iter->second.c_str())); in Execute() 63 if (value != lastValue_) { in Execute() 64 GpuRequest(value); in Execute() 65 WriteActionTriggeredHiSysEvent(enableEvent_, actionName_, value); in Execute() 67 lastValue_ = value; in Execute() 74 value = 0; in Execute() 77 value = *max_element(valueList_.begin(), valueList_.end()); in Execute() [all …]
|
/base/web/webview/test/ohos_nweb/ |
D | nweb_cookie_test_callback.h | 25 void OnReceiveValue(bool value) in OnReceiveValue() argument 27 TESTLOG_I("SetCookieTestCallback result:%{public}d", value); in OnReceiveValue() 33 void OnReceiveValue(bool value) in OnReceiveValue() argument 35 TESTLOG_I("ExistCookieTestCallback result:%{public}d", value); in OnReceiveValue() 41 void OnReceiveValue(bool value) in OnReceiveValue() argument 43 TESTLOG_I("StoreCookieTestCallback result:%{public}d", value); in OnReceiveValue() 49 void OnReceiveValue(bool value) in OnReceiveValue() argument 51 TESTLOG_I("DeleteCookieTestCallback result:%{public}d", value); in OnReceiveValue() 56 void OnReceiveValue(std::string value) in OnReceiveValue() argument 58 TESTLOG_I("ReturnCookieTestCallback result:%{public}s", value.c_str()); in OnReceiveValue()
|
/base/startup/syspara_lite/adapter/native/syspara/src/ |
D | parameters.cpp | 35 std::vector<char> value(len + 1); in GetParameter() local 36 ret = SystemGetParameter(key.c_str(), value.data(), &len); in GetParameter() 38 return std::string(value.data()); in GetParameter() 43 bool SetParameter(const std::string& key, const std::string& value) override in SetParameter() argument 45 return SystemSetParameter(key.c_str(), value.c_str()) == 0; in SetParameter() 48 int WaitParameter(const std::string& key, const std::string& value, int timeout) override in WaitParameter() argument 50 return SystemWaitParameter(key.c_str(), value.c_str(), timeout); in WaitParameter() 75 std::vector<char> value(PARAM_NAME_LEN_MAX); in GetParameterName() local 76 int ret = SystemGetParameterName(handle, value.data(), PARAM_NAME_LEN_MAX); in GetParameterName() 78 return std::string(value.data()); in GetParameterName() [all …]
|
/base/telephony/sms_mms/frameworks/native/mms/include/ |
D | mms_encode_buffer.h | 31 bool EncodeUintvar(uint32_t value); 32 bool EncodeShortLength(uint8_t value); 33 bool EncodeValueLength(uint32_t value); 35 bool EncodeOctet(uint8_t value); 36 bool EncodeShortInteger(uint8_t value); 37 bool EncodeInteger(uint32_t value); 38 bool EncodeLongInteger(uint64_t value); 39 bool EncodeText(std::string value); 40 bool EncodeQuotedText(std::string value); 41 bool EncodeTokenText(std::string value);
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/parse/ |
D | parse_smaps_rollup_info.cpp | 37 uint64_t value = 0; in GetValue() local 38 bool success = MemoryUtil::GetInstance().GetTypeAndValue(str, type, value); in GetValue() 43 memInfo.rss = value; in GetValue() 47 uint64_t value = 0; in GetValue() local 48 bool success = MemoryUtil::GetInstance().GetTypeAndValue(str, type, value); in GetValue() 53 memInfo.pss = value; in GetValue() 55 memInfo.privateDirty = value; in GetValue() 57 memInfo.privateDirty = value; in GetValue() 61 uint64_t value = 0; in GetValue() local 62 bool success = MemoryUtil::GetInstance().GetTypeAndValue(str, type, value); in GetValue() [all …]
|
/base/startup/syspara_lite/interfaces/innerkits/native/syspara/src/ |
D | parameter.c | 32 int GetParameter(const char *key, const char *def, char *value, unsigned int len) in GetParameter() argument 34 if ((key == NULL) || (value == NULL)) { in GetParameter() 37 int ret = HalGetParameter(key, def, value, len); in GetParameter() 38 return (ret < 0) ? ret : strlen(value); in GetParameter() 41 int SetParameter(const char *key, const char *value) in SetParameter() argument 43 if ((key == NULL) || (value == NULL)) { in SetParameter() 46 return HalSetParameter(key, value); in SetParameter() 49 int WaitParameter(const char *key, const char *value, int timeout) in WaitParameter() argument 51 if ((key == NULL) || (value == NULL)) { in WaitParameter() 54 return HalWaitParameter(key, value, timeout); in WaitParameter() [all …]
|
/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | attributes_test.cpp | 72 bool value; variable 73 EXPECT_TRUE(attrs2.GetBoolValue(Attributes::ATTR_RESULT_CODE, value)); 74 EXPECT_EQ(value, true); 77 bool value; variable 78 EXPECT_TRUE(attrs2.GetBoolValue(Attributes::ATTR_SIGNATURE, value)); 79 EXPECT_EQ(value, false); 82 uint64_t value; variable 83 EXPECT_TRUE(attrs2.GetUint64Value(Attributes::ATTR_SCHEDULE_ID, value)); 84 EXPECT_EQ(value, UINT64_MAX); 87 std::vector<uint32_t> value; variable [all …]
|