Commit Graph

45678 Commits

Author SHA1 Message Date
HJ ChangLiao
3b7f08d1ee Add intent receiver in BatterySaverCondition
Receive ACTION_POWER_SAVE_MODE_CHANGING
to listen state and update immediately.

Change-Id: Iff2ebb262d95f43d0c970b32f326e3a3e6981a2a
Fixes: 78104542
Test: make RunSettingsRoboTests
2018-04-24 11:12:29 +08:00
George Huang
bb2c8a3147 Merge "Fix RTL alignmnet of "eSIMs" in "Erase all data" page." 2018-04-24 02:28:35 +00:00
Doris Ling
d63e19aa1d Fix footer text not translated in Magnification settings. am: b0877b390d
am: 84506b36c5

Change-Id: Iab1c7df7fb56b76f3dcacc13608d23bbdcfeda51
2018-04-23 19:00:53 -07:00
Doris Ling
84506b36c5 Fix footer text not translated in Magnification settings.
am: b0877b390d

Change-Id: I3ad2795e60b3f2147f9611b54b014aa491077ce7
2018-04-23 18:49:08 -07:00
Doris Ling
b0877b390d Fix footer text not translated in Magnification settings.
- pass in the summary res id instead of the actual text when building
the launch bundle for the magnification settings.
- remove the title argument as we are passing the title res already,
which takes precedence.

Change-Id: I4ba624e1d9722aa980ea94c306df9a015a159555
Fixes: 78126057
Test: run i18nscreenshots
2018-04-23 17:07:32 -07:00
Salvador Martinez
be6a844a06 Check if boxes still available when restoring state
Apparently when the device is idle long enough the system will clean
up the dialog view for the hotspot band preference. This will cause
restore state to fail once it decides to pause the activity. To avoid
this we should make sure the boxes are not null.

Test: robotest
Bug: 78445411
Change-Id: I2a82b01f894f62be6c5209c78faddc4089aa6301
2018-04-23 17:07:29 -07:00
TreeHugger Robot
ddd0f98c75 Merge "Use entity header to show account name in sync detail page" 2018-04-23 23:35:23 +00:00
TreeHugger Robot
5f1a6a94cb Merge "Create a new string for keyboard disconnected state" 2018-04-23 23:00:37 +00:00
Jason Monk
0ef0c367e9 Add auto-granting of slice permissions
Allow things that can read the index to access slices too.

Test: existing tests unaffected
Bug: 77313888
Change-Id: I54c4b89eefb4354aa6b7dcafb7ac09dc96cbdbeb
2018-04-23 18:42:21 -04:00
Fan Zhang
11e8d2f293 Use entity header to show account name in sync detail page
Also removed a bunch of outdated layout and drawables.

Change-Id: I38094d72b84fab1309163f641c4019349f5d6ee7
Fixes: 77657624
Test: visual
2018-04-23 15:25:32 -07:00
Philip P. Moltmann
952004c072 Change references to old loadSafeLabel method
... to prevent proliferation of the method via copy+paste.

Bug: 77964730
Test: Built
Change-Id: I663879dbdf94c4c5e7d1146028fd5ff7610a1e44
2018-04-23 15:13:40 -07:00
Salvador Martinez
f0fce68a9b Merge "Disable hidden network spinner on existing networks" into pi-dev am: ac951a69aa
am: 062dbc2054

Change-Id: I29b27335730594d70805a14ac74d948d6dbef509
2018-04-23 15:11:47 -07:00
Fan Zhang
ee3b74a61f Create a new string for keyboard disconnected state
Change-Id: I454bbb3b8e0ee22c0f7a5a340b86dfd5607de86e
Fixes: 77957016
Test: robotests
2018-04-23 14:59:19 -07:00
TreeHugger Robot
7f48b1293a Merge "TrustAgentSettings use DashboardFragment" 2018-04-23 21:57:05 +00:00
Salvador Martinez
062dbc2054 Merge "Disable hidden network spinner on existing networks" into pi-dev
am: ac951a69aa

Change-Id: I2fcd1b9dbd807dee783ea0027ab7c9b8e2ff369e
2018-04-23 14:55:19 -07:00
TreeHugger Robot
ac951a69aa Merge "Disable hidden network spinner on existing networks" into pi-dev 2018-04-23 21:38:55 +00:00
Lei Yu
1ddcf81ddc Update insert method for battery database am: 4bfbaa6047
am: 71dca7d131

