Commit Graph

33929 Commits

Author SHA1 Message Date
Ajay Nadathur
4b4c812a02 Add code coverage support for robolectric tests
- To run robolectric tests with code coverage, run:
    make RunSettingsRoboTests-jacoco -j44
- Generated reports are placed under
   $OUT/obj/FAKE/RunSettingsRoboTests_intermediates/coverage

bug:32617403
Test: Ran manually, verified that reports are generated.

Change-Id: Ie51ab86c5fbaa9297d717167fda04a555dadbfe8
2017-02-21 17:45:41 -08:00
Hyunyoung Song
e011c6a402 Merge "Fix transaction too large exception on creating shortcut b/35515740 Test: manual build/push and reboot. Create shortcut from widget tray." 2017-02-22 01:44:47 +00:00
Fan Zhang
c108b97f17 Fix crash when cold start settings.
Change-Id: I992743be7820e932116121e7ee2d57ef94e87701
Fix: 35641857
Test: RunSettingsRoboTests
2017-02-21 17:17:46 -08:00
TreeHugger Robot
a22842a5bf Merge "Update wifi calling summary text during onResume" 2017-02-22 00:30:16 +00:00
Daniel Nishi
b826edb2af Add logging to help debug loader issue.
Sometimes, it looks like the loader is not returning the result
to populate the storage settings view. The current bug reports
have no smoking guns. By adding this debug logging to the build,
the bug reports should hopefully help lead us to where the bug
is originating.

Bug: 35389719
Test: None
Change-Id: Ifa3f69f1fb4669aa72e6ef9c7ccc9d74b9e0fa71
2017-02-21 16:26:10 -08:00
Anton Philippov
b7948cedc2 Remove intent-filter from PrivacySettingsActivity
BackupSettingsActivity should be the only activity listenting to the
BACKUP_AND_RESET_SETTINGS intent. It then decides which acitivity to
launch.

Bug: 35237721
Test: make SettingsUnitTests
Change-Id: I2021ec57e08c305771dd040c52725065597fd042
2017-02-22 00:25:56 +00:00
jackqdyulei
5115265a50 Add toggle in menu to show/hide hidden apps
In the previous cl we hide unrelated apps and distribute hidden
battery usage among other apps. Now we add a toggle in menu to
show old power accounting as well.

Bug: 35366708
Test: RunSettingsRoboTests
Change-Id: I6918b7095cf84d9756ad3972ff50a62aeae1de0e
2017-02-21 16:00:20 -08:00
Daniel Nishi
3633c243ed Merge changes from topic 'secondary-users'
* changes:
  Update the loading of info for the secondary users.
  Add support for visualizing secondary users.
2017-02-21 23:20:29 +00:00
TreeHugger Robot
0113b65753 Merge "Add icons for Wi-Fi wakeup and notification settings toggles." 2017-02-21 23:04:30 +00:00
TreeHugger Robot
f8ecb13168 Merge "Deprecate AppListPreference and AppListPrefWithSettings" 2017-02-21 23:02:26 +00:00
Doris Ling
81610543a9 Update Security & screen lock preference
- change password category title to Privacy and move Location into it.
- remove Advanced security preference category
- remove SIM card preference category and move the SIM card lock
  preferece down.
- move Encryption and Credential settings to a separate screen.

Bug: 34976707
Test: make RunSettingsRoboTests
Change-Id: Iebaba4a8aad135fa88f163de0b60b488fd9510d0
2017-02-21 14:55:25 -08:00
Hyunyoung Song
cafabced45 Fix transaction too large exception on creating shortcut
b/35515740
Test: manual build/push and reboot. Create shortcut from widget tray.

Change-Id: I38c2af0ad5b179c1d602810f81efcdd95e114666
2017-02-21 14:50:35 -08:00
TreeHugger Robot
3135409d4e Merge "Rank results that match the prefix of the first word higher" 2017-02-21 22:46:49 +00:00
Marie Janssen
d06d83c531 Bluetooth: service for pairing notification
Use a foreground service to show the notification, separating dialog
creation from the receiver.

Test: pair request from remote device while the screen is off
Bug: 35234069
Change-Id: Ia3be3e8efdacf465e095af5a498ef5eb0fca83cd
2017-02-21 14:43:40 -08:00
Fan Zhang
010c2af1bf Update wifi calling summary text during onResume
Change-Id: Ic376e65b418a966c53eef30bea7ca55edf72ac29
Fix: 35323207
Test: make RunSettingsRoboTests
2017-02-21 14:12:57 -08:00
Fan Zhang
dfce62c507 Deprecate AppListPreference and AppListPrefWithSettings
- Convert ManageAssist into DashboardFragment
- Convert default assist pref to DefaultAppPickerFragment
- Add PreferenceController for each pref
- Add tests

