Home
last modified time | relevance | path

Searched refs:AppLocaleUtil (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppLocaleUtilTest.java84 AppLocaleUtil.sLocaleConfig = null; in tearDown()
91 AppLocaleUtil.sLocaleConfig = mLocaleConfig; in canDisplayLocaleUi_showUI()
95 assertTrue(AppLocaleUtil.canDisplayLocaleUi(mContext, mAppInfo, mListResolveInfo)); in canDisplayLocaleUi_showUI()
104 assertFalse(AppLocaleUtil.canDisplayLocaleUi(mContext, mAppInfo, mListResolveInfo)); in canDisplayLocaleUi_notShowUI_hasPlatformKey()
111 assertFalse(AppLocaleUtil.canDisplayLocaleUi(mContext, mAppInfo, mListResolveInfo)); in canDisplayLocaleUi_notShowUI_noLauncherEntry()
119 assertFalse(AppLocaleUtil in canDisplayLocaleUi_notShowUI_matchDisallowedPackageList()
128 LocaleList result = AppLocaleUtil.getPackageLocales(mLocaleConfig); in getPackageLocales_getLocales_success()
137 LocaleList result = AppLocaleUtil.getPackageLocales(mLocaleConfig); in getPackageLocales_getLocales_failed()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppLocalePreferenceController.java31 import com.android.settings.applications.AppLocaleUtil;
47 AppLocaleUtil.LAUNCHER_ENTRY_INTENT, PackageManager.GET_META_DATA); in AppLocalePreferenceController()
84 return AppLocaleUtil in canDisplayLocaleUi()
DAppLocaleDetails.java43 import com.android.settings.applications.AppLocaleUtil;
181 LocaleList packageLocaleList = AppLocaleUtil.getPackageLocales(getContext(), mPackageName); in getAppDescription()
182 String[] assetLocaleList = AppLocaleUtil.getAssetLocales(getContext(), mPackageName); in getAppDescription()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppLocalePreferenceTest.kt35 import com.android.settings.applications.AppLocaleUtil
75 .mockStatic(AppLocaleUtil::class.java) in setUp()
80 whenever(AppLocaleUtil.canDisplayLocaleUi(any(), eq(APP), any())).thenReturn(true) in setUp()
91 whenever(AppLocaleUtil.canDisplayLocaleUi(any(), eq(APP), any())).thenReturn(false) in whenCanNotDisplayLocalUi_notDisplayed()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppLocalePreference.kt33 import com.android.settings.applications.AppLocaleUtil
70 AppLocaleUtil.LAUNCHER_ENTRY_INTENT, in <lambda>()
74 AppLocaleUtil.canDisplayLocaleUi(context, app, resolveInfos) in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateLocaleBridge.java57 app.extraInfo = AppLocaleUtil.canDisplayLocaleUi(appInfoByProfiles.mContextAsUser, in updateExtraInfo()
68 app.extraInfo = AppLocaleUtil.canDisplayLocaleUi(appInfoByProfiles.mContextAsUser, in loadAllExtraInfo()
129 AppLocaleUtil.LAUNCHER_ENTRY_INTENT, PackageManager.GET_META_DATA); in AppInfoByProfiles()
DAppLocaleUtil.java40 public class AppLocaleUtil { class
41 private static final String TAG = AppLocaleUtil.class.getSimpleName();
/packages/apps/Settings/src/com/android/settings/spa/system/
DAppLanguagesListModel.kt31 import com.android.settings.applications.AppLocaleUtil in <lambda>()
59 AppLocaleUtil.LAUNCHER_ENTRY_INTENT, in <lambda>()
68 isAppLocaleSupported = AppLocaleUtil.canDisplayLocaleUi( in <lambda>()
/packages/apps/Settings/src/com/android/settings/localepicker/
DAppLocalePickerActivity.java46 import com.android.settings.applications.AppLocaleUtil;
274 return AppLocaleUtil.canDisplayLocaleUi(this, in canDisplayLocaleUi()
276 packageManager.queryIntentActivities(AppLocaleUtil.LAUNCHER_ENTRY_INTENT, in canDisplayLocaleUi()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DAppLocalePickerActivityTest.java55 import com.android.settings.applications.AppLocaleUtil;
123 ReflectionHelpers.setStaticField(AppLocaleUtil.class, "sLocaleConfig", mLocaleConfig); in setUp()
131 ReflectionHelpers.setStaticField(AppLocaleUtil.class, "sLocaleConfig", null); in tearDown()