[automerger skipped] Merge ab/7061308 into stage. am: 0cdf233f70 -s ours am: dd565d0717 -s ours
am skip reason: Change-Id I7f2edcffeeda6e7e805214c95c08c4fa57a7c50c with SHA-1 f075352694 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/SettingsIntelligence/+/13658529
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia467db1af13d3c005259d01fc13ca0301f9d972e
diff --git a/res/values/strings.xml b/res/values/strings.xml
index eb768f5..3445e51 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -19,6 +19,9 @@
<!-- Applications settings title. If clicked, the user is taken to a screen full of application settings [CHAR_LIMIT=NONE BACKUP_MESSAGE_ID=5281808652705396152] -->
<string name="applications_settings">App info</string>
+ <!-- Class name for AccessibilityServiceResult Task [CHAR_LIMIT=NONE]-->
+ <string name="accessibility_settings_classname">com.android.settings.accessibility.AccessibilitySettings</string>
+
<!-- Settings title in main settings screen for accessibility settings [CHAR_LIMIT=NONE BACKUP_MESSAGE_ID=3975902491934816215] -->
<string name="accessibility_settings">Accessibility</string>
diff --git a/src/com/android/settings/intelligence/search/query/AccessibilityServiceResultTask.java b/src/com/android/settings/intelligence/search/query/AccessibilityServiceResultTask.java
index cd7b4ad..d6de496 100644
--- a/src/com/android/settings/intelligence/search/query/AccessibilityServiceResultTask.java
+++ b/src/com/android/settings/intelligence/search/query/AccessibilityServiceResultTask.java
@@ -42,8 +42,6 @@
public static final int QUERY_WORKER_ID = SettingsIntelligenceLogProto.SettingsIntelligenceEvent
.SEARCH_QUERY_ACCESSIBILITY_SERVICES;
- private static final String ACCESSIBILITY_SETTINGS_CLASSNAME =
- "com.android.settings.accessibility.AccessibilitySettings";
private static final int NAME_NO_MATCH = -1;
private final AccessibilityManager mAccessibilityManager;
@@ -88,7 +86,8 @@
final String componentName = new ComponentName(serviceInfo.packageName,
serviceInfo.name).flattenToString();
final Intent intent = DatabaseIndexingUtils.buildSearchTrampolineIntent(mContext,
- ACCESSIBILITY_SETTINGS_CLASSNAME, componentName, screenTitle);
+ mContext.getString(R.string.accessibility_settings_classname),
+ componentName, screenTitle);
results.add(new SearchResult.Builder()
.setTitle(title)
@@ -111,7 +110,7 @@
private List<String> getBreadCrumb() {
if (mBreadcrumb == null || mBreadcrumb.isEmpty()) {
mBreadcrumb = mSiteMapManager.buildBreadCrumb(
- mContext, ACCESSIBILITY_SETTINGS_CLASSNAME,
+ mContext, mContext.getString(R.string.accessibility_settings_classname),
mContext.getString(R.string.accessibility_settings));
}
return mBreadcrumb;
diff --git a/src/com/android/settings/intelligence/search/query/CursorToSearchResultConverter.java b/src/com/android/settings/intelligence/search/query/CursorToSearchResultConverter.java
index a57f510..d6d865a 100644
--- a/src/com/android/settings/intelligence/search/query/CursorToSearchResultConverter.java
+++ b/src/com/android/settings/intelligence/search/query/CursorToSearchResultConverter.java
@@ -61,7 +61,7 @@
private final int LONG_TITLE_LENGTH = 20;
- private static final String[] whiteList = {
+ private static final String[] allowList = {
"main_toggle_wifi",
"main_toggle_bluetooth",
"main_toggle_bluetooth_obsolete",
@@ -73,7 +73,7 @@
"data_usage_enable",
"button_roaming_key",
};
- private static final Set<String> prioritySettings = new HashSet(Arrays.asList(whiteList));
+ private static final Set<String> prioritySettings = new HashSet(Arrays.asList(allowList));
public CursorToSearchResultConverter(Context context) {