diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d258c46da45..19172141b7b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -281,8 +281,6 @@
android:value="com.android.settings.wifi.WifiSettings" />
-
prefActList = new ArrayList<>();
- // Intent list cannot be null. so pass empty list
- List intentList = new ArrayList<>();
- pm.getPreferredActivities(intentList, prefActList, packageName);
- Log.d(TAG, "Have " + prefActList.size() + " number of activities in preferred list");
- return prefActList.size() > 0;
- }
-
public static ArraySet getHandledDomains(PackageManager pm, String packageName) {
List iviList = pm.getIntentFilterVerifications(packageName);
List filters = pm.getAllIntentFilters(packageName);
@@ -808,12 +747,6 @@ public final class Utils extends com.android.settingslib.Utils {
return um.getCredentialOwnerProfile(userId);
}
- public static int resolveResource(Context context, int attr) {
- TypedValue value = new TypedValue();
- context.getTheme().resolveAttribute(attr, value, true);
- return value.resourceId;
- }
-
private static final StringBuilder sBuilder = new StringBuilder(50);
private static final java.util.Formatter sFormatter = new java.util.Formatter(
sBuilder, Locale.getDefault());
@@ -828,47 +761,6 @@ public final class Utils extends com.android.settingslib.Utils {
}
}
- public static List getNonIndexable(int xml, Context context) {
- if (Looper.myLooper() == null) {
- // Hack to make sure Preferences can initialize. Prefs expect a looper, but
- // don't actually use it for the basic stuff here.
- Looper.prepare();
- }
- final List ret = new ArrayList<>();
- PreferenceManager manager = new PreferenceManager(context);
- PreferenceScreen screen = manager.inflateFromResource(context, xml, null);
- checkPrefs(screen, ret);
-
- return ret;
- }
-
- private static void checkPrefs(PreferenceGroup group, List ret) {
- if (group == null) return;
- for (int i = 0; i < group.getPreferenceCount(); i++) {
- Preference pref = group.getPreference(i);
- if (pref instanceof SelfAvailablePreference
- && !((SelfAvailablePreference) pref).isAvailable(group.getContext())) {
- ret.add(pref.getKey());
- if (pref instanceof PreferenceGroup) {
- addAll((PreferenceGroup) pref, ret);
- }
- } else if (pref instanceof PreferenceGroup) {
- checkPrefs((PreferenceGroup) pref, ret);
- }
- }
- }
-
- private static void addAll(PreferenceGroup group, List ret) {
- if (group == null) return;
- for (int i = 0; i < group.getPreferenceCount(); i++) {
- Preference pref = group.getPreference(i);
- ret.add(pref.getKey());
- if (pref instanceof PreferenceGroup) {
- addAll((PreferenceGroup) pref, ret);
- }
- }
- }
-
public static boolean isDeviceProvisioned(Context context) {
return Settings.Global.getInt(context.getContentResolver(),
Settings.Global.DEVICE_PROVISIONED, 0) != 0;
@@ -899,14 +791,6 @@ public final class Utils extends com.android.settingslib.Utils {
return confirmWorkProfileCredentials(context, userId);
}
- public static boolean confirmWorkProfileCredentialsIfNecessary(Context context, int userId) {
- KeyguardManager km = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);
- if (!km.isDeviceLocked(userId)) {
- return false;
- }
- return confirmWorkProfileCredentials(context, userId);
- }
-
private static boolean confirmWorkProfileCredentials(Context context, int userId) {
final KeyguardManager km = (KeyguardManager) context.getSystemService(
Context.KEYGUARD_SERVICE);