Commit Graph

34096 Commits

Author SHA1 Message Date
Lei Yu
e923b4795b Merge "Add battery stats perference in battery settings page." 2017-02-22 18:44:39 +00:00
Antony Sargent
4cf650b6b7 Merge "Add "Instant apps" filter to app listing" 2017-02-22 18:40:44 +00:00
Fan Zhang
686f0a83d7 Update string char limit
Change-Id: I79bd24ba548cd2b9f37d11f30af3076cdc394412
Fix: 35449637
Test: builds
2017-02-22 09:30:43 -08:00
Bill Yi
55ba636186 Import translations. DO NOT MERGE
Change-Id: Ied9c4535fc4e6739099864f17584108b1d938c50
Auto-generated-cl: translation import
2017-02-22 08:50:31 -08:00
Bill Yi
7fff670437 Import translations. DO NOT MERGE
Change-Id: Id90042e2ffb82fb6d438d1999f5c30f6ea2224be
Auto-generated-cl: translation import
2017-02-22 08:45:15 -08:00
Anton Philippov
c1a7723c17 Merge "Remove intent-filter from PrivacySettingsActivity" 2017-02-22 11:17:03 +00:00
jackqdyulei
3934722439 Add battery stats perference in battery settings page.
Add a preferenceGroup at the bottom of the page, which contains
Screen and Cell usage data.

Bug: 35305983
Test: RunSettingsRoboTests & Screenshot
Change-Id: Ida6e92ddbd7155ec974a2f04c6d6d02ab9dab210
2017-02-21 20:47:40 -08:00
TreeHugger Robot
755a9dea23 Merge "Add logging to trace when force stop button is clicked" 2017-02-22 03:59:34 +00:00
TreeHugger Robot
a5b911f9ce Merge "Test for AsssitSettingObserver" 2017-02-22 03:54:56 +00:00
TreeHugger Robot
4e1477b60e Merge "Update Security & screen lock preference" 2017-02-22 03:08:12 +00:00
jackqdyulei
9d5412f9ea Remove refresh menu icon in battery settings
Bug: 35645326
Test: RunSettingsRoboTests
Change-Id: I87f7da93cfb7a5ca46718de4acd33422fe42b9bf
2017-02-21 19:02:33 -08:00
Maurice Lam
bdfc27f9ac Update GLIF button styles
- The negative/secondary button styles now have the correct alpha
  for the touch highlight. (24%)
- The negative/secondary buttons now align correctly based on their
  labels text, instead of based on the bounds of the touch highlight.
- Fixed issues with button shadows being cropped.

Test: Manual inspection. Existing tests pass.
Change-Id: I261e504d661d7a53eda3561a26942ea11ba0d429
2017-02-21 18:24:39 -08:00
Fan Zhang
5ee552193b Test for AsssitSettingObserver
Change-Id: I4896a097cd9d898829be04098b6e31766af39c7a
Fix: 35641857
Test: make RunSettingRoboTests
2017-02-21 18:03:26 -08:00
TreeHugger Robot
d0db18b3c9 Merge "Remove a11y speak passwords settings." 2017-02-22 01:57:45 +00:00
Fan Zhang
8b1bd6712f Merge "Fix crash when cold start settings." 2017-02-22 01:55:52 +00:00
Fan Zhang
20c5812a65 Add logging to trace when force stop button is clicked
Bug: 35633637
Test: manual
Change-Id: If7bcf7a3265d1eb75b7f58337f4757dfcbb0ba2f
2017-02-21 17:49:12 -08:00
TreeHugger Robot
c45c49563f Merge "Add toggle in menu to show/hide hidden apps" 2017-02-22 01:46:53 +00:00
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