Change-Id: Id7d1247efd12ead31584e46126108b5370bd1101
2018-04-23 14:37:30 -07:00
Lei Yu
8ae849a8a6 Add primary key for anomaly database. am: 0fcddc77c7
am: 8870486f65

Change-Id: Ic89ea460dd33f740b3c7fe66cd0cbdd4de84e1ad
2018-04-23 14:37:11 -07:00
Lei Yu
71dca7d131 Update insert method for battery database
am: 4bfbaa6047

Change-Id: I69bed4d6ae38dc101878e342e14aa33199f2e810
2018-04-23 14:28:14 -07:00
Lei Yu
8870486f65 Add primary key for anomaly database.
am: 0fcddc77c7

Change-Id: I92c7aae2bf77c31863fa1f8191bec104f73097b4
2018-04-23 14:27:59 -07:00
Mill Chen
fc64a6c8ad TrustAgentSettings use DashboardFragment
- Remove dummy preference from trust_agent_setting.xml.
- Build a controller to generate/manage a list of preferences.
- Move some logics to the controller and add tests.

Bug: 73899467
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.security
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.search
Test: atest SettingsGatewayTest UniquePreferenceTest
Change-Id: Ideae0c1e7311d7647cf522e01592822e565a0ff7
2018-04-23 13:36:45 -07:00
Lei Yu
4bfbaa6047 Update insert method for battery database
1. Add conflict code to ignore the confliction and return -1 when
insert fails.
2. Add boolean return value to show whether insert sucessfully
3. Add unit test. We don't write robo test because robolectirc use
"update" to shadow "insert" operation, which returns the wrong data.

Bug: 77968649
Test: SettingsUnitTest
Change-Id: Ibd3b53cdb1796d74ea4a2ca1f067e2b302b939e9
2018-04-23 13:13:56 -07:00
Lei Yu
0fcddc77c7 Add primary key for anomaly database.
In this case it won't insert the duplicate data. We don't do migration since
anomaly database only contains transient data.

Bug: 77968649
Test: test still pass
Change-Id: I638564d89ead008ec184b9a4db137436d47df5bc
2018-04-23 13:08:33 -07:00
jackqdyulei
02aaca9529 Fix the wrong import
Use androidx.annotation.VisibleForTesting

Test: Build
Change-Id: I666118ac61c6ba36391203af0a5b51dc02024793
2018-04-23 11:17:52 -07:00
Salvador Martinez
35b76437e0 Disable hidden network spinner on existing networks
We only want this to be modifiable if you are adding a network
manually, so this CL disables it for existing networks. You
can still see what the spinner is set to though.

Test: robotests
Bug: 78436456
Change-Id: If660e432eca2dabf5bd16881368657ee89fe5a57
2018-04-23 10:50:22 -07:00
TreeHugger Robot
b1f1ebad89 Merge "Reload APNs setting page when receive the intent ACTION_SUBSCRIPTION_CARRIER_IDENTITY_CHANGED" 2018-04-23 17:48:12 +00:00
Lei Yu
fca1b345cc Merge "Fix bugs in auto restriction." into pi-dev am: f6e2c19fcc
am: a9e4d4a42a

Change-Id: If82969696eb492ea3875a0e0fb92f038024f00f9
2018-04-23 10:13:31 -07:00
Lei Yu
58625937e3 Merge "Fix the bug using wrong TimeUnit" into pi-dev am: 10280a53b0
am: a4ef6f51be

Change-Id: I6585d866d4a8e2c54783a874d09821dc727e4941
2018-04-23 10:12:29 -07:00
Lei Yu
69c370f594 Don't show high usage tip when device is charing
The summary is "Battery may run out soon", it doesn't make sense
when device is charging.

Change-Id: I27394c8a75dac4dcad171e5e215102d39cb33546
Fixes: 78261389
Test: RunSettingsRoboTests
2018-04-23 10:10:20 -07:00
Lei Yu
a9e4d4a42a Merge "Fix bugs in auto restriction." into pi-dev
am: f6e2c19fcc

Change-Id: I2fd187d163c789ade85c40e00d44f58fea18d0be
2018-04-23 10:09:08 -07:00
Lei Yu
a4ef6f51be Merge "Fix the bug using wrong TimeUnit" into pi-dev
am: 10280a53b0

