OSDN Git Service

android-x86/packages-apps-Settings.git
10 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Tue, 22 Apr 2014 14:51:46 +0000 (14:51 +0000)]
Merge "Import translations. DO NOT MERGE"

10 years agoMerge "Save Search queries"
Fabrice Di Meglio [Tue, 22 Apr 2014 01:38:47 +0000 (01:38 +0000)]
Merge "Save Search queries"

10 years agoSave Search queries
Fabrice Di Meglio [Tue, 22 Apr 2014 00:07:28 +0000 (17:07 -0700)]
Save Search queries

- update database model for adding a table for saving a query
and its timestamp
- update database version
- save the query when the User tap on a Search result
- remove old queries (no more than 5 are saved)

Change-Id: I4ddff0ad660944c7fd53be64ac95397850dc60d0

10 years agoMerge "Fix missing summary for CheckBoxPreference"
Fabrice Di Meglio [Mon, 21 Apr 2014 23:41:13 +0000 (23:41 +0000)]
Merge "Fix missing summary for CheckBoxPreference"

10 years agoFix missing summary for CheckBoxPreference
Fabrice Di Meglio [Mon, 21 Apr 2014 23:37:39 +0000 (16:37 -0700)]
Fix missing summary for CheckBoxPreference

- "summaryOn" and "summaryOff" were parsed but we were missing
also "summary"

Repro case: search for "adt" (from Developer options)

Change-Id: Ifa829ec6c6f86cb426432f716c2d28df8550f9ea

10 years agoMerge "Rename SettingsUtils to PrintSettingsUtils"
Fabrice Di Meglio [Mon, 21 Apr 2014 23:00:22 +0000 (23:00 +0000)]
Merge "Rename SettingsUtils to PrintSettingsUtils"

10 years agoRename SettingsUtils to PrintSettingsUtils
Fabrice Di Meglio [Mon, 21 Apr 2014 22:58:41 +0000 (15:58 -0700)]
Rename SettingsUtils to PrintSettingsUtils

Change-Id: I67e9222265f6326b399de3779f2210e202777ecd

10 years agoMerge "Fix bug #14228591 NPE in settings app when it is launched by UiAutomator"
Fabrice Di Meglio [Mon, 21 Apr 2014 22:35:05 +0000 (22:35 +0000)]
Merge "Fix bug #14228591 NPE in settings app when it is launched by UiAutomator"

10 years agoFix bug #14228591 NPE in settings app when it is launched by UiAutomator
Fabrice Di Meglio [Mon, 21 Apr 2014 22:32:28 +0000 (15:32 -0700)]
Fix bug #14228591 NPE in settings app when it is launched by UiAutomator

- test for null references

Change-Id: Iff6efc92cc16ada9f6e8f057ba9c23a241e62000

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 21 Apr 2014 20:50:52 +0000 (13:50 -0700)]
Import translations. DO NOT MERGE

Change-Id: I04673ea4fce055c657b8b36ba765b74747495748
Auto-generated-cl: translation import

10 years agoMerge "Code cleaning"
Fabrice Di Meglio [Mon, 21 Apr 2014 20:48:47 +0000 (20:48 +0000)]
Merge "Code cleaning"

10 years agoCode cleaning
Fabrice Di Meglio [Mon, 21 Apr 2014 20:46:39 +0000 (13:46 -0700)]
Code cleaning

- remove duplicate semicolon

Change-Id: I807ce89dfa6b46c415a95a9c6cdc71fd3e9a2502

10 years agoMerge "Enable Search result highlight for Accessibility and IME settings"
Fabrice Di Meglio [Mon, 21 Apr 2014 20:29:12 +0000 (20:29 +0000)]
Merge "Enable Search result highlight for Accessibility and IME settings"

10 years agoEnable Search result highlight for Accessibility and IME settings
Fabrice Di Meglio [Mon, 21 Apr 2014 20:27:23 +0000 (13:27 -0700)]
Enable Search result highlight for Accessibility and IME settings

