Don't assume languages are 2 letter codes.

Also, note that this method never worked. Locale
settings were stored with underscores (like Locale.toString)
but matched against AssetManager.getLocales() which
returned language-tag like output.

bug: 10090157
Change-Id: I36ffea6e39ff7d1907b2787f8fd4545c24d326a8
(cherry picked from commit e39964d1b8171350e0f73c7c6d17adc081e37ae8)
Automatic translation import

Change-Id: I0edfeab43d64a29fef069702d542ebd6540075bb
(cherry picked from commit 1317de43a2f94012dfe6f25ccb8b648c338eef6e)
Add new Card Unavailable reason for SIM power down in APM.

REASON_APM_SIM_POWER_DOWN value added to CardUnavailableReason enum.
This is to indicate card absent event received when SIM is powered
down in APM.

Change-Id: I985e06d629715ebc0489a2fb19e908ab652bfeeb
CRs-Fixed: 661325
(cherry picked from commit 5a828817aa8a627acc2c03df6fc688e6758d1de3)