Commit Graph

45256 Commits

Author SHA1 Message Date
Julia Reynolds
bd9eb14472 Merge "Notification summary updates" into pi-dev
am: 81c15c05c8

Change-Id: I110a4696b24a7fc58ced05f15a6b9c2728c7247c
2018-04-12 15:24:29 -07:00
Bill Yi
66384012c5 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Bug: 77897542
Change-Id: Ibe6564030f06ca559f4f4353c88746b8ab775da7
2018-04-12 22:19:49 +00:00
ryanywlin
751a3953da Shuffle sound settings UI arrangment
- Move "Ring volume" and "also viberate for calls" below to "Media volume"
- Add divider between "Media volume" and "Ring volume"
- Add divider between "also viberate for calls" and "Alarm volume"

Bug: 74130772
Test: rebuild
Change-Id: Ie274c0174d828a0804b8551760c407579585bd1b
2018-04-13 05:55:04 +08:00
Lei Yu
023b1e088a Merge changes from topic "anomaly_system_app" into pi-dev am: dc8fff76f3
am: 9122efebac

Change-Id: I384476edcb6ca9702a2895f6f5f4b55eb11cc86f
2018-04-12 14:12:13 -07:00
Lei Yu
2281b1f600 Change "Advanced battery usage" to "Battery usage"
Also update the char limit to 25 to make it less impossible
to happen in other language.

Bug: 77649015
Test: Screenshot
Change-Id: I4cdbfc576660aacaeff019bbbb88abb42af63daa
2018-04-12 14:04:35 -07:00
Doris Ling
0a66946d6b Use a different string for vpn summary.
- for legacy vpn config, we do not get the vpn name to show in the
preference summary, and we used to simply show "Connected" as the summary
text. However, the string was changed to include the connected device
name as the parameter. Change to use connected summary string that does
not requires any parameter.

Change-Id: Ia6191eb315f5f23e0e6bf8da2a9537c211e8188e
Fixes: 77618408
Test: make RunSettingsRoboTests
2018-04-12 14:04:10 -07:00
hughchen
5694e855b5 [automerger skipped] Merge "Implement previously connected device UI" into pi-dev am: 3e644756c3
am: 67110f471e  -s ours

Change-Id: I90eabbfa8cd5cccee3a6ddacd4039d11bb068e43
2018-04-12 13:53:25 -07:00
Lei Yu
9122efebac Merge changes from topic "anomaly_system_app" into pi-dev
am: dc8fff76f3

Change-Id: Icd9367fc1d43ce535fbd296f71f024ff68389eaa
2018-04-12 13:52:42 -07:00
TreeHugger Robot
81c15c05c8 Merge "Notification summary updates" into pi-dev 2018-04-12 20:43:10 +00:00
CY Cheng
f7e01e1294 Merge "Refactor airplane mode preference controller." into pi-dev am: 0375bbc709
am: 3d3e2609bc

Change-Id: I5e681d39a118bd88915815e4a27b561b57425171
2018-04-12 13:40:34 -07:00
hughchen
67110f471e Merge "Implement previously connected device UI" into pi-dev
am: 3e644756c3

Change-Id: I69c161005b7ec39fddc0e9784d41a6b5dac11d6d
2018-04-12 13:40:02 -07:00
Matthew Fritze
bcb5bdf06c Merge "Uniquely identify Slice intents" into pi-dev am: 45b6a9498c
am: 2fbb71614c

Change-Id: Iadb98d5cd4943a4762d1f2240d1d2a0f3dcc35e2
2018-04-12 13:31:55 -07:00
CY Cheng
3d3e2609bc Merge "Refactor airplane mode preference controller." into pi-dev
am: 0375bbc709

Change-Id: I63f97d6ad20cd0e4191d5d14559046ccfc6baf89
2018-04-12 12:09:34 -07:00
TreeHugger Robot
dc8fff76f3 Merge changes from topic "anomaly_system_app" into pi-dev
* changes:
  Add method to check if app has launcher activity
  Add system app check for anomaly detection.
2018-04-12 18:50:23 +00:00
TreeHugger Robot
3e644756c3 Merge "Implement previously connected device UI" into pi-dev 2018-04-12 18:23:58 +00:00
Matthew Fritze
2fbb71614c Merge "Uniquely identify Slice intents" into pi-dev
am: 45b6a9498c

Change-Id: I92b23fdb335364c3c5f5a7e5fb7c2936a7ec1b33
2018-04-12 10:55:15 -07:00
Julia Reynolds
f5d1f165eb Notification summary updates
- Fix app info summary
- Add configure notifications summary

