(1/2) Add support for using the flip switch (Samsung cover) to turn off the screen

Change-Id: I3457af831bf5e9cd2d49efda52fb5961fee5d68f

Conflicts:
	services/input/Android.mk

(2/2) Add support for using the flip switch to turn off the screen/HLTE: allow lid to control sleep

Change-Id: I538c4eee5a13c297fea75f5d6b959d5bcd550c96

Conflicts:
	overlay/frameworks/base/core/res/res/values/config.xml

Change-Id: I3457af831bf5e9cd2d49efda52fb5961fee5d68f