Search in sources :

Example 1 with GET_RESOLVED_FILTER

use of android.content.pm.PackageManager.GET_RESOLVED_FILTER in project android_packages_apps_Launcher3 by crdroidandroid.

the class DeveloperOptionsFragment method loadPluginPrefs.

private void loadPluginPrefs() {
    if (mPluginsCategory != null) {
        mPreferenceScreen.removePreference(mPluginsCategory);
    }
    if (!PluginManagerWrapper.hasPlugins(getActivity())) {
        mPluginsCategory = null;
        return;
    }
    mPluginsCategory = newCategory("Plugins");
    PluginManagerWrapper manager = PluginManagerWrapper.INSTANCE.get(getContext());
    Context prefContext = getContext();
    PackageManager pm = getContext().getPackageManager();
    Set<String> pluginActions = manager.getPluginActions();
    ArrayMap<Pair<String, String>, ArrayList<Pair<String, ResolveInfo>>> plugins = new ArrayMap<>();
    Set<String> pluginPermissionApps = pm.getPackagesHoldingPermissions(new String[] { PLUGIN_PERMISSION }, MATCH_DISABLED_COMPONENTS).stream().map(pi -> pi.packageName).collect(Collectors.toSet());
    for (String action : pluginActions) {
        String name = toName(action);
        List<ResolveInfo> result = pm.queryIntentServices(new Intent(action), MATCH_DISABLED_COMPONENTS | GET_RESOLVED_FILTER);
        for (ResolveInfo info : result) {
            String packageName = info.serviceInfo.packageName;
            if (!pluginPermissionApps.contains(packageName)) {
                continue;
            }
            Pair<String, String> key = Pair.create(packageName, info.serviceInfo.processName);
            if (!plugins.containsKey(key)) {
                plugins.put(key, new ArrayList<>());
            }
            plugins.get(key).add(Pair.create(name, info));
        }
    }
    PreferenceDataStore enabler = manager.getPluginEnabler();
    plugins.forEach((key, si) -> {
        String packageName = key.first;
        List<ComponentName> componentNames = si.stream().map(p -> new ComponentName(packageName, p.second.serviceInfo.name)).collect(Collectors.toList());
        if (!componentNames.isEmpty()) {
            SwitchPreference pref = new PluginPreference(prefContext, si.get(0).second, enabler, componentNames);
            pref.setSummary("Plugins: " + si.stream().map(p -> p.first).collect(Collectors.joining(", ")));
            mPluginsCategory.addPreference(pref);
        }
    });
}
Also used : Context(android.content.Context) PreferenceGroup(androidx.preference.PreferenceGroup) Context(android.content.Context) Bundle(android.os.Bundle) PackageManager(android.content.pm.PackageManager) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) Pair(android.util.Pair) PreferenceCategory(androidx.preference.PreferenceCategory) Intent(android.content.Intent) PreferenceFragmentCompat(androidx.preference.PreferenceFragmentCompat) Editable(android.text.Editable) MenuItem(android.view.MenuItem) ArrayList(java.util.ArrayList) MenuInflater(android.view.MenuInflater) PreferenceViewHolder(androidx.preference.PreferenceViewHolder) Menu(android.view.Menu) VISIBLE(android.view.View.VISIBLE) View(android.view.View) Settings(android.provider.Settings) Build(android.os.Build) TargetApi(android.annotation.TargetApi) ArrayMap(android.util.ArrayMap) PreferenceScreen(androidx.preference.PreferenceScreen) MATCH_DISABLED_COMPONENTS(android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS) FlagTogglerPrefUi(com.android.launcher3.config.FlagTogglerPrefUi) ComponentName(android.content.ComponentName) SwitchPreference(androidx.preference.SwitchPreference) PLUGIN_CHANGED(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.PLUGIN_CHANGED) IntentFilter(android.content.IntentFilter) GET_RESOLVED_FILTER(android.content.pm.PackageManager.GET_RESOLVED_FILTER) Set(java.util.Set) FeatureFlags(com.android.launcher3.config.FeatureFlags) BroadcastReceiver(android.content.BroadcastReceiver) Preference(androidx.preference.Preference) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) Collectors(java.util.stream.Collectors) PreferenceDataStore(androidx.preference.PreferenceDataStore) ResolveInfo(android.content.pm.ResolveInfo) List(java.util.List) Nullable(androidx.annotation.Nullable) GONE(android.view.View.GONE) R(com.android.launcher3.R) PluginManagerWrapper.pluginEnabledKey(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.pluginEnabledKey) EditText(android.widget.EditText) TextWatcher(android.text.TextWatcher) PreferenceDataStore(androidx.preference.PreferenceDataStore) SwitchPreference(androidx.preference.SwitchPreference) ArrayList(java.util.ArrayList) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) ArrayMap(android.util.ArrayMap) Intent(android.content.Intent) ResolveInfo(android.content.pm.ResolveInfo) PackageManager(android.content.pm.PackageManager) ComponentName(android.content.ComponentName) Pair(android.util.Pair)

