Home
last modified time | relevance | path

Searched refs:menuKey (Results 1 – 7 of 7) sorted by relevance

/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/sitemap/
DHighlightableMenu.java67 String menuKey; in getMenuKey() local
74 menuKey = pair.getHighlightableMenuKey(); in getMenuKey()
75 if (!TextUtils.isEmpty(menuKey)) { in getMenuKey()
76 return menuKey; in getMenuKey()
81 menuKey = sAuthorityToMenuKeyMap.get(row.authority); in getMenuKey()
82 if (!TextUtils.isEmpty(menuKey)) { in getMenuKey()
83 logD("Matched authority, title: " + row.updatedTitle + ", menuKey: " + menuKey); in getMenuKey()
84 return menuKey; in getMenuKey()
88 menuKey = sPackageToMenuKeyMap.get(row.packageName); in getMenuKey()
89 if (!TextUtils.isEmpty(menuKey)) { in getMenuKey()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/
DTopLevelHighlightMixin.java179 void setHighlightMenuKey(String menuKey, boolean scrollNeeded) { in setHighlightMenuKey() argument
185 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in setHighlightMenuKey()
187 Log.e(TAG, "Invalid highlight menu key: " + menuKey); in setHighlightMenuKey()
189 Log.d(TAG, "Menu key: " + menuKey); in setHighlightMenuKey()
196 final String menuKey = arguments.getString(SettingsActivity.EXTRA_FRAGMENT_ARG_KEY); in getHighlightPrefKeyFromArguments() local
197 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in getHighlightPrefKeyFromArguments()
199 Log.e(TAG, "Invalid highlight menu key: " + menuKey); in getHighlightPrefKeyFromArguments()
201 Log.d(TAG, "Menu key: " + menuKey); in getHighlightPrefKeyFromArguments()
DHighlightableMenu.java81 final String menuKey = metadata.getString(METADATA_HIGHLIGHTABLE_MENU_KEY); in fromXml() local
82 if (TextUtils.isEmpty(menuKey)) { in fromXml()
88 + menuKey); in fromXml()
91 MENU_TO_PREFERENCE_KEY_MAP.put(menuKey, prefKey); in fromXml()
114 public static String lookupPreferenceKey(String menuKey) { in lookupPreferenceKey() argument
115 return MENU_TO_PREFERENCE_KEY_MAP.get(menuKey); in lookupPreferenceKey()
DSettingsHomepageActivity.java733 final String menuKey = intent.getStringExtra( in getHighlightMenuKey() local
735 if (!TextUtils.isEmpty(menuKey)) { in getHighlightMenuKey()
736 return maybeRemapMenuKey(menuKey); in getHighlightMenuKey()
742 private String maybeRemapMenuKey(String menuKey) { in maybeRemapMenuKey() argument
744 getString(R.string.menu_key_privacy).equals(menuKey) in maybeRemapMenuKey()
745 || getString(R.string.menu_key_security).equals(menuKey); in maybeRemapMenuKey()
746 boolean isSafetyCenterMenuKey = getString(R.string.menu_key_safety_center).equals(menuKey); in maybeRemapMenuKey()
755 return menuKey; in maybeRemapMenuKey()
DTopLevelSettings.java327 public void setHighlightMenuKey(String menuKey, boolean scrollNeeded) { in setHighlightMenuKey() argument
329 mHighlightMixin.setHighlightMenuKey(menuKey, scrollNeeded); in setHighlightMenuKey()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DXmlParserUtils.java101 String menuKey = attrs.getAttributeValue(NS_APP_RES_AUTO, "highlightableMenuKey"); in getHighlightableMenuKey() local
102 if (!TextUtils.isEmpty(menuKey)) { in getHighlightableMenuKey()
103 menuKey = getString(context, menuKey); in getHighlightableMenuKey()
105 return menuKey; in getHighlightableMenuKey()
DIndexDataConverter.java162 String menuKey = row.highlightableMenuKey; in updateIndexDataPayload() local
163 if (!TextUtils.isEmpty(menuKey)) { in updateIndexDataPayload()
167 menuKey = HighlightableMenu.getMenuKey(context, row); in updateIndexDataPayload()
168 if (TextUtils.isEmpty(menuKey)) { in updateIndexDataPayload()
172 updatedIndexData.add(row.mutate().setTopLevelMenuKey(menuKey).build()); in updateIndexDataPayload()