Commit Graph

13519 Commits

Author SHA1 Message Date
Svetoslav
990159abaa Adding search for dynamic accessibility settings.
The language and input settings are highly dynamic and this change adds search
support for that. This category depends on installed IMEs, input devices, user
dictionary configuration, etc. We not only compute the right preferences to be
indexed but also track related system state in the settings app to rebuild the
index if needed.

bug:14066763

Change-Id: Ia89d9e35bd79abf8d74614691aedf4ca9b11b6f2
2014-04-14 17:31:23 -07:00
Svetoslav
853e47181d Rebuild search index if dynamic setting packages change.
We have some settings that are dynamically generated based on what packages are
installed. For example, accessibility services, etc. We now update the index when
the relevant installed packages change.

bug:14056852

Change-Id: I6143382bf2c7399d3c80abea0835d717935a9200
2014-04-14 17:13:02 -07:00
Fabrice Di Meglio
09e13da6a7 Some code cleaning
- use MatrixCursor var as in the other cases

Change-Id: Iba1163a851e62de9a0dd6e7c1c5d28f06452bdba
2014-04-14 17:01:02 -07:00
Fabrice Di Meglio
490099b135 Allow partial Index rebuilding thru updateFromClassNameResource(...)
- add a new boolean parameter to ask for Index rebuilding:
passing "true" will delete first all the data corresponding to the
"className" and then apply the update.

Change-Id: Ifc42fc560a14f5470b466cf6982915d9207fa3c7
2014-04-14 13:31:14 -07:00
Baligh Uddin
75aa45dfb0 Import translations. DO NOT MERGE
Change-Id: Ib2208cee6d0db28359ff978f70de7975b665c037
Auto-generated-cl: translation import
2014-04-14 12:45:30 -07:00
Baligh Uddin
81ff798050 Import translations. DO NOT MERGE
Change-Id: I571889dbba0de412f258289e097ec510fbf02e05
Auto-generated-cl: translation import
2014-04-14 12:41:44 -07:00
Fabrice Di Meglio
724b702a86 Search - add support for deleting all preferences for a class name
- modify SQL delete query for passing any column in the DELETE statement
- modify deleteIndexableData(...) for passing a SearchIndexableData

Change-Id: I4c58e38422e67b1d464b0e51201520ce8717a14d
2014-04-14 11:24:16 -07:00
Fabrice Di Meglio
df278aa959 Update SettingsSearchIndexablesProvider for supporting queryNonIndexableKeys(...)
- add the new requested method "queryNonIndexableKeys" from the contract

Change-Id: I72be47851a7e19e3f14960f4e2b60c3e952f1fac
2014-04-14 10:54:58 -07:00
The Android Automerger
5c777b121c merge in master-release history after reset to master 2014-04-12 05:52:10 -07:00
Fabrice Di Meglio
210bb8694a Merge "Search - add indexing of SecuritySettings" 2014-04-12 00:54:55 +00:00
Fabrice Di Meglio
d1d2f02224 Search - add indexing of SecuritySettings
- implement a SearchIndexProvider for providing the data to index
- some code refactoring to extract some helper methods

Change-Id: Ia8818c17d1bead7306b528d242cdc24c863c17eb
2014-04-11 17:53:41 -07:00
Svetoslav
c0a51758bd Merge "Adding search for dynamic print settings." 2014-04-12 00:36:46 +00:00
Svetoslav
d78d44d32a Adding search for dynamic print settings.
The print service list is dynamically constructed, therefore we need
a local provider that will emit print service data to be indexed.

bug:13929163

Change-Id: I51d5ae40c00edc6be7b212dc8aa08fd7ebfbf349
2014-04-11 17:22:57 -07:00
Svetoslav
c9d4c6aef4 Merge "Adding search for dynamic accessibility settings." 2014-04-12 00:19:27 +00:00
Svetoslav
b4b30828e9 Adding search for dynamic accessibility settings.
The accessibility service list is dynamically constructed, therefore we
need a local provider that will emit accessibility service data to be
indexed.

bug:13928519

Change-Id: Idd29cd1698f36b54fabf013dfa36029412bbb8a9
2014-04-11 17:15:34 -07:00
Svetoslav
2719da25d8 Merge "Fallback to the default values when indexing from local resource." 2014-04-11 23:38:10 +00:00
Svetoslav
caa0b54cbc Fallback to the default values when indexing from local resource.
If we are indexing from a local resource and the indexable resource does
not provide icon or class name or rank we fall back to the defaults.

