Home
last modified time | relevance | path

Searched refs:PreferenceUtils (Results 1 – 12 of 12) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DLegalFragment.java30 import com.android.tv.settings.PreferenceUtils;
50 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
51 findPreference(KEY_TERMS), PreferenceUtils.FLAG_SET_TITLE); in onCreatePreferences()
52 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
53 findPreference(KEY_LICENSE), PreferenceUtils.FLAG_SET_TITLE); in onCreatePreferences()
54 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
55 findPreference(KEY_COPYRIGHT), PreferenceUtils.FLAG_SET_TITLE); in onCreatePreferences()
56 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
57 findPreference(KEY_WEBVIEW_LICENSE), PreferenceUtils.FLAG_SET_TITLE); in onCreatePreferences()
64 PreferenceUtils.resolveSystemActivityOrRemove(context, screen, in onCreatePreferences()
[all …]
DAboutFragment.java59 import com.android.tv.settings.PreferenceUtils;
158 PreferenceUtils.resolveSystemActivityOrRemove(getActivity(), screen, deviceNamePref, 0); in onCreatePreferences()
275 PreferenceUtils.resolveSystemActivityOrRemove(getActivity(), screen, regulatoryPref, 0); in onCreatePreferences()
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/util/
DPreferenceUtilsTest.java67 PACKAGE_NAME + PreferenceUtils.SETTINGS_SUGGESTION_ACTIVITY_ALIAS); in setUp()
82 assertThat(PreferenceUtils.hasAtLeastOnePreferenceSet(mContext)).isFalse(); in testHasAtLeastOnePreferenceSet_notSet()
89 assertThat(PreferenceUtils.hasAtLeastOnePreferenceSet(mContext)).isTrue(); in testHasAtLeastOnePreferenceSet_set()
97 assertThat(PreferenceUtils.hasAtLeastOneEmergencyContact(mContext)).isFalse(); in testHasAtLeastOneEmergencyContact_notSet()
110 assertThat(PreferenceUtils.hasAtLeastOneEmergencyContact(mContext)).isTrue(); in testHasAtLeastOneEmergencyContact_set()
115 PreferenceUtils.enableSettingsSuggestion(mContext); in testEnableSettingsSuggestion()
133 PreferenceUtils.updateSettingsSuggestionState(mContext); in testUpdateSettingsSuggestionState_contactSet()
145 PreferenceUtils.updateSettingsSuggestionState(mContext); in testUpdateSettingsSuggestionState_noPreferencesOrContactSet()
158 PreferenceUtils.updateSettingsSuggestionState(mContext); in testUpdateSettingsSuggestionState_preferenceSet()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DViewEmergencyContactsPreference.java26 import com.android.emergency.util.PreferenceUtils;
40 if (PreferenceUtils.hasAtLeastOnePreferenceSet(getContext())) { in onBindViewHolder()
DEmergencyContactsPreference.java34 import com.android.emergency.util.PreferenceUtils;
214 PreferenceUtils.updateSettingsSuggestionState(getContext()); in setEmergencyContacts()
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditInfoActivity.java40 import com.android.emergency.util.PreferenceUtils;
80 PreferenceUtils.updateSettingsSuggestionState(this); in onCreate()
131 PreferenceUtils.enableSettingsSuggestion(this); in onClearAllPreferences()
DEditMedicalInfoFragment.java29 import com.android.emergency.util.PreferenceUtils;
67 PreferenceUtils.updateSettingsSuggestionState(getActivity()); in onCreatePreferences()
DEditInfoFragment.java39 import com.android.emergency.util.PreferenceUtils;
175 PreferenceUtils.updateSettingsSuggestionState(mContext); in onPreferenceChange()
/packages/apps/EmergencyInfo/src/com/android/emergency/view/
DViewInfoActivity.java54 import com.android.emergency.util.PreferenceUtils;
203 if (PreferenceUtils.hasAtLeastOnePreferenceSet(this)) { in setUpFragments()
207 if (PreferenceUtils.hasAtLeastOneEmergencyContact(this)) { in setUpFragments()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/
DEditInfoActivityTest.java48 import com.android.emergency.util.PreferenceUtils;
96 packageName + PreferenceUtils.SETTINGS_SUGGESTION_ACTIVITY_ALIAS); in testInitialState()
126 packageName + PreferenceUtils.SETTINGS_SUGGESTION_ACTIVITY_ALIAS); in testClearAllPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DPreferenceUtils.java33 public final class PreferenceUtils { class
/packages/apps/EmergencyInfo/src/com/android/emergency/util/
DPreferenceUtils.java33 public class PreferenceUtils { class