Commit Graph

14339 Commits

Author SHA1 Message Date
Fan Zhang
1ba24ca792 Set oem unlock switch to reflect the actual state of device
Bug: 30772025
Change-Id: I143ceafb36f2f2091683b29d02ee64c07e44bb15
(cherry picked from commit e98178bd58)
2016-08-22 19:41:42 +00:00
Fan Zhang
0c58131c37 Have a fallback package name when matching targetPackage.
Bug: 29774397

When figuring out best match package name, we should have a fallback.
Otherwise sometimes we get empty package names, causing problems when
trying to display memory usage for each app.

Change-Id: I9cc4205098bb7c727a3063b2275fb464c8153097
(cherry picked from commit d5ff4c4292)
2016-08-22 19:39:10 +00:00
Fan Zhang
89d7bca166 When click conditional's title, expand/collapse content.
Bug: 30200101

It used to lead user to detailed setting for that conditional. This
leaves some confusion about which click target goes to where.

Change-Id: Ic9525ace65ca488f4e709576fb1ec96a1cb99938
(cherry picked from commit a2db2ca8fa)
2016-08-22 18:30:16 +00:00
Fan Zhang
dc1e04035b Hide default phone preference when there is no phone app.
Bug: 29859821
Change-Id: Ia6de0de04d74f4f947243f38ac2bd190ae586401
(cherry picked from commit bc6fc60683)
2016-08-22 18:17:22 +00:00
Meng Wang
5ea4bb2f43 DO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
Bug: 30947921
Change-Id: I80240fbd912afa9a40cee38070c4e77d5e9d6ae9
(cherry picked from commit 4436d6fe16)
2016-08-20 22:47:08 +00:00
Matthew Fritze
1051fe1e14 Stop apps with Storage Managers from launching activity when disabled
An app with a storage manager would be able to launch Manage Storage
from application settings, but when the app was disabled, the
activity would be null.

Test: In order to properly unit test this function, a large redesign is 
needed in this class, and is outside the scope of this bug.

Change-Id: Ia6b78bc6761bac8b701c904a6e438bbd951b63e8
Fixes: 30457616
(cherry picked from commit 8f17fcaa1d)
2016-08-20 00:34:31 +00:00
Felipe Leme
654312fa6a Fixed storage calculation when SD card is adopted as internal storage. am: 454d7fcca8
am: 15ebe1fcc3

Change-Id: I67c38af3e0759501cf71e431375417388b9a2474
2016-08-19 23:25:19 +00:00
Felipe Leme
15ebe1fcc3 Fixed storage calculation when SD card is adopted as internal storage.
am: 454d7fcca8

Change-Id: I4fa4a4c489b3f65c6aab2f012d0898442dda4c2a
2016-08-19 23:04:03 +00:00
TreeHugger Robot
4fd371d344 Merge "Fixed storage calculation when SD card is adopted as internal storage." into nyc-mr1-dev 2016-08-19 22:40:08 +00:00
Doris Ling
7574b64910 Fix crash when selecting AppInfo for uninstalled app from Recents.
When an app is uninstalled, the corresponding app info is not removed
fromi the Recents tasks. If user selects that app info entry from the
recents tasks, it will failed to retrieve the app detail as the package
is already removed.

Add the package removed event listener in InstalledAppDetails such
that when the package has been unintalled, its app info task will also
be removed from Recents.

Change-Id: I771507f8f53017f87eda31ddef77a95e30921cbf
Fixes: 28671923

Fix app info crashes when package is uninstalled from terminal.

Move start listening to the package removed intents to onCreate()
and continue listening throughout the whole lifecycle of the activity so
that if user unintall the package in the background, it will still be
notified.

Change-Id: I889b0ea3e1245be83750d73349ed3a0f85a51783
Fixes: 28671923

Fix crash in Storage app info when the corresponding app is uninstalled
in the background.

1. Move the handling for package removal from InstalledAppDetails to
AppInfoBase so that all app info subclass will now finish
correspondingly if the package is uninstalled.
2. In InstalledAppDetails, when handling package removal, will also
finish the app info fragment that it starts earlier.

Change-Id: Id741e7475414045040dd0797ff3bc63ac214f400
Fixes: 27774473
2016-08-19 14:15:38 -07:00
jackqdyulei
7a78213776 Make number in dialog highlighted
Bug: 28787910

Change-Id: Idf6767156c0a3dafffb62b9a41ee81f6a9712a2f
(cherry picked from commit c54973b8d8)
2016-08-19 18:49:05 +00:00
jackqdyulei
409c4708c1 Fix the nullpointer bug in monkey test.
Bug: 30632031

Change-Id: I295bcc804a5e847f99577353c888caa08dc8c7ef
(cherry picked from commit a2938d2a2f)
2016-08-19 18:46:15 +00:00
Salvador Martinez
12c5208ad0 can open settings with support tab by default
Changes were made to the two files to allow users to provide
an argument in the intent for the settings activity. This
argument allows you to specify if you want the summary tab
or support open on startup.

