Improve search indexing time.

- Some import clean up.
- Add timing log to track indexing time breakdown.
- Remove isAvailable() from UserDictionaryPreferenceController.

Bug: 36391685
Test: rebuild
Change-Id: If154c5dafba5d21cb1020497c44fbf67f03ad820
This commit is contained in:
Fan Zhang
2017-07-17 11:08:09 -07:00
parent 4b351b4ca1
commit 465d79776f
11 changed files with 140 additions and 99 deletions

View File

@@ -56,16 +56,7 @@ public class UserDictionaryPreferenceControllerTest {
}
@Test
public void testIsAvailable_noLocale_shouldReturnFalse() {
mController.mLocales = null;
assertThat(mController.isAvailable()).isFalse();
}
@Test
public void testIsAvailable_hasLocale_shouldReturnTrue() {
mController.mLocales.add("en");
public void testIsAvailable_shouldReturnTrue() {
assertThat(mController.isAvailable()).isTrue();
}