Commit Graph

14339 Commits

Author SHA1 Message Date
TreeHugger Robot
de090f3f85 Merge "Only sync adapters with access can see an account - settings" into nyc-mr1-dev 2016-08-23 23:26:48 +00:00
Yoshinori Hirano
9224414477 Show summary of "Add user" item
am: 2ce843b00e

Change-Id: I413ab13bbf58b7100348d20c02aeeff850a84639
2016-08-23 23:25:05 +00:00
Sudheer Shanka
acd34a9c72 Merge "Show summary of "Add user" item" into nyc-mr1-dev 2016-08-23 23:23:08 +00:00
Doris Ling
008ba4ec40 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
2016-08-23 16:08:34 -07:00
Doris Ling
f757d1ede8 Log settings suggestions events only once.
am: bfbb964cb1

Change-Id: If4e3e15b56c7e5a99eb54376c519019ff44d6a34
2016-08-23 22:18:00 +00:00
Fan Zhang
83f91f61ae Use isOemUnlockEnabled to drive oem unlocking toggle.
Bug: 31031467
Test: manually turned on/off persistent_data_block

Change-Id: I21d18a898a220f9e46a53715d4b4fa01c7116e7f
2016-08-23 15:14:19 -07:00
Svetoslav Ganov
6f9bf1da90 Only sync adapters with access can see an account - settings
This change ensures that when the user tries to toggle a sync for a
sync adapter that doesn't have access to an account we show UI for
the user to approve the sync.

bug:28163381

Change-Id: I59802df6614572cf0eaf4b72a177beb111b87b34
2016-08-23 21:44:47 +00:00
TreeHugger Robot
bc6ed505d7 Merge "Extract and refactor logic to determine the data usage summary mark." 2016-08-23 21:24:42 +00:00
Fan Zhang
ea024155fb Add lifecycle observers for future mixin structures.
- Converted VisibilityLoggerMixin into a LifecyclerObservable so we
  don't have to call logger.onResume/onPause manually in most fragments.
- Observable will be useful when we provide logics across all
  fragment/activity, eg log lifecycle event latencies.
- Also added new tests for lifecycle component.

Bug: 30681529
Test: RunSettingsRoboTests

Change-Id: Ida39300aeb42f71b2e0bbfaebd0c51dc468cb5e8
2016-08-23 14:02:39 -07:00
Doris Ling
bfbb964cb1 Log settings suggestions events only once.
The show/hide settings suggestions events are logged every time Settings
is shown. Save the logged events into the state bundle so that when the
fragment is resumed, it does not re-log the suggestions events.

Also move the logging for the show suggestion event to when the suggestion
is loaded, as the suggestions can be empty when the fragment starts.

Change-Id: I644ea0012bad309e59fed0d48171915c955779cc
Fixes: 30108142
2016-08-23 13:25:06 -07:00
Matthew Fritze
b42136ec8c Extract and refactor logic to determine the data usage summary mark.
Created a new controller for DataUsageInfo and add appropriate
unit tests.

Bug: 30946416
Change-Id: Ida1281a771013fd807242f846edb4f2a9c0ccabb
Test: Robolectric tests with target RunSettingsRoboTests
2016-08-23 12:15:16 -07:00
Rubin Xu
7c23b6b04a Remove duplicated call to authenticationSucceeded() am: 3a437490be
am: 886af76fb3

Change-Id: Ic0154eef40bfe90a62644405e35092ac037db000
2016-08-23 18:31:16 +00:00
Rubin Xu
a63a05362f Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog am: da9f9a0fab
am: 7425b2d677

Change-Id: I69aad745936b8d53fbe9389d8ff8f7e2d3b98d66
2016-08-23 18:30:10 +00:00
Doris Ling
753f95d7e0 Fix crash when selecting AppInfo for uninstalled app from Recents. am: 7574b64910
am: 0f7d5f36a3

