/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_text_blob_builder.cpp | 36 auto tb = std::make_shared<TexgineTextBlob>(); in Make() local 41 tb->SetTextBlob(blob); in Make() 42 return tb; in Make()
|
/foundation/communication/dsoftbus/adapter/common/bus_center/network/ |
H A D | lnn_netlink_monitor.c | 89 static void ParseRtAttr(struct rtattr **tb, int max, struct rtattr *attr, int len) in ParseRtAttr() argument 94 tb[attr1->rta_type] = attr1; in ParseRtAttr() 128 struct rtattr *tb[IFLA_MAX + 1] = {NULL}; in ProcessLinkEvent() local 133 ParseRtAttr(tb, IFLA_MAX, IFLA_RTA(ifinfo), len); in ProcessLinkEvent() 135 if (tb[IFLA_IFNAME] == NULL) { in ProcessLinkEvent() 140 if (LnnGetNetIfTypeByName((const char *)RTA_DATA(tb[IFLA_IFNAME]), &type) != SOFTBUS_OK) { in ProcessLinkEvent() 146 (const char *)RTA_DATA(tb[IFLA_IFNAME]), type, callCount++); in ProcessLinkEvent() 147 LnnNotifyAddressChangedEvent((const char *)RTA_DATA(tb[IFLA_IFNAME])); in ProcessLinkEvent()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_smartgenius.c | 61 static void ParseRTattr(struct rtattr **tb, uint32_t max, struct rtattr *attr, uint32_t len) in ParseRTattr() argument 64 * Use macro RTA_OK() and RTA_NEXT() to iterate attribute list, and fill table "tb" with attribute whose type is not in ParseRTattr() 69 tb[attr->rta_type] = attr; in ParseRTattr() 102 struct rtattr *tb[IFA_MAX + 1] = {0}; /* Table to store rtnetlink attribute pointers */ in IfAddrMsgHandle() local 111 /* Parse attribute in "ifAddr", and store attribute pointers in "tb" */ in IfAddrMsgHandle() 112 ParseRTattr(tb, IFA_MAX, IFA_RTA(ifAddr), len); in IfAddrMsgHandle() 113 if (tb[IFA_LABEL] == NULL || tb[IFA_ADDRESS] == NULL) { in IfAddrMsgHandle() 121 if (strcpy_s(interfaceInfo.name, sizeof(interfaceInfo.name), (char *)RTA_DATA(tb[IFA_LABEL])) != EOK) { in IfAddrMsgHandle() 128 uint8_t ifaceType = GetIfaceType((char *)RTA_DATA(tb[IFA_LABE in IfAddrMsgHandle() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/qdisc/ |
H A D | nstackx_qdisc.c | 31 static int32_t ProcessQdiscInfoInner(struct rtattr *tb[], int32_t parent) in ProcessQdiscInfoInner() argument 36 struct rtattr *rta = RTA_DATA(tb[TCA_STATS2]); // tb is trusted in ProcessQdiscInfoInner() 37 int32_t len = (int32_t)RTA_PAYLOAD(tb[TCA_STATS2]); in ProcessQdiscInfoInner() 74 struct rtattr *tb[TCA_MAX + 1] = {0}; in ProcessQdiscInfo() local 87 RecvNetlinkParseAttr(rta, len, tb, TCA_MAX); in ProcessQdiscInfo() 89 if (tb[TCA_KIND] == NULL) { in ProcessQdiscInfo() 94 qdiscValue->qlen = ProcessQdiscInfoInner(tb, tcMsgRecv->tcm_parent); in ProcessQdiscInfo()
|
H A D | nstackx_nlmsg.c | 162 void RecvNetlinkParseAttr(struct rtattr *rta, int32_t len, struct rtattr *tb[], int32_t max) in RecvNetlinkParseAttr() argument 165 (void)memset_s(tb, tbLength, 0, tbLength); in RecvNetlinkParseAttr() 167 if ((rta->rta_type <= max) && (!tb[rta->rta_type])) { in RecvNetlinkParseAttr() 168 tb[rta->rta_type] = rta; in RecvNetlinkParseAttr()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/wifi/ |
H A D | nstackx_wifi_stat_linux.c | 61 struct nlattr *tb[NL80211_ATTR_MAX + 1] = {0}; in GetScanInfo() local 69 int32_t ret = nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), NULL); in GetScanInfo() 75 if (!tb[NL80211_ATTR_BSS] || nla_parse_nested(bss, NL80211_BSS_MAX, tb[NL80211_ATTR_BSS], bssPolicy) || in GetScanInfo() 158 struct nlattr *tb[NL80211_ATTR_MAX + 1] = {0}; in GetStationInfo() local 168 int32_t ret = nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), NULL); in GetStationInfo() 174 if (!tb[NL80211_ATTR_STA_INFO] || in GetStationInfo() 175 nla_parse_nested(sinfo, NL80211_STA_INFO_MAX, tb[NL80211_ATTR_STA_INFO], statsPolicy)) { in GetStationInfo()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/include/ |
H A D | cloud_ext_types.h | 269 * @param tb [IN] 274 int OhCloudExtTableGetName(const OhCloudExtTable *tb, unsigned char **name, unsigned int *len); 278 * @param tb [IN] 283 int OhCloudExtTableGetAlias(const OhCloudExtTable *tb, unsigned char **alias, unsigned int *len); 287 * @param tb [IN] 292 int OhCloudExtTableGetFields(const OhCloudExtTable *tb, OhCloudExtVector **fields);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/ |
H A D | cloud_ext_types.rs | 536 let tb = types::Table::new(name, alias, f); 537 OhCloudExtTable::new(tb, SafetyCheckId::Table).into_ptr() as *mut OhCloudExtTable 545 let tb = types::Table::new(name, alias, f); 546 OhCloudExtTable::new(tb, SafetyCheckId::Table).into_ptr() 556 tb: *const OhCloudExtTable, 560 if tb.is_null() || name.is_null() || len.is_null() { 564 let tb_struct = match OhCloudExtTable::get_inner_ref(tb, SafetyCheckId::Table) { 576 tb: *const OhCloudExtTable, 580 if tb.is_null() || alias.is_null() || len.is_null() { 584 let tb_struct = match OhCloudExtTable::get_inner_ref(tb, SafetyCheckI [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/platform/unix/ |
H A D | nstackx_nlmsg.h | 55 void RecvNetlinkParseAttr(struct rtattr *rta, int32_t len, struct rtattr *tb[], int32_t max);
|
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ |
H A D | test_utils.h | 193 auto tb = interface_pointer_cast<ITestType>(b); in IsEqual() local 194 return (!ta && !tb) || IsEqual(ta, tb); in IsEqual()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | extension_util.cpp | 126 OhCloudExtTable *tb = OhCloudExtTableNew(reinterpret_cast<const unsigned char *>(table.name.c_str()), in Convert() local 129 if (tb == nullptr) { in Convert() 134 const_cast<void *>(reinterpret_cast<const void *>(table.name.c_str())), table.name.size(), tb, tbLen); in Convert()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/ |
H A D | navrouter_group_test_ng.cpp | 641 auto tb = TitleBarNode::GetOrCreateTitleBarNode( in HWTEST_F() local 643 navBar->titleBarNode_ = tb; in HWTEST_F() 661 tb->renderContext_ = nullptr; in HWTEST_F()
|