Bug: 35203386
Test: make RunSettingsRoboTests

Change-Id: I0350a06cae7457809fb261e2d8ec99eda80cc50a
2017-02-21 13:01:00 -08:00
Stephen Chen
614e5c3e5c Add icons for Wi-Fi wakeup and notification settings toggles.
Bug:35350450
Test: visual inspection on device.
Change-Id: Idc826002da98675b7c2ba675db98cd8c30b76ab2
2017-02-21 12:17:46 -08:00
Daniel Nishi
422e7c354d Update the loading of info for the secondary users.
Bug: 34715777, 34225103
Test: Settings Robotest
Change-Id: I32bb15ad8bc866c1fd41728e56faa8b09ae11eb6
2017-02-21 12:08:28 -08:00
Daniel Nishi
dfed8a2acb Add support for visualizing secondary users.
This functionality adds the secondary users to the screen, but
currently does not populate the information for them. Once the
external stats query works, I will add a loader which will
populate this information.

This also does not cover work profiles. Support for that is
forthcoming.

Bug: 34715777, 34225103
Test: Settings Robotest
Change-Id: Ib9b692b214f5ce5d303dfd64516381443d4acebd
2017-02-21 12:07:23 -08:00
Dmitry Dementyev
75ae46d035 Add permission check to Intents used by Authenticator Settings.
Setting shares system uid and can be used to bypass different security
checks.
We add proper handling for intents which resolve toexported=true
activities with permission filed.
Added nested preferences filtering.

Bug: 33123882
Test: manual tests
Change-Id: Ib5bab7989fc44b4391f9050c6b18f81c58c09cf6
2017-02-21 11:05:45 -08:00
Lei Yu
aba2c95ae0 Merge "Refine battery text in battery header" 2017-02-21 18:40:53 +00:00
Doris Ling
d33651cf70 Merge "Recursively find preference in progressive disclosure." 2017-02-21 18:26:28 +00:00
Derek Sollenberger
e3aade4a67 Merge "Add developer setting to set the default GPU renderer." 2017-02-21 17:37:39 +00:00
Soroosh Mariooryad
e457e35ec0 Add ranking to SuggestionFeatureProvider interface.
Test: RunSettingsRoboTests
Fixes: b/35363662

Change-Id: Ib786e6b2733e2b151f73fb68e174a21aedb2b20a
2017-02-20 17:34:36 -08:00
Robin Lee
b50e681a21 Remove ParcelableString references
Even better would be to completely get rid of non-framework code using
this, and then even better than that would be to completely get rid of
all code using this.

Test: manual. open Settings > Security > Trusted Credentials before and after this change. Number of certificates should be the same. No crashes should happen in either case.
Change-Id: I4237e630b903eb04e6b572d6464a40d183b24276
2017-02-20 21:02:45 +00:00
Soroosh Mariooryad
25d8049bb2 Modifying setting suggestion logging to only log the shown items.
Previously if there was three suggestions in the suggestions view, all
three would be logged as shown, although by default only two of them are
shown and the third one is shown only if the view is expanded. Now, only
the actual shown items will be logged.

Test: RunSettingsRoboTests
Fixes: b/35348496

Change-Id: Ic3af7961b4713f48e63c51ac599cb55bf69975ff
2017-02-20 12:40:15 -08:00
Robin Lee
8b553ca15d Personal sounds override work sounds, not replace
To make it clear that the work choices will be preserved, and will be
restored after cancelling the setting instead of the personal sounds
being kept as-is.

Test: inspection (open sound settings, choose 'use personal profile sounds'). This is a strings change.
Bug: 34730524
Change-Id: I19953005d129000939fb3851148b2f837e2aa6c2
2017-02-20 18:17:17 +00:00
Anton Philippov
0f76385e13 Merge "Add tests for BackupSettingsActivity" 2017-02-20 12:36:18 +00:00
Matthew Fritze
b7b286cb89 Rank results that match the prefix of the first word higher
Differentiates the results that match the first word in
the title from matches farther into the title.