Test: make -j RunSettingsRoboTests
Change-Id: Ic3c3036ee903fe7403032925a8145693807793d5
Fixes: 77598357
Fixes: 73018368
2018-04-12 13:49:34 -04:00
TreeHugger Robot
0375bbc709 Merge "Refactor airplane mode preference controller." into pi-dev 2018-04-12 17:44:04 +00:00
TreeHugger Robot
45b6a9498c Merge "Uniquely identify Slice intents" into pi-dev 2018-04-12 17:38:52 +00:00
Lei Yu
63795b2f5c Log app versionCode in anomaly detection
Change-Id: Ie760a4156b14b739279aa398bd1d2b8485449e91
Fixes: 77919142
Test: RunSettingsRoboTests
2018-04-12 10:32:08 -07:00
hughchen
aa31bd43a3 Implement previously connected device UI
* Move save device group to "Previously connected devices"

Bug: 74134939
Test: make -j60 RunSettingsRoboTests
Change-Id: Iff7894033df402d42dcc0ccaea6db3106edb7013
Merged-In: Iff7894033df402d42dcc0ccaea6db3106edb7013
2018-04-12 17:10:40 +00:00
Lei Yu
7d09e2ea68 Add method to check if app has launcher activity
This method should only used for system apps.

Change-Id: Id4109d8e223933269b8dae3aaa91b8a9186c527c
Fixes: 77477987
Test: RunSettingsRoboTests
2018-04-12 10:01:42 -07:00
TreeHugger Robot
f57f6aa9c7 Merge "Implement previously connected device UI" 2018-04-12 17:00:25 +00:00
Fan Zhang
289677f97f Switch from SI to IEC unit when formatting data usage bytes
- Created a new helper method DataUsageUtils.formatDataUsage() to
  format data usage bytes using IEC formatting.
- Switch from Formatter.formatFileSize() to DataUsageUtils.formatDataUsage()
  everywhere in datausage package.

Change-Id: I9323beed8bf5126b153fc9a3cdd9591c97ca6fd2
Bug: 76159924
Test: robotests
2018-04-12 09:52:35 -07:00
Jason Chang
a29ed7ef71 Merge "[SettingsLib] Update Utils APIs usage" 2018-04-12 12:44:04 +00:00
Lei Yu
a28b67ad81 Merge "Update the action for early warning tip." into pi-dev am: e6750d6c2d
am: ecf2de4624

Change-Id: I35614b4937c7d476c6d6b3c61bd6745819f67924
2018-04-12 03:28:22 -07:00
Lei Yu
ecf2de4624 Merge "Update the action for early warning tip." into pi-dev
am: e6750d6c2d

Change-Id: Iec30d5c2d9bc5f8e6065edb60a37e7cec35f1e65
2018-04-12 03:18:30 -07:00
TreeHugger Robot
e6750d6c2d Merge "Update the action for early warning tip." into pi-dev 2018-04-12 10:13:20 +00:00
Victor Chang
11d3c3a3de Merge "Shorten the strings in time zone picker menu" into pi-dev am: ee0679bb35
am: 1ad2205407

Change-Id: I4ba35038c9797c17789c30255926e9119167c7c5
2018-04-12 02:51:36 -07:00
Victor Chang
1ad2205407 Merge "Shorten the strings in time zone picker menu" into pi-dev
am: ee0679bb35

Change-Id: I9d587a9442dd3cabfab7ff95f6bf07d031341bed
2018-04-12 02:46:59 -07:00
Victor Chang
ee0679bb35 Merge "Shorten the strings in time zone picker menu" into pi-dev 2018-04-12 09:36:38 +00:00
CY Cheng
fee4807dc0 Refactor airplane mode preference controller.
- Convert inheritance from AbstractPreferenceController to
TogglePreferenceController.
- Register AirplaneModePreferenceController in XML.
- Decouple AirplaneModeEnabler with preference, leave the UI be
controled by PreferenceController.
- Add RoboTests test cases for AirplaneModePreferenceController.

Fixes: 67997339
Test: RunSettingsRoboTests
Change-Id: I7398943ed51345e014ee7aa774bfae1ca28632f1
2018-04-12 14:10:35 +08:00
Lei Yu
2aa48e18f1 Merge "Update battery settings strings" into pi-dev am: 17a463130e
am: 118f29591a

Change-Id: I9ec2b61b8d94c8f09f7e4a02de2b173193fa8a51
2018-04-11 20:38:23 -07:00
Lei Yu
118f29591a Merge "Update battery settings strings" into pi-dev
am: 17a463130e

Change-Id: I88ad1ad03b8fb00cfa3a31d7a913b810b38a2cfa
2018-04-11 20:33:21 -07:00
TreeHugger Robot
17a463130e Merge "Update battery settings strings" into pi-dev 2018-04-12 03:22:43 +00:00
hughchen
a05d1fc769 Implement previously connected device UI
* For fix the conflicts in pi-dev, cherry pick the commit 86d3e58c8d in
master and merge the conflict.
* Add @SearchIndexable in
PreviouslyConnectedDeviceDashboardFragment.java
* Move save device group to "Previously connected devices" preference