- add missing keys
- update Database version to force re-indexing (because the keys
were missing)

Change-Id: I7533d86b0f9d79d838e5c16d4bc51b7b09dffae5

10 years agoMerge "Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke... ...interfac...
Fabrice Di Meglio [Mon, 21 Apr 2014 19:46:39 +0000 (19:46 +0000)]
Merge "Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke... ...interface method 'boolean android.view.MenuItem.collapseActionView()' ...on a null object reference"

10 years agoFix bug #14158603 Stability: NPE in Settings: Attempt to invoke...
Fabrice Di Meglio [Mon, 21 Apr 2014 19:43:20 +0000 (12:43 -0700)]
Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke...
...interface method 'boolean android.view.MenuItem.collapseActionView()'
...on a null object reference

- fix cases where mSearchMenuItem or mSearchView could be null

Change-Id: I2b0256fe2c8c1b426d4e0799881dd2f13480a00a

10 years agoMerge "Fix NPE java.lang.IllegalStateException: Observer com.android.settings.Setting...
Fabrice Di Meglio [Mon, 21 Apr 2014 18:49:43 +0000 (18:49 +0000)]
Merge "Fix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered."

10 years agoFix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPrefer...
Fabrice Di Meglio [Mon, 21 Apr 2014 18:40:21 +0000 (11:40 -0700)]
Fix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered.

- propertly register / unregister the DataSetObserver

Change-Id: I04de3c7ec14e71591edc174ebafabe9a1fb165c2

10 years agoMerge "Better decoupling of Index updates in Bluetooth Settings"
Fabrice Di Meglio [Mon, 21 Apr 2014 18:33:42 +0000 (18:33 +0000)]
Merge "Better decoupling of Index updates in Bluetooth Settings"

10 years agoBetter decoupling of Index updates in Bluetooth Settings
Fabrice Di Meglio [Mon, 21 Apr 2014 18:32:39 +0000 (11:32 -0700)]
Better decoupling of Index updates in Bluetooth Settings

- use a Handler
- force rebuilding

Change-Id: I474fa98ea0e0758abcc46d4812f744dff24fd455

10 years agoMerge "Force Search Index rebuilding for Wifi remembered networks"
Fabrice Di Meglio [Mon, 21 Apr 2014 18:24:42 +0000 (18:24 +0000)]
Merge "Force Search Index rebuilding for Wifi remembered networks"

10 years agoForce Search Index rebuilding for Wifi remembered networks
Fabrice Di Meglio [Mon, 21 Apr 2014 18:24:33 +0000 (11:24 -0700)]
Force Search Index rebuilding for Wifi remembered networks

... when the WiFi swich will be toggled on/off

Change-Id: Iea93819e4c473aafc6aaedf6abb723969dbc9e52

10 years agoMerge "Better decoupling of Index updates in WiFi Settings"
Fabrice Di Meglio [Mon, 21 Apr 2014 18:12:41 +0000 (18:12 +0000)]
Merge "Better decoupling of Index updates in WiFi Settings"

10 years agoBetter decoupling of Index updates in WiFi Settings
Fabrice Di Meglio [Mon, 21 Apr 2014 17:57:07 +0000 (10:57 -0700)]
Better decoupling of Index updates in WiFi Settings

- use a Handler

Change-Id: I1e35f2e437021001900468d0df2b75e53b8c62f6

10 years agoMerge "Remove non needed code for HeaderAdapter"
Fabrice Di Meglio [Mon, 21 Apr 2014 17:52:55 +0000 (17:52 +0000)]
Merge "Remove non needed code for HeaderAdapter"

10 years agoRemove non needed code for HeaderAdapter
Fabrice Di Meglio [Mon, 21 Apr 2014 17:52:34 +0000 (10:52 -0700)]
Remove non needed code for HeaderAdapter

- before, we were showing a Swich for WiFi and Bluetooth entries
in the Headers. As this is no more the case, remove the code
that is no more usefull.