Fixes: 30233920
Change-Id: I4745a0f75ea6a60a22381f5e58f2fac3836d86b9
(cherry picked from commit 2368e548e6)
2016-08-19 18:15:14 +00:00
Salvador Martinez
5c0063af7e Prevent wifi icon from disappearing
Made changes to WifiSettings that customizes
the preference icon so that the icon is never
null. This greatly reduces jittering.

Bug: 29979747
Change-Id: I3d2767310513389c09a37e34674a304278f4d0de
(cherry picked from commit 47568de003)
2016-08-19 18:07:46 +00:00
Salvador Martinez
d4a6768880 Disabled BSM mode switch when plugged in
Battery Saver mode can no longer be toggled
when the device is plugged in. Additionaly,
A content description was added to the switch
so that talkback says something when it is single
tapped.

Bug: 30083279
Change-Id: Id901598dbe13c443cae0b32769a2e3ef50428c08
(cherry picked from commit b9ab480a29)
2016-08-19 17:59:27 +00:00
André Lago
6ecc414e77 Merge "[Settings] Set different ringtones at work profile" 2016-08-19 17:02:03 +00:00
Fan Zhang
5f79ae9677 Move SharedPreferenceLogger to instrumentation package.
Bug: 30914916
Test: SettingsUnitTests and RunSettingsRoboTests

- Added interface to abstract logger
- Added test for SharePrefLogger
- Moved Existing tests for instrumentation to robotests.

Change-Id: I2b431ea4b0fd09d0f11389d8b9181448f08a52c5
2016-08-18 17:38:25 -07:00
TreeHugger Robot
e0bfd58a22 Merge "Delete some useless classes." 2016-08-19 00:14:55 +00:00
Fan Zhang
061ebd2924 Delete some useless classes.
Change-Id: I219d8740f8d3c235630fa503f35a00986cba8ce3
Test: manual compile and launch app.
2016-08-18 15:54:03 -07:00
Ajay Panicker
0493302a06 Merge "Do not allow apps to cause Bluetooth to be discoverable forever" am: 692ad7c9ec
am: 717d9f205a

Change-Id: I1c4f627f6792109db1fec087855962bf4f635b7c
2016-08-18 22:30:51 +00:00
Ajay Panicker
717d9f205a Merge "Do not allow apps to cause Bluetooth to be discoverable forever"
am: 692ad7c9ec

Change-Id: I60f576fee6222d0917ce845dd0bc071817d26009
2016-08-18 22:27:24 +00:00
Meng Wang
ed28a448fa WiFiCallingSettings: hide wfc mode preference if not editable am: 4436d6fe16 am: f1788b502e
am: d2eed8a642

Change-Id: I3b379e5e588033903e6dee021bb6ec74850ce5cc
2016-08-18 22:15:18 +00:00
Meng Wang
d2eed8a642 WiFiCallingSettings: hide wfc mode preference if not editable am: 4436d6fe16
am: f1788b502e

Change-Id: I67bb75cf7b453d9ca7e5a6a47dc16fbf074fa747
2016-08-18 22:11:37 +00:00
Ajay Panicker
9661c72700 Do not allow apps to cause Bluetooth to be discoverable forever am: 6dcab67c0c am: 091986f33a
am: c6f63a807f

Change-Id: I541318298961a88cf55d36769ffc4348d41b62fc
2016-08-18 22:09:10 +00:00
Meng Wang
f1788b502e WiFiCallingSettings: hide wfc mode preference if not editable
am: 4436d6fe16

Change-Id: Ica966b8306afd541521b0e7f65c68019f4c692b4
2016-08-18 22:08:27 +00:00
Ajay Panicker
c6f63a807f Do not allow apps to cause Bluetooth to be discoverable forever am: 6dcab67c0c
am: 091986f33a

Change-Id: I2231d4bb2d339bbcf4a248e1702c3efae82c544d
2016-08-18 22:01:26 +00:00
TreeHugger Robot
f30ef19dc3 Merge "WiFiCallingSettings: hide wfc mode preference if not editable" into nyc-mr1-dev 2016-08-18 21:59:17 +00:00
Ajay Panicker
091986f33a Do not allow apps to cause Bluetooth to be discoverable forever
am: 6dcab67c0c

