History log of /frameworks/base/core/java/android/widget/TextClock.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
851957cbf913278782a69e946136638b6aafa935 11-Apr-2017 Ian Lake <ilake@google.com> Move expensive TextClock operations to onAttach

Registering and unregistering are expensive operations
that should not be done when the visibility of the
TextClock changes. However, we want to ensure that a
non-visible TextClock does not consume extra resources
or cause layout/redraw passes. By keeping the TextClock
registered but avoiding the side effects of onTimeChanged,
we can get the best of both worlds.

Test: manual testing

BUG: 33960344
Change-Id: I80771524a09ca57488834bafd97b570f2a8235db
/frameworks/base/core/java/android/widget/TextClock.java
cbba5f3090050533d27b898da82a162aa20e61a8 22-Mar-2017 Ian Pedowitz <ijpedowitz@google.com> Revert "Move expensive TextClock operations to onAttach"

This reverts commit dffe6fdfe1e25e3bad52c00ff6c978deb0327852.

Bug: 36472151
Change-Id: I98ba047bd4225d82414425a40e9a2e50c4473bf9
/frameworks/base/core/java/android/widget/TextClock.java
dffe6fdfe1e25e3bad52c00ff6c978deb0327852 10-Mar-2017 Ian Lake <ilake@google.com> Move expensive TextClock operations to onAttach

Registering and unregistering are expensive operations
that should not be done when the visibility of the
TextClock changes. However, we want to ensure that a
non-visible TextClock does not consume extra resources
or cause layout/redraw passes. By keeping the TextClock
registered but avoiding the side effects of onTimeChanged,
we can get the best of both worlds.

Test: manual testing

BUG: 33960344
Change-Id: I3e76246d820363766b78130231d665989fdb4265
/frameworks/base/core/java/android/widget/TextClock.java
99441c5d7da45c10b729185852be97cbb0bdc8d5 12-Oct-2016 Aurimas Liutikas <aurimas@google.com> Fix import statements in android.widget package.

Additionally this CL removes spaces at the end of the line.

Test: code still compiles.
Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
/frameworks/base/core/java/android/widget/TextClock.java
12e319b7357d203ac02f0c6f0b1f7ee23ad0b2df 06-Oct-2016 Erik Wolsheimer <ewol@google.com> Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible am: e12cd3bb3b
am: 4d855f15ab

Change-Id: I9bebe0ea19701dcdb924c20534a418f7ad19440a
e12cd3bb3b855a8c51273d11a6ca14f829bb27bd 03-Oct-2016 Erik Wolsheimer <ewol@google.com> Do not listen for clock ticks, time changes, timezone changes, or time format changes when TextClock is not visible

BUG: 31840153
Change-Id: I11adf1036fb25b28aee5caba6daa1ab0d9d1f23a
/frameworks/base/core/java/android/widget/TextClock.java
514c5ef8d5774d8820ed1bf90fe53af1606cf106 25-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Deprecated annotations.

Add missing @Deprecated annotations for methods with @deprecated tag
in javadoc.

Change-Id: I35b78ccb97832d86b914c21a300444ba29e33844
/frameworks/base/core/java/android/widget/TextClock.java
5a33106d7eb1a7fd22eaa6bdaace25aa09af7b61 11-Apr-2016 Oleksandr Peletskyi <peletskyi@google.com> Fixed cross profile usage of TextClock.

Fixed crash of a widget that uses TextClock and belongs to a work
profile when is being added to the dash board.

BUG:27035203
Change-Id: I70c66cb792d159d2527050db820e7154784148a2
/frameworks/base/core/java/android/widget/TextClock.java
d0374c6b25c3ad8e638827bd8190553f80d9bf22 20-Oct-2015 John Reck <jreck@google.com> Fix a few view ctors to not call Looper.myLooper

Bug: 25116730
Change-Id: I4e394c281feef6f7987433298d66f2df11352416
/frameworks/base/core/java/android/widget/TextClock.java
25ffc7ad950d9b2857abe9cb66ed53aed7a18ecf 11-Jun-2015 Dan Sandler <dsandler@android.com> Accessibility: Read the time correctly in quick settings.

The problem is that, for 12-hour locales, we cut the "a"
part of the time format out to show it in a separate
TextView so it can be animated independently of the actual
time. Unfortunately, while TTS is smart enough to pronounce
"1:15 AM" as /wʌn fɪftin eɪ ɛm/, "AM" on its own looks like
the English word "am" and is pronounced /æm/.

To fix this, a TextClock must be able to accept separate
formats for its content description than its presentation.
With this capability we can place the complete 12-hour time
format (including am/pm) in one of the views and suppress
the other one, so that the utterance creates an identical
experience to visual inspection: "1:15 AM" for all users.

Bug: 21718000
Change-Id: Ic9920d71ae4d4ad41ba86d7bd96f9a19b07e2108
/frameworks/base/core/java/android/widget/TextClock.java
94a6d15ede149189bba9e5f474ed853c98230e75 06-May-2015 Siva Velusamy <vsiva@google.com> Use new hierarchy viewer protocol in all View subclasses

A previous CL introduced a new way of encoding view properties for
use by heirarchy viewer. This CL updates all views using the old
@ExportedProperty annotation to use this new method. The older
mechanism will be removed in a subsequent CL.

Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
/frameworks/base/core/java/android/widget/TextClock.java
0da89b76402816dade084166a97b1d352ae1f78b 25-Nov-2014 Jorim Jaggi <jjaggi@google.com> resolved conflicts for merge of f0fc23a1 to lmp-mr1-dev-plus-aosp