- as a side effect, we are also removing the call to update the
Search Index that was running when the Settings app was resuming
or pausing.

Change-Id: I26b40df5c7a664d196a249840638d89909b6bc24

10 years agoMerge "Search - optimize when updating the Index is done - part 2"
Fabrice Di Meglio [Mon, 21 Apr 2014 17:15:51 +0000 (17:15 +0000)]
Merge "Search - optimize when updating the Index is done - part 2"

10 years agoSearch - optimize when updating the Index is done - part 2
Fabrice Di Meglio [Mon, 21 Apr 2014 17:14:28 +0000 (10:14 -0700)]
Search - optimize when updating the Index is done - part 2

- well, fix a regression when launching WiFi / Bluetooth settings
from the Quick Settings: we can only get the Intent properties
after the call to super.onCreate(...)

Change-Id: I21abbee610ad53dd0022c645268e55a6ba31a7b0

10 years agoMerge "Search - optimize when updating the Index is done"
Fabrice Di Meglio [Mon, 21 Apr 2014 16:43:21 +0000 (16:43 +0000)]
Merge "Search - optimize when updating the Index is done"

10 years agoSearch - optimize when updating the Index is done
Fabrice Di Meglio [Mon, 21 Apr 2014 16:40:46 +0000 (09:40 -0700)]
Search - optimize when updating the Index is done

- we should only try to update the index when the Settings app is launched

Change-Id: I0543d518ea3e06804ce6fb09c987ea722bcc87cd

10 years agoMerge "Make highlithing delay consistent"
Fabrice Di Meglio [Mon, 21 Apr 2014 16:33:05 +0000 (16:33 +0000)]
Merge "Make highlithing delay consistent"

10 years agoMake highlithing delay consistent
Fabrice Di Meglio [Mon, 21 Apr 2014 16:31:36 +0000 (09:31 -0700)]
Make highlithing delay consistent

- set it to 400ms for HighlightingFragment as it was also 400ms
for SettingsPreferenceFragment

Change-Id: I52b910246ee557c98565dacd2bbcf57a812ea7eb

10 years agoMerge "Enable highlighting of Print services"
Fabrice Di Meglio [Mon, 21 Apr 2014 16:30:06 +0000 (16:30 +0000)]
Merge "Enable highlighting of Print services"

10 years agoEnable highlighting of Print services
Fabrice Di Meglio [Sat, 19 Apr 2014 02:40:40 +0000 (19:40 -0700)]
Enable highlighting of Print services

- add to SettingsPreferenceFragment to know when the associated
RootAdapter is changing and thus being able to find the highlighted
Preference
- also, add the correct Search key during indexing. She should
match the one created when adding dynamically the Preference
- last, increase to 400ms the delay to do the highlight

Change-Id: I3a1a81fdf5c8ab5f3aaab29f16ea9879ab6df056

10 years agoApp-level notification configuration settings page.
John Spurlock [Tue, 8 Apr 2014 18:08:21 +0000 (14:08 -0400)]
App-level notification configuration settings page.

New sub-page off of notification settings to ban/unban
apps and navigate to an app's notification configuration
activity (if configured).

Centralized all notification settings artifacts under a new
settings subpackage.

Bug: 13935172
Change-Id: I53b75c02f0091900734d17dc9217035d0df9b466

10 years agoFix Print title name in search results
Fabrice Di Meglio [Sat, 19 Apr 2014 00:14:39 +0000 (17:14 -0700)]
Fix Print title name in search results

- use R.string.print_settings

Change-Id: I3a945aed9efbc323e865db1cdbcfd8ceeb6b2558

10 years agoMake all the Settings Switches appear again
Fabrice Di Meglio [Fri, 18 Apr 2014 23:38:26 +0000 (16:38 -0700)]
Make all the Settings Switches appear again

- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232

10 years agoMake the WiFi switch appear again
Fabrice Di Meglio [Fri, 18 Apr 2014 23:18:26 +0000 (16:18 -0700)]
Make the WiFi switch appear again

- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: I1c44e1b1c28bf02af4c2ac9912295106d93a60e8

10 years agoCode cleaning
Fabrice Di Meglio [Fri, 18 Apr 2014 22:18:40 +0000 (15:18 -0700)]
Code cleaning

- use constants where needed for the tag/key
- remove wrong tag

Change-Id: I32578ce6a3a604dc0ea7168206a5d84391e2cce7

10 years agoMerge "Improve Preference highlighting"
Fabrice Di Meglio [Fri, 18 Apr 2014 20:46:53 +0000 (20:46 +0000)]
Merge "Improve Preference highlighting"

10 years agoImprove Preference highlighting
Fabrice Di Meglio [Fri, 18 Apr 2014 00:20:27 +0000 (17:20 -0700)]
Improve Preference highlighting

- use PreferenceFragment.onBindPreferences() to launch  highlighting
- improve SettingsPreferenceFragment code for highlighting: now we can
find the View to highlight thru its Tag if there is no ListAdapter available
- add HighlightingFragment for highlighting a View from its tag/key. This
is dealing with cases when the content is custom and not relying on
SettingsPreferenceFragment (like DataUsageSummary)

Also:

- improve DataUsageSummary so that onResume() is not recreating the
Tabs all the time
- add missing "android:keys" on some Security Settings preference files

Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4

10 years agoam 89e96c30: (-s ours) am 54b5982f: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Thu, 17 Apr 2014 19:36:22 +0000 (19:36 +0000)]
am 89e96c30: (-s ours) am 54b5982f: (-s ours) Import translations. DO NOT MERGE

* commit '89e96c308cf67e492b699363d90b58516ea3bf54':
  Import translations. DO NOT MERGE

10 years agoam 54b5982f: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Thu, 17 Apr 2014 16:23:22 +0000 (16:23 +0000)]
am 54b5982f: (-s ours) Import translations. DO NOT MERGE

* commit '54b5982f148290a00fa2ff38e7e30d487cf69998':
  Import translations. DO NOT MERGE

10 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Thu, 17 Apr 2014 16:19:19 +0000 (16:19 +0000)]
Merge "Import translations. DO NOT MERGE"

10 years agoRemove the lockscreen widget setting
Adrian Roos [Thu, 17 Apr 2014 12:32:06 +0000 (14:32 +0200)]
Remove the lockscreen widget setting

Bug: 14087729
Change-Id: Ia276411f7622fe1211528ab779a7099bb20800d4

10 years agoMerge "Fix potential NPE with Preference highlighting"
Fabrice Di Meglio [Thu, 17 Apr 2014 01:26:47 +0000 (01:26 +0000)]
Merge "Fix potential NPE with Preference highlighting"

10 years agoFix potential NPE with Preference highlighting
Fabrice Di Meglio [Thu, 17 Apr 2014 01:26:19 +0000 (18:26 -0700)]
Fix potential NPE with Preference highlighting

- there are some cases where the ListView adapter is null

Change-Id: I9dcd171f57d9ca7b8032d890f5a18c3a01fd38cf

10 years agoMerge "Improve Preference highlight effect"
Fabrice Di Meglio [Thu, 17 Apr 2014 01:19:12 +0000 (01:19 +0000)]
Merge "Improve Preference highlight effect"

10 years agoImprove Preference highlight effect
Fabrice Di Meglio [Thu, 17 Apr 2014 01:01:38 +0000 (18:01 -0700)]
Improve Preference highlight effect

- restrict the effect to the Preference View itself

Change-Id: I3ab04433e1acecb906d0a458b31314f97b9bda03

10 years agoMerge "Update Search icon"
Fabrice Di Meglio [Thu, 17 Apr 2014 00:26:11 +0000 (00:26 +0000)]
Merge "Update Search icon"

10 years agoUpdate Search icon
Fabrice Di Meglio [Thu, 17 Apr 2014 00:25:17 +0000 (17:25 -0700)]
Update Search icon

- use Quantum Theme one

