Home
last modified time | relevance | path

Searched refs:entries (Results 1 – 25 of 148) sorted by relevance

123456

/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java160 Cursor entries) { in performInstanceExpansion() argument
168 int statusColumn = entries.getColumnIndex(Events.STATUS); in performInstanceExpansion()
169 int dtstartColumn = entries.getColumnIndex(Events.DTSTART); in performInstanceExpansion()
170 int dtendColumn = entries.getColumnIndex(Events.DTEND); in performInstanceExpansion()
171 int eventTimezoneColumn = entries.getColumnIndex(Events.EVENT_TIMEZONE); in performInstanceExpansion()
172 int durationColumn = entries.getColumnIndex(Events.DURATION); in performInstanceExpansion()
173 int rruleColumn = entries.getColumnIndex(Events.RRULE); in performInstanceExpansion()
174 int rdateColumn = entries.getColumnIndex(Events.RDATE); in performInstanceExpansion()
175 int exruleColumn = entries.getColumnIndex(Events.EXRULE); in performInstanceExpansion()
176 int exdateColumn = entries.getColumnIndex(Events.EXDATE); in performInstanceExpansion()
[all …]
/packages/apps/TV/src/com/android/tv/guide/
DProgramManager.java134 List<TableEntry> entries =
136 mChannelIdEntriesMap.put(channelId, entries);
353 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId); in getProgramIdIndex() local
354 if (entries != null) { in getProgramIdIndex()
355 for (int i = 0; i < entries.size(); i++) { in getProgramIdIndex()
356 if (entries.get(i).getId() == entryId) { in getProgramIdIndex()
366 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId); in getProgramIndexAtTime() local
367 if (entries != null) { in getProgramIndexAtTime()
368 for (int i = 0; i < entries.size(); ++i) { in getProgramIndexAtTime()
369 TableEntry entry = entries.get(i); in getProgramIndexAtTime()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java82 List<Entry> entries = dbHelper.getEntries(WidgetDatabaseHelper.TYPE_ALBUM); in migrateGalleryWidgetsInternal() local
83 if (entries == null) return; in migrateGalleryWidgetsInternal()
89 HashMap<Integer, Entry> localEntries = new HashMap<Integer, Entry>(entries.size()); in migrateGalleryWidgetsInternal()
90 for (Entry entry : entries) { in migrateGalleryWidgetsInternal()
107 HashMap<Integer, Entry> entries, WidgetDatabaseHelper dbHelper) { in migrateLocalEntries() argument
111 migrateLocalEntries(entries, dbHelper, oldExtPath); in migrateLocalEntries()
116 migrateLocalEntries(entries, dbHelper, PRE_JB_EXT_PATH); in migrateLocalEntries()
117 if (!entries.isEmpty() && in migrateLocalEntries()
119 migrateLocalEntries(entries, dbHelper, JB_EXT_PATH); in migrateLocalEntries()
123 private static void migrateLocalEntries(HashMap<Integer, Entry> entries, in migrateLocalEntries() argument
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo() local
139 loadPermissionsStates(entries); in loadAllExtraInfo()
140 loadAppOpsStates(entries); in loadAllExtraInfo()
148 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo()
174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries() local
178 entries.put(profileId, entriesForProfile); in getEntries()
189 return entries; in getEntries()
201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates() argument
203 if (entries == null) { in loadPermissionsStates()
210 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo() local
139 loadPermissionsStates(entries); in loadAllExtraInfo()
140 loadAppOpsStates(entries); in loadAllExtraInfo()
148 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo()
174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries() local
178 entries.put(profileId, entriesForProfile); in getEntries()
189 return entries; in getEntries()
201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates() argument
203 if (entries == null) { in loadPermissionsStates()
210 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java108 final CharSequence[] entries = mListPreference.getEntries(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() local
109 assertThat(entries.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
110 assertThat(entries[0]).isEqualTo("sub1"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
111 assertThat(entries[1]).isEqualTo("sub2"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
112 assertThat(entries[2]).isEqualTo(mContext.getString(R.string.calls_and_sms_ask_every_time)); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
136 final CharSequence[] entries = mListPreference.getEntries(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() local
137 assertThat(entries.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
138 assertThat(entries[0]).isEqualTo("sub1"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
139 assertThat(entries[1]).isEqualTo("sub2"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
140 assertThat(entries[2]).isEqualTo(mContext.getString(R.string.calls_and_sms_ask_every_time)); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DWriteableArchiveTest.java187 final Enumeration<? extends ZipEntry> entries = zip.entries(); in testAddDirectory() local
188 assertTrue(entries.hasMoreElements()); in testAddDirectory()
189 final ZipEntry entry = entries.nextElement(); in testAddDirectory()
191 assertFalse(entries.hasMoreElements()); in testAddDirectory()
258 final Enumeration<? extends ZipEntry> entries = zip.entries(); in testAddFile() local
259 assertTrue(entries.hasMoreElements()); in testAddFile()
260 final ZipEntry entry = entries.nextElement(); in testAddFile()
262 assertFalse(entries.hasMoreElements()); in testAddFile()
287 final Enumeration<? extends ZipEntry> entries = zip.entries(); in testAddFile_empty() local
288 assertTrue(entries.hasMoreElements()); in testAddFile_empty()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java114 List<SpeedDialEntry> entries = new ArrayList<>(); in getAllEntries() local
146 entries.add(entry); in getAllEntries()
149 return ImmutableList.copyOf(entries); in getAllEntries()
153 public ImmutableMap<SpeedDialEntry, Long> insert(ImmutableList<SpeedDialEntry> entries) { in insert() argument
154 if (entries.isEmpty()) { in insert()
161 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entries); in insert()
171 SQLiteDatabase writeableDatabase, ImmutableList<SpeedDialEntry> entries) { in insert() argument
173 for (SpeedDialEntry entry : entries) { in insert()
202 public void update(ImmutableList<SpeedDialEntry> entries) { in update() argument
203 if (entries.isEmpty()) { in update()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DBackupAppsStepFragment.java142 final List<ApplicationsState.AppEntry> entries = mSession.rebuild(mAppFilter, in onCreateActions() local
144 if (entries != null) { in onCreateActions()
145 actions.addAll(getAppActions(true, entries)); in onCreateActions()
150 List<ApplicationsState.AppEntry> entries) { in getAppActions() argument
152 final List<GuidedAction> actions = new ArrayList<>(entries.size() + 1); in getAppActions()
178 for (final ApplicationsState.AppEntry entry : entries) { in getAppActions()
189 mEntries.addAll(entries); in getAppActions()
195 mIconLoaderTask = new IconLoaderTask(entries); in getAppActions()
209 final List<ApplicationsState.AppEntry> entries = mSession.rebuild(mAppFilter, in updateActions() local
211 if (entries != null) { in updateActions()
[all …]
/packages/apps/Settings/src/com/android/settings/dream/
DWhenToDreamPicker.java55 final String[] entries = entries(); in getCandidates() local
59 if (entries == null || entries.length <= 0) return null; in getCandidates()
60 if (values == null || values.length != entries.length) { in getCandidates()
64 for (int i = 0; i < entries.length; i++) { in getCandidates()
65 candidates.add(new WhenToDreamCandidateInfo(entries[i], values[i])); in getCandidates()
71 private String[] entries() { in entries() method in WhenToDreamPicker
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dream/
DWhenToDreamPicker.java55 final String[] entries = entries(); in getCandidates() local
59 if (entries == null || entries.length <= 0) return null; in getCandidates()
60 if (values == null || values.length != entries.length) { in getCandidates()
64 for (int i = 0; i < entries.length; i++) { in getCandidates()
65 candidates.add(new WhenToDreamCandidateInfo(entries[i], values[i])); in getCandidates()
71 private String[] entries() { in entries() method in WhenToDreamPicker
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbumSet.java94 private static int findBucket(BucketEntry entries[], int bucketId) { in findBucket() argument
95 for (int i = 0, n = entries.length; i < n; ++i) { in findBucket()
96 if (entries[i].bucketId == bucketId) return i; in findBucket()
108 BucketEntry[] entries = BucketHelper.loadBucketEntries( in run() local
116 int index = findBucket(entries, MediaSetUtils.CAMERA_BUCKET_ID); in run()
118 circularShiftRight(entries, offset++, index); in run()
120 index = findBucket(entries, MediaSetUtils.DOWNLOAD_BUCKET_ID); in run()
122 circularShiftRight(entries, offset++, index); in run()
127 for (BucketEntry entry : entries) { in run()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppEntryListManagerTest.java123 ArrayList<AppEntry> entries = new ArrayList<>(); in forceUpdate_loadsExtraInfo() local
124 entries.add(mock(AppEntry.class)); in forceUpdate_loadsExtraInfo()
125 when(mSession.getAllApps()).thenReturn(entries); in forceUpdate_loadsExtraInfo()
129 verify(mExtraInfoBridge).loadExtraInfo(entries); in forceUpdate_loadsExtraInfo()
155 ArrayList<AppEntry> entries = new ArrayList<>(); in onRebuildComplete_callsCallback() local
156 entries.add(mock(AppEntry.class)); in onRebuildComplete_callsCallback()
158 mSessionCallbacksCaptor.getValue().onRebuildComplete(entries); in onRebuildComplete_callsCallback()
160 verify(mCallback).onAppEntryListChanged(entries); in onRebuildComplete_callsCallback()
DAppOpsPreferenceControllerTest.java168 List<AppEntry> entries = Arrays.asList( in onAppEntryListChanged_addsPreferencesForEntries() local
172 mCallbackCaptor.getValue().onAppEntryListChanged(entries); in onAppEntryListChanged_addsPreferencesForEntries()
184 List<AppEntry> entries = Collections.singletonList( in onPreferenceChange_checkedState_setsAppOpModeAllowed() local
186 mCallbackCaptor.getValue().onAppEntryListChanged(entries); in onPreferenceChange_checkedState_setsAppOpModeAllowed()
200 List<AppEntry> entries = Collections.singletonList( in onPreferenceChange_uncheckedState_setsNegativeAppOpMode() local
202 mCallbackCaptor.getValue().onAppEntryListChanged(entries); in onPreferenceChange_uncheckedState_setsNegativeAppOpMode()
214 List<AppEntry> entries = Collections.singletonList( in onPreferenceChange_updatesEntry() local
216 mCallbackCaptor.getValue().onAppEntryListChanged(entries); in onPreferenceChange_updatesEntry()
221 verify(mAppEntryListManager).forceUpdate(entries.get(0)); in onPreferenceChange_updatesEntry()
/packages/apps/Dialer/java/com/android/dialer/speeddial/loader/
DSpeedDialUiItemMutator.java150 ImmutableList<SpeedDialEntry> entries = db.getAllEntries(); in removeStarredSpeedDialUiItem() local
154 for (SpeedDialEntry entry : entries) { in removeStarredSpeedDialUiItem()
250 List<SpeedDialEntry> entries = db.getAllEntries(); in loadSpeedDialUiItemsInternal() local
251 entries = updateContactIdsAndLookupKeys(entries); in loadSpeedDialUiItemsInternal()
254 Map<SpeedDialEntry, SpeedDialUiItem> entriesToUiItems = getSpeedDialUiItemsFromEntries(entries); in loadSpeedDialUiItemsInternal()
256 entries.size() == entriesToUiItems.size(), in loadSpeedDialUiItemsInternal()
257 "Updated entries are incomplete: " + entries.size() + " != " + entriesToUiItems.size()); in loadSpeedDialUiItemsInternal()
261 for (SpeedDialEntry entry : entries) { in loadSpeedDialUiItemsInternal()
368 private List<SpeedDialEntry> updateContactIdsAndLookupKeys(List<SpeedDialEntry> entries) { in updateContactIdsAndLookupKeys() argument
371 for (SpeedDialEntry entry : entries) { in updateContactIdsAndLookupKeys()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java480 List<AppEntry> entries = new ArrayList<>(); in testComparators_nullsNoCrash() local
485 entries.add(a); in testComparators_nullsNoCrash()
486 entries.add(b); in testComparators_nullsNoCrash()
488 entries.sort(RECENT_NOTIFICATION_COMPARATOR); in testComparators_nullsNoCrash()
489 entries.sort(FREQUENCY_NOTIFICATION_COMPARATOR); in testComparators_nullsNoCrash()
494 List<AppEntry> entries = new ArrayList<>(); in testRecencyComparator() local
500 entries.add(earlyEntry); in testRecencyComparator()
506 entries.add(lateEntry); in testRecencyComparator()
508 entries.sort(RECENT_NOTIFICATION_COMPARATOR); in testRecencyComparator()
510 assertThat(entries).containsExactly(lateEntry, earlyEntry); in testRecencyComparator()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DLockScreenNotificationPreferenceController.java114 ArrayList<CharSequence> entries = new ArrayList<>(); in initLockScreenNotificationPrefDisplay() local
121 entries.add(summaryShowEntry); in initLockScreenNotificationPrefDisplay()
131 entries.add(summaryHideEntry); in initLockScreenNotificationPrefDisplay()
137 entries.add(mContext.getString(R.string.lock_screen_notifications_summary_disable)); in initLockScreenNotificationPrefDisplay()
141 mLockscreen.setEntries(entries.toArray(new CharSequence[entries.size()])); in initLockScreenNotificationPrefDisplay()
158 ArrayList<CharSequence> entries = new ArrayList<>(); in initLockscreenNotificationPrefForProfile() local
165 entries.add(summaryShowEntry); in initLockscreenNotificationPrefForProfile()
175 entries.add(summaryHideEntry); in initLockscreenNotificationPrefForProfile()
181 mLockscreenProfile.setEntries(entries.toArray(new CharSequence[entries.size()])); in initLockscreenNotificationPrefForProfile()
/packages/apps/Settings/src/com/android/settings/notification/
DLockScreenNotificationPreferenceController.java114 ArrayList<CharSequence> entries = new ArrayList<>(); in initLockScreenNotificationPrefDisplay() local
121 entries.add(summaryShowEntry); in initLockScreenNotificationPrefDisplay()
131 entries.add(summaryHideEntry); in initLockScreenNotificationPrefDisplay()
137 entries.add(mContext.getString(R.string.lock_screen_notifications_summary_disable)); in initLockScreenNotificationPrefDisplay()
141 mLockscreen.setEntries(entries.toArray(new CharSequence[entries.size()])); in initLockScreenNotificationPrefDisplay()
158 ArrayList<CharSequence> entries = new ArrayList<>(); in initLockscreenNotificationPrefForProfile() local
165 entries.add(summaryShowEntry); in initLockscreenNotificationPrefForProfile()
175 entries.add(summaryHideEntry); in initLockscreenNotificationPrefForProfile()
181 mLockscreenProfile.setEntries(entries.toArray(new CharSequence[entries.size()])); in initLockscreenNotificationPrefForProfile()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java419 final ArrayList<ValuesDelta> entries = state.getMimeEntries(mimeType); in trimEmpty() local
420 if (entries == null) continue; in trimEmpty()
422 for (ValuesDelta entry : entries) { in trimEmpty()
457 final ArrayList<ValuesDelta> entries = state.getMimeEntries(mimeType); in hasChanges() local
458 if (entries == null) continue; in hasChanges()
460 for (ValuesDelta entry : entries) { in hasChanges()
714 ArrayList<ValuesDelta> entries = state.getMimeEntries(mimeType); in parseValues() local
720 if (entries != null && entries.size() > 0) { in parseValues()
721 for (ValuesDelta delta : entries) { in parseValues()
739 addEntry = adjustType(entry, entries, kind); in parseValues()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DListPreference.java84 public void setEntries(CharSequence entries[]) { in setEntries() argument
85 mEntries = entries == null ? new CharSequence[0] : entries; in setEntries()
148 ArrayList<CharSequence> entries = new ArrayList<CharSequence>(); in filterUnsupported() local
152 entries.add(mEntries[i]); in filterUnsupported()
156 int size = entries.size(); in filterUnsupported()
157 mEntries = entries.toArray(new CharSequence[size]); in filterUnsupported()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java58 final CharSequence[] entries = listPreference.getEntries(); in displayPreference() local
59 entries[0] = String.format(entries[0].toString(), mDefaultMaxConnectedAudioDevices); in displayPreference()
60 listPreference.setEntries(entries); in displayPreference()
79 final CharSequence[] entries = listPreference.getEntries(); in updateState() local
91 listPreference.setSummary(entries[index]); in updateState()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java58 final CharSequence[] entries = listPreference.getEntries(); in displayPreference() local
59 entries[0] = String.format(entries[0].toString(), mDefaultMaxConnectedAudioDevices); in displayPreference()
60 listPreference.setEntries(entries); in displayPreference()
79 final CharSequence[] entries = listPreference.getEntries(); in updateState() local
91 listPreference.setSummary(entries[index]); in updateState()
/packages/apps/Settings/src/com/android/settings/display/
DTimeoutPreferenceController.java98 long currentTimeout, CharSequence[] entries, CharSequence[] values) { in getTimeoutDescription() argument
99 if (currentTimeout < 0 || entries == null || values == null in getTimeoutDescription()
100 || values.length != entries.length) { in getTimeoutDescription()
107 return entries[i]; in getTimeoutDescription()
115 final CharSequence[] entries = preference.getEntries(); in updateTimeoutPreferenceDescription() local
122 currentTimeout, entries, values); in updateTimeoutPreferenceDescription()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DTimeoutPreferenceController.java98 long currentTimeout, CharSequence[] entries, CharSequence[] values) { in getTimeoutDescription() argument
99 if (currentTimeout < 0 || entries == null || values == null in getTimeoutDescription()
100 || values.length != entries.length) { in getTimeoutDescription()
107 return entries[i]; in getTimeoutDescription()
115 final CharSequence[] entries = preference.getEntries(); in updateTimeoutPreferenceDescription() local
122 currentTimeout, entries, values); in updateTimeoutPreferenceDescription()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictionUtils.java51 ArrayList<RestrictionEntry> entries = new ArrayList<>(); in getRestrictions() local
62 entries.add(entry); in getRestrictions()
65 return entries; in getRestrictions()
68 public static void setRestrictions(Context context, ArrayList<RestrictionEntry> entries, in setRestrictions() argument
72 for (RestrictionEntry entry : entries) { in setRestrictions()

123456