Bug: 74134939
Test: make -j60 RunSettingsRoboTests
Change-Id: Iff7894033df402d42dcc0ccaea6db3106edb7013
Merged-In: Iff7894033df402d42dcc0ccaea6db3106edb7013
2018-04-12 09:57:08 +08:00
Fan Zhang
be30190362 Switch from SI to IEC unit when formatting data usage bytes
- Created a new helper method DataUsageUtils.formatDataUsage() to
  format data usage bytes using IEC formatting.
- Switch from Formatter.formatFileSize() to DataUsageUtils.formatDataUsage()
  everywhere in datausage package.

Change-Id: I9323beed8bf5126b153fc9a3cdd9591c97ca6fd2
Merged-In: I9323beed8bf5126b153fc9a3cdd9591c97ca6fd2
Fixes: 76159924
Test: robotests
2018-04-11 18:22:55 -07:00
Lei Yu
689ac2e67d Merge "Add ui tests for restrict app tips" into pi-dev am: 79580c94a7
am: 48aac7f5d1

Change-Id: Ia9b4d3139ddc132b57eeb548f67dd41147c3ef15
2018-04-11 18:21:39 -07:00
Lei Yu
48aac7f5d1 Merge "Add ui tests for restrict app tips" into pi-dev
am: 79580c94a7

Change-Id: I87a25d00eaf8691d3318c67cce8734cf08eee4ae
2018-04-11 18:08:59 -07:00
Lei Yu
6c4c7ba0fe Add system app check for anomaly detection.
In this CL, don't blame system app in anomaly detection and also
add log for it.

Following CL will update it to also check whether this system app
has launch entry.

Bug: 77477987
Test: RunSettingsRoboTests
Change-Id: I97490b32bc42ec2f8e03ec2d82f7c8bf89f9c66f
2018-04-11 18:02:50 -07:00
Matthew Fritze
59e2d1fff9 Uniquely identify Slice intents
PendingIntents were being cached because they had the same
targets and would not differentiate on extras - thus all Slice
intents would go to the same destination as the first intent fired.

Adding the data stops the system from caching the intents.

Change-Id: Ifccab72ed482e22750422c5c36aa6d205c20ae3d
Fixes: 77650727
Test: robotests
2018-04-11 17:54:41 -07:00
Lei Yu
40bb1e8488 Update battery settings strings
1. Change "screenTime" to "lastFullChargeTime" in high usage dialog
2. Update "Background restriction" strings
3. Update footer string

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: I07c149123c4ee1a69dd81c9a9e6eaa5df69b60b4
2018-04-11 17:50:30 -07:00
TreeHugger Robot
79580c94a7 Merge "Add ui tests for restrict app tips" into pi-dev 2018-04-12 00:24:31 +00:00
Maurice Lam
8780cc8451 Merge "Fix landscape pattern enroll crash" into pi-dev am: e20f8934c9
am: f927d21d4c

Change-Id: I8da2a93ffb209f7748c14e58e50aa090969ab8da
2018-04-11 17:21:52 -07:00
Julia Reynolds
6c52f0b757 Merge "Add disabled checkbox preference" into pi-dev am: ccdecc664c
am: c57bb42dde

Change-Id: I158081c0690626bd81856e08f6fd77373da2050e
2018-04-11 17:17:42 -07:00
Mehdi Alizadeh
c768d05e1b Adds video to swipe up gesture am: a37c5b26a2
am: 899b915222

Change-Id: Id8e3c3aca23ad00355d1db0258acef91b7ea7739
2018-04-11 17:09:21 -07:00
Maurice Lam
f927d21d4c Merge "Fix landscape pattern enroll crash" into pi-dev
am: e20f8934c9

Change-Id: I9969382a8d2bb28719537fe6c5db5f5bc9b3f5a0
2018-04-11 16:56:21 -07:00
TreeHugger Robot
e20f8934c9 Merge "Fix landscape pattern enroll crash" into pi-dev 2018-04-11 23:43:54 +00:00
Julia Reynolds
c57bb42dde Merge "Add disabled checkbox preference" into pi-dev
am: ccdecc664c

Change-Id: I7f733b647c94011d6fef49fa84267856f570c3e9
2018-04-11 16:20:49 -07:00
Mehdi Alizadeh
899b915222 Adds video to swipe up gesture
am: a37c5b26a2

Change-Id: I603ab692396126db4993c2e72969da26a122ad32
2018-04-11 16:10:06 -07:00