Avoid to skip app window due to un-assigned sending to bottom state while app window sort

should assign value of WindowToken.sendingToBottom according to the state of this token is moved to top or bottom
to avoid app window is skiped incorrectly due to sending to bottom state is un-assigned while app window sort
and finding focus window.

Change-Id: I190838d1d01ca229155d5176930178ab41335556
Signed-off-by: tingna_sung <tingna_sung@htc.com>
ActiveDisplay: clean up package member visibility and trivial funcitons

Anything in the outer class that is accessed by an inner class should not be labeled
private.  This inlines some trivial functions and moves some code to the inner classes
that uses it also.  It also makes the screen state boolean volatile which fixes the
issue with the screen not turning on occassionally when a notification is received or
pocket mode is activated.

AICPfy
Fix derp in PhoneStatusbar

Change-Id: Ia163bf1d0d36dd859003f355e08e717bca8b61a2
AccountManagerService: initialize cursors within try/finally block

Change-Id: I8368fa390e94f36fd9c65a34631f320247e5e33e
Merge remote-tracking branch 'ap/kitkat' into kitkat