Change-Id: Ibbed8b2a92e28799c26f5f80b3f058737535739d
2014-04-11 16:06:41 -07:00
Fabrice Di Meglio
fa46de5c68 Search - fix remembered Bluetooth devices indexing
We were indexing the remembered device names but we were missing the
informations for launching the correct Activity from the Search result.

- add the missing information: className and iconResId

Change-Id: Ib6781d4c492c296e822da1b5a8a2a76c92ecd586
2014-04-11 14:03:28 -07:00
Fabrice Di Meglio
e241ad1867 Merge "Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)" 2014-04-11 18:18:09 +00:00
Fabrice Di Meglio
45f754e506 Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)
- getNonIndexableKeys(Context) allow a SearchIndexProvider to tell which data
he does not want to index by providing a list of the data keys
- use this new API for SoundSettings and removing KEY_EMERGENCY_TONE related
settings if the device is not CDMA
- add a BaseSearchIndexProvider for code simplification

Change-Id: I23633ace1d7e390ee05fac0a5458a33e04e72d8d
2014-04-11 11:16:33 -07:00
Fabrice Di Meglio
2f1b4e2fd9 Merge "Some code refactoring" 2014-04-11 01:00:52 +00:00
Fabrice Di Meglio
a9d37050cb Some code refactoring
- use SearchIndexableResources.NO_DATA_RES_ID
- extract code for getting a SearchIndexProvider

Change-Id: I3d31cc58f70b9b0abfa6684d9d20b19534ec5e45
2014-04-10 17:58:27 -07:00
Fabrice Di Meglio
2631b8c245 Merge "Fix bug #13962001 Search - need to finish indexing "Data usage" Settings" 2014-04-10 21:46:25 +00:00
Fabrice Di Meglio
758c3ff8e9 Fix bug #13962001 Search - need to finish indexing "Data usage" Settings
- index missing strings

Change-Id: I015452b58bf7dc576bce8fee03b55b38c0094097
2014-04-10 14:45:18 -07:00
Andres Morales
ef7a40a0d6 Write wifi config to NFC tag
Configured networks expose the option to
write config to an NFC tag. This tag can be
then tapped to another device to configure
the same network. Implemented according to
WiFi Alliance WPS spec.

Change-Id: I33a1be1610aab71cf1ab864418d494027370ebca
2014-04-10 10:25:50 -07:00
Baligh Uddin
05e7e84f4c am e38487bf: (-s ours) am b6b3172c: (-s ours) am 915ef6e3: (-s ours) am 52e3681f: (-s ours) Import translations. DO NOT MERGE
* commit 'e38487bf720f729056a2281377dabda86dc46d56':
  Import translations. DO NOT MERGE
2014-04-10 16:09:59 +00:00
Baligh Uddin
e38487bf72 am b6b3172c: (-s ours) am 915ef6e3: (-s ours) am 52e3681f: (-s ours) Import translations. DO NOT MERGE
* commit 'b6b3172c35646a6292ae312fb23795afafb4c96b':
  Import translations. DO NOT MERGE
2014-04-10 16:06:37 +00:00
Baligh Uddin
2723e5fcfe am 119758c9: (-s ours) am 2632b25f: (-s ours) am fba8cd35: (-s ours) Import translations. DO NOT MERGE
* commit '119758c972e786a538f5db6510b3e6ec3a2ea36c':
  Import translations. DO NOT MERGE
2014-04-10 16:06:25 +00:00
Baligh Uddin
119758c972 am 2632b25f: (-s ours) am fba8cd35: (-s ours) Import translations. DO NOT MERGE
* commit '2632b25fae55411ff4974d510d599af75d35045a':
  Import translations. DO NOT MERGE
2014-04-10 16:03:05 +00:00
Baligh Uddin
03c33fdd05 am bb58405f: (-s ours) am 8bec9dba: (-s ours) Import translations. DO NOT MERGE
* commit 'bb58405fee2366802ad9f6cefec7808af1e36ebc':
  Import translations. DO NOT MERGE
2014-04-10 16:02:54 +00:00
Baligh Uddin
b6b3172c35 am 915ef6e3: (-s ours) am 52e3681f: (-s ours) Import translations. DO NOT MERGE
* commit '915ef6e3127b34c73d43e86149b9aabc23216e72':
  Import translations. DO NOT MERGE
2014-04-10 16:02:35 +00:00
Baligh Uddin
915ef6e312 am 52e3681f: (-s ours) Import translations. DO NOT MERGE
* commit '52e3681feb64afaefd5cffa5a9e88a97bca4d48d':
  Import translations. DO NOT MERGE
2014-04-10 16:00:02 +00:00
Baligh Uddin
bb58405fee am 8bec9dba: (-s ours) Import translations. DO NOT MERGE
* commit '8bec9dba479ba901c913f59c7585369af1bf639d':
  Import translations. DO NOT MERGE