Change-Id: Ifaef229a60b74bb2708159232fe8f6792ded7647
2016-08-18 21:57:51 +00:00
Patrick Tjin
3025ddd786 Remove duplicate KEY_DEVICE_MODEL string set
Change-Id: I120a4aec1b04f4ae345e247f8f6c92b764b189f9
2016-08-18 14:38:45 -07:00
TreeHugger Robot
73f857ce21 Merge "Stop apps with Storage Managers from launching activity when disabled" 2016-08-18 21:30:41 +00:00
TreeHugger Robot
b0e8f67389 Merge "Log visibility change for all fragments." 2016-08-18 21:06:00 +00:00
Fan Zhang
6507613ebc Log visibility change for all fragments.
Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
2016-08-18 14:04:13 -07:00
Ajay Panicker
3c1149871d Do not allow apps to cause Bluetooth to be discoverable forever
Trying to set a discoverable timout of 0 for Bluetooth will now
not allow bluetooth to be discoverable forever.

Bug: 28177801
Change-Id: Icfa03e2100f8e7f31415ebab39889b9ec32e6c77
(cherry picked from commit 6dcab67c0c)
2016-08-18 13:28:27 -07:00
Ajay Panicker
6dcab67c0c Do not allow apps to cause Bluetooth to be discoverable forever
Trying to set a discoverable timout of 0 for Bluetooth will now
not allow bluetooth to be discoverable forever.

Bug: 28177801
Change-Id: Icfa03e2100f8e7f31415ebab39889b9ec32e6c77
2016-08-18 13:19:06 -07:00
Matthew Fritze
8f17fcaa1d Stop apps with Storage Managers from launching activity when disabled
An app with a storage manager would be able to launch Manage Storage
from application settings, but when the app was disabled, the
activity would be null.

Test: In order to properly unit test this function, a large redesign is 
needed in this class, and is outside the scope of this bug.

Change-Id: Ia6b78bc6761bac8b701c904a6e438bbd951b63e8
Fixes: 30457616
2016-08-18 20:01:54 +00:00
Meng Wang
4436d6fe16 WiFiCallingSettings: hide wfc mode preference if not editable
Bug: 30947921
Change-Id: I80240fbd912afa9a40cee38070c4e77d5e9d6ae9
2016-08-18 12:19:01 -07:00
TreeHugger Robot
a8c0d42ceb Merge "Remove permission review build property - settings" 2016-08-18 00:56:36 +00:00
Julia Reynolds
68ebc7019c Display days of week in locale order. am: 0bb60ada96 am: c3997cbae1
am: 6a710906a7

Change-Id: I3e22b4dbe5c96e5a1ff674c0ab3736f3d3ec81fd
2016-08-18 00:50:15 +00:00
Fan Zhang
d945f08aeb Load default data warning value instead of hardcode it. am: 688ad857e8 am: 2ef1750fff
am: ddb3407dd5

Change-Id: If031dc6ffb6fad840d514f16878a3421f358eee8
2016-08-18 00:06:42 +00:00
Svet Ganov
bc13ca0f30 Remove permission review build property - settings
Change-Id: I2f480642c35b14c4db85878eb8deddd3c4001856
2016-08-17 12:23:30 -07:00
Julia Reynolds
6a710906a7 Display days of week in locale order. am: 0bb60ada96
am: c3997cbae1

Change-Id: Ic8837b2b5c1985910a02edf62316597bdff87122
2016-08-17 19:04:35 +00:00
Fan Zhang
ddb3407dd5 Load default data warning value instead of hardcode it. am: 688ad857e8
am: 2ef1750fff

Change-Id: I1b33b9e40e0daf6b489a0662f7b14631b6899d7b
2016-08-17 18:31:20 +00:00
Julia Reynolds
c3997cbae1 Display days of week in locale order.
am: 0bb60ada96

Change-Id: I9c6cb0b0947d8d313fa5794185fbe119cfa7725a
2016-08-17 18:11:43 +00:00
Fan Zhang
2ef1750fff Load default data warning value instead of hardcode it.
am: 688ad857e8

Change-Id: Ie982559572c96da6ba0bb9276f4ba974936b418f
2016-08-17 17:39:24 +00:00
Julia Reynolds
8d9ade8b9c Merge "Display days of week in locale order." into nyc-mr1-dev 2016-08-17 16:42:25 +00:00
Tony Mantler
4ec4237b60 Merge "Fix Wifi screen updating" 2016-08-17 15:59:56 +00:00
Salvador Martinez
b373e5cf0c Merge "Prevent wifi icon from disappearing" 2016-08-16 23:37:40 +00:00
TreeHugger Robot
3e48210a1a Merge "Clean up some unnecessary inheritance." 2016-08-16 23:18:06 +00:00
Fan Zhang
10ad09b658 Clean up some unnecessary inheritance.
Bug: 30681529
Change-Id: I84fa1085cc18b167d506dec3b3054d9f74d3d3e7
2016-08-16 14:53:48 -07:00
Fan Zhang
688ad857e8 Load default data warning value instead of hardcode it.
Bug: 30898071
Change-Id: I36f3669ca07862476c778aabb1290f3ceb3afc92
2016-08-16 14:14:21 -07:00