See bug #13818985 Settings using GB-style search icon

Change-Id: I0b0f61524f1e66bfdb46c47798e9ec1f5038c10c

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 17 Apr 2014 00:22:10 +0000 (17:22 -0700)]
Import translations. DO NOT MERGE

Change-Id: I1b956a8b327e77eecc76e3df141ad6b1750433a3
Auto-generated-cl: translation import

10 years agoMerge "Fix bug #14118555 NPE in settings app when it is launched by UiAutomator"
Fabrice Di Meglio [Thu, 17 Apr 2014 00:19:35 +0000 (00:19 +0000)]
Merge "Fix bug #14118555 NPE in settings app when it is launched by UiAutomator"

10 years agoFix bug #14118555 NPE in settings app when it is launched by UiAutomator
Fabrice Di Meglio [Thu, 17 Apr 2014 00:18:24 +0000 (17:18 -0700)]
Fix bug #14118555 NPE in settings app when it is launched by UiAutomator

- prevent the potential NPE

Change-Id: I428f49c4ee55fb1e8fe121b27dd12e21eced4dad

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 17 Apr 2014 00:18:12 +0000 (17:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: I20c3ae14070c3fae914ec7151dc425ddf518ffa6
Auto-generated-cl: translation import

10 years agoMerge "Search - add "live" search results"
Fabrice Di Meglio [Wed, 16 Apr 2014 23:58:55 +0000 (23:58 +0000)]
Merge "Search - add "live" search results"

10 years agoSearch - add "live" search results
Fabrice Di Meglio [Wed, 16 Apr 2014 23:54:56 +0000 (16:54 -0700)]
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

10 years agoMerge "Improve Preference highlighting from a Search result"
Fabrice Di Meglio [Wed, 16 Apr 2014 23:22:43 +0000 (23:22 +0000)]
Merge "Improve Preference highlighting from a Search result"

10 years agoImprove Preference highlighting from a Search result
Fabrice Di Meglio [Tue, 15 Apr 2014 23:45:20 +0000 (16:45 -0700)]
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

10 years agoam d5b8ee9b: am 242184ca: Merge "Allow tablets to send SMS if enabled in device overl...
Wink Saville [Wed, 16 Apr 2014 20:30:14 +0000 (20:30 +0000)]
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)

10 years agoam 242184ca: Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"
Wink Saville [Wed, 16 Apr 2014 20:26:53 +0000 (20:26 +0000)]
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)

10 years agoMerge "Allow tablets to send SMS if enabled in device overlays (1/2)"
Wink Saville [Wed, 16 Apr 2014 20:21:57 +0000 (20:21 +0000)]
Merge "Allow tablets to send SMS if enabled in device overlays (1/2)"

10 years agoMerge "Add displaying DataConnectionRealTimeInfo."
Wink Saville [Wed, 16 Apr 2014 19:45:43 +0000 (19:45 +0000)]
Merge "Add displaying DataConnectionRealTimeInfo."

10 years agoMerge "Write wifi config to NFC tag"
Andres Morales [Wed, 16 Apr 2014 17:19:05 +0000 (17:19 +0000)]
Merge "Write wifi config to NFC tag"

10 years agoam ce077b41: (-s ours) am 81ff7980: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Wed, 16 Apr 2014 15:47:56 +0000 (15:47 +0000)]
am ce077b41: (-s ours) am 81ff7980: (-s ours) Import translations. DO NOT MERGE

* commit 'ce077b417de0b40a622f3679552929968d9c63a5':
  Import translations. DO NOT MERGE

10 years agoam 81ff7980: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Wed, 16 Apr 2014 15:43:33 +0000 (15:43 +0000)]
am 81ff7980: (-s ours) Import translations. DO NOT MERGE

* commit '81ff798050d4223dec7038cc466847e0d2ef999b':
  Import translations. DO NOT MERGE

10 years agoMerge "Import translations. DO NOT MERGE"
Baligh Uddin [Wed, 16 Apr 2014 15:40:22 +0000 (15:40 +0000)]
Merge "Import translations. DO NOT MERGE"

