Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/homepage/
DTopLevelHighlightMixin.java176 void setHighlightMenuKey(String menuKey, boolean scrollNeeded) { in setHighlightMenuKey() argument
182 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in setHighlightMenuKey()
184 Log.e(TAG, "Invalid highlight menu key: " + menuKey); in setHighlightMenuKey()
186 Log.d(TAG, "Menu key: " + menuKey); in setHighlightMenuKey()
193 final String menuKey = arguments.getString(SettingsActivity.EXTRA_FRAGMENT_ARG_KEY); in getHighlightPrefKeyFromArguments() local
194 final String prefKey = HighlightableMenu.lookupPreferenceKey(menuKey); in getHighlightPrefKeyFromArguments()
196 Log.e(TAG, "Invalid highlight menu key: " + menuKey); in getHighlightPrefKeyFromArguments()
198 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.java616 final String menuKey = intent.getStringExtra( in getHighlightMenuKey() local
618 if (!TextUtils.isEmpty(menuKey)) { in getHighlightMenuKey()
619 return maybeRemapMenuKey(menuKey); in getHighlightMenuKey()
625 private String maybeRemapMenuKey(String menuKey) { in maybeRemapMenuKey() argument
627 getString(R.string.menu_key_privacy).equals(menuKey) in maybeRemapMenuKey()
628 || getString(R.string.menu_key_security).equals(menuKey); in maybeRemapMenuKey()
629 boolean isSafetyCenterMenuKey = getString(R.string.menu_key_safety_center).equals(menuKey); in maybeRemapMenuKey()
638 return menuKey; in maybeRemapMenuKey()
DTopLevelSettings.java309 public void setHighlightMenuKey(String menuKey, boolean scrollNeeded) { in setHighlightMenuKey() argument
311 mHighlightMixin.setHighlightMenuKey(menuKey, scrollNeeded); in setHighlightMenuKey()