Commit Graph

13368 Commits

Author SHA1 Message Date
Fabrice Di Meglio
03006d2df2 Merge "Improve Preference highlight effect" 2014-04-17 01:19:13 +00:00
Fabrice Di Meglio
906ff6fdf9 Improve Preference highlight effect
- restrict the effect to the Preference View itself

Change-Id: I3ab04433e1acecb906d0a458b31314f97b9bda03
2014-04-16 18:18:41 -07:00
Fabrice Di Meglio
a684f73973 Merge "Update Search icon" 2014-04-17 00:26:11 +00:00
Fabrice Di Meglio
be07655642 Update Search icon
- use Quantum Theme one

See bug #13818985 Settings using GB-style search icon

Change-Id: I0b0f61524f1e66bfdb46c47798e9ec1f5038c10c
2014-04-16 17:25:17 -07:00
Baligh Uddin
f40d33ff04 Import translations. DO NOT MERGE
Change-Id: I1b956a8b327e77eecc76e3df141ad6b1750433a3
Auto-generated-cl: translation import
2014-04-16 17:22:10 -07:00
Fabrice Di Meglio
0527fd182a Merge "Fix bug #14118555 NPE in settings app when it is launched by UiAutomator" 2014-04-17 00:19:35 +00:00
Fabrice Di Meglio
0bae067a99 Fix bug #14118555 NPE in settings app when it is launched by UiAutomator
- prevent the potential NPE

Change-Id: I428f49c4ee55fb1e8fe121b27dd12e21eced4dad
2014-04-16 17:18:24 -07:00
Baligh Uddin
54b5982f14 Import translations. DO NOT MERGE
Change-Id: I20c3ae14070c3fae914ec7151dc425ddf518ffa6
Auto-generated-cl: translation import
2014-04-16 17:18:12 -07:00
Fabrice Di Meglio
477299cfa2 Merge "Search - add "live" search results" 2014-04-16 23:58:56 +00:00
Fabrice Di Meglio
a32707664f Search - add "live" search results
- now it is possible to have Search results directly when
you are typing (and not only when you press on the Search button
in the IME)
- implement onQueryTextChange(...)
- take care about re-runnin the saved query when the app is resumed

Change-Id: I021c8a9a95b50dce69ab6dace81eecb2fb188f18
2014-04-16 16:54:56 -07:00
Fabrice Di Meglio
cd22f27f73 Merge "Improve Preference highlighting from a Search result" 2014-04-16 23:22:44 +00:00
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
Alexandra Gherghina
a044235272 Wiring for displaying managed profiles
Bug: 13756871
Change-Id: I81898e3b32baa0bc9ec72258b3bd470102d42b68
2014-04-15 14:54:01 +01: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
Jeff Davidson
b9558d91df Refactor SmsListPreference into AppListPreference.
This generalizes the pattern of needing to offer a selection among a
list of candidate applications.

Also move some reusable logic around querying PackageManager for icons
into AppListPreference, and remove some unnecessary update logic: the
preference will update itself when onPreferenceChange returns true,
and we can set the summary to '%s' to automatically use the entry as
the summary without having to reset it each time.

Change-Id: I007b9ed58359302f93b367a4b86354e93613bf3e
2014-04-14 19:24:15 -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