OSDN Git Service

Add dynamic Preferences indexing
authorFabrice Di Meglio <fdimeglio@google.com>
Tue, 11 Mar 2014 02:24:54 +0000 (19:24 -0700)
committerFabrice Di Meglio <fdimeglio@google.com>
Wed, 12 Mar 2014 18:34:59 +0000 (11:34 -0700)
commitb8dfbf140986a9c0781f268ea40914063f026436
treed95f2323502ee694ea9ec1d1481bc2b33d887e4d
parent2f4556e31b5d69e508ab9431eef4fea5f8d89e4f
Add dynamic Preferences indexing

- introduce a new private interface "Indexable".
- refactor Wallpaper and Wi-Fi settings to support this new
interface.
- only index saved/remembered Wi-Fi networks
- also add the capability to remove some data from the Index.

Fragments that want to publish some dynamic indexable data should
implement the "Indexable" interface and provide a static final field
named "INDEX_DATA_PROVIDER" with is the Indexable.IndexDataProvider
interface for providing the data for indexing.

Thru this interface the Index can ask what are the data chuncks to
index.

Change-Id: I31e7212c87b8218efe1a8f3028147cb19e119be6
src/com/android/settings/SettingsActivity.java
src/com/android/settings/WallpaperTypeSettings.java
src/com/android/settings/indexer/Index.java
src/com/android/settings/indexer/Indexable.java [new file with mode: 0644]
src/com/android/settings/indexer/IndexableData.java
src/com/android/settings/indexer/IndexableRef.java [new file with mode: 0644]
src/com/android/settings/wifi/WifiSettings.java