Commit Graph

40216 Commits

Author SHA1 Message Date
Ajay Nadathur
2e6e4c12a9 Merge "Set title in remote views if present in bundle" 2017-09-08 05:09:21 +00:00
Fan Zhang
1ca6b25321 Don't attempt to tint icon if icon is not available
Change-Id: I0aa2a17d51d966dce182381c7bba8913ad997738
Fixes: 65460834
Test: robotests
2017-09-08 00:10:55 +00:00
Jack He
9a45bab608 Bluetooth: add metrics for pairing with devices without names am: 5b017f7b05
am: d9de1ecc03

Change-Id: I34a61269d955ffd9aa073aa1c514c3f3e148adbc
2017-09-07 23:54:21 +00:00
Jack He
d9de1ecc03 Bluetooth: add metrics for pairing with devices without names
am: 5b017f7b05

Change-Id: If74bd132ee1352888a7f9513444e998537f11145
2017-09-07 23:25:43 +00:00
debesay guadad
5b1651b3bb Add ims registration status
Display "IMS registration state" in Status menu. Introduce carrier
config to enable/disable the feature for customization. Since some
carriers require, this feature is necessary.

Test: manual Checked "IMS registration state" in Status menu
Bug: 28806101
Merged-In: I6c452c512f03cf41704b91331e44141ed3050cf9
Change-Id: I6c452c512f03cf41704b91331e44141ed3050cf9
2017-09-07 23:24:53 +00:00
jackqdyulei
3b3d52ff36 Add OWNERS for folder notification
Bug: 65294119
Test: Manual
Change-Id: If9fddc8b4e2e6d4d7db185ab16063e824323b9a7
2017-09-07 15:45:08 -07:00
jackqdyulei
d44a993b87 Add OWNERS for folder users
Bug: 65294119
Test: Manual
Change-Id: I24ec103ff5013ad416e3dfb1c548acd387b4ba64
2017-09-07 15:28:17 -07:00
jackqdyulei
bd3c83b4c2 Add OWNER for accessibility package.
Bug: 65294119
Test: Manual
Change-Id: I39eec9ebc1db2dc14669f27b17624394e25eb47f
2017-09-07 14:11:53 -07:00
jackqdyulei
a230cf2a84 Add OWNERS for package enterprise
Bug: 65294119
Test: Manual
Change-Id: I697528ff260a0f8e54aa1188e35143e668800e7d
2017-09-07 14:03:35 -07:00
debesay guadad
d6bddbc4db Add ims registration status
Display "IMS registration state" in Status menu. Introduce carrier
config to enable/disable the feature for customization. Since some
carriers require, this feature is necessary.

Test: manual Checked "IMS registration state" in Status menu
Bug: 28806101
Merged-In: I6c452c512f03cf41704b91331e44141ed3050cf9
Change-Id: I6c452c512f03cf41704b91331e44141ed3050cf9
2017-09-07 21:03:06 +00:00
jackqdyulei
39af82fbac Add OWNERS for folder location
Bug: 65294119
Test: Build
Change-Id: I2fd0249fd8b555e5ca93c3aec13857e6c74e157c
2017-09-07 13:59:48 -07:00
debesay guadad
96dc322901 Add ims registration status
Display "IMS registration state" in Status menu. Introduce carrier
config to enable/disable the feature for customization. Since some
carriers require, this feature is necessary.

Test: manual Checked "IMS registration state" in Status menu
Bug: 28806101
Merged-In: I6c452c512f03cf41704b91331e44141ed3050cf9
Change-Id: I6c452c512f03cf41704b91331e44141ed3050cf9
2017-09-07 20:59:32 +00:00
jackqdyulei
5f21c6913b Add OWNERS for package backup
Bug: 65294119
Test: Manual
Change-Id: I804b50a38c877da80b5ef3251e16029259014152
2017-09-07 13:51:26 -07:00
TreeHugger Robot
89f57048a0 Merge "Some code cleanup" 2017-09-07 19:55:46 +00:00
Jack He
5b017f7b05 Bluetooth: add metrics for pairing with devices without names
* Also caches context in onClick() method

Bug: 34685932
Test: make, unit test
Change-Id: I99beab2c85b8e48c4bc41f69146759d4b7c62428
2017-09-07 12:09:00 -07:00
Daniel Nishi
44da06703e Merge "Turn in the work profile's badge." into oc-mr1-dev am: 6361c9d851
am: 7ee2b191d6

Change-Id: I9a80b2b7e8d6ab83fef2a1886b65c8ddfb2760be
2017-09-07 17:51:54 +00:00
TreeHugger Robot
6f7f25e3fe Merge "Separate collection of indexable data from indexing" 2017-09-07 17:51:22 +00:00
Fan Zhang
3ed509cb35 Some code cleanup
- Formatting
- Remove unused code

