Home
last modified time | relevance | path

Searched refs:getPreferenceCount (Results 1 – 25 of 56) sorted by relevance

123

/packages/apps/EmergencyInfo/tests/src/com/android/emergency/preferences/
DEmergencyContactsPreferenceTest.java83 assertEquals(0, mEmergencyContactsPreference.getPreferenceCount()); in testEmptyState()
100 assertEquals(1, mEmergencyContactsPreference.getPreferenceCount()); in testAddAndRemoveEmergencyContact()
117 assertEquals(0, mEmergencyContactsPreference.getPreferenceCount()); in testAddAndRemoveEmergencyContact()
145 assertEquals(2, mEmergencyContactsPreference.getPreferenceCount()); in testReloadFromPreference()
163 assertEquals(1, mEmergencyContactsPreference.getPreferenceCount()); in testReloadFromPreference()
187 assertEquals(1, mEmergencyContactsPreference.getPreferenceCount()); in testWidgetClick_positiveButton()
216 assertEquals(0, mEmergencyContactsPreference.getPreferenceCount()); in testWidgetClick_positiveButton()
236 assertEquals(1, mEmergencyContactsPreference.getPreferenceCount()); in testWidgetClick_negativeButton()
265 assertEquals(1, mEmergencyContactsPreference.getPreferenceCount()); in testWidgetClick_negativeButton()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DCollapsibleCategory.java47 public int getPreferenceCount() { in getPreferenceCount() method in CollapsibleCategory
51 return super.getPreferenceCount(); in getPreferenceCount()
56 return super.getPreferenceCount(); in getRealPreferenceCount()
66 return super.getPreferenceCount() >= COLLAPSED_ITEM_COUNT + 1; in shouldShowCollapsePref()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsFragment.java139 final int connectedCount = mConnectedGroup.getPreferenceCount(); in refresh()
145 final int standbyCount = mStandbyGroup.getPreferenceCount(); in refresh()
151 final int disconnectedCount = mDisconnectedGroup.getPreferenceCount(); in refresh()
/packages/apps/Settings/src/com/android/settings/
DProgressCategory.java62 boolean noDeviceFound = (getPreferenceCount() == 0 || in onBindViewHolder()
63 (getPreferenceCount() == 1 && getPreference(0) == mNoDeviceFoundPreference)); in onBindViewHolder()
DSettingsPreferenceFragment.java150 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in checkAvailablePrefs()
327 boolean show = (getPreferenceScreen().getPreferenceCount() in updateEmptyView()
384 final int N = group.getPreferenceCount(); in cacheRemoveAllPrefs()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DManagePermissionsFragment.java182 if (mExtraScreen != null && mExtraScreen.getPreferenceCount() > 0 in updatePermissionsUi()
202 int count = mExtraScreen.getPreferenceCount(); in updatePermissionsUi()
207 if (screen.getPreferenceCount() != 0) { in updatePermissionsUi()
DPermissionAppsFragment.java178 for (int i = 0, n = screen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
182 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
272 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
278 grantedCount, mExtraScreen.getPreferenceCount())); in onPermissionsLoaded()
DPermissionsFrameFragment.java193 return screen.getPreferenceCount() == 0 || ( in isPreferenceListEmpty()
194 screen.getPreferenceCount() == 1 && in isPreferenceListEmpty()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DManagePermissionsFragment.java186 if (mExtraScreen != null && mExtraScreen.getPreferenceCount() > 0 in updatePermissionsUi()
206 int count = mExtraScreen.getPreferenceCount(); in updatePermissionsUi()
211 if (screen.getPreferenceCount() != 0) { in updatePermissionsUi()
DPermissionAppsFragment.java180 for (int i = 0, n = screen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
184 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
288 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded()
294 grantedCount, mExtraScreen.getPreferenceCount())); in onPermissionsLoaded()
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/edit/
DEditInfoActivityTest.java84 assertEquals(0, emergencyContactsPreference.getPreferenceCount()); in testInitialState()
154 assertEquals(1, emergencyContactsPreference.getPreferenceCount()); in testClearAllPreferences()
188 assertEquals(0, emergencyContactsPreference.getPreferenceCount()); in testClearAllPreferences()
/packages/apps/Settings/src/com/android/settings/accounts/
DManageAccountsSettings.java215 int count = getPreferenceScreen().getPreferenceCount(); in requestOrCancelSyncForAccounts()
274 for (int i = 0, count = getPreferenceScreen().getPreferenceCount(); i < count; i++) { in showSyncState()
450 for (int i = 0; i < prefs.getPreferenceCount();) { in updatePreferenceIntents()
542 for (int i = 0; i < getPreferenceScreen().getPreferenceCount(); i++) { in onAuthDescriptionsUpdated()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyContactsPreference.java126 while (getPreferenceCount() - emergencyContacts.size() > 0) { in setEmergencyContacts()
134 if (i < getPreferenceCount()) { in setEmergencyContacts()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java204 final Set<String> touchedAccounts = new ArraySet<>(mAccountsGroup.getPreferenceCount()); in updateAccounts()
274 for (int i = 0; i < mAccountsGroup.getPreferenceCount();) { in updateAccounts()
349 for (int i = 0; i < mAccessoriesGroup.getPreferenceCount();) { in updateAccessories()
DRadioPreference.java55 final int count = preferenceGroup.getPreferenceCount(); in clearOtherRadioPreferences()
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java268 for (int i = 0; i < parent.getPreferenceCount(); i++) { in findByKey()
307 for (int i = 0; i < group.getPreferenceCount(); ++i) { in fillEntriesAndSummaries()
336 for (int i = 0; i < group.getPreferenceCount(); ++i) { in recursiveDelete()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSettings.java215 if (mInternalCategory.getPreferenceCount() > 0) { in refresh()
218 if (mExternalCategory.getPreferenceCount() > 0) { in refresh()
222 if (mInternalCategory.getPreferenceCount() == 2 in refresh()
223 && mExternalCategory.getPreferenceCount() == 0) { in refresh()
/packages/apps/Settings/src/com/android/settings/datausage/
DTemplatePreferenceCategory.java52 for (int i = 0; i < getPreferenceCount(); i++) { in pushTemplates()
DDataUsageList.java559 if ((mApps.getPreferenceCount() != 0) !=
560 (getPreferenceScreen().getPreferenceCount() != 0)) {
561 if (mApps.getPreferenceCount() != 0) {
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipEditor.java165 for (int i = 0, n = screen.getPreferenceCount(); i < n; i++) { in onCreate()
550 mPreferences = new Preference[group.getPreferenceCount()]; in loadAdvancedPreferences()
551 int order = screen.getPreferenceCount(); in loadAdvancedPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java178 public int getPreferenceCount() { in getPreferenceCount() method in AppRestrictionsFragment.AppRestrictionsPreference
180 return super.getPreferenceCount(); in getPreferenceCount()
440 p.setOrder(MAX_APP_RESTRICTIONS * (mAppList.getPreferenceCount() + 2)); in populateApps()
522 for (int i = 0; i < mAppList.getPreferenceCount(); i++) { in updateAllEntries()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
DStorageResetFragment.java176 for (int i = 0; i < deviceCategory.getPreferenceCount();) { in refresh()
213 for (int i = 0; i < removableCategory.getPreferenceCount();) { in refresh()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java47 final int count = group.getPreferenceCount(); in replaceAllCheckBoxPreferencesBySwitchPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java207 int count = mSyncCategory.getPreferenceCount(); in requestOrCancelSyncForEnabledProviders()
285 for (int i = 0, count = mSyncCategory.getPreferenceCount(); i < count; i++) { in onSyncStateUpdated()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java210 for (int i = prefScreen.getPreferenceCount() - 1; i >= 0; --i) { in findWordListPreference()
264 for (int i = prefGroup.getPreferenceCount() - 1; i >= 0; --i) { in removeAnyDictSettings()

123