Lines Matching refs:feature
18 #include <feature.h>
27 const char *GetPowerManageFeatureName(Feature *feature)
29 (void)feature;
33 void OnPowerManageFeatureInitialize(Feature *feature, Service *parent, Identity identity)
35 if (feature == NULL) {
36 POWER_HILOGE("Invalid feature");
40 PowerManageFeature *f = (PowerManageFeature *)feature;
42 POWER_HILOGI("Init power manage feature done");
45 void OnPowerManageFeatureStop(Feature *feature, Identity identity)
47 (void)feature;
57 BOOL OnPowerManageFeatureMessage(Feature *feature, Request *request)
59 return ((feature != NULL) && (request != NULL)) ? TRUE : FALSE;
108 PowerManageFeature *feature = GetPowerManageFeatureImpl();
109 if (feature == NULL) {
110 POWER_HILOGE("Failed to get power manage feature");
113 BOOL result = sam->RegisterFeature(POWER_MANAGE_SERVICE, (Feature *)feature);
115 POWER_HILOGE("Failed to register power manage feature");
118 result = sam->RegisterFeatureApi(POWER_MANAGE_SERVICE, POWER_MANAGE_FEATURE, GET_IUNKNOWN(*feature));
120 POWER_HILOGE("Failed to register power manage feature api");
125 POWER_HILOGI("Succeed to register power manage feature");