2014-04-10 15:59:28 +00:00
Baligh Uddin
2632b25fae am fba8cd35: (-s ours) Import translations. DO NOT MERGE
* commit 'fba8cd35b71853118508eab15a3cbef96a539dec':
  Import translations. DO NOT MERGE
2014-04-10 15:57:44 +00:00
Baligh Uddin
0e7c992e4e Merge "Import translations. DO NOT MERGE" 2014-04-10 15:54:28 +00:00
Paul Lawrence
1231a89e5e Merge "Allow encryption when keyguard is set to pattern or no protection" 2014-04-10 14:31:03 +00:00
The Android Automerger
bc36520095 merge in master-release history after reset to master 2014-04-10 05:50:28 -07:00
Fabrice Di Meglio
981efd1778 Code cleaning for the SettingsSearchIndexablesProvider
- use the real constants SearchIndexablesContract.COLUMN_INDEX_XML_RES_XXX
for the colum names

Change-Id: I820ce9d3b048345365639fe049aedccaf3f203d8
2014-04-09 19:33:47 -07:00
Fabrice Di Meglio
063e7cfd78 Code cleaning for DataUsageSummary
- remove unused import
- remove dead code

Change-Id: I4e8f24e57fc4ca6d731e68da93ac7f748e709c26
2014-04-09 19:02:54 -07:00
Fabrice Di Meglio
b1648e6c54 Fix bug3 13933442 Search - for security reasons only index data...
...from wellknown SearchIndexablesProvider

Check if the SearchIndexablesProvider is:

- having the correct android.permission.READ_SEARCH_INDEXABLES
read/write permissions
- a privileged one (like Settings App, Phone App)

Change-Id: I5fd1fef46716cca0e439196e24b607ff5506495c
2014-04-09 16:24:10 -07:00
Fabrice Di Meglio
f79af8b26e Fix bug #13915380 Inconsistency in showing the action bar of Bluetooth settings.
- remove those "splitActionBarWhenNarrow" in the AndroidManifest for all
the activities so that the ActionBar behavior is always consistent and
does not split.

Change-Id: I54cb10528ba3a751a7d2843cc9e9c518a5f3531a
2014-04-09 13:57:09 -07:00
Fabrice Di Meglio
b914322590 Code cleaning for Search Remote Provider queries
- use colums indices that are now defined into SearchIndexablesContract
- ... and at the same time fix an issue with some wrong column indices
that were used

Change-Id: If72ddc7d7171329ca533cb2763431902099769b9
2014-04-09 13:30:50 -07:00
Baligh Uddin
d7a9d39e6c Import translations. DO NOT MERGE
Change-Id: I6fd74caf628d760ffcf191733d47b86ffb453864
Auto-generated-cl: translation import
2014-04-09 12:51:17 -07:00
Baligh Uddin
fba8cd35b7 Import translations. DO NOT MERGE
Change-Id: Iff7d2cccff323a2cfb7193d399e8910f226304d7
Auto-generated-cl: translation import
2014-04-09 12:46:43 -07:00
Baligh Uddin
8bec9dba47 Import translations. DO NOT MERGE
Change-Id: I8cec72991260fa660991ca7423299bbf417df000
Auto-generated-cl: translation import
2014-04-09 12:43:07 -07:00
Baligh Uddin
52e3681feb Import translations. DO NOT MERGE
Change-Id: I84d923dacf746299500503257fd925228b869e82
Auto-generated-cl: translation import
2014-04-09 12:41:44 -07:00
Fabrice Di Meglio
7d39310c8d Fix bug #13928293 Search - remove "switchTextOn" / "switchTextOff" from indexing
- remove all related code
- update the Index database schema and its version

Change-Id: Iaa5219b77efe5db3a404708663fdf82f10d043d3
2014-04-09 12:09:42 -07:00
The Android Automerger
04f062329e merge in master-release history after reset to master 2014-04-09 05:50:07 -07:00
Fabrice Di Meglio
82de8707af Fix Switch button creation for PrintService
- setup the ActionBar switch in the onStart()

Change-Id: I92d8bb34dd7925da79a10fe01790131d22f7d0d8
2014-04-08 18:58:33 -07:00
Fabrice Di Meglio
3b22695670 Fix issue about at which time Bluetooth devices name are indexed
- remembered devices name were only indexed when BT was turned on/off
- allow the same when they are paired
- remove device name from the Index if it is un-paired

Change-Id: I1206a591b0132789c3b003e52c7ffac630e80758
2014-04-08 17:49:01 -07:00