Home
last modified time | relevance | path

Searched refs:data_ (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/foundation/graphic/graphic_utils_lite/frameworks/
Dtrans_affine.cpp22 data_[0] = x2 - x1; in RectToParl()
23 data_[3] = 0; // y1 - y1 in RectToParl()
24 data_[1] = x2 - x1; in RectToParl()
25 data_[4] = y2 - y1; in RectToParl()
26 data_[2] = x1; in RectToParl()
27 data_[5] = y1; in RectToParl()
37 float t0 = data_[0] * metrix.data_[0] + data_[3] * metrix.data_[1]; in Multiply()
38 float t2 = data_[1] * metrix.data_[0] + data_[4] * metrix.data_[1]; in Multiply()
39 float t4 = data_[2] * metrix.data_[0] + data_[5] * metrix.data_[1] + metrix.data_[2]; in Multiply()
40 data_[3] = data_[0] * metrix.data_[3] + data_[3] * metrix.data_[4]; in Multiply()
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
Drs_matrix3.h77 T data_[9] = { 0 };
96 data_[0] = m00; in Matrix3()
97 data_[1] = m01; in Matrix3()
98 data_[2] = m02; in Matrix3()
100 data_[3] = m10; in Matrix3()
101 data_[4] = m11; in Matrix3()
102 data_[5] = m12; in Matrix3()
104 data_[6] = m20; in Matrix3()
105 data_[7] = m21; in Matrix3()
106 data_[8] = m22; in Matrix3()
[all …]
Drs_vector4.h36 T data_[4]; member
108 data_[0] = value; in Vector4()
109 data_[1] = value; in Vector4()
110 data_[2] = value; in Vector4()
111 data_[3] = value; in Vector4()
117 data_[0] = x; in Vector4()
118 data_[1] = y; in Vector4()
119 data_[2] = z; in Vector4()
120 data_[3] = w; in Vector4()
126 std::copy_n(array, std::size(data_), data_); in Vector4()
[all …]
Drs_vector3.h33 T data_[3]; member
73 data_[0] = 0.0; in Vector3()
74 data_[1] = 0.0; in Vector3()
75 data_[2] = 0.0; in Vector3()
81 data_[0] = x; in Vector3()
82 data_[1] = y; in Vector3()
83 data_[2] = z; in Vector3()
89 data_[0] = v[0]; in Vector3()
90 data_[1] = v[1]; in Vector3()
91 data_[2] = v[2]; in Vector3()
[all …]
Drs_vector2.h32 T data_[2]; member
75 data_[0] = x; in Vector2()
76 data_[1] = y; in Vector2()
82 data_[0] = v[0]; in Vector2()
83 data_[1] = v[1]; in Vector2()
101 const T* oData = other.data_; in Dot()
102 T sum = data_[0] * oData[0]; in Dot()
103 sum += data_[1] * oData[1]; in Dot()
110 const T* oData = other.data_; in Cross()
112 return data_[0] * oData[1] - data_[1] * oData[0]; in Cross()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Dtrans_affine.h56 data_[index] = value; in SetData()
155 float reciprocal = data_[0] * data_[4] - data_[3] * data_[1]; in DeterminantReciprocal()
228 *x = tmp * data_[0] + *y * data_[1] + data_[2]; in Transform()
229 *y = tmp * data_[3] + *y * data_[4] + data_[5]; in Transform()
235 float a = (*x - data_[2]) * reciprocal; in InverseTransform()
236 float b = (*y - data_[5]) * reciprocal; in InverseTransform()
237 *x = a * data_[4] - b * data_[1]; in InverseTransform()
238 *y = b * data_[0] - a * data_[3]; in InverseTransform()
243 data_[2] += deltaX; in Translate()
244 data_[5] += deltaY; in Translate()
[all …]
Dgraphic_math.h224 T data_[3]; // 3: size for x,y,z member
244 data_[0] = x; in Vector3()
245 data_[1] = y; in Vector3()
246 data_[2] = z; // 2: index of z in Vector3()
258 return data_[index];
263 return data_[index];
288 T data_[4]; // 4: size for x,y,z,w member
300 data_[0] = x; in Vector4()
301 data_[1] = y; in Vector4()
302 data_[2] = z; // 2: index of z in Vector4()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
Dgeometry_plaindata_array.h48 GeometryArrayAllocator<T>::Deallocate(data_, size_); in ~GeometryPlainDataArray()
51 GeometryPlainDataArray() : data_(0), size_(0) {} in GeometryPlainDataArray()
60 : data_(GeometryArrayAllocator<T>::Allocate(size)), size_(size) {} in GeometryPlainDataArray()
63 : data_(GeometryArrayAllocator<T>::Allocate(podArray.size_)), size_(podArray.size_) in GeometryPlainDataArray()
65 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) != EOK) { in GeometryPlainDataArray()
73 if (memcpy_s(data_, sizeof(T) * size_, podArray.data_, sizeof(T) * size_) != EOK) {
86 return data_[index];
96 return data_[index];
106 return data_[index]; in ValueAt()
116 return data_[index]; in IndexAt()
[all …]
/foundation/multimedia/player_framework/frameworks/native/avcodeclist/
Davcodec_info.cpp81 : data_(capabilityData) in VideoCaps()
95 std::shared_ptr<AVCodecInfo> codecInfo = std::make_shared<AVCodecInfo>(data_); in GetCodecInfo()
103 return data_.bitrate; in GetSupportedBitrate()
108 std::vector<int32_t> format = data_.format; in GetSupportedFormats()
115 return data_.alignment.maxVal; in GetSupportedHeightAlignment()
120 return data_.alignment.minVal; in GetSupportedWidthAlignment()
125 return data_.width; in GetSupportedWidth()
130 return data_.height; in GetSupportedHeight()
135 std::vector<int32_t> profiles = data_.profiles; in GetSupportedProfiles()
142 std::vector<int32_t> levels = data_.levels; in GetSupportedLevels()
[all …]
/foundation/arkui/ace_engine/frameworks/core/event/
Dace_event_handler.h83 : data_(std::make_unique<Data>(eventId, eventType, pageId, isFront)) in data_() function
89 : data_(std::make_unique<Data>(std::move(func), eventType, pageId, isFront)) in data_() function
94 : data_(std::make_unique<Data>(std::move(func), eventType, pageId, isFront)) in data_() function
98 : data_(std::make_unique<Data>(std::move(func), eventType, pageId, isFront)) in data_() function
103 if (other.data_) { in EventMarker()
104 ContainerScope id(other.data_->instanceId); in EventMarker()
105 data_ = std::make_unique<Data>(*other.data_); in EventMarker()
113 data_ = other.data_ ? std::make_unique<Data>(*other.data_) : nullptr;
129 return !data_ || data_->eventId.empty(); in IsEmpty()
134 if (data_) { in SetPreFunction()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/mock/common/
Dmock_storage.ts21 private data_ = {}; property in MockStorage
34 this.data_ = JSON.parse(file);
37 this.data_ = {};
39 console.debug(`MockStorage: database opened: ${JSON.stringify(this.data_)}`);
48 console.debug(`MockStorage: get(${key}) returns ${this.data_[key]}`);
49 return this.data_[key];
59 this.data_[key] = val;
60 this.fs.writeFileSync(this.dbFileName_, JSON.stringify(this.data_));
68 this.data_ = {};
78 delete this.data_[key];
[all …]
/foundation/multimedia/av_codec/frameworks/native/avcodeclist/
Davcodec_info.cpp65 VideoCaps::VideoCaps(CapabilityData *capabilityData) : data_(capabilityData) in VideoCaps()
79 std::shared_ptr<AVCodecInfo> codecInfo = std::make_shared<AVCodecInfo>(data_); in GetCodecInfo()
87 return data_->bitrate; in GetSupportedBitrate()
92 std::vector<int32_t> pixFormat = data_->pixFormat; in GetSupportedFormats()
99 return data_->alignment.height; in GetSupportedHeightAlignment()
104 return data_->alignment.width; in GetSupportedWidthAlignment()
109 return data_->width; in GetSupportedWidth()
114 return data_->height; in GetSupportedHeight()
119 std::vector<int32_t> profiles = data_->profiles; in GetSupportedProfiles()
132 return data_->encodeQuality; in GetSupportedEncodeQuality()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hid_host/
Dhid_host_message.h35 data_(nullptr), in HidHostMessage()
38 if ((dataLength_ > 0) && (src.data_ != nullptr)) { in HidHostMessage()
39 data_ = std::make_unique<uint8_t[]>(dataLength_); in HidHostMessage()
40 if (memcpy_s(data_.get(), dataLength_, src.data_.get(), dataLength_) != EOK) { in HidHostMessage()
41 data_.reset(nullptr); in HidHostMessage()
45 data_.reset(nullptr); in HidHostMessage()
53 std::unique_ptr<uint8_t[]> data_ = nullptr; variable
62 data_ = nullptr;
65 if ((dataLength_ > 0) && (src.data_ != nullptr)) {
66 data_ = std::make_unique<uint8_t[]>(dataLength_);
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/option/
Drender_option.cpp73 if (!data_) { in OnBack()
77 auto clickCallback = data_->GetClickedCallback(); in OnBack()
88 if (!data_) { in OnFocus()
94 data_->SetFocused(false); in OnFocus()
95 data_->SetSelected(false); in OnFocus()
101 if (data_->GetIndex() != 0 || focusJumped_) { in OnFocus()
102 data_->SetFocused(true); in OnFocus()
118 data_->SetFocused(true); in OnFocus()
126 data_->SetFocused(true); in OnFocus()
168 if (!data_ || data_->GetDisabled()) { in OnClick()
[all …]
/foundation/communication/netstack/frameworks/native/tls_socket/src/
Dsecure_data.cpp25 SecureData::SecureData() : data_(std::make_unique<char[]>(0)) {} in SecureData()
29 if (memset_s(data_.get(), length_, 0, length_) != EOK) { in ~SecureData()
35 : length_(secureData.length()), data_(std::make_unique<char[]>(length_ + 1)) in SecureData()
40 data_.get()[length_] = 0; in SecureData()
41 if (memcpy_s(data_.get(), length_, secureData.c_str(), length_) != EOK) { in SecureData()
49 data_ = std::make_unique<char[]>(length + 1); in SecureData()
51 data_.get()[length_] = 0; in SecureData()
52 if (memcpy_s(data_.get(), length_, secureData, length_) != EOK) { in SecureData()
69 data_ = std::make_unique<char[]>(length_ + 1); in operator =()
70 data_.get()[length_] = 0; in operator =()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
Drelational_remote_query_continue_token.cpp20 …std::vector<RelationalRowData *> &&data) : colNames_(std::move(colNames)), data_(std::move(data)) … in RelationalRemoteQueryContinueToken()
24 RelationalRowData::Release(data_); in ~RelationalRemoteQueryContinueToken()
45 while (!data_.empty()) { in GetData()
47 dataSet.Insert(data_.at(0)); in GetData()
48 data_.erase(data_.begin()); in GetData()
52 if (dataSet.CalcLength() + data_.at(0)->CalcLength() > packetSize) { in GetData()
55 dataSet.Insert(data_.at(0)); in GetData()
56 data_.erase(data_.begin()); in GetData()
/foundation/arkui/ace_engine/frameworks/core/components/menu/
Dmenu_element.cpp25 data_ = AceType::DynamicCast<MenuComponent>(component_); in PerformBuild()
26 if (!data_) { in PerformBuild()
31 auto popup = data_->GetPopup(); in PerformBuild()
51 if (!data_->GetOnCancel().IsEmpty()) { in PerformBuild()
52 …jsCancelCallback_ = AceAsyncEvent<void(const std::string&)>::Create(data_->GetOnCancel(), context_… in PerformBuild()
54 if (!data_->GetOnSuccess().IsEmpty()) { in PerformBuild()
55 …jsSuccessCallback_ = AceAsyncEvent<void(const std::string&)>::Create(data_->GetOnSuccess(), contex… in PerformBuild()
58 data_->SetTargetCallback( in PerformBuild()
59 …[weak = WeakClaim(this), isContextMenu = data_->IsContextMenu()](const ComposeId& id, const Offset… in PerformBuild()
87 if (!data_ || !data_->GetPopup()) { in OnTargetCallback()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
Drelational_row_data_impl.cpp21 return data_.size(); in GetColSize()
27 for (const auto &dataValue : data_) { in CalcLength()
39 parcel.WriteUInt32(data_.size()); in Serialize()
40 for (const auto &dataValue : data_) { in Serialize()
65 data_.emplace_back(std::move(value)); in DeSerialize()
76 if (index < 0 || index >= static_cast<int>(data_.size())) { in GetType()
79 type = data_.at(index).GetType(); in GetType()
85 if (index < 0 || index >= static_cast<int>(data_.size())) { in Get()
88 if (data_.at(index).GetInt64(value) != E_OK) { in Get()
96 if (index < 0 || index >= static_cast<int>(data_.size())) { in Get()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
Dkv_store_nb_conflict_data_impl.cpp25 return static_cast<KvStoreNbConflictType>(data_.type); in GetType()
30 key = data_.key; in GetKey()
40 value = data_.oldData.value; in GetValue()
42 value = data_.newData.value; in GetValue()
51 return data_.oldData.isDeleted; in IsDeleted()
53 return data_.newData.isDeleted; in IsDeleted()
59 return data_.oldData.isLocal; in IsNative()
61 return data_.newData.isLocal; in IsNative()
66 data_ = conflictData; in SetConflictData()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
Drelational_row_data_set.cpp24 RelationalRowData::Release(data_); in ~RelationalRowDataSet()
34 data_ = std::move(r.data_); in operator =()
43 return data_.size(); in GetSize()
64 (void)parcel.WriteUInt32(data_.size()); in Serialize()
65 for (const auto &rowData : data_) { in Serialize()
106 data_.push_back(rowData); in DeSerialize()
128 for (const auto &rowData : data_) { in SetRowData()
131 data_ = data; in SetRowData()
132 for (const auto &rowData : data_) { in SetRowData()
145 data_.push_back(rowData); in Insert()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/server/src/
Dbluetooth_pbap_pce_server.cpp36 data_.SetName(other.GetName()); in IPbapPullPhoneBookParamAdapter()
37 data_.SetPropertySelector(other.GetPropertySelector()); in IPbapPullPhoneBookParamAdapter()
38 data_.SetFormat(other.GetFormat()); in IPbapPullPhoneBookParamAdapter()
39 data_.SetMaxListCount(other.GetMaxListCount()); in IPbapPullPhoneBookParamAdapter()
40 data_.SetListStartOffset(other.GetListStartOffset()); in IPbapPullPhoneBookParamAdapter()
41 data_.SetResetNewMissedCalls(other.GetResetNewMissedCalls()); in IPbapPullPhoneBookParamAdapter()
42 data_.SetvCardSelector(other.GetvCardSelector()); in IPbapPullPhoneBookParamAdapter()
43 data_.SetvCardSelectorOp(other.GetvCardSelectorOp()); in IPbapPullPhoneBookParamAdapter()
44 data_.SetSpecifiedBitset(other.GetSpecifiedBitset()); in IPbapPullPhoneBookParamAdapter()
49 return data_; in operator bluetooth::IPbapPullPhoneBookParam()
[all …]
/foundation/window/window_manager/utils/include/
Datomic_map.h30 data_.insert(kv); in insert()
37 data_.erase(key); in erase()
44 auto key = data_.find(k); in find()
52 int size = data_.count(k); in count()
60 if (data_.count(k) <= 0) { in isExistAndRemove()
64 if (data_[k] == value) { in isExistAndRemove()
65 data_.erase(k); in isExistAndRemove()
76 if (data_.count(k) <= 0) { in isExist()
80 if (data_[k] == value) { in isExist()
101 std::map<Key, Value> data_; variable
/foundation/arkui/ace_engine/frameworks/core/components/picker/
Drender_picker_base.cpp45 if (data_->GetSubsidiary()) { in TouchTest()
113 data_ = picker; in Update()
114 SetInterceptTouchEvent(!data_->GetSubsidiary()); in Update()
115 data_->OnColumnsCreating(); in Update()
116 onCancelCallback_ = AceAsyncEvent<void()>::Create(data_->GetOnCancel(), context_); in Update()
117 …onJSChangeCallback_ = AceAsyncEvent<void(const std::string&)>::Create(data_->GetOnChange(), contex… in Update()
119 Create(data_->GetOnChange(), context_); in Update()
120 …onColumnChangeCallback_ = AceAsyncEvent<void(const std::string&)>::Create(data_->GetOnColumnChange… in Update()
121 …onDialogAccept_ = AceAsyncEvent<void(const std::string&)>::Create(data_->GetDialogAcceptEvent(), c… in Update()
122 onDialogCancel_ = AceAsyncEvent<void()>::Create(data_->GetDialogCancelEvent(), context_); in Update()
[all …]
Drender_picker_column.cpp50 data_ = column; in Update()
68 if (!data_) { in HandleFinished()
73 if (!data_->GetInDialog()) { in HandleFinished()
77 data_->HandleFinishCallback(success); in HandleFinished()
96 if (!data_) { in GetColumnTag()
101 return data_->GetColumnTag(); in GetColumnTag()
106 if (!data_) { in GetWidthRatio()
111 return data_->GetWidthRatio(); in GetWidthRatio()
155 if (!data_ || !data_->GetOptionCount()) { in InnerHandleScroll()
164 uint32_t totalOptionCount = data_->GetOptionCount(); in InnerHandleScroll()
[all …]
/foundation/distributedhardware/distributed_screen/services/common/databuffer/src/
Ddata_buffer.cpp28 data_ = new (std::nothrow) uint8_t[capacity] {0}; in DataBuffer()
29 if (data_ != nullptr) { in DataBuffer()
38 if (data_ != nullptr) { in ~DataBuffer()
39 delete [] data_; in ~DataBuffer()
40 data_ = nullptr; in ~DataBuffer()
55 return data_; in Data()
89 delete [] data_; in ResetCapcity()
90 data_ = new (std::nothrow) uint8_t[capacity] {0}; in ResetCapcity()
91 if (data_ == nullptr) { in ResetCapcity()
103 int32_t ret = memcpy_s(data_ + capacity_, dataSize, inputData, dataSize); in AddData()
[all …]

12345678910>>...13