/foundation/systemabilitymgr/samgr_lite/communication/broadcast/source/ |
H A D | pub_sub_feature.c | 22 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 in Init() 51 GetName(Feature *feature) GetName() argument 57 OnInitialize(Feature *feature, Service *parent, Identity identity) OnInitialize() argument 63 OnStop(Feature *feature, Identity identity) OnStop() argument 69 OnMessage(Feature *feature, Request *request) OnMessage() argument 95 GetRelation(PubSubFeature *feature, const Topic *topic) GetRelation() argument [all...] |
H A D | pub_sub_implement.c | 28 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 in AddTopic() 181 PubSubFeature *feature = broadcast->feature; Publish() local 206 ImmediatelyPublish(PubSubFeature *feature, const Topic *topic, const Request *request) ImmediatelyPublish() argument [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/ |
H A D | lnn_feature_capability.c | 24 int32_t LnnSetFeatureCapability(uint64_t *feature, FeatureCapability capaBit) in LnnSetFeatureCapability() argument 26 if (feature == NULL || capaBit >= BIT_FEATURE_COUNT) { in LnnSetFeatureCapability() 30 *feature = (*feature) | (1 << (uint64_t)capaBit); in LnnSetFeatureCapability() 34 int32_t LnnClearFeatureCapability(uint64_t *feature, FeatureCapability capaBit) in LnnClearFeatureCapability() argument 36 if (feature == NULL || capaBit >= BIT_FEATURE_COUNT) { in LnnClearFeatureCapability() 40 *feature = (*feature) & (~(1 << (uint64_t)capaBit)); in LnnClearFeatureCapability() 44 bool IsFeatureSupport(uint64_t feature, FeatureCapability capaBit) in IsFeatureSupport() argument 46 return ((feature in IsFeatureSupport() [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr/source/ |
H A D | service.c | 44 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 in DEFAULT_Initialize() 144 DEFAULT_GetFeatureId(ServiceImpl *serviceImpl, const char *feature) DEFAULT_GetFeatureId() argument 184 Feature *feature = featureImpl->feature; DEFAULT_DeleteFeature() local [all...] |
H A D | feature_impl.h | 21 #include "feature.h"
31 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);
|
H A D | feature.c | 15 #include "feature.h"
52 FeatureImpl *FEATURE_CreateInstance(Feature *feature)
in FEATURE_CreateInstance() argument 54 if (feature == NULL) {
in FEATURE_CreateInstance() 61 featureImpl->feature = feature;
in FEATURE_CreateInstance()
|
/foundation/ability/dmsfwk_lite/source/ |
H A D | dmslite_feature.c | 28 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); 34 /* feature functions */ 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) in OnInitialize() 68 OnStop(Feature *feature, Identity identity) OnStop() argument 73 OnMessage(Feature *feature, Request *request) OnMessage() argument [all...] |
/foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr/ |
H A D | feature.h | 32 * @file feature.h
34 * @brief Defines the base class of a feature.
37 * It provides functions for the feature lifecycle of a service. \n
58 * @brief Defines the base class of a feature.
60 * You need to implement the pointer to the feature. \n
67 * @brief Obtains a feature name.
69 * This function is implemented by developers and called by Samgr during feature registration
72 * @param feature Indicates the pointer to the feature.
79 const char *(*GetName)(Feature *feature);
[all...] |
H A D | samgr_lite.h | 48 #include "feature.h"
128 * @brief Registers a feature.
130 * You need to call this function in the startup entry of each feature. \n
133 * @param feature Indicates the feature to be registered.
139 BOOL (*RegisterFeature)(const char *serviceName, Feature *feature);
142 * @brief Unregisters a feature.
144 * You need to call this function when the feature is no longer required. \n
146 * @param serviceName Indicates the name of the service whose feature will be unregistered.
147 * @param featureName Indicates the name of the feature t [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/ |
H A D | default_client_rpc.c | 22 static SvcIdentity QueryIdentity(const char *service, const char *feature); 23 static 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, sizeo in SAMGR_CreateIRemoteProxy() 83 SAMGR_GetRemoteIdentity(const char *service, const char *feature) SAMGR_GetRemoteIdentity() argument 213 QueryIdentity(const char *service, const char *feature) QueryIdentity() argument 250 QueryRemoteIdentity(const char *deviceId, const char *service, const char *feature) QueryRemoteIdentity() argument [all...] |
H A D | client_factory.c | 31 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 destroyer)
in SAMGR_RegisterFactory() argument 83 Factory *factory = GetFactory(service, feature);
in SAMGR_RegisterFactory() 95 factory->key.feature in SAMGR_RegisterFactory() 107 GetFactory(const char *service, const char *feature) GetFactory() argument [all...] |
H A D | default_client_mini_adapter.c | 31 uintptr_t GetRemoteSaIdInner(const char *service, const char *feature)
in GetRemoteSaIdInner() argument 33 SaNode *saNode = GetSaNodeBySaName(service, feature);
in GetRemoteSaIdInner() 45 SvcIdentity QueryRemoteIdentityInner(const char *deviceId, const char *service, const char *feature)
in QueryRemoteIdentityInner() argument 49 "%s#%s", service?service:"", feature?feature:"");
in QueryRemoteIdentityInner() 56 SaNode *saNode = GetSaNodeBySaName(service, feature);
in QueryRemoteIdentityInner() 58 HILOG_ERROR(HILOG_MODULE_SAMGR, "service: %s feature: %s have no saId in sa map", service, feature);
in QueryRemoteIdentityInner()
|
H A D | default_client.c | 55 static 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() 223 QueryIdentity(const IpcContext *context, const char *service, const char *feature) QueryIdentity() argument [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan_sa/ |
H A D | wifi_scan_feature_lite.cpp | 43 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 103 LOGE("[WifiScanFeature] register feature fail."); in Init() 109 LOGE("[WifiScanFeature] register feature ap in Init() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta_sa/ |
H A D | wifi_device_feature_lite.cpp | 43 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 103 LOGE("[WifiDeviceFeature] register feature fail."); in Init() 109 LOGE("[WifiDeviceFeature] register feature ap in Init() [all...] |
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_client_feature_lite.cpp | 41 static const char *GetName(Feature *feature) in GetName() argument 46 static void OnInitialize(Feature *feature, Service *parent, Identity identity) in OnInitialize() argument 48 if (feature != NULL) { in OnInitialize() 49 DhcpClientFeature *serverFeature = (DhcpClientFeature *)feature; in OnInitialize() 58 static void OnStop(Feature *feature, Identity identity) in OnStop() argument 63 if (feature != NULL) { in OnStop() 64 DhcpClientFeature *serverFeature = (DhcpClientFeature *)feature; in OnStop() 71 static BOOL OnMessage(Feature *feature, Request *request) in OnMessage() argument 101 LOGE("[DhcpClientFeature] register feature fail."); in Init() 107 LOGE("[DhcpClientFeature] register feature ap in Init() [all...] |
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_server_feature_lite.cpp | 43 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 != nullptr) { in OnInitialize() 51 DhcpServerFeature *serverFeature = (DhcpServerFeature *)feature; in OnInitialize() 60 static void OnStop(Feature *feature, Identity identity) in OnStop() argument 65 if (feature != nullptr) { in OnStop() 66 DhcpServerFeature *serverFeature = (DhcpServerFeature *)feature; in OnStop() 73 static BOOL OnMessage(Feature *feature, Request *request) in OnMessage() argument 103 DHCP_LOGE("[DhcpServerFeature] register feature fail."); in Init() 109 DHCP_LOGE("[DhcpServerFeature] register feature ap in Init() [all...] |
/foundation/systemabilitymgr/samgr_lite/samgr_client/source/ |
H A D | remote_register_rpc.c | 45 int SAMGR_RegisterServiceApi(const char *service, const char *feature, const Identity *identity, IUnknown *iUnknown)
in SAMGR_RegisterServiceApi() argument 52 SaName saName = {service, feature};
in SAMGR_RegisterServiceApi() 56 (void)sprintf_s(saNameStr, SA_NAME_NUM * MAX_NAME_LEN + SA_NAME_NUM, "%s#%s", service, feature?feature:"");
in SAMGR_RegisterServiceApi() 58 SaNode *saNode = GetSaNodeBySaName(service, feature);
in SAMGR_RegisterServiceApi() 73 IUnknown *SAMGR_FindServiceApi(const char *service, const char *feature)
in SAMGR_FindServiceApi() argument 79 SaName key = {service, feature};
in SAMGR_FindServiceApi() 84 IUnknown *proxy = SAMGR_CreateIProxy(service, feature);
in SAMGR_FindServiceApi() 97 HILOG_INFO(HILOG_MODULE_SAMGR, "Create remote sa proxy<%s, %s>!", service, feature);
in SAMGR_FindServiceApi()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/touch_screen/ |
H A D | touch_screen_test.cpp | 99 int32_t feature = 12; in HWTEST_F() local 102 ASSERT_EQ(TOUCH_SCREEN->tsSetFeatureConfig_(feature, config), 0); in HWTEST_F() 104 ASSERT_LT(TOUCH_SCREEN->tsSetFeatureConfig_(feature, config), 0); in HWTEST_F() 119 int32_t feature = 12; in HWTEST_F() local 122 ASSERT_EQ(TOUCH_SCREEN->tsSetFeatureConfig_(feature, config), 0); in HWTEST_F() 124 ASSERT_LT(TOUCH_SCREEN->tsSetFeatureConfig_(feature, config), 0); in HWTEST_F() 139 int32_t feature = 12; in HWTEST_F() local 141 ASSERT_LT(TOUCH_SCREEN->tsSetFeatureConfig_(feature, config), 0); in HWTEST_F()
|
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/ |
H A D | lib.rs | 19 #[cfg(feature = "reqwest_impl")] 22 #[cfg(feature = "reqwest_impl")] 25 #[cfg(feature = "ylong_impl")]
|
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_avrcp_mpItem.cpp | 41 for (auto &feature : features_) { in Marshalling() 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/systemabilitymgr/samgr_lite/samgr/registry/ |
H A D | service_registry.c | 18 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/ability/ability_lite/services/abilitymgr_lite/src/ |
H A D | ability_inner_feature.cpp | 53 PRINTE("AbilityInnerFeature", "ams register feature failure");
in Init() 60 PRINTI("AbilityInnerFeature", "ams inner feature init %{public}s", apiResult ? "success" : "failure");
in Init() 84 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, Reques argument [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/include/ |
H A D | ability_inner_feature.h | 21 #include "feature.h"
48 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);
|
/foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry/ |
H A D | registry.h | 63 * @param feature Indicates the pointer to the name of the feature to which the function belongs.
69 typedef void *(*Creator)(const char *service, const char *feature, uint32 size);
80 * @param feature Indicates the pointer to the name of the feature to which the function belongs.
84 typedef void (*Destroyer)(const char *service, const char *feature, void *iproxy);
96 * @param feature Indicates the pointer to the feature name of the client proxy.
104 int SAMGR_RegisterFactory(const char *service, const char *feature, Creator creator, Destroyer destroyer);
|