Change-Id: I91f1ee6cebb8af959b0dbed6aa213fae4c8de605
2016-08-23 18:30:08 +00:00
Matthew Fritze
bf61bf6459 Stop apps with Storage Managers from launching activity when disabled am: 1051fe1e14
am: 7444ee791c

Change-Id: Ia358b60aff78a967663112399a260ffc2de27668
2016-08-23 18:27:59 +00:00
Salvador Martinez
3f3ce9595b Disabled BSM mode switch when plugged in am: d4a6768880
am: 18d58269a8

Change-Id: I3001c4e21f5e1bcae64074962ab4399f0787aaa3
2016-08-23 18:27:52 +00:00
Salvador Martinez
5bbfa0555a Prevent wifi icon from disappearing am: 5c0063af7e
am: 56ebf2a051

Change-Id: I0cf475280dd390e55befd285c33cde593e8c7878
2016-08-23 18:26:33 +00:00
Rubin Xu
886af76fb3 Remove duplicated call to authenticationSucceeded()
am: 3a437490be

Change-Id: I929ab9d63c5100b30bfec87ee6be0b4d1164cc81
2016-08-23 16:22:49 +00:00
Rubin Xu
7425b2d677 Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog
am: da9f9a0fab

Change-Id: I2a45a4530fdd25f372f08315a21ca92c453bcdd9
2016-08-23 16:07:36 +00:00
Doris Ling
0f7d5f36a3 Fix crash when selecting AppInfo for uninstalled app from Recents.
am: 7574b64910

Change-Id: I9ade2a06180e6464ab105c1a12c5383aa480f77a
2016-08-23 16:07:29 +00:00
Matthew Fritze
7444ee791c Stop apps with Storage Managers from launching activity when disabled
am: 1051fe1e14

Change-Id: Ib2ae9dcbd034c36c44addfaea0bc84ebe3f2247b
2016-08-23 14:43:44 +00:00
Salvador Martinez
18d58269a8 Disabled BSM mode switch when plugged in
am: d4a6768880

Change-Id: I9e8116dd9413090145b7ef98b37db20706471c28
2016-08-23 14:43:42 +00:00
Salvador Martinez
56ebf2a051 Prevent wifi icon from disappearing
am: 5c0063af7e

Change-Id: I1039ce10631d7f792cae36c3a171d90df11a9e33
2016-08-23 14:43:36 +00:00
Rubin Xu
0948ce0cdb Merge "Remove duplicated call to authenticationSucceeded()" into nyc-mr1-dev 2016-08-23 13:07:02 +00:00
Rubin Xu
7a4ecbac12 Merge "Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog" into nyc-mr1-dev 2016-08-23 12:59:17 +00:00
Doris Ling
6cdd5fccd8 Merge "Fix crash when selecting AppInfo for uninstalled app from Recents." into nyc-mr1-dev 2016-08-23 01:51:21 +00:00
Salvador Martinez
d0e21e9285 can open settings with support tab by default am: 12c5208ad0
am: 8d47bdc773

Change-Id: I223e42c2bc89e3f95a0fed9cc74ebfb21932370f
2016-08-22 22:32:20 +00:00
jackqdyulei
8d4a7021dd Make number in dialog highlighted am: 7a78213776
am: 226ccfe62f

Change-Id: Ie22cae038131a206f2d8a246ba3cd80398ba7cff
2016-08-22 22:32:18 +00:00
jackqdyulei
83c6cfa463 Fix the nullpointer bug in monkey test. am: 409c4708c1
am: fbed8d95e9

Change-Id: Ia93f4051af386b8d6dee02d7c617fe75730e9fc2
2016-08-22 22:32:17 +00:00
TreeHugger Robot
88d3cb7176 Merge "Stop apps with Storage Managers from launching activity when disabled" into nyc-mr1-dev 2016-08-22 22:24:15 +00:00
Salvador Martinez
8d47bdc773 can open settings with support tab by default
am: 12c5208ad0

Change-Id: Ic28fc68db3d971ccf48c5667875474d4c9060a7b
2016-08-22 22:20:54 +00:00
jackqdyulei
226ccfe62f Make number in dialog highlighted
am: 7a78213776