Change-Id: I69f9804a51d1c2b0e476b0f082d634b3a598997c
Fixes: 34975472
Test: make RunSettingsRoboTests
2017-02-18 22:22:29 +00:00
TreeHugger Robot
f1c80deab0 Merge "SearchView keyboard opens and closes appropriately" 2017-02-18 01:41:36 +00:00
TreeHugger Robot
c4dafb43d3 Merge "Add type service in settings advanced page." 2017-02-18 01:08:22 +00:00
TreeHugger Robot
46f850191f Merge "Change MaskableIconDrawable to AdaptiveIconDrawable" 2017-02-18 01:05:02 +00:00
TreeHugger Robot
76cf6f9a68 Merge "Fix problem with usb mode summary not updated correctly." 2017-02-18 01:00:00 +00:00
TreeHugger Robot
cb0993ff94 Merge "Move InputMethodAndSubtypeEnabler to SettingsLib and port to TV" 2017-02-18 00:21:25 +00:00
TreeHugger Robot
5985ff098d Merge "Log search result click and its rank." 2017-02-18 00:09:01 +00:00
Matthew Fritze
592e4d739b SearchView keyboard opens and closes appropriately
- Keyboard opens when Search View opens
- Keyboard closes on query text submit
- Keyboard closes when user scrolls through results

Change-Id: I7cef383a2799eeb456fbaa07b8577c88cd35a997
Fixes: 34723251, 35164545
Test: SearchFragmentEspressoTest, manual test requested from QA
2017-02-17 23:37:26 +00:00
TreeHugger Robot
76f2de1c56 Merge "Update string" 2017-02-17 23:36:48 +00:00
Doris Ling
21711681ea Fix problem with usb mode summary not updated correctly.
In UsbBackend, do not cache the usb state, but re-read it everytime when
we try to get the usb data mode.

Change-Id: I6f2863a59ee8df2c50901a630e3e145714c7dc46
Fix: 34234065
Test: make RunSettingsRoboTests
2017-02-17 15:22:13 -08:00
jackqdyulei
acc195fdde Add type service in settings advanced page.
Currently it only includes the gms service

Bug: 35317876
Test: RunSettingsRoboTests
Change-Id: I20a2a9d320efe4aed036552d450f59c89e81584a
2017-02-17 15:17:31 -08:00
Julia Reynolds
07eaca52f4 Merge "Hide incomplete feature." 2017-02-17 22:30:13 +00:00
Tony Mantler
4d27b2ce5b Move InputMethodAndSubtypeEnabler to SettingsLib and port to TV
Bug: 35315463
Test: adb shell am start -a android.settings.INPUT_METHOD_SUBTYPE_SETTINGS
Change-Id: I17e6e64ff2c01577d4036bccafe7d0b4ad1d5ca5
2017-02-17 14:04:40 -08:00
Fan Zhang
5b3197b986 Update string
Bug: 34975053
Test: Builds
Change-Id: I84e7b0fe88a146ce43149faf8cfbfe5d8d5030ce
2017-02-17 13:58:50 -08:00
jackqdyulei
e2fbdfefef Refine battery text in battery header
1. When there exists estimate time, show it, otherwise
show battery status label.
2. Change the summary based on whether it is charging.
(Estimated time left vs Time to full charge)

Bug: 35328749
Test: RunSettingsRoboTests
Change-Id: I64ee8acd248062b4effcfc58ed908be7d89621a3
2017-02-17 13:57:43 -08:00
TreeHugger Robot
07800b319d Merge "Add metric events triggers for new storage actions." 2017-02-17 20:48:34 +00:00
Hyunyoung Song
da6dac806b Change MaskableIconDrawable to AdaptiveIconDrawable
Test: $ make -j31 dist

Bug: 35399620
Change-Id: I2f6632ea31e23a46ef57af569eb55e5a42df5028
2017-02-17 11:34:49 -08:00
TreeHugger Robot
933a2b6d48 Merge "Blocks resources from adding headers that match settings" 2017-02-17 19:10:14 +00:00
Junda Liu
e633603223 Ignore orientation change to preserve ApnEditor. am: f414d58ddf am: 77f75b3859 am: 8db5e61fac
am: 3e24e46b39

Change-Id: Iab1a5a4812537a2d6415fc87ccd050283b0269e9
2017-02-17 18:17:43 +00:00
Junda Liu
7746cd0007 Ignore orientation change to preserve ApnEditor. am: f414d58ddf am: 77f75b3859 am: 1bc3adf38a
am: 7372d9d323

Change-Id: Iffbc4d8c5ea63355dba4b8c31c584d188a2b5a60
2017-02-17 18:17:27 +00:00
Junda Liu
3e24e46b39 Ignore orientation change to preserve ApnEditor. am: f414d58ddf am: 77f75b3859
am: 8db5e61fac

Change-Id: I0b00e7afb390fb91556f0abc5b2bfdee39af767f
2017-02-17 18:12:27 +00:00
Junda Liu
7372d9d323 Ignore orientation change to preserve ApnEditor. am: f414d58ddf am: 77f75b3859
am: 1bc3adf38a

Change-Id: Id8fa449ad8bc7f3b36c26ad2bfb0c8d79a04376e
2017-02-17 18:12:08 +00:00