Commit Graph

31588 Commits

Author SHA1 Message Date
Guang Zhu
2705ae35f9 Avoid JUnit4 collision in android-support-test, mockito-target
Bug: 31072145
Test: make droid checkbuild

Change-Id: I7f2b13a4c28e51d76313ee3b6d13c904c2925228
2016-08-25 19:43:16 +00:00
Noah Wang
3a17833536 Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change. am: ff23df19ba am: 9e714c5871 am: 562c577e9c
am: 9e40c94fe8

Change-Id: Ia0fcd01225a5159ebfec5ca26502500f9362f717
2016-08-25 19:01:17 +00:00
Noah Wang
9e40c94fe8 Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change. am: ff23df19ba am: 9e714c5871
am: 562c577e9c

Change-Id: Id498a637d747160fd18465e0b2ed5e3f07e74b81
2016-08-25 18:49:14 +00:00
Noah Wang
562c577e9c Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change. am: ff23df19ba
am: 9e714c5871

Change-Id: I04d1d090ada0e2a83e55a6b7ef4b7824dd9fc929
2016-08-25 18:46:22 +00:00
Noah Wang
9e714c5871 Inflate necessary previews upon user interaction instead of inflating everything on creation of the screen. This will improve the speed of opening the screen and refreshing screen upon commiting change.
am: ff23df19ba

Change-Id: I5667a6eecd3ab379a34a1d3488b6f03f354358d1
2016-08-25 18:42:57 +00:00
André Lago
597e0d8c36 Merge "[Settings App] Fix char_limit of some strings" 2016-08-25 18:07:39 +00:00
Salvador Martinez
030eeeee6d Added guard to logging in AsyncTask
An async task was trying to get the context
in an InstrumentedFragment. This could return
null if the context disappears before the new
thread gets to that line. Logging will now
be aborted if context is null to avoid this.

Test: Manual/Monkey Stability Test
Bug: 31058928
Change-Id: Iae97d389e58a76b0f213a2749415501894ebf649
(cherry picked from commit 566b66e27c)
2016-08-25 17:45:24 +00:00
Doris Ling
6cf7d7c9b7 Add ObservableDialogFragment to log DialogFragments.
Bug: 30681529
Test: RunSettingsRoboTests

ObservableDialogFragment can be used as host of VisibilityLoggerMixin,
allowing us to log visibility change for all dialogs easily.

Change-Id: I973db929d8494d3756584ca60df3b2e87d96c757
2016-08-25 10:42:50 -07:00
Andre Lago
7b92e281a7 [Settings App] Get ringtone titles from Ringtone
Instead of using custom code to get ringtone titles, use the Ringtone
API which already returns 'None' if the Uri is null

Bug: 31084929
Change-Id: Ifff3eaa3591e90020a2ac108a5916e19fb71e0bd
2016-08-25 16:27:46 +00:00
Andre Lago
64d8fdf459 [Settings App] Fix char_limit of some strings
Fix: 31032014
Fix: 30999277
Fix: 31002562
Fix: 31001271
Fix: 30996418
Fix: 31000455
Change-Id: I0616b02087e05d7f5a4691ab0954bec67f25c84b
2016-08-25 15:02:41 +00:00
Noah Wang
ff23df19ba Inflate necessary previews upon user interaction instead of
inflating everything on creation of the screen. This will
improve the speed of opening the screen and refreshing screen upon
commiting change.

Test: Manually tested by interacting with ViewPager and SeekBar.
Bug: 30697309
Change-Id: Ieb2fac95696b8be33fd508f3b75741529b68e946
(cherry picked from commit 5666ddfe5d)
2016-08-25 07:39:08 +00:00
Doris Ling
28860f7608 Merge "Add tablet and device product version for the Moves description text." into nyc-mr1-dev am: a40300e753 am: 02685e4408
am: 2334c0f7fd

Change-Id: I5e2f842c9869f8656580dad3b7f770698ffcbcac
2016-08-25 02:55:02 +00:00
Doris Ling
f62a038834 Add tablet and device product version for the Moves description text. am: fd87b198b1 am: e9541147d2
am: 20322f4ec3

Change-Id: I7cc35952c11fc8ceb8dda5e7d801db8c0d01ffb8
2016-08-25 02:55:01 +00:00
Doris Ling
2334c0f7fd Merge "Add tablet and device product version for the Moves description text." into nyc-mr1-dev am: a40300e753
am: 02685e4408

Change-Id: Iaa5c0330a7ca3a6ffe2032aeea5da5cb84ea3b7d
2016-08-25 02:37:00 +00:00
Doris Ling
20322f4ec3 Add tablet and device product version for the Moves description text. am: fd87b198b1
am: e9541147d2