Test: robotests
Change-Id: If259c7c3893df96744f3c0ad62a378ef6ce01de7
2017-09-07 10:48:45 -07:00
Daniel Nishi
7ee2b191d6 Merge "Turn in the work profile's badge." into oc-mr1-dev
am: 6361c9d851

Change-Id: If1df9295530334cf58ffec9577b625fedad7ad4e
2017-09-07 17:44:00 +00:00
Matthew Fritze
bdc8fe6da9 Separate collection of indexable data from indexing
The first step in refactoring the god class,
DatabaseIndexingManager.

The class has one major entry point: indexDatabase
which begins a chain of calls that first collects all the
data from the fragments, and then massages that data into
the SQLite database. Unfortunately, most of the methods
do not return data, and just pass along some mutated
form of the data until it can be insterted.

Reading and testing this class is very difficult.

This first step moves the collection of the indexable data
into a new class which has a few benefits:
- The data can be easily mocked in tests
- Reduces complexity of D.I.M.
- Separates data collection from indexing, which allows the
indexable data to be piped into a new API that unbundled
search can consume.

Bug:33577327
Test: make RunSettingsRoboTests
Test: Grabbed a DB dump before change, compared to DB dump after change
to make sure everything is still indexed.
Change-Id: Ibc91e3d75ff5dcf5274b93b29bf3544f90b2194d
2017-09-07 08:53:41 -07:00
Daniel Nishi
ab5e8ce249 Merge "Cache storage values for fast loading." into oc-mr1-dev am: 7fae6c67fb
am: cad295918c

Change-Id: I42136185af82217383526a38c8c3a4ffc2e4829e
2017-09-07 15:35:03 +00:00
Daniel Nishi
cad295918c Merge "Cache storage values for fast loading." into oc-mr1-dev
am: 7fae6c67fb

Change-Id: I5e29852872dd08e0e5bb3f1822127879dc354319
2017-09-07 15:15:16 +00:00
Ajay Nadathur
ab07989b97 Set title in remote views if present in bundle
- Title set if defined in the Bundle returned by summaryUri's content
provider.
- summaryUri invoked inline with onBindView call

bug: 62713030
Test: Manually tested, verified that title and summary are retrieved
when settings app is resumed
Change-Id: Id82531eec5ec11ec3492f033fb34ec65a5437a48
2017-09-07 14:56:38 +00:00
daqi
be47df7395 Fix TrustedCredentialsSettings NPE
[Cause of Defect]
TrustedCredentialsSettings#mKeyChainConnectionByProfileId is get/set by
more than one thread. Main thread would set it in onDestroy method, and
AsyncTask would get and set in the doInBackground method. So
mKeyChainConnectionByProfileId.get(profileId) would get null after
onDestroy method get called.

Bug: N/A
Test: Debugger to simulate concurrency
Change-Id: I0664d1e9b88b079855354ce0e6fe014a98a22327
Signed-off-by: daqi <daqi@xiaomi.com>
2017-09-07 17:21:25 +08:00
Emilian Peev
6530b21cc5 Settings: Add laser sensor preference
Add a switch for enabling/disabling the laser sensor within
developer options.

Test: Manual using setting app, RunSettingsRoboTests
Bug: 64423712
Change-Id: I89a32dfa062fc62c4be096d2e026a32ce9b784ca
2017-09-07 08:54:58 +01:00
TreeHugger Robot
6361c9d851 Merge "Turn in the work profile's badge." into oc-mr1-dev 2017-09-06 23:20:40 +00:00
Daniel Nishi
7fae6c67fb Merge "Cache storage values for fast loading." into oc-mr1-dev 2017-09-06 23:07:14 +00:00
Alison Cichowlas
6a8fe253f6 Merge "Reorder "on the lock screen" options." into oc-mr1-dev am: 40b8d3d238
am: 22fc09757e

Change-Id: Ifd08b4aff4ef20c37302726aa14eedd93e80958f
2017-09-06 22:54:54 +00:00
Fan Zhang
6d5a277622 Merge "Misc polishing fixes for Settings" into oc-mr1-dev am: bda6500884
am: 08c4871dbe

Change-Id: Ib01d65ae56ac7f03f25ca320724ba6b3cd90b861
2017-09-06 22:54:09 +00:00
Fan Zhang
0a07b19dd9 Merge "Pre-set initial state to wifi tether switches." into oc-mr1-dev am: dad9b79630
am: b1ff93dfeb

Change-Id: I9206b968d53c89924076e1f3b9979fd00e68945d
2017-09-06 22:53:14 +00:00
jackqdyulei
e5a2816656 Add OWNERS for folder inputmethod
Bug: 65294119
Test: Manual
Change-Id: Icdcfaaf6cc7a1e1cf77e89a79d0425cab4405ffc
2017-09-06 15:43:00 -07:00
Ajay Nadathur
d1c3084bd5 Set title in remote views if present in bundle
- Title set if defined in the Bundle returned by summaryUri's content
provider.
- summaryUri invoked inline with onBindView call

