* limitations under the License.
*/
+#include <libsyscommon/resource-manager.h>
#include <system/syscommon-plugin-common-interface.h>
#include <system/syscommon-plugin-deviced-common-interface.h>
#include <system/syscommon-plugin-deviced-display.h>
*data = (void *)&g_display_funcs;
+ /*
+ * Default capability setting
+ * powerkey := LCDON | LCDOFF | POWEROFF
+ * homekey := LCDON
+ */
+ syscommon_resman_set_resource_attr_uint64_3(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
+ DEVICED_DISPLAY_ATTR_TUPLE3_ACTOR_CAPABILITY,
+ SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY,
+ SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON,
+ 1);
+ syscommon_resman_set_resource_attr_uint64_3(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
+ DEVICED_DISPLAY_ATTR_TUPLE3_ACTOR_CAPABILITY,
+ SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY,
+ SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDOFF,
+ 1);
+ syscommon_resman_set_resource_attr_uint64_3(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
+ DEVICED_DISPLAY_ATTR_TUPLE3_ACTOR_CAPABILITY,
+ SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY,
+ SYSCOMMON_DEVICED_DISPLAY_CAPA_POWEROFF,
+ 1);
+ syscommon_resman_set_resource_attr_uint64_3(SYSCOMMON_RESOURCE_ID(DEVICED_RESOURCE_TYPE_DISPLAY),
+ DEVICED_DISPLAY_ATTR_TUPLE3_ACTOR_CAPABILITY,
+ SYSCOMMON_DEVICED_DISPLAY_ACTOR_MENU_KEY,
+ SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON,
+ 1);
+
return 0;
}