Change-Id: I2ed4607d2ffe218bfe02afcbb44c15572509a39e
2016-08-25 02:36:59 +00:00
Doris Ling
02685e4408 Merge "Add tablet and device product version for the Moves description text." into nyc-mr1-dev
am: a40300e753

Change-Id: Iab4a482e8335c4de92c1dfdb081e96de95f60cd6
2016-08-25 02:34:00 +00:00
Doris Ling
e9541147d2 Add tablet and device product version for the Moves description text.
am: fd87b198b1

Change-Id: Ia2a7efb92cde0d344c2ecd4b674794d362ef713a
2016-08-25 02:33:59 +00:00
TreeHugger Robot
a40300e753 Merge "Add tablet and device product version for the Moves description text." into nyc-mr1-dev 2016-08-25 02:27:14 +00:00
Doris Ling
ed9cb4f2d5 Fix animation video render issue when Settings->Moves is resumed from screen off. am: 465e926542 am: 6361e8fc86 am: 40b3ad2b2c
am: 478c96245a

Change-Id: I4c5ca46f1dbebd283a8ec6aee1753c37057226a6
2016-08-25 02:18:37 +00:00
Doris Ling
7200d487ff Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev am: b6ad0f9349 am: 11b1c2742d
am: f3c7ad2408

Change-Id: Ie3531ec030e056b82b4d66868ef28bababff6b6c
2016-08-25 02:18:36 +00:00
Doris Ling
7b3a5e0bd2 Fix crash in ChooseLockPassworkFragment. am: f958f2e14e am: 773a2ab217
am: 6ffe36cf79

Change-Id: I6792e6ac9bd209c7e2dc8b20a5173bb01ed788bc
2016-08-25 02:18:35 +00:00
Doris Ling
478c96245a Fix animation video render issue when Settings->Moves is resumed from screen off. am: 465e926542 am: 6361e8fc86
am: 40b3ad2b2c

Change-Id: Idaf522d125e6c072d593861f9ed1bcf97c35e01f
2016-08-25 02:07:00 +00:00
Doris Ling
f3c7ad2408 Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev am: b6ad0f9349
am: 11b1c2742d

Change-Id: Ie08cffb72ec311addaf821d0005bf3f84388bfd6
2016-08-25 02:06:59 +00:00
Doris Ling
6ffe36cf79 Fix crash in ChooseLockPassworkFragment. am: f958f2e14e
am: 773a2ab217

Change-Id: Iaf85188f0b3df6884a876aa120b13fead5478295
2016-08-25 02:06:58 +00:00
Doris Ling
40b3ad2b2c Fix animation video render issue when Settings->Moves is resumed from screen off. am: 465e926542
am: 6361e8fc86

Change-Id: I673c72f0cf7311a9e0381f6b2e2461458ac932bf
2016-08-25 02:00:58 +00:00
Doris Ling
11b1c2742d Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev
am: b6ad0f9349

Change-Id: I86af1fc7787adb7afdbe8aa51b3cc185846215af
2016-08-25 02:00:57 +00:00
Doris Ling
773a2ab217 Fix crash in ChooseLockPassworkFragment.
am: f958f2e14e

Change-Id: I5df6a8989513347f6f55cc5fff9c54852c2a80ec
2016-08-25 02:00:57 +00:00
Maurice Lam
6e300bca3a Fix fingerprint progress bar in RTL
Bug: 31047779
Change-Id: Ia6961d9fa425a8a247365f75f5c00955d69d2c60
2016-08-25 01:55:37 +00:00
Doris Ling
6361e8fc86 Fix animation video render issue when Settings->Moves is resumed from screen off.
am: 465e926542

Change-Id: Ie92491dd5aa16a473ead297a56795fe0d72bbb93
2016-08-25 01:54:55 +00:00
TreeHugger Robot
b6ad0f9349 Merge "Fix crash in ChooseLockPassworkFragment." into nyc-mr1-dev 2016-08-25 01:44:22 +00:00
Fan Zhang
8954c27e6e Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc am: 1330f130d6 am: 4bc20232d6 am: f5fff83919
am: a12487e021

Change-Id: I4d38c456417f2e3425a6027d29ed3b886cf1b265
2016-08-25 01:15:43 +00:00
Doris Ling
465e926542 Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
(cherry picked from commit 008ba4ec40)
2016-08-25 01:02:49 +00:00
Fan Zhang
a12487e021 Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc am: 1330f130d6 am: 4bc20232d6
am: f5fff83919

