History log of /packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
19798292948bce86c7300145d706cd42a7ac43c6 24-Apr-2018 Phil Weaver <pweaver@google.com> Improve battery saver setting a11y semantics

Adding the ability to override a couple a11y traits
of the Settings version of SeekBarPreference.
Setting semantics for the battery level to report
itself as a percentage. Also tweaking the content
description to use a different title. The title isn't
exactly what I'd like, but it is better than just
saying "At 15% - 15%".

Bug: 74357845
Fixes: 78479637
Test: Used a custom accessibility service to inspect
the information coming from the battery saver seek bar.

Change-Id: I9db55cf0bb3cfee86a46d22c1208262407332d5f
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
de08eaf43748255d1e778e6648dc442fb6202a12 05-Apr-2018 Doris Ling <dling@google.com> Fix issue in ring volume sample not always being played.

- when we adjust the sound volme in Sound settings, we only re-post the
stop sample message when we receive the onSampleStarting callback.
However, if we change the volume while a sample is still playing,
onSampleStarting will not be called as it's already started. This
results in shortened sample duration, which in extreme case, the new
sample will not be played at all if the new volume change is made almost
towards the end of the previous sample period. So, everytime user change
the volume, we should re-post the stop sample message, so that the
sample playing duration would be extended properly.

- also removed the original calls to the onStreamValueChanged() during
init, as the original implementation is empty, and during init, we do
not need any handling to start/stop the sample.

Change-Id: I9f35ddfb6d809eeb83b1a732a09362286ff6ed77
Fixes: 77514234
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
b77fec0872c58d1293c480fe0ddd7f9a49098c78 25-Jan-2018 jackqdyulei <jackqdyulei@google.com> Add preference controller for battery seekbar

Also update SeekBarPreference so we can set min for it.

Bug: 72228477
Test: RunSettingsRoboTests
Change-Id: I5ab1bfd78b0bd461551012c121c7e76764843a30
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
8b99c8cfa3f346f79ada8ab48cdda63312c0fde3 13-Jul-2017 Kevin Chyn <kchyn@google.com> Add setShouldBlink method to get SeekBarPreference

Bug: 63642792

Test: make -j && make -j RunSettingsRoboTests
Change-Id: I92bb34282fe2b89644a3e004ec0da7d3c1f3db43
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
648ddd5c83ef0fe330845de6ebeb75ce42e7f30c 02-Jul-2017 Philip Quinn <pquinn@google.com> Add SeekBarPreference.getMax().

Bug: 63047816
Test: make -j
Change-Id: I416d044fa32f3aed32c1e6239baf9c57652bca2e
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java
cbfe1eb881028d06aee9720634bbdbc4ef17e71a 16-May-2017 Fan Zhang <zhfan@google.com> Add title to SeekbarPreference content description.

Adding a title to contentDesciption of the seekbar.
The title is helpful to indicate which seekbar user is changing when
talkback is enabled.

Also move SeekBarPreference from root package to widget packge.

Change-Id: I793f41c4902e350b6bc6d62761362779cc3722a9
Fix: 35421942
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/widget/SeekBarPreference.java