/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | GlobalDismissManager.java | 94 public static void processEventIds(final Context context, final Set<Long> eventIds) { in processEventIds() 100 Map<Long, Long> eventsToCalendars = lookupEventToCalendarMap(context, eventIds); in processEventIds() 101 Set<Long> calendars = new LinkedHashSet<Long>(); in processEventIds() 108 Map<Long, Pair<String, String>> calendarsToAccounts = in processEventIds() 170 Set<Long> eventIds = new HashSet<Long>(alarmIds.size()); in dismissGlobally() 175 Map<Long, Long> eventsToCalendars = lookupEventToCalendarMap(context, eventIds); in dismissGlobally() 182 Set<Long> calendars = new LinkedHashSet<Long>(); in dismissGlobally() 186 Map<Long, Pair<String, String>> calendarsToAccounts = in dismissGlobally() 196 Map<Long, String> eventIdToSyncId = new HashMap<Long, String>(); in dismissGlobally() 198 for (Long eventId : eventsToCalendars.keySet()) { in dismissGlobally() [all …]
|
D | AlarmScheduler.java | 190 Map<Integer, List<Long>> eventMap = new HashMap<Integer, List<Long>>(); in queryNextReminderAndSchedule() 192 long nextAlarmTime = Long.MAX_VALUE; in queryNextReminderAndSchedule() 212 List<Long> startTimes = eventMap.get(eventId); in queryNextReminderAndSchedule() 214 startTimes = new ArrayList<Long>(); in queryNextReminderAndSchedule() 248 List<Long> startTimes = eventMap.get(eventId); in queryNextReminderAndSchedule() 250 for (Long startTime : startTimes) { in queryNextReminderAndSchedule() 280 if (nextAlarmTime < Long.MAX_VALUE) { in queryNextReminderAndSchedule()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | TransactionContext.java | 35 private HashMap<Long, Long> mInsertedRawContactsAccounts; 36 private HashSet<Long> mUpdatedRawContacts; 37 private HashSet<Long> mDirtyRawContacts; 42 private HashSet<Long> mChangedRawContacts; 43 private HashSet<Long> mStaleSearchIndexRawContacts; 44 private HashSet<Long> mStaleSearchIndexContacts; 45 private HashMap<Long, Object> mUpdatedSyncStates; 100 public Set<Long> getInsertedRawContactIds() { in getInsertedRawContactIds() 105 public Set<Long> getUpdatedRawContactIds() { in getUpdatedRawContactIds() 110 public Set<Long> getDirtyRawContactIds() { in getDirtyRawContactIds() [all …]
|
D | PhotoStore.java | 48 private final Map<Long, Entry> mEntries; 76 mEntries = new HashMap<Long, Entry>(); in PhotoStore() 144 public Set<Long> cleanup(Set<Long> keysInUse) { in cleanup() 145 Set<Long> keysToRemove = new HashSet<Long>(); in cleanup() 155 Set<Long> missingKeys = new HashSet<Long>(); in cleanup() 288 id = Long.parseLong(file.getName()); in Entry()
|
D | ContactsProvider2.java | 713 .add(DataUsageStatColumns.TIMES_USED, String.valueOf(Long.MAX_VALUE)) 714 .add(DataUsageStatColumns.LAST_TIME_USED, String.valueOf(Long.MAX_VALUE)) 734 String.valueOf(Long.MAX_VALUE)) 735 .add(DataUsageStatColumns.LAST_TIME_USED, String.valueOf(Long.MAX_VALUE)) 1353 private final Map<Uri, Long> mPreAuthorizedUris = Maps.newHashMap(); 1804 Set<Long> usedPhotoFileIds = Sets.newHashSet(); in cleanupPhotoStore() 1805 Map<Long, Long> photoFileIdToDataId = Maps.newHashMap(); in cleanupPhotoStore() 1826 Map<Long, Long> photoFileIdToStreamItemPhotoId = Maps.newHashMap(); in cleanupPhotoStore() 1827 Map<Long, Long> streamItemPhotoIdToStreamItemId = Maps.newHashMap(); in cleanupPhotoStore() 1842 Set<Long> missingPhotoIds = mPhotoStore.get().cleanup(usedPhotoFileIds); in cleanupPhotoStore() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 90 public static final Long[] EMPTY_LONGS = new Long[0]; 307 ACCOUNT_WHERE_HOSTAUTH, new String[] { Long.toString(hostAuthId) }, null); in findExistingAccount() 339 sb.append(Long.toString(System.currentTimeMillis())); in generateMessageId() 610 private static final CursorGetter<Long> LONG_GETTER = new CursorGetter<Long>() { 612 public Long get(Cursor cursor, int column) { 679 public static Long getFirstRowLong(Context context, Uri uri, String[] projection, 688 public static Long getFirstRowLong(Context context, Uri uri, String[] projection, 690 Long defaultValue) { 849 public abstract static class ForEachAccount extends AsyncTask<Void, Void, Long[]> { 857 protected final Long[] doInBackground(Void... params) { [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | ExchangeService.java | 192 private final HashMap<Long, AbstractSyncService> mServiceMap = 193 new HashMap<Long, AbstractSyncService>(); 195 /*package*/ ConcurrentHashMap<Long, SyncError> mSyncErrorMap = 196 new ConcurrentHashMap<Long, SyncError>(); 198 private final HashMap<Long, Boolean> mWakeLocks = new HashMap<Long, Boolean>(); 200 private final HashMap<Long, PendingIntent> mPendingIntents = new HashMap<Long, PendingIntent>(); 213 private final ConcurrentHashMap<Long, CalendarObserver> mCalendarObservers = 214 new ConcurrentHashMap<Long, CalendarObserver>(); 401 cv, WHERE_MAILBOX_KEY, new String[] {Long.toString(mailboxId)}); 442 ConcurrentHashMap<Long, SyncError> syncErrorMap = exchangeService.mSyncErrorMap; [all …]
|
/packages/apps/Email/src/com/android/email/provider/ |
D | EmailProvider.java | 528 private final HashMap<Long, HashMap<Integer, Long>> mMailboxTypeMap = 529 new HashMap<Long, HashMap<Integer, Long>>(); 531 private HashMap<Integer, Long> getOrCreateAccountMailboxTypeMap(long accountId) { in getOrCreateAccountMailboxTypeMap() 533 HashMap<Integer, Long> accountMailboxTypeMap = mMailboxTypeMap.get(accountId); in getOrCreateAccountMailboxTypeMap() 535 accountMailboxTypeMap = new HashMap<Integer, Long>(); in getOrCreateAccountMailboxTypeMap() 546 HashMap<Integer, Long> accountMailboxTypeMap = in addToMailboxTypeMap() 554 HashMap<Integer, Long> accountMap = mMailboxTypeMap.get(accountId); in getMailboxIdFromMailboxTypeMap() 555 Long mailboxId = null; in getMailboxIdFromMailboxTypeMap() 649 ArrayList<Long> foundMailboxes = new ArrayList<Long>(); in deleteMessageOrphans() 650 ArrayList<Long> notFoundMailboxes = new ArrayList<Long>(); in deleteMessageOrphans() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | EmailSyncAdapterTests.java | 102 ArrayList<Long> ids = new ArrayList<Long>(); in testSendDeletedItems() 103 ArrayList<Long> deletedIds = new ArrayList<Long>(); in testSendDeletedItems() 164 ACCOUNT_ARGUMENT[0] = Long.toString(id); in getAccountArgument() 174 ArrayList<Long> setupAccountMailboxAndMessages(int numMessages) { in setupAccountMailboxAndMessages() 175 ArrayList<Long> ids = new ArrayList<Long>(); in setupAccountMailboxAndMessages() 195 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testDeleteParser() 213 ArrayList<Long> deleteList = new ArrayList<Long>(); in testDeleteParser() 224 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testChangeParser() 265 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testCleanup()
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | EmailSyncAdapterTests.java | 102 ArrayList<Long> ids = new ArrayList<Long>(); in testSendDeletedItems() 103 ArrayList<Long> deletedIds = new ArrayList<Long>(); in testSendDeletedItems() 164 ACCOUNT_ARGUMENT[0] = Long.toString(id); in getAccountArgument() 174 ArrayList<Long> setupAccountMailboxAndMessages(int numMessages) { in setupAccountMailboxAndMessages() 175 ArrayList<Long> ids = new ArrayList<Long>(); in setupAccountMailboxAndMessages() 195 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testDeleteParser() 213 ArrayList<Long> deleteList = new ArrayList<Long>(); in testDeleteParser() 224 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testChangeParser() 265 ArrayList<Long> messageIds = setupAccountMailboxAndMessages(3); in testCleanup()
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | DraftCache.java | 45 private HashSet<Long> mDraftSet = new HashSet<Long>(4); 95 HashSet<Long> newDraftSet = new HashSet<Long>(); in rebuildCache() 119 Set<Long> added; in rebuildCache() 120 Set<Long> removed; in rebuildCache() 122 HashSet<Long> oldDraftSet = mDraftSet; in rebuildCache() 139 added = new HashSet<Long>(newDraftSet); in rebuildCache() 141 removed = new HashSet<Long>(oldDraftSet); in rebuildCache() 248 for (Long threadId : mDraftSet) { in dump()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | EmailSyncAdapter.java | 127 ArrayList<Long> mDeletedIdList = new ArrayList<Long>(); 129 ArrayList<Long> mUpdatedIdList = new ArrayList<Long>(); 213 new String[] {Long.toString(mMailbox.mId)}, null); in sendSyncOptions() 498 private final ArrayList<Long> deletedEmails = new ArrayList<Long>(); 503 mMailboxIdAsString = Long.toString(mMailbox.mId); 508 mMailboxIdAsString = Long.toString(mMailbox.mId); 869 att.mSize = Long.parseLong(length); 934 void deleteParser(ArrayList<Long> deletes, int entryTag) throws IOException { 1077 Long id = c.getLong(Message.ID_PROJECTION_COLUMN); 1146 Long dupId = [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 138 HashMap<String, Long> mDirectoryCache = new HashMap<String, Long>(); 343 HashMap<String, Long> mArtistCache = new HashMap<String, Long>(); 344 HashMap<String, Long> mAlbumCache = new HashMap<String, Long>(); 1990 Long lastModified = values.getAsLong(MediaColumns.DATE_MODIFIED); in computeTakenTime() 2082 id = Long.parseLong(origId); in queryThumbnail() 2083 gid = Long.parseLong(groupId); in queryThumbnail() 2710 ArrayList<Long> notifyRowIds = new ArrayList<Long>(); in bulkInsert() 2736 ArrayList<Long> notifyRowIds = new ArrayList<Long>(); in insert() 2748 private void notifyMtp(ArrayList<Long> rowIds) { in notifyMtp() 2761 long playlistId = Long.parseLong(uri.getPathSegments().get(3)); in playlistBulkInsert() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageListFragment.java | 190 public void onAdvancingOpAccepted(Set<Long> affectedMessages); in onAdvancingOpAccepted() 218 public void onAdvancingOpAccepted(Set<Long> affectedMessages) { in onAdvancingOpAccepted() 751 .appendPath(Long.toString(listItem.mMessageId)) in onItemLongClick() 754 Long.toString(mailboxId)) in onItemLongClick() 756 Set<Long> selectedMessageIds = mListAdapter.getSelectedSet(); in onItemLongClick() 759 for (Long messageId: selectedMessageIds) { in onItemLongClick() 842 private void showMoveMessagesDialog(Set<Long> selectedSet) { in showMoveMessagesDialog() 905 private void toggleRead(Set<Long> selectedSet) { in toggleRead() 925 private void toggleFavorite(Set<Long> selectedSet) { in toggleFavorite() 940 private void deleteMessages(Set<Long> selectedSet) { in deleteMessages() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntityDelta.java | 109 final Long localVersion = (local.mValues == null) ? null : local.mValues in mergeAfter() 111 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); in mergeAfter() 122 final Long childId = remoteEntry.getId(); in mergeAfter() 245 public ValuesDelta getEntry(Long childId) { in getEntry() 352 final Long beforeId = mValues.getId(); in buildAssert() 353 final Long beforeVersion = mValues.getAsLong(RawContacts.VERSION); in buildAssert() 376 final Long beforeId = mValues.getId(); in buildDiff() 437 protected Builder buildSetAggregationMode(Long beforeId, int mode) { in buildSetAggregationMode() 555 public Long getAsLong(String key) { in getAsLong() 583 public Long getId() { in getId() [all …]
|
D | EntitySet.java | 93 final Long rawContactId = remoteEntity.getValues().getId(); in mergeAfter() 210 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() 217 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() 233 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId() 244 public Long getRawContactId(int index) { in getRawContactId() 255 public EntityDelta getByRawContactId(Long rawContactId) { in getByRawContactId() 263 public int indexOfRawContactId(Long rawContactId) { in indexOfRawContactId() 267 final Long currentId = getRawContactId(i); in indexOfRawContactId()
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | BrowserProvider2.java | 299 Long.toString(Long.MAX_VALUE) + " AS " + Bookmarks.POSITION); in OTHER_BOOKMARKS_PROJECTION_MAP.put() 663 String parent = Long.toString(parentId); in addDefaultBookmarks() 664 String now = Long.toString(System.currentTimeMillis()); in addDefaultBookmarks() 913 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() 919 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() 965 args = new String[] { Long.toString(FIXED_ID_ROOT) }; in query() 1032 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() 1048 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() 1080 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() 1108 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 383 long id = Long.parseLong(uri.getQueryParameter("row_id")); in query() 458 threadId = Long.parseLong(uri.getLastPathSegment()); in query() 463 cursor = getFirstLockedMessage(projection, "thread_id=" + Long.toString(threadId), in query() 542 private Set<Long> getAddressIds(List<String> addresses) { in getAddressIds() 543 Set<Long> result = new HashSet<Long>(addresses.size()); in getAddressIds() 561 private long[] getSortedSet(Set<Long> numbers) { in getSortedSet() 566 for (Long number : numbers) { in getSortedSet() 625 Set<Long> addressIds = getAddressIds(recipients); in getThreadId() 634 for (Long addressId : addressIds) { in getThreadId() 635 recipientIds = Long.toString(addressId); in getThreadId() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | AttachmentDownloadService.java | 104 private final HashMap<Long, Intent> mAccountServiceMap = new HashMap<Long, Intent>(); 109 /*package*/ final HashMap<Long, Long> mAttachmentStorageMap = new HashMap<Long, Long>(); 113 /* package */ final HashMap<Long, Integer> mAttachmentFailureMap = new HashMap<Long, Integer>(); 246 /*package*/ final ConcurrentHashMap<Long, DownloadRequest> mDownloadsInProgress = 247 new ConcurrentHashMap<Long, DownloadRequest>(); 567 Long currentStorage = mAttachmentStorageMap.get(accountId); in endDownload() 847 Long accountStorage = mAttachmentStorageMap.get(account.mId); in canPrefetchForAccount()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | LauncherModel.java | 124 static final HashMap<Long, ItemInfo> sBgItemsIdMap = new HashMap<Long, ItemInfo>(); 136 static final HashMap<Long, FolderInfo> sBgFolders = new HashMap<Long, FolderInfo>(); 155 public void bindFolders(HashMap<Long,FolderInfo> folders); in bindFolders() argument 548 FolderInfo getFolderById(Context context, HashMap<Long,FolderInfo> folderList, long id) { in getFolderById() argument 1272 final ArrayList<Long> itemsToRemove = new ArrayList<Long>(); in loadWorkspace() 1543 Set<Long> itemsOnScreen = new HashSet<Long>(); in filterCurrentWorkspaceItems() 1596 HashMap<Long, ItemInfo> itemsIdMap, in filterCurrentFolders() argument 1597 HashMap<Long, FolderInfo> folders, in filterCurrentFolders() 1598 HashMap<Long, FolderInfo> currentScreenFolders, in filterCurrentFolders() 1599 HashMap<Long, FolderInfo> otherScreenFolders) { in filterCurrentFolders() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 106 final Long rawContactId = remoteEntity.getValues().getId(); in mergeAfter() 157 for (Long joinedRawContactId : mJoinWithRawContactIds) { in buildDiff() 258 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() 268 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiff() 288 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId() 299 public Long getRawContactId(int index) { in getRawContactId() 313 public RawContactDelta getByRawContactId(Long rawContactId) { in getByRawContactId() 321 public int indexOfRawContactId(Long rawContactId) { in indexOfRawContactId() 325 final Long currentId = getRawContactId(i); in indexOfRawContactId()
|
/packages/apps/Music/src/com/android/music/ |
D | ArtistAlbumBrowserActivity.java | 266 mCurrentAlbumId = Long.valueOf(id).toString(); in onChildClick() 362 mCurrentAlbumId = Long.valueOf(mi.id).toString(); in onCreateContextMenu() 390 MusicUtils.getSongListForArtist(this, Long.parseLong(mCurrentArtistId)) in onContextItemSelected() 391 : MusicUtils.getSongListForAlbum(this, Long.parseLong(mCurrentAlbumId)); in onContextItemSelected() 400 MusicUtils.getSongListForArtist(this, Long.parseLong(mCurrentArtistId)) in onContextItemSelected() 401 : MusicUtils.getSongListForAlbum(this, Long.parseLong(mCurrentAlbumId)); in onContextItemSelected() 416 MusicUtils.getSongListForArtist(this, Long.parseLong(mCurrentArtistId)) in onContextItemSelected() 417 : MusicUtils.getSongListForAlbum(this, Long.parseLong(mCurrentAlbumId)); in onContextItemSelected() 427 list = MusicUtils.getSongListForArtist(this, Long.parseLong(mCurrentArtistId)); in onContextItemSelected() 436 list = MusicUtils.getSongListForAlbum(this, Long.parseLong(mCurrentAlbumId)); in onContextItemSelected() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppManager.java | 115 private List<Pair<String,Long> > mWhitelist = new ArrayList<Pair<String, Long> >(); 159 for (Iterator<Pair<String,Long>> iter = mWhitelist.iterator(); iter.hasNext(); ) { in cleanupWhitelist() 160 Pair<String,Long> entry = iter.next(); in cleanupWhitelist() 171 for (Iterator<Pair<String,Long>> iter = mWhitelist.iterator(); iter.hasNext(); ) { in addToWhitelist() 172 Pair<String,Long> entry = iter.next(); in addToWhitelist() 177 mWhitelist.add(new Pair<String, Long>(address, SystemClock.elapsedRealtime())); in addToWhitelist() 182 for (Pair<String,Long> entry : mWhitelist) { in isWhitelisted() 426 Long ts = System.currentTimeMillis(); in insertMultipleShare()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperTest.java | 64 final Set<Long> ids = Sets.newHashSet(); in testGetOrCreateAccountId() 80 assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(a1)); in testGetOrCreateAccountId() 81 assertEquals((Long) a2id, mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId() 82 assertEquals((Long) a3id, mDbHelper.getAccountIdOrNull(a3)); in testGetOrCreateAccountId() 83 assertEquals((Long) a4id, mDbHelper.getAccountIdOrNull(a4)); in testGetOrCreateAccountId() 84 assertEquals((Long) a5id, mDbHelper.getAccountIdOrNull(a5)); in testGetOrCreateAccountId() 88 assertEquals((Long) a1id, mDbHelper.getAccountIdOrNull(AccountWithDataSet.LOCAL)); in testGetOrCreateAccountId()
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | Conversation.java | 219 long threadId = Long.parseLong(uri.getPathSegments().get(1)); in get() 760 Collection<Long> threadIds) { in startDelete() 777 handler.startDelete(token, new Long(threadId), uri, selection, null); in startDelete() 809 handler.startDelete(token, new Long(-1), Threads.CONTENT_URI, selection, null); in startDeleteAll() 857 Collection<Long> threadIds, in startQueryHaveLockedMessages() 873 buf.append(Mms.THREAD_ID).append("=").append(Long.toString(threadId)); in startQueryHaveLockedMessages() 891 ArrayList<Long> threadIds = null; in startQueryHaveLockedMessages() 893 threadIds = new ArrayList<Long>(); in startQueryHaveLockedMessages() 1072 static void keepOnly(Set<Long> threads) { in keepOnly() 1220 HashSet<Long> threadsOnDisk = new HashSet<Long>(); in cacheAllThreads() [all …]
|