Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 162) sorted by relevance

1234567

/foundation/systemabilitymgr/samgr_lite/communication/broadcast/source/
Dpub_sub_feature.c22 static const char *GetName(Feature *feature);
23 static void OnInitialize(Feature *feature, Service *parent, Identity identity);
24 static void OnStop(Feature *feature, Identity identity);
25 static BOOL OnMessage(Feature *feature, Request *request);
26 static Relation *GetRelation(PubSubFeature *feature, const Topic *topic);
38 PubSubFeature *feature = &g_broadcastFeature; in Init() local
39 feature->relations.topic = -1; in Init()
40 feature->relations.callbacks.consumer = NULL; in Init()
41 UtilsListInit(&feature->relations.callbacks.node); in Init()
42 UtilsListInit(&feature->relations.node); in Init()
[all …]
Dpub_sub_implement.c28 static BOOL ImmediatelyPublish(PubSubFeature *feature, const Topic *topic, const Request *request);
38 .feature = NULL
40 PubSubImplement *BCE_CreateInstance(Feature *feature) in BCE_CreateInstance() argument
42 g_pubSubImplement.feature = (PubSubFeature *)feature; in BCE_CreateInstance()
54 if (broadcast->feature == NULL || broadcast->feature->GetRelation == NULL) { in AddTopic()
58 if (broadcast->feature->GetRelation(broadcast->feature, topic) != NULL) { in AddTopic()
62 Relation *head = &broadcast->feature->relations; in AddTopic()
71 MUTEX_Lock(broadcast->feature->mutex); in AddTopic()
73 MUTEX_Unlock(broadcast->feature->mutex); in AddTopic()
84 if (broadcast->feature == NULL || broadcast->feature->GetRelation == NULL) { in Subscribe()
[all …]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
Dlnn_feature_capability.c26 int32_t LnnSetFeatureCapability(uint64_t *feature, FeatureCapability capaBit) in LnnSetFeatureCapability() argument
28 if (feature == NULL || capaBit >= BIT_FEATURE_COUNT) { in LnnSetFeatureCapability()
32 *feature = (*feature) | (1 << (uint64_t)capaBit); in LnnSetFeatureCapability()
36 int32_t LnnClearFeatureCapability(uint64_t *feature, FeatureCapability capaBit) in LnnClearFeatureCapability() argument
38 if (feature == NULL || capaBit >= BIT_FEATURE_COUNT) { in LnnClearFeatureCapability()
42 *feature = (*feature) & (~(1 << (uint64_t)capaBit)); in LnnClearFeatureCapability()
46 bool IsFeatureSupport(uint64_t feature, FeatureCapability capaBit) in IsFeatureSupport() argument
48 return ((feature & (1 << (uint64_t)capaBit)) != 0); in IsFeatureSupport()
/foundation/systemabilitymgr/samgr_lite/samgr/source/
Dservice.c44 int16 DEFAULT_AddFeature(ServiceImpl *serviceImpl, Feature *feature) in DEFAULT_AddFeature() argument
46 if (serviceImpl == NULL || feature == NULL) { in DEFAULT_AddFeature()
54 FeatureImpl *impl = FEATURE_CreateInstance(feature); in DEFAULT_AddFeature()
80 FeatureImpl *feature = (FeatureImpl *)VECTOR_At(&(impl->features), i); in DEFAULT_Initialize() local
81 if (feature == NULL) { in DEFAULT_Initialize()
85 feature->feature->OnInitialize(feature->feature, impl->service, id); in DEFAULT_Initialize()
86 …SAMGR_RegisterServiceApi(serviceName, feature->feature->GetName(feature->feature), &id, feature->i… in DEFAULT_Initialize()
111 featureImpl->feature->OnMessage(featureImpl->feature, msg); in DEFAULT_MessageHandle()
129 featureImpl->feature->OnStop(featureImpl->feature, id); in DEFAULT_StopService()
144 Identity DEFAULT_GetFeatureId(ServiceImpl *serviceImpl, const char *feature) in DEFAULT_GetFeatureId() argument
[all …]
Dfeature_impl.h31 Feature *feature; member
35 inline static BOOL IsInvalidFeature(Feature *feature) in IsInvalidFeature() argument
37 return (feature == NULL || feature->GetName == NULL || feature->OnInitialize == NULL || in IsInvalidFeature()
38 feature->OnMessage == NULL || feature->OnStop == NULL); in IsInvalidFeature()
50 FeatureImpl *FEATURE_CreateInstance(Feature *feature);
Dfeature.c52 FeatureImpl *FEATURE_CreateInstance(Feature *feature) in FEATURE_CreateInstance() argument
54 if (feature == NULL) { in FEATURE_CreateInstance()
61 featureImpl->feature = feature; in FEATURE_CreateInstance()
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
Dclient_factory.c31 static Factory *GetFactory(const char *service, const char *feature);
33 void *SAMGR_CreateIClient(const char *service, const char *feature, uint32 size) in SAMGR_CreateIClient() argument
43 Factory *factory = GetFactory(service, feature); in SAMGR_CreateIClient()
48 return factory->creator(service, feature, size); in SAMGR_CreateIClient()
51 int SAMGR_ReleaseIClient(const char *service, const char *feature, void *iClient) in SAMGR_ReleaseIClient() argument
61 Factory *factory = GetFactory(service, feature); in SAMGR_ReleaseIClient()
65 factory->destroyer(service, feature, iClient); in SAMGR_ReleaseIClient()
69 int SAMGR_RegisterFactory(const char *service, const char *feature, Creator creator, Destroyer dest… in SAMGR_RegisterFactory() argument
83 Factory *factory = GetFactory(service, feature); in SAMGR_RegisterFactory()
95 factory->key.feature = feature; in SAMGR_RegisterFactory()
[all …]
Ddefault_client_rpc.c22 static SvcIdentity QueryIdentity(const char *service, const char *feature);
23 …ic SvcIdentity QueryRemoteIdentity(const char *deviceId, const char *service, const char *feature);
27 IUnknown *SAMGR_CreateIProxy(const char *service, const char *feature) in SAMGR_CreateIProxy() argument
29 SvcIdentity identity = QueryIdentity(service, feature); in SAMGR_CreateIProxy()
34 IDefaultClient *client = SAMGR_CreateIClient(service, feature, sizeof(IClientHeader)); in SAMGR_CreateIProxy()
46 header->key.feature = feature; in SAMGR_CreateIProxy()
57 IUnknown *SAMGR_CreateIRemoteProxy(const char* deviceId, const char *service, const char *feature) in SAMGR_CreateIRemoteProxy() argument
59 SvcIdentity identity = QueryRemoteIdentity(deviceId, service, feature); in SAMGR_CreateIRemoteProxy()
61 IDefaultClient *client = SAMGR_CreateIClient(service, feature, sizeof(IClientHeader)); in SAMGR_CreateIRemoteProxy()
73 header->key.feature = feature; in SAMGR_CreateIRemoteProxy()
[all …]
Ddefault_client.c55 …tic SvcIdentity QueryIdentity(const IpcContext *context, const char *service, const char *feature);
59 IUnknown *SAMGR_CreateIProxy(const IpcContext *context, const char *service, const char *feature) in SAMGR_CreateIProxy() argument
61 SvcIdentity identity = QueryIdentity(context, service, feature); in SAMGR_CreateIProxy()
66 IDefaultClient *client = SAMGR_CreateIClient(service, feature, sizeof(IClientHeader)); in SAMGR_CreateIProxy()
78 header->key.feature = feature; in SAMGR_CreateIProxy()
89 SvcIdentity SAMGR_GetRemoteIdentity(const char *service, const char *feature) in SAMGR_GetRemoteIdentity() argument
92 IUnknown *iUnknown = SAMGR_FindServiceApi(service, feature); in SAMGR_GetRemoteIdentity()
125 if (key1->feature == key2->feature) { in SAMGR_CompareSAName()
129 if (key1->feature == NULL) { in SAMGR_CompareSAName()
133 if (key2->feature == NULL) { in SAMGR_CompareSAName()
[all …]
Ddefault_client_mini_adapter.c30 uintptr_t GetRemoteSaIdInner(const char *service, const char *feature) in GetRemoteSaIdInner() argument
32 SaNode *saNode = GetSaNodeBySaName(service, feature); in GetRemoteSaIdInner()
44 SvcIdentity QueryRemoteIdentityInner(const char *deviceId, const char *service, const char *feature) in QueryRemoteIdentityInner() argument
48 "%s#%s", service?service:"", feature?feature:""); in QueryRemoteIdentityInner()
55 SaNode *saNode = GetSaNodeBySaName(service, feature); in QueryRemoteIdentityInner()
57 …ILOG_ERROR(HILOG_MODULE_SAMGR, "service: %s feature: %s have no saId in sa map", service, feature); in QueryRemoteIdentityInner()
Ddefault_client.h28 const char *feature; member
31 IUnknown *SAMGR_CreateIProxy(const char *service, const char *feature);
32 IUnknown *SAMGR_CreateIRemoteProxy(const char *deviceId, const char *service, const char *feature);
/foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr/
Dfeature.h79 const char *(*GetName)(Feature *feature);
94 void (*OnInitialize)(Feature *feature, Service *parent, Identity identity);
107 void (*OnStop)(Feature *feature, Identity identity);
123 BOOL (*OnMessage)(Feature *feature, Request *request);
134 const char *(*GetName)(Feature *feature); \
135 void (*OnInitialize)(Feature *feature, Service *parent, Identity identity); \
136 void (*OnStop)(Feature *feature, Identity identity); \
137 BOOL (*OnMessage)(Feature *feature, Request *request); \
Dsamgr_lite.h139 BOOL (*RegisterFeature)(const char *serviceName, Feature *feature);
204 BOOL (*RegisterFeatureApi)(const char *service, const char *feature, IUnknown *publicApi);
218 IUnknown *(*UnregisterFeatureApi)(const char *service, const char *feature);
249 IUnknown *(*GetFeatureApi)(const char *serviceName, const char *feature);
/foundation/ability/dmsfwk_lite/source/
Ddmslite_feature.c28 static const char *GetName(Feature *feature);
29 static void OnInitialize(Feature *feature, Service *parent, Identity identity);
30 static void OnStop(Feature *feature, Identity identity);
31 static BOOL OnMessage(Feature *feature, Request *request);
51 static const char *GetName(Feature *feature) in GetName() argument
53 if (feature == NULL) { in GetName()
59 static void OnInitialize(Feature *feature, Service *parent, Identity identity) in OnInitialize() argument
61 if (feature == NULL || parent == NULL) { in OnInitialize()
65 ((DmsLite*) feature)->identity = identity; in OnInitialize()
68 static void OnStop(Feature *feature, Identity identity) in OnStop() argument
[all …]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_hal/hdi/src/
Dwifi_hdi_proxy.c60 struct HdfFeatureInfo *feature = NULL; in GetFeatureInner() local
71 feature = g_featureArray[i]; in GetFeatureInner()
72 return feature; in GetFeatureInner()
77 feature = (struct HdfFeatureInfo *)calloc(1, sizeof(struct HdfFeatureInfo)); in GetFeatureInner()
78 if (feature == NULL) { in GetFeatureInner()
83 int32_t ret = g_wlanObj->CreateFeature(g_wlanObj, wlanType, feature); in GetFeatureInner()
88 LOGI("Create feature end, ifname: %{public}s", feature->ifName); in GetFeatureInner()
92 g_featureArray[i] = feature; in GetFeatureInner()
101 return feature; in GetFeatureInner()
104 if (feature != NULL) { in GetFeatureInner()
[all …]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/
Dwifi_device_feature_lite.cpp43 static const char *GetName(Feature *feature) in GetName() argument
48 static void OnInitialize(Feature *feature, Service *parent, Identity identity) in OnInitialize() argument
50 if (feature != NULL) { in OnInitialize()
51 WifiDeviceFeature *deviceFeature = (WifiDeviceFeature *)feature; in OnInitialize()
60 static void OnStop(Feature *feature, Identity identity) in OnStop() argument
65 if (feature != NULL) { in OnStop()
66 WifiDeviceFeature *deviceFeature = (WifiDeviceFeature *)feature; in OnStop()
73 static BOOL OnMessage(Feature *feature, Request *request) in OnMessage() argument
Dwifi_scan_feature_lite.cpp43 static const char *GetName(Feature *feature) in GetName() argument
48 static void OnInitialize(Feature *feature, Service *parent, Identity identity) in OnInitialize() argument
50 if (feature != NULL) { in OnInitialize()
51 WifiScanFeature *scanFeature = (WifiScanFeature *)feature; in OnInitialize()
60 static void OnStop(Feature *feature, Identity identity) in OnStop() argument
65 if (feature != NULL) { in OnStop()
66 WifiScanFeature *scanFeature = (WifiScanFeature *)feature; in OnStop()
73 static BOOL OnMessage(Feature *feature, Request *request) in OnMessage() argument
/foundation/systemabilitymgr/samgr_lite/samgr_client/source/
Dremote_register_rpc.c44 int SAMGR_RegisterServiceApi(const char *service, const char *feature, const Identity *identity, IU… in SAMGR_RegisterServiceApi() argument
51 SaName saName = {service, feature}; in SAMGR_RegisterServiceApi()
55 (void)sprintf_s(saNameStr, 2 * MAX_NAME_LEN + 2, "%s#%s", service, feature?feature:""); in SAMGR_RegisterServiceApi()
57 SaNode *saNode = GetSaNodeBySaName(service, feature); in SAMGR_RegisterServiceApi()
72 IUnknown *SAMGR_FindServiceApi(const char *service, const char *feature) in SAMGR_FindServiceApi() argument
78 SaName key = {service, feature}; in SAMGR_FindServiceApi()
83 IUnknown *proxy = SAMGR_CreateIProxy(service, feature); in SAMGR_FindServiceApi()
96 HILOG_INFO(HILOG_MODULE_SAMGR, "Create remote sa proxy<%s, %s>!", service, feature); in SAMGR_FindServiceApi()
/foundation/ability/ability_lite/services/abilitymgr_lite/src/
Dability_inner_feature.cpp84 const char *AbilityInnerFeature::GetFeatureName(Feature *feature) in GetFeatureName() argument
86 (void) feature; in GetFeatureName()
90 void AbilityInnerFeature::OnFeatureInitialize(Feature *feature, Service *parent, Identity identity) in OnFeatureInitialize() argument
92 CHECK_NULLPTR_RETURN(feature, "AbilityInnerFeature", "initialize fail"); in OnFeatureInitialize()
93 (static_cast<AbilityInnerFeature *>(feature))->identity_ = identity; in OnFeatureInitialize()
96 void AbilityInnerFeature::OnFeatureStop(Feature *feature, Identity identity) in OnFeatureStop() argument
98 (void) feature; in OnFeatureStop()
102 BOOL AbilityInnerFeature::OnFeatureMessage(Feature *feature, Request *request) in OnFeatureMessage() argument
104 if (feature == nullptr || request == nullptr) { in OnFeatureMessage()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/
Dlib.rs19 #[cfg(feature = "reqwest_impl")]
22 #[cfg(feature = "reqwest_impl")]
25 #[cfg(feature = "ylong_impl")]
/foundation/systemabilitymgr/samgr_lite/samgr/registry/
Dservice_registry.c18 int __attribute__((weak)) SAMGR_RegisterServiceApi(const char *service, const char *feature, in SAMGR_RegisterServiceApi() argument
22 (void)feature; in SAMGR_RegisterServiceApi()
28 IUnknown *__attribute__((weak)) SAMGR_FindServiceApi(const char *service, const char *feature) in SAMGR_FindServiceApi() argument
31 (void)feature; in SAMGR_FindServiceApi()
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/
Dbluetooth_avrcp_mpItem.cpp41 for (auto &feature : features_) { in Marshalling() local
42 if (!parcel.WriteUint8(feature)) { in Marshalling()
89 uint8_t feature; in ReadFromParcel() local
90 if (!parcel.ReadUint8(feature)) { in ReadFromParcel()
93 features_.push_back(feature); in ReadFromParcel()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
Dbtm_interop.c23 uint8_t feature; member
52 bool BtmInteropIsMatchedAddr(uint8_t feature, const BtAddr *addr) in BtmInteropIsMatchedAddr() argument
60 if (feature != G_INTEROP_DB[i].feature) { in BtmInteropIsMatchedAddr()
/foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry/
Dregistry.h69 typedef void *(*Creator)(const char *service, const char *feature, uint32 size);
84 typedef void (*Destroyer)(const char *service, const char *feature, void *iproxy);
104 int SAMGR_RegisterFactory(const char *service, const char *feature, Creator creator, Destroyer dest…
/foundation/ability/ability_lite/services/abilitymgr_lite/include/
Dability_inner_feature.h48 static const char *GetFeatureName(Feature *feature);
49 static void OnFeatureInitialize(Feature *feature, Service *parent, Identity identity);
50 static void OnFeatureStop(Feature *feature, Identity identity);
51 static BOOL OnFeatureMessage(Feature *feature, Request *request);

1234567