Change-Id: I1b5fb80a2a38a1224d6aa586d1ff2065c4a2a32a
2016-08-22 22:20:52 +00:00
jackqdyulei
fbed8d95e9 Fix the nullpointer bug in monkey test.
am: 409c4708c1

Change-Id: I03e6e3a5951f587169d0b2758283bff069b925a2
2016-08-22 22:20:50 +00:00
Salvador Martinez
4c8776627b Merge "Disabled BSM mode switch when plugged in" into nyc-mr1-dev 2016-08-22 21:56:21 +00:00
Salvador Martinez
89d138b724 Merge "Prevent wifi icon from disappearing" into nyc-mr1-dev 2016-08-22 21:55:18 +00:00
Salvador Martinez
5bd202e277 Merge "can open settings with support tab by default" into nyc-mr1-dev 2016-08-22 21:53:53 +00:00
Lei Yu
2363094863 Merge "Make number in dialog highlighted" into nyc-mr1-dev 2016-08-22 21:50:29 +00:00
Lei Yu
dd90acf2c0 Merge "Fix the nullpointer bug in monkey test." into nyc-mr1-dev 2016-08-22 21:49:56 +00:00
Fan Zhang
7f881f339b Set oem unlock switch to reflect the actual state of device am: 1ba24ca792
am: ede4f9d41f

Change-Id: I61f6cc2ec3dc40f27dc1ac943a2305c41a826a88
2016-08-22 21:43:22 +00:00
Fan Zhang
136fe5468c Have a fallback package name when matching targetPackage. am: 0c58131c37
am: 2dd0275d66

Change-Id: I4ecd52a133db924a47fcaf843a32c64227134fd8
2016-08-22 21:42:09 +00:00
Fan Zhang
ede4f9d41f Set oem unlock switch to reflect the actual state of device
am: 1ba24ca792

Change-Id: I77c374d43d6f78cf57cf2a1a9bb505538d86c9aa
2016-08-22 21:37:48 +00:00
Fan Zhang
2dd0275d66 Have a fallback package name when matching targetPackage.
am: 0c58131c37

Change-Id: I0c57b1a71c6388a3fdfc761b44b142abfdf40bcb
2016-08-22 21:37:43 +00:00
TreeHugger Robot
45fd5c4d4e Merge "Set oem unlock switch to reflect the actual state of device" into nyc-mr1-dev 2016-08-22 21:32:44 +00:00
TreeHugger Robot
5a6fad7607 Merge "Have a fallback package name when matching targetPackage." into nyc-mr1-dev 2016-08-22 21:23:48 +00:00
Fan Zhang
b923918b7c Force searchview to stretch entire actionbar.
Bug: 30747805
Change-Id: If702ab934dbed6ee329b87dde565c1e381136849
2016-08-22 13:59:59 -07:00
Fan Zhang
29e1c59f32 When click conditional's title, expand/collapse content. am: 89d7bca166
am: c8b20343f0

Change-Id: I416b3f87bc3d5bde0396dd5ddf6cb23c43b3d155
2016-08-22 20:18:29 +00:00
Fan Zhang
c8b20343f0 When click conditional's title, expand/collapse content.
am: 89d7bca166

Change-Id: I7ee56f661cba9e9d79399b8f01fc05cf5a70b27a
2016-08-22 20:16:59 +00:00
Fan Zhang
7804d47be3 Hide default phone preference when there is no phone app. am: dc1e04035b
am: 0ae351771e

Change-Id: I8751c22c53b66b69f1a8a4d20f4997bb40316764
2016-08-22 20:06:26 +00:00
Fan Zhang
0ae351771e Hide default phone preference when there is no phone app.
am: dc1e04035b

Change-Id: I2b588c9a31f405f66c1603aacbe67798ac637dee
2016-08-22 20:05:30 +00:00
TreeHugger Robot
95c097e835 Merge "When click conditional's title, expand/collapse content." into nyc-mr1-dev 2016-08-22 20:01:17 +00:00