Fix unit tests when phone is in ja_JP locale

ContactsProvider2 uses method getLocale() to allow tests to override
default locale. This locale, however, was not being used for the
NameSplitter. Change the createNameSplitter method to take locale as an
input parameter so the SearchIndexManager tests will run with the right
search indexes.

Bug:7264326
Change-Id: I2535673032dcd628d8719b00eff6512cba9dc279
2 files changed