OSDN Git Service

Rank results that match the prefix of the first word higher
authorMatthew Fritze <mfritze@google.com>
Tue, 14 Feb 2017 01:45:46 +0000 (17:45 -0800)
committerMatthew Fritze <mfritze@google.com>
Sat, 18 Feb 2017 22:22:29 +0000 (22:22 +0000)
commitb7b286cb893268bec38584acdf5696f68675eced
treea00a9152d24f2df16ba2934b2709ebe6ae4a11b3
parentc65e3a19a15e7ec73ff9449973a719bb199136ec
Rank results that match the prefix of the first word higher

Differentiates the results that match the first word in
the title from matches farther into the title.

Change-Id: I69f9804a51d1c2b0e476b0f082d634b3a598997c
Fixes: 34975472
Test: make RunSettingsRoboTests
src/com/android/settings/search2/CursorToSearchResultConverter.java
src/com/android/settings/search2/DatabaseResultLoader.java
src/com/android/settings/search2/InstalledAppResultLoader.java
src/com/android/settings/search2/SearchResult.java
tests/robotests/src/com/android/settings/search2/DatabaseResultLoaderTest.java [moved from tests/robotests/src/com/android/settings/search/DatabaseResultLoaderTest.java with 95% similarity]