bug: 62713030
Test: Manually tested, verified that title and summary are retrieved
when settings app is resumed
Change-Id: Id82531eec5ec11ec3492f033fb34ec65a5437a48
2017-09-06 15:25:04 -07:00
jackqdyulei
1e887c17e2 Make system item has a consistent name.
In battery settings, the system item contains many packages. In old
behaviour it will use the first package(which has legal name and icon)
to represent this item. This behaviour is not consistent.

In this cl, we always use package "android" to extract name and icon
if it is system item.

Bug: 65090883
Test: RunSettingsRoboTests
Change-Id: Ibb7f85c06ab1745867f1eaa666cea32c8d3295a6
2017-09-06 14:49:49 -07:00
Alison Cichowlas
22fc09757e Merge "Reorder "on the lock screen" options." into oc-mr1-dev
am: 40b8d3d238

Change-Id: Ifb481299638c2bb086270555ef981f0435c34da1
2017-09-06 21:23:52 +00:00
Fan Zhang
08c4871dbe Merge "Misc polishing fixes for Settings" into oc-mr1-dev
am: bda6500884

Change-Id: I119661153a87d0ebe67367c7350c2934679902a3
2017-09-06 21:23:04 +00:00
Fan Zhang
b1ff93dfeb Merge "Pre-set initial state to wifi tether switches." into oc-mr1-dev
am: dad9b79630

Change-Id: I6236900d715e7ef85e2855513c41689a68046a07
2017-09-06 21:22:14 +00:00
TreeHugger Robot
418976552c Merge "Create owner file for development package" 2017-09-06 21:17:15 +00:00
Alison Cichowlas
40b8d3d238 Merge "Reorder "on the lock screen" options." into oc-mr1-dev 2017-09-06 21:01:35 +00:00
TreeHugger Robot
bda6500884 Merge "Misc polishing fixes for Settings" into oc-mr1-dev 2017-09-06 20:37:15 +00:00
TreeHugger Robot
dad9b79630 Merge "Pre-set initial state to wifi tether switches." into oc-mr1-dev 2017-09-06 19:53:39 +00:00
TreeHugger Robot
7f541b8227 Merge "Clean up test strings" 2017-09-06 19:49:36 +00:00
Bill Yi
ea080fbf34 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: 14a359a550 -s ours
am: 25012afc7f  -s ours

Change-Id: Ic4993853ef8110722cb1217bfdf8f3dc513d4904
2017-09-06 19:19:25 +00:00
Bill Yi
25012afc7f Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: 14a359a550  -s ours

Change-Id: I3a7049ec212e3da3b673d3480ef3be5396762098
2017-09-06 18:56:13 +00:00
Bill Yi
2b037d3e8a Import translations. DO NOT MERGE am: 535dd7f066 -s ours am: 363626edcf -s ours
am: f8f6cb368d  -s ours

Change-Id: I8b992a197206c0ae4371b1846d9273645c047062
2017-09-06 18:43:28 +00:00
Julia Reynolds
97942ca832 Merge "Properly show/hide advanced settings" into oc-mr1-dev am: 12c9d6d65a
am: fa3fa3483e

Change-Id: I9cab11035c64975b45e1c3d99bd707a07b6c693e
2017-09-06 18:42:36 +00:00
TreeHugger Robot
14a359a550 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-09-06 18:40:23 +00:00
Bill Yi
f8f6cb368d Import translations. DO NOT MERGE am: 535dd7f066 -s ours
am: 363626edcf  -s ours

Change-Id: I7db2955fe4f48c1867d16513682a1a985eed01f1
2017-09-06 18:40:07 +00:00
Julia Reynolds
fa3fa3483e Merge "Properly show/hide advanced settings" into oc-mr1-dev
am: 12c9d6d65a

Change-Id: Id5e2a6291b630114fc4952ed49fcd57929205461
2017-09-06 18:39:24 +00:00
Bill Yi
5aba524e60 Import translations. DO NOT MERGE am: 535dd7f066 -s ours am: 6171c4a5bb -s ours
am: e93c8d88f5  -s ours

Change-Id: I2181f0f6fb36703590d9820be5c22330d3280d7c
2017-09-06 18:32:05 +00:00
Bill Yi
e93c8d88f5 Import translations. DO NOT MERGE am: 535dd7f066 -s ours
am: 6171c4a5bb  -s ours

Change-Id: Iccd2d99cf8f2c096253dafe6c42f712cf0ee6292
2017-09-06 18:29:32 +00:00