Frameworks: several fixes for TouchKey light duration

1. allow on all states window manager to overwrite current
   brightness state
2. fix duration calculation problem

Change-Id: I9956b1e6b9cca9d0823cb22749b3d2ec108e3c2b