Change-Id: I8d90eec324ddfcb0123247e2e0e37aa6f6f94ab8
2018-04-23 10:08:33 -07:00
Lei Yu
f6e2c19fcc Merge "Fix bugs in auto restriction." into pi-dev 2018-04-23 17:03:39 +00:00
Lei Yu
10280a53b0 Merge "Fix the bug using wrong TimeUnit" into pi-dev 2018-04-23 16:59:47 +00:00
Pavel Grafov
2548326afc Merge "Pick default notification setting for work profile" into pi-dev am: bb839f81e3
am: 0bdd7cf4f2

Change-Id: Id9c0d04e816f891df7e180974af104edac04905e
2018-04-23 09:51:49 -07:00
Pavel Grafov
0bdd7cf4f2 Merge "Pick default notification setting for work profile" into pi-dev
am: bb839f81e3

Change-Id: I8ccd32b12b9da892b5f38d4a95e3217bc8183dcc
2018-04-23 09:48:26 -07:00
TreeHugger Robot
bb839f81e3 Merge "Pick default notification setting for work profile" into pi-dev 2018-04-23 16:38:43 +00:00
George Huang
2ee0e2960d Fix RTL alignmnet of "eSIMs" in "Erase all data" page.
"eSIMs" is not a RTL string, so it will align to left even we change to
RTL language like Urdu. We must set the textDirection of TextView to
"locale" to force it follow locale's direction. We don't use
textAlignment to set string direction because it contains list bullets,
and list bullets will still align to left.

Change-Id: I0eea2bed9f324bb071e413673227839b830921cf
Fixes: 77946796
Test: visual
2018-04-23 11:37:26 +08:00
Bill Yi
159a9d3b42 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev am: 77e716e463 -s ours
am: 993bc3fcc6  -s ours

Change-Id: Ie3f3ccfe4883b4c03787305b49886babaad498b0
2018-04-20 22:17:53 -07:00
Bill Yi
993bc3fcc6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 77e716e463  -s ours

Change-Id: I9696a4c10e97d66c36a4eaca2c1947cb528ecb01
2018-04-20 22:13:51 -07:00
TreeHugger Robot
77e716e463 Merge "Import translations. DO NOT MERGE" into pi-dev 2018-04-21 05:09:44 +00:00
TreeHugger Robot
cc821bc131 Merge "Import translations. DO NOT MERGE" 2018-04-21 04:58:43 +00:00
Fan Zhang
b1a9222dfb [automerger skipped] Merge "Catch exception when failing to create slice" into pi-dev am: 524babb389
am: f060f89b6f  -s ours

Change-Id: I0ae2d9494634c7bb98b28a9022e4177f54a6414e
2018-04-20 20:37:34 -07:00
Matthew Fritze
04926f35b7 Merge "Add keywords to Slices" into pi-dev am: 2f911e2e9e
am: 21521826d9

Change-Id: I38d9efabcdecf3c40f1af28ecd167e58c2586ca7
2018-04-20 20:27:02 -07:00
Fan Zhang
f060f89b6f Merge "Catch exception when failing to create slice" into pi-dev
am: 524babb389

Change-Id: Iecb03d8889bb0a1b6f6f43f3b28070bfcc429dff
2018-04-20 19:24:45 -07:00
TreeHugger Robot
524babb389 Merge "Catch exception when failing to create slice" into pi-dev 2018-04-21 02:03:49 +00:00
Salvador Martinez
fbdc2f2e5e resolve merge conflicts of 42d0815115 to master
Change-Id: I949e09de6aade8d07857a2b8d4bd34a549795939

Bug: None
Test: I solemnly swear I tested this conflict resolution
2018-04-20 18:10:13 -07:00
Matthew Fritze
21521826d9 Merge "Add keywords to Slices" into pi-dev
am: 2f911e2e9e

Change-Id: I55871dd10278feab58ec1ff6faf3f3bd672d9e68
2018-04-20 17:44:13 -07:00
Salvador Martinez
42d0815115 Merge "Update settings main page battery string" into pi-dev
am: 681353f725

Change-Id: I5a56820ac50ebc322f1352767cfc6fdfe773b292
2018-04-20 17:16:46 -07:00
Fan Zhang
0e5a3273af Catch exception when failing to create slice
- Created a non-generic exception type when failing SliceData.build()
- Catch exception and log error instead of crash.
- Added a presubmit test

Fixes: 78347031
Test: robotests, atest
Change-Id: I06e528cb5e1cd328f82f9561553f3c4b5b0bed26
Merged-In: I06e528cb5e1cd328f82f9561553f3c4b5b0bed26
2018-04-20 23:55:39 +00:00
Fan Zhang
f4687828dd Merge "Catch exception when failing to create slice" 2018-04-20 23:55:13 +00:00