Example 2 with GET_RESOLVED_FILTER

use of android.content.pm.PackageManager.GET_RESOLVED_FILTER in project android_packages_apps_Launcher3 by AOSPA.

the class DeveloperOptionsFragment method loadPluginPrefs.

private void loadPluginPrefs() {
    if (mPluginsCategory != null) {
        mPreferenceScreen.removePreference(mPluginsCategory);
    }
    if (!PluginManagerWrapper.hasPlugins(getActivity())) {
        mPluginsCategory = null;
        return;
    }
    mPluginsCategory = newCategory("Plugins");
    PluginManagerWrapper manager = PluginManagerWrapper.INSTANCE.get(getContext());
    Context prefContext = getContext();
    PackageManager pm = getContext().getPackageManager();
    Set<String> pluginActions = manager.getPluginActions();
    ArrayMap<Pair<String, String>, ArrayList<Pair<String, ResolveInfo>>> plugins = new ArrayMap<>();
    Set<String> pluginPermissionApps = pm.getPackagesHoldingPermissions(new String[] { PLUGIN_PERMISSION }, MATCH_DISABLED_COMPONENTS).stream().map(pi -> pi.packageName).collect(Collectors.toSet());
    for (String action : pluginActions) {
        String name = toName(action);
        List<ResolveInfo> result = pm.queryIntentServices(new Intent(action), MATCH_DISABLED_COMPONENTS | GET_RESOLVED_FILTER);
        for (ResolveInfo info : result) {
            String packageName = info.serviceInfo.packageName;
            if (!pluginPermissionApps.contains(packageName)) {
                continue;
            }
            Pair<String, String> key = Pair.create(packageName, info.serviceInfo.processName);
            if (!plugins.containsKey(key)) {
                plugins.put(key, new ArrayList<>());
            }
            plugins.get(key).add(Pair.create(name, info));
        }
    }
    PreferenceDataStore enabler = manager.getPluginEnabler();
    plugins.forEach((key, si) -> {
        String packageName = key.first;
        List<ComponentName> componentNames = si.stream().map(p -> new ComponentName(packageName, p.second.serviceInfo.name)).collect(Collectors.toList());
        if (!componentNames.isEmpty()) {
            SwitchPreference pref = new PluginPreference(prefContext, si.get(0).second, enabler, componentNames);
            pref.setSummary("Plugins: " + si.stream().map(p -> p.first).collect(Collectors.joining(", ")));
            mPluginsCategory.addPreference(pref);
        }
    });
}
Also used : Context(android.content.Context) Bundle(android.os.Bundle) PackageManager(android.content.pm.PackageManager) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) EXTRA_FRAGMENT_ARG_KEY(com.android.launcher3.settings.SettingsActivity.EXTRA_FRAGMENT_ARG_KEY) PreferenceViewHolder(androidx.preference.PreferenceViewHolder) Map(java.util.Map) VISIBLE(android.view.View.VISIBLE) View(android.view.View) TargetApi(android.annotation.TargetApi) Utilities(com.android.launcher3.Utilities) PreferenceScreen(androidx.preference.PreferenceScreen) MATCH_DISABLED_COMPONENTS(android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS) FlagTogglerPrefUi(com.android.launcher3.config.FlagTogglerPrefUi) SwitchPreference(androidx.preference.SwitchPreference) IntentFilter(android.content.IntentFilter) GET_RESOLVED_FILTER(android.content.pm.PackageManager.GET_RESOLVED_FILTER) Set(java.util.Set) BroadcastReceiver(android.content.BroadcastReceiver) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) Collectors(java.util.stream.Collectors) List(java.util.List) Nullable(androidx.annotation.Nullable) GONE(android.view.View.GONE) TextWatcher(android.text.TextWatcher) PreferenceGroup(androidx.preference.PreferenceGroup) Context(android.content.Context) Pair(android.util.Pair) PreferenceCategory(androidx.preference.PreferenceCategory) Intent(android.content.Intent) PreferenceFragmentCompat(androidx.preference.PreferenceFragmentCompat) Editable(android.text.Editable) MenuItem(android.view.MenuItem) ArrayList(java.util.ArrayList) MenuInflater(android.view.MenuInflater) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) Build(android.os.Build) ArrayMap(android.util.ArrayMap) ComponentName(android.content.ComponentName) PLUGIN_CHANGED(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.PLUGIN_CHANGED) FeatureFlags(com.android.launcher3.config.FeatureFlags) Preference(androidx.preference.Preference) PreferenceDataStore(androidx.preference.PreferenceDataStore) ResolveInfo(android.content.pm.ResolveInfo) OnboardingPrefs(com.android.launcher3.util.OnboardingPrefs) SharedPreferences(android.content.SharedPreferences) R(com.android.launcher3.R) PluginManagerWrapper.pluginEnabledKey(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.pluginEnabledKey) EditText(android.widget.EditText) PreferenceDataStore(androidx.preference.PreferenceDataStore) SwitchPreference(androidx.preference.SwitchPreference) ArrayList(java.util.ArrayList) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) ArrayMap(android.util.ArrayMap) Intent(android.content.Intent) ResolveInfo(android.content.pm.ResolveInfo) PackageManager(android.content.pm.PackageManager) ComponentName(android.content.ComponentName) Pair(android.util.Pair)

