/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 160 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/ |
D | ProgramManager.java | 343 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId); in getProgramIdIndex() local 344 if (entries != null) { in getProgramIdIndex() 345 for (int i = 0; i < entries.size(); i++) { in getProgramIdIndex() 346 if (entries.get(i).getId() == entryId) { in getProgramIdIndex() 356 List<TableEntry> entries = mChannelIdEntriesMap.get(channelId); in getProgramIndexAtTime() local 357 if (entries != null) { in getProgramIndexAtTime() 358 for (int i = 0; i < entries.size(); ++i) { in getProgramIndexAtTime() 359 TableEntry entry = entries.get(i); in getProgramIndexAtTime() 478 List<TableEntry> entries = createProgramEntries(channelId, parentalControlsEnabled); in updateTableEntriesWithoutNotification() local 479 mChannelIdEntriesMap.put(channelId, entries); in updateTableEntriesWithoutNotification() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
D | GalleryWidgetMigrator.java | 82 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateAppOpsBridge.java | 136 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/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 136 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/ |
D | DefaultSubscriptionControllerTest.java | 108 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/ |
D | WriteableArchiveTest.java | 187 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/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | BackupAppsStepFragment.java | 142 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/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 114 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/Settings/src/com/android/settings/dream/ |
D | WhenToDreamPicker.java | 55 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/ |
D | WhenToDreamPicker.java | 55 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/ |
D | LocalAlbumSet.java | 94 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/ |
D | AppEntryListManagerTest.java | 123 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()
|
D | AppOpsPreferenceControllerTest.java | 168 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/ |
D | SpeedDialUiItemMutator.java | 150 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/ |
D | AppStateNotificationBridgeTest.java | 480 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/ |
D | LockScreenNotificationPreferenceController.java | 114 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/ |
D | LockScreenNotificationPreferenceController.java | 114 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/ |
D | RawContactModifier.java | 419 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/ |
D | ListPreference.java | 84 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/ |
D | BluetoothMaxConnectedAudioDevicesPreferenceController.java | 58 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/ |
D | BluetoothMaxConnectedAudioDevicesPreferenceController.java | 58 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | TimeoutPreferenceController.java | 98 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/Settings/src/com/android/settings/display/ |
D | TimeoutPreferenceController.java | 98 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/Settings/src/com/android/settings/users/ |
D | RestrictionUtils.java | 60 ArrayList<RestrictionEntry> entries = new ArrayList<RestrictionEntry>(); in getRestrictions() local 71 entries.add(entry); in getRestrictions() 74 return entries; in getRestrictions() 77 public static void setRestrictions(Context context, ArrayList<RestrictionEntry> entries, in setRestrictions() argument 80 for (RestrictionEntry entry : entries) { in setRestrictions()
|