Android: minor improvements in SystemMessageHandler.

- android.os.MessageQueue.removeMessage is somewhat expensive.
It was calling that method for every single message, and re-inserting a new one
with slightly lower delay everytime.
Fix that by only scheduling a new message if it must happen sooner.

BUG=349059

Review URL: https://codereview.chromium.org/180783017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256158 0039d316-1c4b-4281-b951-d872f2087c98
Tests for ScreenOrientationListener.

This is testing the two different implementation of
ScreenOrientationListener.

BUG=None

Review URL: https://codereview.chromium.org/178223020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256159 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256158
Change VLOG levels in media/cast.

Convention:
VLOG(1) for information that's unlikely to flood logs.
VLOG(2) for per-frame information.
VLOG(3) for per-packet information (likely to flood logs).

Certain logs are 'promoted'. For example, per-frame information can
still use VLOG(1) if it does not occur that often or should be
considered important enough to use VLOG(1).

Review URL: https://codereview.chromium.org/191613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256160 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256160
kiosk: Update kiosk management UI.

Show "Permanently keep device in kiosk mode" only when kiosk
auto launch is enabled and allow it to be checked only when
there is an auto launch app.

BUG=348164

Review URL: https://codereview.chromium.org/192863003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256161 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 256161