Change-Id: I718fe8765c1102f04472a94cdae5eb76a2d7f921
2016-08-25 00:54:23 +00:00
Doris Ling
fd87b198b1 Add tablet and device product version for the Moves description text.
Provide corresponding version of the string device/phone/tablet
according to the product type.

Change-Id: I9f1e47b88ee0d72bb52b588f781470922ba572c2
Fixes: 30946424
2016-08-24 17:52:56 -07:00
Fan Zhang
4209d80d01 Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc am: 1dda6f6430
am: 7edd25c8b6

Change-Id: Id086450a5b234e2c45b3e152bd21c4e0fa7c744e
2016-08-25 00:51:36 +00:00
Fan Zhang
172d94e281 Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev am: 06609bec29 am: d08309e829
am: 442e87e0a3

Change-Id: I52de239834df02a55e6c3c586e989f27cbaca87f
2016-08-25 00:51:35 +00:00
Fan Zhang
1bab964a5d Don't remove wifi preferences when updating AP to avoid GC. am: 3f0e1344d3 am: bc6e2c49f0
am: d96bc5b5a6

Change-Id: Id10ded6d97308c175194ffb59afdd89e924ed1c8
2016-08-25 00:51:34 +00:00
Fan Zhang
f5fff83919 Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc am: 1330f130d6
am: 4bc20232d6

Change-Id: I684e6b21b297d9a681e1b1358192543167f4284a
2016-08-25 00:51:22 +00:00
Salvador Martinez
3d2d5e040a Updated Nexus imprint screen
The fingerprint settings screen looked ugly so an
icon was added and the styles used in the
preferences normalized so everything lines up
and is flush now.

Test: Visually Inspect
Bug: 27834731
Change-Id: I208d7fc2aecbe64d3a0b771fc73f49c9612f6efa
2016-08-24 17:51:14 -07:00
Fan Zhang
4bc20232d6 Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc
am: 1330f130d6

Change-Id: Ifa8d1b0f30a07243a49a61bd92072de4e90e8709
2016-08-25 00:47:51 +00:00
Fan Zhang
7edd25c8b6 Don't remove wifi preferences when updating AP to avoid GC. am: 9d031f2fbc
am: 1dda6f6430

Change-Id: Id360e02374b1f35d7a3cc31c320328cf577a4dc4
2016-08-25 00:47:51 +00:00
Fan Zhang
1dda6f6430 Don't remove wifi preferences when updating AP to avoid GC.
am: 9d031f2fbc

Change-Id: I3b589d86fc6ecd1a6caf0db9f3b9f7674dbe046a
2016-08-25 00:44:53 +00:00
Fan Zhang
1330f130d6 Don't remove wifi preferences when updating AP to avoid GC.
am: 9d031f2fbc

Change-Id: I0a4c7204dcb79880aee5db620b9642b8a1314757
2016-08-25 00:44:53 +00:00
TreeHugger Robot
e96d65deea Merge "Added guard to logging in AsyncTask" 2016-08-25 00:36:32 +00:00
Fan Zhang
442e87e0a3 Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev am: 06609bec29
am: d08309e829

Change-Id: I7d01e213286e01c8c944148364789501f1fdecdc
2016-08-25 00:30:18 +00:00
Fan Zhang
d96bc5b5a6 Don't remove wifi preferences when updating AP to avoid GC. am: 3f0e1344d3
am: bc6e2c49f0

Change-Id: Id21a0340fd29bee4ee5bdf721d3ec7b44be8a961
2016-08-25 00:30:17 +00:00
Fan Zhang
d08309e829 Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev
am: 06609bec29

Change-Id: Icb5b897c07ff28a2b18ff897a9d23209aeb7b429
2016-08-25 00:20:21 +00:00
Fan Zhang
bc6e2c49f0 Don't remove wifi preferences when updating AP to avoid GC.
am: 3f0e1344d3

Change-Id: I3062dbcb338d5068afbd8318e23a778659641744
2016-08-25 00:20:20 +00:00
Doris Ling
f958f2e14e Fix crash in ChooseLockPassworkFragment.
Check for null activity when the handler receives messages to ensure
that the fragment is still attached to the activity.

Fixes: 31034901

Test: Manual - Manually try to update password, verify it works. Run
monkey test on settings package and verify no crash seen.

Change-Id: I9753729ee64458fa1bc25d78abc946d2563a5067
2016-08-24 17:17:52 -07:00
TreeHugger Robot
06609bec29 Merge "Don't remove wifi preferences when updating AP to avoid GC." into nyc-mr1-dev 2016-08-25 00:09:49 +00:00