Commit Graph

13185 Commits

Author SHA1 Message Date
Fabrice Di Meglio
6602d02f57 Improve Preference highlighting from a Search result
- fix computation of the Preference position in its PreferenceScreen
- use "highlight" (scrolling and Ripple effect) for showing the result
- "highlight" is only done once

Change-Id: I232d79d795b0983beac5a9fec3dfbe9da329c98f
2014-04-16 16:16:45 -07:00
Wink Saville
1583a41f83 am d5b8ee9b: am 242184ca: Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"
* commit 'd5b8ee9ba48f6b22135abc7ab59b3b971f0d85e0':
  Allow tablets to send SMS if enabled in device overlays (1/2)
2014-04-16 20:30:14 +00:00
Wink Saville
d5b8ee9ba4 am 242184ca: Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"
* commit '242184ca23b8ef70f5347874ac9b5c59cce36208':
  Allow tablets to send SMS if enabled in device overlays (1/2)
2014-04-16 20:26:53 +00:00
Wink Saville
242184ca23 Merge "Allow tablets to send SMS if enabled in device overlays (1/2)" 2014-04-16 20:21:57 +00:00
Wink Saville
7c878831b3 Merge "Add displaying DataConnectionRealTimeInfo." 2014-04-16 19:45:43 +00:00
Andres Morales
a298f077c8 Merge "Write wifi config to NFC tag" 2014-04-16 17:19:05 +00:00
Baligh Uddin
d7adb25e87 am ce077b41: (-s ours) am 81ff7980: (-s ours) Import translations. DO NOT MERGE
* commit 'ce077b417de0b40a622f3679552929968d9c63a5':
  Import translations. DO NOT MERGE
2014-04-16 15:47:56 +00:00
Baligh Uddin
ce077b417d am 81ff7980: (-s ours) Import translations. DO NOT MERGE
* commit '81ff798050d4223dec7038cc466847e0d2ef999b':
  Import translations. DO NOT MERGE
2014-04-16 15:43:33 +00:00
Baligh Uddin
61a6f1016d Merge "Import translations. DO NOT MERGE" 2014-04-16 15:40:22 +00:00
Wink Saville
4f0d881871 Add displaying DataConnectionRealTimeInfo.
Change-Id: Iadcbf9765af57c125bcdf74e3fc652ed6c8f7d42
2014-04-15 22:05:24 -07:00
Alan Viverette
d471e80fd7 Merge "Implement color palette in Settings" 2014-04-16 01:25:07 +00:00
Alan Viverette
ab585d8ee1 Implement color palette in Settings
Change-Id: I83a4c8726408c253d8f075466c6f51f7c2083e23
2014-04-15 17:42:33 -07:00
Alan Viverette
c42600c215 Merge "Use action bar widget context for accessibility toggle switches" 2014-04-16 00:27:34 +00:00
Alan Viverette
f6cbcdebbd Use action bar widget context for accessibility toggle switches
Change-Id: I078968b3f4f59439743356e9fe241cdf385deef6
2014-04-15 17:08:47 -07:00
Fabrice Di Meglio
8f5c65fd01 Search results - just show the first item of ListPreference entries
- need to increment the database model version to force re-indexing
- change entries separator from SPACE to PIPE
- just show the first entries value in the Search results

Change-Id: I747218ff3528c3231c0209f8870c12f65e036070
2014-04-15 14:09:25 -07:00
Fabrice Di Meglio
7a6bfd132c Update DynamicIndexableContentMonitor
- use factory for creating Intents
- add missing case in handlePackageUnavailable() for IMEs
- move DynamicIndexableContentMonitor to the "search" package

Change-Id: I8d74b28fb9183827db50c6de4b4543b4ff21acc0
2014-04-15 13:31:38 -07:00
Fabrice Di Meglio
71a2ef3e7c Update UI for Search results
- put the icon on the left
- just use the "summaryOn" ellipsized instead of the list
of values

Change-Id: I7250ff5b7c882b873cfe6bb0ec550a8eaf052d16
2014-04-14 19:44:31 -07:00
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
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