Change-Id: I8f1dbae2ecd14ae4e51a9e86eb6d36dd56a48be1
9c4a707912da2c954b2d3d1311b8a691ded8aa16 21-Nov-2014 Selim Cinek <cinek@google.com> Fixed several time related states for secondary users

The 24 hour setting was not respected correctly. Also
fixed a bug where the next alarm would not display itself
in the QS panel.

Bug: 16239208
Change-Id: I89734f783912dead5831db49db53fba04dbf54ee
/frameworks/base/core/java/android/widget/TextClock.java
87ce99ca7243e4556a6cfe9f42cc51531301e979 28-Oct-2014 Elliott Hughes <enh@google.com> am ced7ebdb: Merge "Migrate off timeFormat12 and timeFormat24."

* commit 'ced7ebdb1d522b4206e2048b278554ca841aeaba':
Migrate off timeFormat12 and timeFormat24.
f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c 23-Oct-2014 Elliott Hughes <enh@google.com> Migrate off timeFormat12 and timeFormat24.

libcore now offers a wider variety of 12-/24-hour time formats,
so be more specific about which one we want here.

(cherry-pick of 85f60d3a03b5b5d9a0e8b8a138eb85a6b53a1eca.)

Bug: 10361358
Change-Id: I846ab7a6f84cd49e876ad21e9366aff1600e0530
/frameworks/base/core/java/android/widget/TextClock.java
692356b7c392130b7f38f46a60570617c978ba75 04-Sep-2014 Kenny Guy <kennyguy@google.com> Revert "Ensure all RemoteViews use myUserId rather than context."

This reverts commit 5287e37687f117ac0b690100ad90842eff58d15a.
Reverting because only worked if settings cache had been populated
already.

Bug: 17302505
Change-Id: I4360606e9d9c6409951f0a02bd0b78c55085e0c6
/frameworks/base/core/java/android/widget/TextClock.java
879ebec4e2a12a802339549cb4fefa32b5368379 02-Sep-2014 Kenny Guy <kennyguy@google.com> Ensure all RemoteViews use myUserId rather than context.

Remote views may be inflated in another user so
explicitly use processes user id rather than the
user id of the context.

Bug: 17302505
Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
/frameworks/base/core/java/android/widget/TextClock.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/widget/TextClock.java
09b1994c4d3c47bfa41374a4d420eb5110b9a48a 30-Apr-2013 Romain Guy <romainguy@google.com> Fix TextClock documentation
Bug #8670351

Change-Id: I87a906b85b51f44d9dcecb6f137db53886323ad7
/frameworks/base/core/java/android/widget/TextClock.java
f7c01e5a8a4e7e3032dd03a3705f6894312e9b5f 19-Mar-2013 Elliott Hughes <enh@google.com> am eda35cb7: am a8974d3f: Merge "Clean up (some of) our many clocks to use H instead of k."

* commit 'eda35cb7c5781a32b038f1ef76b8e50f26f9bfaf':
Clean up (some of) our many clocks to use H instead of k.
cdafd37f3148dfc6f44f2e5de8b31adb6bf9e476 19-Mar-2013 Elliott Hughes <enh@google.com> Clean up (some of) our many clocks to use H instead of k.

Bug: 8359981
Change-Id: I3c0c38c2bf5adc4b5bdc11c3d10cf41dd8fb6462
/frameworks/base/core/java/android/widget/TextClock.java
06c5f8a768bcd4f7b6441f7525bd5c639399fc76 04-Dec-2012 Jeff Sharkey <jsharkey@android.com> Examine widget hierarchy to find clocks.

When switching to a widget, examine its hierarchy to determine if it
contains TextClocks that show hour and minute for the local timezone.
If so, hide the status bar clock. Doesn't fix closing walls.

Bug: 7667638
Change-Id: I1e2c40345c9e5eb0193efd70838c7ca9f779190b
/frameworks/base/core/java/android/widget/TextClock.java
a76f7db323598f78512bbbdf2fb89248c9e317e5 07-Nov-2012 Romain Guy <romainguy@google.com> Respond to ticks when a timezone is set and it doesn't display seconds
Bug #7489774

This change also fixes a crash if you programmatically set the time
formats from code before the widget is attached to the window.

Change-Id: I73ead93f5866d9059a4b3823c4304aeca8e419b6
/frameworks/base/core/java/android/widget/TextClock.java
a9cfe677eec0324a94509c6a5d29cec5b8a7a7cf 05-Nov-2012 Romain Guy <romainguy@google.com> Add programmatic access to setters in TextClock
Bug #7478328

Add missing annotation to let appwidgets change values programmatically

Change-Id: I6e9b095e93e4e90bd96e127344354c0dfa46cd86
/frameworks/base/core/java/android/widget/TextClock.java
3d1728c03a0cd1aaed6bc81c97de27d62c771a6e 01-Nov-2012 Romain Guy <romainguy@google.com> A new clock widget to create lock screen appwidgets

This new widget replaces DigitalClock. It listens to all the correct
system events and offer the ability to customize the formatting
patterns in 12-hour and 24-hour modes. It also supports fixed
time zones to create world clocks.

One more step towards becoming ClockOS!

Change-Id: I677e5dfca8cd8c8d1f8c49e54d7507f4d1885bf4
/frameworks/base/core/java/android/widget/TextClock.java