/base/hiviewdfx/hitrace/tools/hitrace_converter/ |
H A D | parse_functions.py | 83 affinity = [hex(int.from_bytes(ninfo[value : value + 1], byteorder='big')) for value in range(len(ninfo))]
85 affinity = ''.join(value[2:] for value in affinity)
|
/base/msdp/device_status/test/unittest/intention/services/src/ |
H A D | intention_service_test.cpp | 757 DRAG_DATA_MGR.Init(dragData.value()); in HWTEST_F() 887 DRAG_DATA_MGR.Init(dragData.value()); in HWTEST_F() 907 DRAG_DATA_MGR.Init(dragData.value()); in HWTEST_F() 976 DRAG_DATA_MGR.Init(dragData.value()); in HWTEST_F() 1046 DRAG_DATA_MGR.Init(dragData.value()); in HWTEST_F()
|
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/ |
H A D | dlp_permission_service.cpp | 492 DLP_LOG_INFO(LABEL, "get config value failed, use default file path"); in InitConfig() 561 char value[VALUE_MAX_LEN] = {0}; in GetDlpGatheringPolicy() local 562 int32_t ret = GetParameter(PARAM_KEY, "false", value, VALUE_MAX_LEN - 1); in GetDlpGatheringPolicy() 568 std::string tmp(value); in GetDlpGatheringPolicy() 824 std::string value = OHOS::system::GetParameter(DLP_ENABLE, ""); in IsDLPFeatureProvided() local 825 isProvideDLPFeature = (value == TRUE_VALUE); in IsDLPFeatureProvided()
|
/base/startup/init/services/modules/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 276 raise ValidateError("LOG return value is not allowed in user mode") 450 #gen bpf (argn & mask) == value 452 def gen_mask_equal_bpf(arg_id, mask, value, cur_size): 457 bpf_policy.append(BPF_JEQ.format('((uint64_t)' + value + ') >> 32', 0, cur_size + 4)) 462 bpf_policy.append(BPF_JEQ.format(value, cur_size, cur_size + 1)) 701 value = outside_brace_content[len(operation_res_outside[0]):] 703 return self.gen_mask_equal_bpf(arg_res[0], mask, value, cur_size) 930 raise ValidateError('return value not defined') 953 raise ValidateError("LOG return value is not allowed in user mode")
|
/base/update/updateservice/frameworks/js/napi/update/common/src/ |
H A D | client_helper.cpp | 428 napi_value value; in GetUpgradePolicyFromArg() local 429 status = napi_get_named_property(env, arg, "autoUpgradePeriods", &value); in GetUpgradePolicyFromArg() 431 status = napi_is_array(env, value, &result); in GetUpgradePolicyFromArg() 434 status = napi_get_array_length(env, value, &count); in GetUpgradePolicyFromArg() 443 napi_get_element(env, value, i, &element); in GetUpgradePolicyFromArg()
|
/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | render_grid.cpp | 384 animation->AddListener([weakGrid = AceType::WeakClaim(this)](const double& value) { in AnimateTo() 387 grid->JumpTo(value); in AnimateTo() 751 span = 1; // Invalid span and make it default value 1. in GetChildSpan() 882 auto&& callback = [weakGrid = AceType::WeakClaim(this), isVertical](double value, int32_t source) { in ResetScrollable() 894 delta.SetY(-value); in ResetScrollable() 896 delta.SetX(-value); in ResetScrollable()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_water_flow_bridge.cpp | 261 auto value = static_cast<int32_t>(FlexDirection::COLUMN); in SetLayoutDirection() local 263 ArkTSUtils::ParseJsInteger(vm, layoutDirectionArg, value); in SetLayoutDirection() 265 if (value >= NUM_0 && value < static_cast<int32_t>(LAYOUT_DIRECTION.size())) { in SetLayoutDirection() 266 GetArkUINodeModifiers()->getWaterFlowModifier()->setLayoutDirection(nativeNode, value); in SetLayoutDirection() 391 CalcDimension fadingEdgeLength = Dimension(32.0f, DimensionUnit::VP); // default value in SetFadingEdge()
|
H A D | arkts_native_span_bridge.cpp | 219 int32_t value = secondArg->Int32Value(vm); in SetFontStyle() local 220 if (value >= 0 && value < static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 221 GetArkUINodeModifiers()->getSpanModifier()->setSpanFontStyle(nativeNode, value); in SetFontStyle() 379 letterSpacingValue.value = secondArg->ToNumber(vm)->Value(); in SetLetterSpacing()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_span_test.cpp | 53 void ConstructSpans(RefPtr<RichEditorPattern> pattern, T value, Args... args); 96 void RichEditorSpanTest::ConstructSpans(RefPtr<RichEditorPattern> pattern, T value, Args... args) in ConstructSpans() argument 99 pattern->AddTextSpan({ .value = value }); in ConstructSpans() 101 auto it = SPAN_CONSTRUCTOR_MAP.find(value); in ConstructSpans()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/ |
H A D | pipeline_context.h | 370 void SetEnableKeyBoardAvoidMode(KeyBoardAvoidMode value) override; 635 if (mouseStyleNodeId_.has_value() && mouseStyleNodeId_.value() == id) { in FreeMouseStyleHoldNode() 665 void SetIgnoreViewSafeArea(bool value) override; 666 void SetIsLayoutFullScreen(bool value) override; 667 void SetIsNeedAvoidWindow(bool value) override; 771 // return value means whether it has printed info
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 625 frictionMotion_->AddListener([weakBar = AceType::WeakClaim(this)](double value) { in HandleDragEnd() 628 scrollBar->ProcessFrictionMotion(value); in HandleDragEnd() 649 void ScrollBar::ProcessFrictionMotion(double value) in ProcessFrictionMotion() argument 652 auto offset = CalcPatternOffset(value - frictionPosition_); in ProcessFrictionMotion() 659 frictionPosition_ = value; in ProcessFrictionMotion()
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_gatt_client.cpp | 936 std::vector<uint8_t> value(pData, pData + length); in WriteCharacteristic() 937 return WriteCharacteristic(characteristic, std::move(value)); in WriteCharacteristic() 940 int GattClient::WriteCharacteristic(GattCharacteristic &characteristic, std::vector<uint8_t> value) in WriteCharacteristic() argument 958 size_t length = value.size(); in WriteCharacteristic() 970 bluetooth::Characteristic(characteristic.GetHandle(), value.data(), length)); in WriteCharacteristic()
|
/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_gatt_client.cpp | 567 std::vector<uint8_t> value {}; in WriteCharacteristicValueEx() 568 auto status = CheckWriteCharacteristicValueEx(env, info, &character, &client, value); in WriteCharacteristicValueEx() 748 std::vector<uint8_t> value {}; in WriteCharacteristicValue() 749 auto status = CheckWriteCharacteristicValue(env, info, &characteristic, &gattClient, value); in WriteCharacteristicValue() 753 int ret = client->WriteCharacteristic(*characteristic, std::move(value)); in WriteCharacteristicValue()
|
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_gatt.cpp | 160 * @param value notify msg value. 163 void OnNotifyMsgReportFromLpDevice(const UUID &btUuid, int msgType, const std::vector<uint8_t> &value) override 170 appCallback->lpDeviceInfoCb(&retUuid, msgType, const_cast<uint8_t*>(value.data()), value.size()); 446 * @param accept Specifies whether to accept the request. The value <b>true</b> means to accept the request, 1277 std::vector<int8_t> value(param->activeDeviceInfo[i].deviceId, in ConvertAdvDeviceInfo() 1279 deviceInfo.deviceId = value; in ConvertAdvDeviceInfo()
|
/foundation/multimedia/audio_framework/services/audio_service/test/example/ |
H A D | audio_process_client_test.cpp | 793 int32_t value = 0; in GetArgs() local 796 valueStr >> value; in GetArgs() local 797 return value; in GetArgs() 1288 bool SetSysPara(const std::string key, int32_t &value) in SetSysPara() argument 1290 auto res = SetParameter(key.c_str(), std::to_string(value).c_str()); in SetSysPara()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_creator_napi.cpp | 586 static bool IsTestImageArgs(napi_env env, napi_value value) in IsTestImageArgs() argument 590 napi_status status = napi_unwrap(env, value, reinterpret_cast<void**>(&image)); in IsTestImageArgs() 714 static bool CheckOnParam0(napi_env env, napi_value value, const std::string& refStr) in CheckOnParam0() argument 718 napi_status status = napi_get_value_string_utf8(env, value, nullptr, 0, &bufLength); in CheckOnParam0() 728 status = napi_get_value_string_utf8(env, value, buffer, bufLength + 1, &bufLength); in CheckOnParam0()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc.cpp | 137 // decode use, this value may be changed by real pixelFormat in GetDstImageInfo() 451 IMAGE_LOGE("[PostProc]Invalid value of bufferSize"); in AllocHeapBuffer() 560 CropValue value = GetCropValue(cropRect, srcSize); in NeedScanlineFilter() local 561 if (value == CropValue::NOCROP && !hasPixelConvert) { in NeedScanlineFilter() 564 } else if (value == CropValue::INVALID) { in NeedScanlineFilter() 778 SLRWeightTuple value{slrWeightX, slrWeightY, key}; in initSLRFactor() 779 std::shared_ptr<SLRWeightTuple> weightPtr = std::make_shared<SLRWeightTuple>(value); in initSLRFactor()
|
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/ |
H A D | plugin_mgr.cpp | 412 trace_str.append(",value[").append(std::to_string(resData->value)).append("]");
in BuildDispatchTrace() 440 RESSCHED_LOGD("%{public}s, PluginMgr, resType = %{public}d, value = %{public}lld, pluginlist is %{public}s.",
in DispatchResource() 441 __func__, resData->resType, (long long)resData->value, libNameAll.c_str());
in DispatchResource() 495 RESSCHED_LOGD("%{public}s, PluginMgr, resType = %{public}d, value = %{public}lld, plugin is %{public}s.",
in DeliverResource() 496 __func__, resData->resType, (long long)resData->value, pluginLib.c_str());
in DeliverResource() 723 pluginDispatchFunc(std::make_shared<ResData>(resData->resType, resData->value, resData->payload));
in DispatchResourceToPluginSync() 777 pluginDispatchFunc(std::make_shared<ResData>(resData->resType, resData->value, resData->payload));
in DispatchResourceToPluginAsync()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | rdb_general_store_test.cpp | 44 { "#value", { int64_t(100) } }, { "#float", { double(100) } } };
178 std::string sqls = "INSERT INTO test ( #flag, #float, #gid, #value) VALUES ( ?, ?, ?, ?)";
180 std::string sql = "REPLACE INTO test ( #flag, #float, #gid, #value) VALUES ( ?, ?, ?, ?)";
469 DistributedData::VBucket value;
in HWTEST_F() local 472 auto result = store->SqlConcatenate(value, strColumnSql, strRowValueSql);
in HWTEST_F() 473 size_t columnSize = value.size();
in HWTEST_F() 504 { "#value", { int64_t(100) } }, { "#float", { double(100) } } },
in HWTEST_F() 509 DistributedData::VBucket value;
in HWTEST_F() local 510 DistributedData::VBuckets vbuckets = { value };
in HWTEST_F() 766 { "#value", { int64_ in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_storage_engine.cpp | 82 if (item.value.empty()) { // Device ID has been set to value in cache db in GetRemoveDataDevices() 93 DBCommon::VectorToString(item.value, deviceName); in GetRemoveDataDevices() 650 "value BLOB," \ 658 "value BLOB," \ 1086 entry.value.size() > DBConstant::MAX_VALUE_SIZE) { // LCOV_EXCL_BR_LINE in CommitNotifyForMigrateCache() 1090 if (entry.key.size() + entry.value.size() + totalSize > MAX_TOTAL_NOTIFY_DATA_SIZE) { // LCOV_EXCL_BR_LINE in CommitNotifyForMigrateCache() 1096 totalSize += (entry.key.size() + entry.value.size()); in CommitNotifyForMigrateCache()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_database_test.cpp | 836 DistributedDBToolsUnitTest::GetRandomKeyValue(entry.value); in HWTEST_F() 837 EXPECT_EQ(g_kvNbDelegatePtr->Put(entry.key, entry.value), OK); in HWTEST_F() 847 Value value; in HWTEST_F() local 849 EXPECT_EQ(g_kvNbDelegatePtr->Get(keys[i], value), NOT_FOUND); in HWTEST_F() 852 EXPECT_EQ(g_kvNbDelegatePtr->Get(keys[i], value), NOT_FOUND); in HWTEST_F()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/preferences/src/ |
H A D | napi_preferences.cpp | 101 napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) in NewInstance() 103 if (value == nullptr) { in NewInstance() 123 obj->SetInstance(value); in NewInstance() 160 std::make_shared<ParamTypeError>("The type of value must be less then 16 * 1024 * 1024 btyes.")); in ParseDefValue() 162 PRE_CHECK_RETURN_ERR_SET(rc == napi_ok, std::make_shared<ParamTypeError>("The type of value must be ValueType.")); in ParseDefValue() 169 for (const auto &[key, value] : context->allElements) { in GetAllExecute() 170 napi_set_named_property(env, result, key.c_str(), JSUtils::Convert2JSValue(env, value.value_)); in GetAllExecute() 225 std::make_shared<InnerError>("Failed to unwrap when getting value.")); in GetValue() 238 LOG_DEBUG("GetValue get default value."); in GetValue() 245 std::make_shared<InnerError>("Failed to delete reference when getting value in GetValue() 100 NewInstance( napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) NewInstance() argument [all...] |
/third_party/ffmpeg/libavcodec/mips/ |
H A D | vp3dsp_idct_msa.c | 539 int32_t value = 0xfefefefe; in ff_put_no_rnd_pixels_l2_msa() local 540 v4i32 fmask = {value, value, value, value}; in ff_put_no_rnd_pixels_l2_msa()
|
/third_party/ffmpeg/fftools/ |
H A D | ffmpeg_filter.c | 95 av_opt_set(ost->enc_ctx, "strict", strict_dict->value, 0); in choose_pix_fmts() 455 av_strlcatf(args, sizeof(args), ":%s=%s", e->key, e->value); in configure_output_video_filter() 1016 av_opt_set(fg->graph, "threads", e->value, 0); in configure_filtergraph() 1023 av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); in configure_filtergraph() 1034 av_strlcatf(args, sizeof(args), "%s=%s:", e->key, e->value); in configure_filtergraph()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_histogram.c | 500 int value = s->start[p]; in filter_frame() local 508 value += lrint(max_value * (log2(s->histogram[idx] + 1) / max_hval_log)); in filter_frame() 510 value += lrint(max_value * s->histogram[idx] / (float)max_hval); in filter_frame() 513 s->out->data[p][(i + starty) * s->out->linesize[p] + startx + s->x_pos] = value; in filter_frame() 515 AV_WN16(s->out->data[p] + (i + starty) * s->out->linesize[p] + startx * 2 + s->x_pos * 2, value); in filter_frame()
|