10 years agoAdd displaying DataConnectionRealTimeInfo.
Wink Saville [Wed, 16 Apr 2014 05:05:24 +0000 (22:05 -0700)]
Add displaying DataConnectionRealTimeInfo.

Change-Id: Iadcbf9765af57c125bcdf74e3fc652ed6c8f7d42

10 years agoMerge "Implement color palette in Settings"
Alan Viverette [Wed, 16 Apr 2014 01:25:07 +0000 (01:25 +0000)]
Merge "Implement color palette in Settings"

10 years agoImplement color palette in Settings
Alan Viverette [Wed, 16 Apr 2014 00:42:33 +0000 (17:42 -0700)]
Implement color palette in Settings

Change-Id: I83a4c8726408c253d8f075466c6f51f7c2083e23

10 years agoMerge "Use action bar widget context for accessibility toggle switches"
Alan Viverette [Wed, 16 Apr 2014 00:27:34 +0000 (00:27 +0000)]
Merge "Use action bar widget context for accessibility toggle switches"

10 years agoUse action bar widget context for accessibility toggle switches
Alan Viverette [Wed, 16 Apr 2014 00:08:47 +0000 (17:08 -0700)]
Use action bar widget context for accessibility toggle switches

Change-Id: I078968b3f4f59439743356e9fe241cdf385deef6

10 years agoSearch results - just show the first item of ListPreference entries
Fabrice Di Meglio [Tue, 15 Apr 2014 21:03:19 +0000 (14:03 -0700)]
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

10 years agoUpdate DynamicIndexableContentMonitor
Fabrice Di Meglio [Tue, 15 Apr 2014 02:49:18 +0000 (19:49 -0700)]
Update DynamicIndexableContentMonitor

- use factory for creating Intents
- add missing case in handlePackageUnavailable() for IMEs
- move DynamicIndexableContentMonitor to the "search" package

Change-Id: I8d74b28fb9183827db50c6de4b4543b4ff21acc0

10 years agoUpdate UI for Search results
Fabrice Di Meglio [Tue, 15 Apr 2014 02:44:31 +0000 (19:44 -0700)]
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

10 years agoAdding search for dynamic accessibility settings.
Svetoslav [Tue, 15 Apr 2014 00:14:59 +0000 (17:14 -0700)]
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

10 years agoRebuild search index if dynamic setting packages change.
Svetoslav [Mon, 14 Apr 2014 17:10:25 +0000 (10:10 -0700)]
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

10 years agoSome code cleaning
Fabrice Di Meglio [Tue, 15 Apr 2014 00:01:02 +0000 (17:01 -0700)]
Some code cleaning

- use MatrixCursor var as in the other cases

Change-Id: Iba1163a851e62de9a0dd6e7c1c5d28f06452bdba

10 years agoAllow partial Index rebuilding thru updateFromClassNameResource(...)
Fabrice Di Meglio [Mon, 14 Apr 2014 20:31:14 +0000 (13:31 -0700)]
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

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 14 Apr 2014 19:45:30 +0000 (12:45 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ib2208cee6d0db28359ff978f70de7975b665c037
Auto-generated-cl: translation import

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 14 Apr 2014 19:41:44 +0000 (12:41 -0700)]
Import translations. DO NOT MERGE

Change-Id: I571889dbba0de412f258289e097ec510fbf02e05
Auto-generated-cl: translation import

10 years agoSearch - add support for deleting all preferences for a class name
Fabrice Di Meglio [Mon, 14 Apr 2014 18:24:16 +0000 (11:24 -0700)]
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

10 years agoUpdate SettingsSearchIndexablesProvider for supporting queryNonIndexableKeys(...)
Fabrice Di Meglio [Sat, 12 Apr 2014 01:49:10 +0000 (18:49 -0700)]
Update SettingsSearchIndexablesProvider for supporting queryNonIndexableKeys(...)