Example 3 with GET_RESOLVED_FILTER

use of android.content.pm.PackageManager.GET_RESOLVED_FILTER in project android_packages_apps_Launcher3 by ArrowOS.

the class DeveloperOptionsFragment method loadPluginPrefs.

private void loadPluginPrefs() {
    if (mPluginsCategory != null) {
        mPreferenceScreen.removePreference(mPluginsCategory);
    }
    if (!PluginManagerWrapper.hasPlugins(getActivity())) {
        mPluginsCategory = null;
        return;
    }
    mPluginsCategory = newCategory("Plugins");
    PluginManagerWrapper manager = PluginManagerWrapper.INSTANCE.get(getContext());
    Context prefContext = getContext();
    PackageManager pm = getContext().getPackageManager();
    Set<String> pluginActions = manager.getPluginActions();
    ArrayMap<Pair<String, String>, ArrayList<Pair<String, ResolveInfo>>> plugins = new ArrayMap<>();
    Set<String> pluginPermissionApps = pm.getPackagesHoldingPermissions(new String[] { PLUGIN_PERMISSION }, MATCH_DISABLED_COMPONENTS).stream().map(pi -> pi.packageName).collect(Collectors.toSet());
    for (String action : pluginActions) {
        String name = toName(action);
        List<ResolveInfo> result = pm.queryIntentServices(new Intent(action), MATCH_DISABLED_COMPONENTS | GET_RESOLVED_FILTER);
        for (ResolveInfo info : result) {
            String packageName = info.serviceInfo.packageName;
            if (!pluginPermissionApps.contains(packageName)) {
                continue;
            }
            Pair<String, String> key = Pair.create(packageName, info.serviceInfo.processName);
            if (!plugins.containsKey(key)) {
                plugins.put(key, new ArrayList<>());
            }
            plugins.get(key).add(Pair.create(name, info));
        }
    }
    PreferenceDataStore enabler = manager.getPluginEnabler();
    plugins.forEach((key, si) -> {
        String packageName = key.first;
        List<ComponentName> componentNames = si.stream().map(p -> new ComponentName(packageName, p.second.serviceInfo.name)).collect(Collectors.toList());
        if (!componentNames.isEmpty()) {
            SwitchPreference pref = new PluginPreference(prefContext, si.get(0).second, enabler, componentNames);
            pref.setSummary("Plugins: " + si.stream().map(p -> p.first).collect(Collectors.joining(", ")));
            mPluginsCategory.addPreference(pref);
        }
    });
}
Also used : Context(android.content.Context) Bundle(android.os.Bundle) PackageManager(android.content.pm.PackageManager) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) EXTRA_FRAGMENT_ARG_KEY(com.android.launcher3.settings.SettingsActivity.EXTRA_FRAGMENT_ARG_KEY) PreferenceViewHolder(androidx.preference.PreferenceViewHolder) Map(java.util.Map) VISIBLE(android.view.View.VISIBLE) View(android.view.View) TargetApi(android.annotation.TargetApi) Utilities(com.android.launcher3.Utilities) PreferenceScreen(androidx.preference.PreferenceScreen) MATCH_DISABLED_COMPONENTS(android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS) FlagTogglerPrefUi(com.android.launcher3.config.FlagTogglerPrefUi) SwitchPreference(androidx.preference.SwitchPreference) IntentFilter(android.content.IntentFilter) GET_RESOLVED_FILTER(android.content.pm.PackageManager.GET_RESOLVED_FILTER) Set(java.util.Set) BroadcastReceiver(android.content.BroadcastReceiver) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) Collectors(java.util.stream.Collectors) List(java.util.List) Nullable(androidx.annotation.Nullable) GONE(android.view.View.GONE) TextWatcher(android.text.TextWatcher) PreferenceGroup(androidx.preference.PreferenceGroup) Context(android.content.Context) Pair(android.util.Pair) PreferenceCategory(androidx.preference.PreferenceCategory) Intent(android.content.Intent) PreferenceFragmentCompat(androidx.preference.PreferenceFragmentCompat) Editable(android.text.Editable) MenuItem(android.view.MenuItem) ArrayList(java.util.ArrayList) MenuInflater(android.view.MenuInflater) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) Build(android.os.Build) ArrayMap(android.util.ArrayMap) ComponentName(android.content.ComponentName) PLUGIN_CHANGED(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.PLUGIN_CHANGED) FeatureFlags(com.android.launcher3.config.FeatureFlags) Preference(androidx.preference.Preference) PreferenceDataStore(androidx.preference.PreferenceDataStore) ResolveInfo(android.content.pm.ResolveInfo) OnboardingPrefs(com.android.launcher3.util.OnboardingPrefs) SharedPreferences(android.content.SharedPreferences) R(com.android.launcher3.R) PluginManagerWrapper.pluginEnabledKey(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.pluginEnabledKey) EditText(android.widget.EditText) PreferenceDataStore(androidx.preference.PreferenceDataStore) SwitchPreference(androidx.preference.SwitchPreference) ArrayList(java.util.ArrayList) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) ArrayMap(android.util.ArrayMap) Intent(android.content.Intent) ResolveInfo(android.content.pm.ResolveInfo) PackageManager(android.content.pm.PackageManager) ComponentName(android.content.ComponentName) Pair(android.util.Pair)

