Squash all 4.2.2 changes into one

Update widget with home time changes

Bug: 7498378
Added an update broadcast when Home TZ is turn on/off or the time zone is changed.

Change-Id: Id447a5b12df49fbc494850af3f8a879e64c3458f

Make Clock dream default to "dim"

Bug: 7485798
Change-Id: Ibd8a65c45f798aa2c9d7b1fd8cd5c2b008255578

Read cities names for DB and not from list

Bug: 7413861

The list of user selected cities in world clock was using the name from the usr's list and
not from the DB. When a change of locale is done on the device, the cities name were not changed.
Changed the WorldClock adapter to use the DB name and timezone if available.
Added suport in both app and widget.

Change-Id: I029581f9fd6cf245ac980c1d1352e0d777924ccd

Move SDK version to 17

Bug: 7551129
Change-Id: Idb4a62ceece91d4c77d78362aae5e97a077be33c

Code formatting fixes.

Bug: 7413861
Change-Id: Ia5207e830c8bddf47469ed6b9769cdc98c82b1a2

Make on/off switch more visible

Bug:7555181, 7536599

Changed the dimming effect of an alarm item in alarm settings. When the alarm is off
the alpha if the view is reduced except for the on/off switch.
Disable on/off switch when in CAB mode

Change-Id: I89173ca5124b12fe04a92783d2cc870cfda481c8

Revert "Fix flickers in numeric pad of time picker"

Bug: 7407383
Cannot reporoduce the problem described in the bug after reverting the workaround
in builds JOP40C and JDP45 on any device.
Reverting the workaround.
This reverts commit 3060c5130336909deebf61d6c025be6d62bb3f55

Change-Id: Ie3b7285dc712a105cda8d32088ed0cd42098be36

Expand top margin for digital clock

Bug: 7429201
Change-Id: I9621bac26f357f22d61f9340089bb44961b7a540

Alarm delete confirmation

Change-Id: I591c959efb051d800f6279701d84186aab9ecaae

Put the seconds hand on top in the analog clock

Bug: 7555265
Change-Id: I4be90e5960492b0c8d38d7d2c52bd0dd18f0c6e0

Sort timezones in timezone picker

Bug: 7596888
Change-Id: Ia122cf85c36f402008b5cbf6249481cb9605126b

Extract boilerplate code into drawHand() utility method, for make benefit glorious readability.

Change-Id: I67c92f3f0518fe98e703c5dc5afdf2f33603ff4d

Timer Setup layout change for i18n

BUG: 7533146
split layout for landscape; removed padding on portrait then centered time text instead

Change-Id: I0793afb5c7e814df4fe0e0a4e75275bbb806583f

ACTION_ON_QUARTER_HOUR replaces ACTION_TIME_TICK

BUG: 7522888

Consolidated common code for this alarm into Utils
refresh quarter-hour-alarm when time changes

Change-Id: I96645d07db942a9030485cd71bd2a27a04475672

Timers: Sort order and auto-scrolling behavior

Bug: 7248981
Change-Id: Ie706df490d146c284213962cfde55388726ebf37

Fixed scaling on timer/stopwatch time

Bug: 7377962
Bug: 7371551
Bug: 7427599

Fixes arabic problem
Cleanup - spelling and wide text

Change-Id: I470fa71b64b560c239b02f7e7d3d3a221fa5dd71

Translations for lap times

Bug: 7282042
Change-Id: I12f4c399e34c722b991c241e7575ab71286e81e2

Aligning columns in stopwatch lap times

Bug: 7282042
Bug: 7539981

margin between total and lap times
string-array format for lap# and lap,total times
lap display centered in portrait
optimized landscape layout to give more room for list
using '#' instead of 'LAP'
removed unneeded margins on world clock; new dimen for timer margins
char limit on "Lap" and the hour, minute, second abbreviations
sw list handles times up to 1k hours
circle handles times up to 1k hours

Change-Id: If4e884ffd7b87986024c6d5a5990e529b1d6d736

Reset timers data instead of deleting it

Bug: 7561736
Change-Id: I5039f53fb946e884dcedb772a367b1e1c509f647

Distinguish replacing alarm from dismiss

Bug: 7565654

AlarmAlertFullScreen was doing a finish on the signal from AlarmKlaxon,
so the simultaneous new intent from AlarmReceiver was not processed.

Change-Id: Ia681dfa2986a98e522ca6f0590a731a03497f9f4

Tweak layouts for digital clock widget.

Bug: 7500729

Change widget to scale according to height on top of scaling of width.

Change-Id: Ia90031d3585178f66ee40490c7bf7f7b93503e41

Always log the alarm time

Bug: 7579100
Bug: 7634943

Intentionally verbose to provide useful information in bug reports.
Tuned format of alarm time to include day of week

Change-Id: I54fb5ee75c28868adf98c0d9d1f3fb25f55a6af6

Add time zone check every 15 minutes

Bug: 7629398

Make sure the time zone is updated by checking it every 15 minutes.
If it was changed, update the world clock to make sure home time zone clock
is added/removed.

Change-Id: Iedf3b037095e057f350d0be728661afdf59b3193

Switch volume button default behavior

Bug: 8151863
Changed the default to do nothing and added a check to make sure that on
the first boot after an upgrade, it will switch "Snooze" to "Do nothing"

Change-Id: I778e3eb58f465f2c3fc5be55859874cca8ab8b62

Resseting volume button to "do nothing" on upgrade

Bug:8151863

Change-Id: Ic99172767f90d78837f783336309f9a99bfd3ea2

Padding between date and digital clock

BUG: 7615514

New margin to use between digital and date in ClockFragment and ScreenSaver
New left/right/bottom margin for floating portion of the SaverSaver too.

Change-Id: I96babc7c1418e38b93d79d44b52ad4481f2aca2e

Revert "Keep the display on while stopwatch or timer is running"

This reverts commit 669a63e652dc0b0b204f6d04e6893cc6c52bdda1.

Change-Id: I622d1c6789c0281c9dd9f5fc1ac4f53e8a8ddf98

Keep screen on when running stopwatch

Bug: 7538100

Added a wakelock to keep the screen on when stopwatch is running, the clock
app in running and it is in the stopwatch view.
Added a callback and a listener to track the current view in the clock app.

Change-Id: Ib2af1dcd510321afc805c54d4155346eeca7fffa

Fix Multiple issues

Credits: CM