- add the new requested method "queryNonIndexableKeys" from the contract

Change-Id: I72be47851a7e19e3f14960f4e2b60c3e952f1fac

10 years agoMerge "Search - add indexing of SecuritySettings"
Fabrice Di Meglio [Sat, 12 Apr 2014 00:54:55 +0000 (00:54 +0000)]
Merge "Search - add indexing of SecuritySettings"

10 years agoSearch - add indexing of SecuritySettings
Fabrice Di Meglio [Fri, 11 Apr 2014 23:09:11 +0000 (16:09 -0700)]
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

10 years agoMerge "Adding search for dynamic print settings."
Svetoslav [Sat, 12 Apr 2014 00:36:45 +0000 (00:36 +0000)]
Merge "Adding search for dynamic print settings."

10 years agoAdding search for dynamic print settings.
Svetoslav [Fri, 11 Apr 2014 23:07:43 +0000 (16:07 -0700)]
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

10 years agoMerge "Adding search for dynamic accessibility settings."
Svetoslav [Sat, 12 Apr 2014 00:19:26 +0000 (00:19 +0000)]
Merge "Adding search for dynamic accessibility settings."

10 years agoAdding search for dynamic accessibility settings.
Svetoslav [Sat, 12 Apr 2014 00:06:17 +0000 (17:06 -0700)]
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

10 years agoMerge "Fallback to the default values when indexing from local resource."
Svetoslav [Fri, 11 Apr 2014 23:38:09 +0000 (23:38 +0000)]
Merge "Fallback to the default values when indexing from local resource."

10 years agoFallback to the default values when indexing from local resource.
Svetoslav [Fri, 11 Apr 2014 22:59:17 +0000 (15:59 -0700)]
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

10 years agoSearch - fix remembered Bluetooth devices indexing
Fabrice Di Meglio [Fri, 11 Apr 2014 21:00:56 +0000 (14:00 -0700)]
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

10 years agoMerge "Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)"
Fabrice Di Meglio [Fri, 11 Apr 2014 18:18:09 +0000 (18:18 +0000)]
Merge "Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)"

10 years agoAdd Indexable.SearchIndexProvider.getNonIndexableKeys(Context)
Fabrice Di Meglio [Fri, 11 Apr 2014 02:25:42 +0000 (19:25 -0700)]
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

10 years agoMerge "Some code refactoring"
Fabrice Di Meglio [Fri, 11 Apr 2014 01:00:52 +0000 (01:00 +0000)]
Merge "Some code refactoring"

10 years agoSome code refactoring
Fabrice Di Meglio [Fri, 11 Apr 2014 00:58:27 +0000 (17:58 -0700)]
Some code refactoring

- use SearchIndexableResources.NO_DATA_RES_ID
- extract code for getting a SearchIndexProvider

Change-Id: I3d31cc58f70b9b0abfa6684d9d20b19534ec5e45

10 years agoMerge "Fix bug #13962001 Search - need to finish indexing "Data usage" Settings"
Fabrice Di Meglio [Thu, 10 Apr 2014 21:46:25 +0000 (21:46 +0000)]
Merge "Fix bug #13962001 Search - need to finish indexing "Data usage" Settings"

10 years agoFix bug #13962001 Search - need to finish indexing "Data usage" Settings
Fabrice Di Meglio [Thu, 10 Apr 2014 20:47:30 +0000 (13:47 -0700)]
Fix bug #13962001 Search - need to finish indexing "Data usage" Settings

- index missing strings

Change-Id: I015452b58bf7dc576bce8fee03b55b38c0094097

10 years agoWrite wifi config to NFC tag
Andres Morales [Mon, 6 Jan 2014 18:24:28 +0000 (10:24 -0800)]
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

10 years agoam e38487bf: (-s ours) am b6b3172c: (-s ours) am 915ef6e3: (-s ours) am 52e3681f...
Baligh Uddin [Thu, 10 Apr 2014 16:09:59 +0000 (16:09 +0000)]
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