Example 4 with GET_RESOLVED_FILTER

use of android.content.pm.PackageManager.GET_RESOLVED_FILTER in project android_packages_apps_Launcher3 by ProtonAOSP.

the class DeveloperOptionsFragment method loadPluginPrefs.

private void loadPluginPrefs() {
    if (mPluginsCategory != null) {
        mPreferenceScreen.removePreference(mPluginsCategory);
    }
    if (!PluginManagerWrapper.hasPlugins(getActivity())) {
        mPluginsCategory = null;
        return;
    }
    mPluginsCategory = newCategory("Plugins");
    PluginManagerWrapper manager = PluginManagerWrapper.INSTANCE.get(getContext());
    Context prefContext = getContext();
    PackageManager pm = getContext().getPackageManager();
    Set<String> pluginActions = manager.getPluginActions();
    ArrayMap<Pair<String, String>, ArrayList<Pair<String, ResolveInfo>>> plugins = new ArrayMap<>();
    Set<String> pluginPermissionApps = pm.getPackagesHoldingPermissions(new String[] { PLUGIN_PERMISSION }, MATCH_DISABLED_COMPONENTS).stream().map(pi -> pi.packageName).collect(Collectors.toSet());
    for (String action : pluginActions) {
        String name = toName(action);
        List<ResolveInfo> result = pm.queryIntentServices(new Intent(action), MATCH_DISABLED_COMPONENTS | GET_RESOLVED_FILTER);
        for (ResolveInfo info : result) {
            String packageName = info.serviceInfo.packageName;
            if (!pluginPermissionApps.contains(packageName)) {
                continue;
            }
            Pair<String, String> key = Pair.create(packageName, info.serviceInfo.processName);
            if (!plugins.containsKey(key)) {
                plugins.put(key, new ArrayList<>());
            }
            plugins.get(key).add(Pair.create(name, info));
        }
    }
    PreferenceDataStore enabler = manager.getPluginEnabler();
    plugins.forEach((key, si) -> {
        String packageName = key.first;
        List<ComponentName> componentNames = si.stream().map(p -> new ComponentName(packageName, p.second.serviceInfo.name)).collect(Collectors.toList());
        if (!componentNames.isEmpty()) {
            SwitchPreference pref = new PluginPreference(prefContext, si.get(0).second, enabler, componentNames);
            pref.setSummary("Plugins: " + si.stream().map(p -> p.first).collect(Collectors.joining(", ")));
            mPluginsCategory.addPreference(pref);
        }
    });
}
Also used : Context(android.content.Context) Bundle(android.os.Bundle) PackageManager(android.content.pm.PackageManager) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) EXTRA_FRAGMENT_ARG_KEY(com.android.launcher3.settings.SettingsActivity.EXTRA_FRAGMENT_ARG_KEY) PreferenceViewHolder(androidx.preference.PreferenceViewHolder) Map(java.util.Map) VISIBLE(android.view.View.VISIBLE) View(android.view.View) TargetApi(android.annotation.TargetApi) Utilities(com.android.launcher3.Utilities) PreferenceScreen(androidx.preference.PreferenceScreen) MATCH_DISABLED_COMPONENTS(android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS) FlagTogglerPrefUi(com.android.launcher3.config.FlagTogglerPrefUi) SwitchPreference(androidx.preference.SwitchPreference) IntentFilter(android.content.IntentFilter) GET_RESOLVED_FILTER(android.content.pm.PackageManager.GET_RESOLVED_FILTER) Set(java.util.Set) BroadcastReceiver(android.content.BroadcastReceiver) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) Collectors(java.util.stream.Collectors) List(java.util.List) Nullable(androidx.annotation.Nullable) GONE(android.view.View.GONE) TextWatcher(android.text.TextWatcher) PreferenceGroup(androidx.preference.PreferenceGroup) Context(android.content.Context) Pair(android.util.Pair) PreferenceCategory(androidx.preference.PreferenceCategory) Intent(android.content.Intent) PreferenceFragmentCompat(androidx.preference.PreferenceFragmentCompat) Editable(android.text.Editable) MenuItem(android.view.MenuItem) ArrayList(java.util.ArrayList) MenuInflater(android.view.MenuInflater) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) Build(android.os.Build) ArrayMap(android.util.ArrayMap) ComponentName(android.content.ComponentName) PLUGIN_CHANGED(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.PLUGIN_CHANGED) FeatureFlags(com.android.launcher3.config.FeatureFlags) Preference(androidx.preference.Preference) PreferenceDataStore(androidx.preference.PreferenceDataStore) ResolveInfo(android.content.pm.ResolveInfo) OnboardingPrefs(com.android.launcher3.util.OnboardingPrefs) SharedPreferences(android.content.SharedPreferences) R(com.android.launcher3.R) PluginManagerWrapper.pluginEnabledKey(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.pluginEnabledKey) EditText(android.widget.EditText) PreferenceDataStore(androidx.preference.PreferenceDataStore) SwitchPreference(androidx.preference.SwitchPreference) ArrayList(java.util.ArrayList) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) ArrayMap(android.util.ArrayMap) Intent(android.content.Intent) ResolveInfo(android.content.pm.ResolveInfo) PackageManager(android.content.pm.PackageManager) ComponentName(android.content.ComponentName) Pair(android.util.Pair)

