Commit Graph

13615 Commits

Author SHA1 Message Date
TreeHugger Robot
bc6ed505d7 Merge "Extract and refactor logic to determine the data usage summary mark." 2016-08-23 21:24:42 +00: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
Fan Zhang
b923918b7c Force searchview to stretch entire actionbar.
Bug: 30747805
Change-Id: If702ab934dbed6ee329b87dde565c1e381136849
2016-08-22 13:59:59 -07: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
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
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
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
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
Doris Ling
a36e4ca656 Merge "Fix crash in Storage app info when the corresponding app is uninstalled in the background." 2016-08-16 18:53:59 +00:00
TreeHugger Robot
dfeb34c8a8 Merge "Data Usage summary creates a dialog to change data warning level" 2016-08-16 17:36:41 +00:00
Doris Ling
6742eb39ee Merge "Fix crash when go to Data usage->Cellular data usage->Removed apps and users." 2016-08-16 17:20:58 +00:00
Matthew Fritze
9fad289ca9 Data Usage summary creates a dialog to change data warning level
Clicking the Data usage summary preference will open the same dialog
that billing cycle does to modify data warning level. The Dialog
was abstracted to be used outside of the Billing Cycle settings
fragment.

Change-Id: I70398d4656b6da4233b2bfa0da6ffa7402ead69b
Fixes: 26932938
2016-08-16 09:17:00 -07:00
TreeHugger Robot
d2c50b9fb9 Merge "Remove duplicated call to authenticationSucceeded()" 2016-08-16 13:55:39 +00:00
Robin Lee
bba4452682 Merge "Be more defensive on failure to disconnect legacy VPNs" 2016-08-16 13:27:02 +00:00
Rubin Xu
f01b60a342 Remove duplicated call to authenticationSucceeded()
Bug: 30728557
Change-Id: Ib4678f1c92b252c0afc6e71665dc8be460a20a9e
2016-08-16 12:39:19 +00:00
Doris Ling
645aecde27 Fix crash when go to Data usage->Cellular data usage->Removed apps and
users.

Ensure that the user info is not null before using it to retrieve user
icon and label. If the user info is null, use the default label.

Change-Id: If402844d472a15f04c812f20c1c761b3a189a638
Fixes: 29619032
2016-08-15 18:27:55 -07:00
TreeHugger Robot
0b15a227fc Merge "Fixed storage calculation when SD card is adopted as internal storage." 2016-08-16 00:54:09 +00:00
Fan Zhang
0436ed7620 Merge "Hide default phone preference when there is no phone app." 2016-08-16 00:32:28 +00:00
Fan Zhang
e162cbbd69 Don't dial any number if DIAL intent is not supported. am: 6098913d4b am: 9d478bef16
am: 67a496221e

Change-Id: I3a92f89fe4e2dc527c994050556253ec834ca1e6
2016-08-15 23:48:34 +00:00
Fan Zhang
67a496221e Don't dial any number if DIAL intent is not supported. am: 6098913d4b
am: 9d478bef16

Change-Id: I6726f4551a1ca865c225d2c6d2bfb0b1e6a4f00a
2016-08-15 23:44:32 +00:00
Fan Zhang
9d478bef16 Don't dial any number if DIAL intent is not supported.
am: 6098913d4b

Change-Id: Ia00c08773bb69508f274739043b6c0b00015358e
2016-08-15 23:40:39 +00:00
Felipe Leme
c53410c411 Fixed storage calculation when SD card is adopted as internal storage.
A SD Card can be set as internal storage, in which case its total must
be added to the total internal storage size.

Prior to this change, the total internal storage size was hardcoded as
the value returned by Storage Manager.

Also fixed the storage summary total to exclude portable devices.

Fixes: 30689428
BUG: 30742322

Change-Id: I1e33038eeebc91f3c525a387a97987391c10f2f9
2016-08-15 16:32:54 -07:00
Fan Zhang
6098913d4b Don't dial any number if DIAL intent is not supported.
Bug: 30868123
Change-Id: Ieb971fdd86011ef0699fdbcfec1ecce2112d0209
2016-08-15 13:24:18 -07:00
Lei Yu
b23a7c4c8e Merge "Fix the nullpointer bug in monkey test." 2016-08-15 19:58:58 +00:00
Fan Zhang
bc6fc60683 Hide default phone preference when there is no phone app.
Bug: 29859821
Change-Id: Ia6de0de04d74f4f947243f38ac2bd190ae586401
2016-08-15 12:48:04 -07:00