Example 5 with GET_RESOLVED_FILTER

use of android.content.pm.PackageManager.GET_RESOLVED_FILTER in project android_packages_apps_404Launcher by P-404.

the class DeveloperOptionsFragment method loadPluginPrefs.

private void loadPluginPrefs() {
    if (mPluginsCategory != null) {
        mPreferenceScreen.removePreference(mPluginsCategory);
    }
    if (!PluginManagerWrapper.hasPlugins(getActivity())) {
        mPluginsCategory = null;
        return;
    }
    mPluginsCategory = newCategory("Plugins");
    PluginManagerWrapper manager = PluginManagerWrapper.INSTANCE.get(getContext());
    Context prefContext = getContext();
    PackageManager pm = getContext().getPackageManager();
    Set<String> pluginActions = manager.getPluginActions();
    ArrayMap<Pair<String, String>, ArrayList<Pair<String, ResolveInfo>>> plugins = new ArrayMap<>();
    Set<String> pluginPermissionApps = pm.getPackagesHoldingPermissions(new String[] { PLUGIN_PERMISSION }, MATCH_DISABLED_COMPONENTS).stream().map(pi -> pi.packageName).collect(Collectors.toSet());
    for (String action : pluginActions) {
        String name = toName(action);
        List<ResolveInfo> result = pm.queryIntentServices(new Intent(action), MATCH_DISABLED_COMPONENTS | GET_RESOLVED_FILTER);
        for (ResolveInfo info : result) {
            String packageName = info.serviceInfo.packageName;
            if (!pluginPermissionApps.contains(packageName)) {
                continue;
            }
            Pair<String, String> key = Pair.create(packageName, info.serviceInfo.processName);
            if (!plugins.containsKey(key)) {
                plugins.put(key, new ArrayList<>());
            }
            plugins.get(key).add(Pair.create(name, info));
        }
    }
    PreferenceDataStore enabler = manager.getPluginEnabler();
    plugins.forEach((key, si) -> {
        String packageName = key.first;
        List<ComponentName> componentNames = si.stream().map(p -> new ComponentName(packageName, p.second.serviceInfo.name)).collect(Collectors.toList());
        if (!componentNames.isEmpty()) {
            SwitchPreference pref = new PluginPreference(prefContext, si.get(0).second, enabler, componentNames);
            pref.setSummary("Plugins: " + si.stream().map(p -> p.first).collect(Collectors.joining(", ")));
            mPluginsCategory.addPreference(pref);
        }
    });
}
Also used : Context(android.content.Context) Bundle(android.os.Bundle) PackageManager(android.content.pm.PackageManager) NonNull(androidx.annotation.NonNull) Uri(android.net.Uri) EXTRA_FRAGMENT_ARG_KEY(com.android.launcher3.settings.SettingsActivity.EXTRA_FRAGMENT_ARG_KEY) PreferenceViewHolder(androidx.preference.PreferenceViewHolder) Map(java.util.Map) VISIBLE(android.view.View.VISIBLE) View(android.view.View) TargetApi(android.annotation.TargetApi) Utilities(com.android.launcher3.Utilities) PreferenceScreen(androidx.preference.PreferenceScreen) MATCH_DISABLED_COMPONENTS(android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS) FlagTogglerPrefUi(com.android.launcher3.config.FlagTogglerPrefUi) SwitchPreference(androidx.preference.SwitchPreference) IntentFilter(android.content.IntentFilter) GET_RESOLVED_FILTER(android.content.pm.PackageManager.GET_RESOLVED_FILTER) Set(java.util.Set) BroadcastReceiver(android.content.BroadcastReceiver) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) Collectors(java.util.stream.Collectors) List(java.util.List) Nullable(androidx.annotation.Nullable) GONE(android.view.View.GONE) PreferenceFragment(androidx.preference.PreferenceFragment) TextWatcher(android.text.TextWatcher) PreferenceGroup(androidx.preference.PreferenceGroup) Context(android.content.Context) Pair(android.util.Pair) PreferenceCategory(androidx.preference.PreferenceCategory) Intent(android.content.Intent) Editable(android.text.Editable) MenuItem(android.view.MenuItem) ArrayList(java.util.ArrayList) MenuInflater(android.view.MenuInflater) Toast(android.widget.Toast) Menu(android.view.Menu) Settings(android.provider.Settings) Build(android.os.Build) ArrayMap(android.util.ArrayMap) ComponentName(android.content.ComponentName) PLUGIN_CHANGED(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.PLUGIN_CHANGED) FeatureFlags(com.android.launcher3.config.FeatureFlags) Preference(androidx.preference.Preference) PreferenceDataStore(androidx.preference.PreferenceDataStore) ResolveInfo(android.content.pm.ResolveInfo) OnboardingPrefs(com.android.launcher3.util.OnboardingPrefs) SharedPreferences(android.content.SharedPreferences) R(com.android.launcher3.R) PluginManagerWrapper.pluginEnabledKey(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper.pluginEnabledKey) EditText(android.widget.EditText) PreferenceDataStore(androidx.preference.PreferenceDataStore) SwitchPreference(androidx.preference.SwitchPreference) ArrayList(java.util.ArrayList) PluginManagerWrapper(com.android.launcher3.uioverrides.plugins.PluginManagerWrapper) ArrayMap(android.util.ArrayMap) Intent(android.content.Intent) ResolveInfo(android.content.pm.ResolveInfo) PackageManager(android.content.pm.PackageManager) ComponentName(android.content.ComponentName) Pair(android.util.Pair)

Aggregations

TargetApi (android.annotation.TargetApi)5 BroadcastReceiver (android.content.BroadcastReceiver)5 ComponentName (android.content.ComponentName)5 Context (android.content.Context)5 Intent (android.content.Intent)5 IntentFilter (android.content.IntentFilter)5 PackageManager (android.content.pm.PackageManager)5 GET_RESOLVED_FILTER (android.content.pm.PackageManager.GET_RESOLVED_FILTER)5 MATCH_DISABLED_COMPONENTS (android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS)5 ResolveInfo (android.content.pm.ResolveInfo)5 Uri (android.net.Uri)5 Build (android.os.Build)5 Bundle (android.os.Bundle)5 Settings (android.provider.Settings)5 Editable (android.text.Editable)5 TextWatcher (android.text.TextWatcher)5 ArrayMap (android.util.ArrayMap)5 Pair (android.util.Pair)5 Menu (android.view.Menu)5 MenuInflater (android.view.MenuInflater)5