Home
last modified time | relevance | path

Searched refs:Long (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java106 new Object[] { Long.valueOf(1), "name1", "content://icon1", in getConversationListCursor()
107 "snippetText1", "content://snippetUri1", Long.valueOf(10), 1, in getConversationListCursor()
109 new Object[] { Long.valueOf(2), "name2", "content://icon2", in getConversationListCursor()
110 "snippetText2", "content://snippetUri2", Long.valueOf(20) + 24*60*60*1000, in getConversationListCursor()
112 new Object[] { Long.valueOf(3), "name3", "content://icon3", in getConversationListCursor()
113 "snippetText3", "content://snippetUri3", Long.valueOf(30) + 2*24*60*60*1000, in getConversationListCursor()
129 new Object[] { Long.valueOf(0), Long.valueOf(1), Long.valueOf(1), in getConversationMessageCursor()
130 Long.valueOf(10), Long.valueOf(10), in getConversationMessageCursor()
133 new Object[] { Long.valueOf(1), Long.valueOf(1), Long.valueOf(2), in getConversationMessageCursor()
134 Long.valueOf(20), Long.valueOf(20), in getConversationMessageCursor()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelper.java40 public static void mergeComponentsWithDisjointAccounts(Set<Set<Long>> connectedRawContactSets, in mergeComponentsWithDisjointAccounts()
41 Map<Long, Long> rawContactsToAccounts) { in mergeComponentsWithDisjointAccounts() argument
43 final Map<Integer, Set<Long>> rawContactIds = new HashMap<>(); in mergeComponentsWithDisjointAccounts()
45 final Map<Long, Set<Integer>> accounts = new HashMap<>(); in mergeComponentsWithDisjointAccounts()
48 for (Set<Long> rIds : connectedRawContactSets) { in mergeComponentsWithDisjointAccounts()
50 for (Long rId : rIds) { in mergeComponentsWithDisjointAccounts()
63 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
67 final Set<Long> rIdSet = rawContactIds.get(i); in mergeComponentsWithDisjointAccounts()
76 final Set<Long> mergedSet = new HashSet<>(); in mergeComponentsWithDisjointAccounts()
77 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
[all …]
DRawContactMatchingCandidates.java33 private Set<Long> mRawContactIds = null;
34 private Map<Long, Long> mRawContactToContact = null;
35 private Map<Long, Long> mRawContactToAccount = null;
63 public Set<Long> getRawContactIdSet() { in getRawContactIdSet()
70 public Map<Long, Long> getRawContactToAccount() { in getRawContactToAccount()
77 public Long getContactId(Long rawContactId) { in getContactId()
84 public Long getAccountId(Long rawContactId) { in getAccountId()
92 mRawContactToContact = new HashMap<Long, Long>(); in createRawContactToContactMap()
100 mRawContactToAccount = new HashMap<Long, Long>(); in createRawContactToAccountMap()
108 mRawContactIds = new HashSet<Long>(); in createRawContactIdSet()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DTransactionContext.java35 private HashMap<Long, Long> mInsertedRawContactsAccounts;
36 private HashSet<Long> mUpdatedRawContacts;
37 private HashSet<Long> mMetadataDirtyRawContacts;
38 private HashSet<Long> mBackupIdChangedRawContacts;
39 private HashSet<Long> mDirtyRawContacts;
44 private HashSet<Long> mChangedRawContacts;
45 private HashSet<Long> mStaleSearchIndexRawContacts;
46 private HashSet<Long> mStaleSearchIndexContacts;
47 private HashMap<Long, Object> mUpdatedSyncStates;
118 public Set<Long> getInsertedRawContactIds() { in getInsertedRawContactIds()
[all …]
DPhotoStore.java50 private final Map<Long, Entry> mEntries;
80 mEntries = new HashMap<Long, Entry>(); in PhotoStore()
148 public Set<Long> cleanup(Set<Long> keysInUse) { in cleanup()
149 Set<Long> keysToRemove = new HashSet<Long>(); in cleanup()
159 Set<Long> missingKeys = new HashSet<Long>(); in cleanup()
292 id = Long.parseLong(file.getName()); in Entry()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java197 private static HashMap<GlobalDismissId, Long> sReceiverDismissCache =
198 new HashMap<GlobalDismissId, Long>();
199 private static HashMap<LocalDismissId, Long> sSenderDismissCache =
200 new HashMap<LocalDismissId, Long>();
210 public static void processEventIds(Context context, Set<Long> eventIds) { in processEventIds()
216 Map<Long, Long> eventsToCalendars = lookupEventToCalendarMap(context, eventIds); in processEventIds()
217 Set<Long> calendars = new LinkedHashSet<Long>(); in processEventIds()
224 Map<Long, Pair<String, String>> calendarsToAccounts = in processEventIds()
292 Iterator<Map.Entry<LocalDismissId, Long>> it = in syncSenderDismissCache()
295 Map.Entry<LocalDismissId, Long> entry = it.next(); in syncSenderDismissCache()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelperTest.java47 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts()
48 Map<Long, Long> rawContactsToAccounts = new HashMap<>(); in testMergeComponentsWithDisjointAccounts()
50 Set<Long> rawContactSet = new HashSet<>(); in testMergeComponentsWithDisjointAccounts()
79 Set<Set<Long>> connectedRawContactSets = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
80 Map<Long, Long> rawContactsToAccounts = new HashMap<>(); in testMergeComponentsWithDisjointAccounts2()
82 Set<Long> rawContactSet1 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
85 Set<Long> rawContactSet2 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
89 Set<Long> rawContactSet3 = new HashSet<>(); in testMergeComponentsWithDisjointAccounts2()
109 Set<Long> rawContactIdSet = new HashSet<>(); in testFindConnectedRawContacts()
112 Multimap<Long, Long> matchingrawIdPairs = HashMultimap.create(); in testFindConnectedRawContacts()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationCheckedSet.java68 private final HashMap<Long, Conversation> mInternalMap = new HashMap<Long, Conversation>();
70 private final BiMap<String, Long> mConversationUriToIdMap = HashBiMap.create();
124 private boolean containsKey(Long key) { in containsKey()
182 private void put(Long id, Conversation info) { in put()
197 private void remove(Long id) { in remove()
203 private void removeAll(Collection<Long> ids) { in removeAll()
207 final BiMap<Long, String> inverseMap = mConversationUriToIdMap.inverse(); in removeAll()
209 for (Long id : ids) { in removeAll()
267 public Set<Long> keySet() { in keySet()
329 final Set<Long> itemsToRemoveFromBatch = Sets.newHashSet(); in validateAgainstCursor()
[all …]
DAnimatedAdapter.java78 private final HashSet<Long> mDeletingItems = new HashSet<Long>();
79 private final ArrayList<Long> mLastDeletingItems = new ArrayList<Long>();
80 private final HashSet<Long> mUndoingItems = new HashSet<Long>();
81 private final HashSet<Long> mSwipeDeletingItems = new HashSet<Long>();
82 private final HashSet<Long> mSwipeUndoingItems = new HashSet<Long>();
83 private final HashMap<Long, SwipeableConversationItemView> mAnimatingViews =
84 new HashMap<Long, SwipeableConversationItemView>();
85 private final HashMap<Long, LeaveBehindItem> mFadeLeaveBehindItems =
86 new HashMap<Long, LeaveBehindItem>();
174 private final HashMap<Long, LeaveBehindItem> mLeaveBehindItems = Maps.newHashMap();
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryQuery.java105 outputData.put(KEY_TIMESTAMP, new Long(timestamp)); in queryMemory()
106 outputData.put(KEY_MEMORY_AVAILABLE, new Long(availMem)); in queryMemory()
107 outputData.put(KEY_TOTAL_MEMORY, new Long(totalMem)); in queryMemory()
108 outputData.put(KEY_TOTAL_PSS, new Long(totalPSS)); in queryMemory()
110 outputData.put(KEY_TOTAL_PRIVATE_DIRTY, new Long(totalPrivateDirty)); in queryMemory()
111 outputData.put(KEY_TOTAL_SHARED_DIRTY, new Long(totalSharedDirty)); in queryMemory()
112 outputData.put(KEY_MEMORY_CLASS, new Long(memoryClass)); in queryMemory()
113 outputData.put(KEY_LARGE_MEMORY_CLASS, new Long(largeMemoryClass)); in queryMemory()
114 outputData.put(KEY_NATIVE_PSS, new Long(nativePSS)); in queryMemory()
115 outputData.put(KEY_DALVIK_PSS, new Long(dalvikPSS)); in queryMemory()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java90 private Map<Long, Msg> mMsgListSms=null;
91 private Map<Long, Msg> mMsgListMms=null;
92 private Map<Long, Msg> mMsgListMsg=null;
96 private HashMap<Long,BluetoothMapConvoListingElement> mSmsMmsConvoList =
97 new HashMap<Long, BluetoothMapConvoListingElement>();
99 private HashMap<Long,BluetoothMapConvoListingElement> mImEmailConvoList =
100 new HashMap<Long, BluetoothMapConvoListingElement>();
194 /* package */ Map<Long, Msg> getMsgListSms() { in getMsgListSms()
198 /* package */ void setMsgListSms(Map<Long, Msg> msgListSms) { in setMsgListSms() argument
202 /* package */ Map<Long, Msg> getMsgListMms() { in getMsgListMms()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DExifUtil.java80 …final Long ALTITUDE_PRECISION = 1L; // GPS altitude isn't particularly accurate (determined empiri… in addLocationToExif()
99 final Long MS_TO_S = 1000L; // Milliseconds per second
102 Long timestampMs = System.currentTimeMillis();
108 Long subSeconds = timestampMs % MS_TO_S;
130 final Long NS_TO_S = 1000000000L; // Nanoseconds per second
131 final Long SHUTTER_SPEED_VALUE_PRECISION = 1000L;
132 final Long F_NUMBER_PRECISION = 100L;
133 final Long APERTURE_VALUE_PRECISION = 100L;
134 final Long FOCAL_LENGTH_PRECISION = 1000L; // micrometer precision
137 Long exposureTimeNs = result.get(CaptureResult.SENSOR_EXPOSURE_TIME);
[all …]
DConcurrentSharedRingBuffer.java167 private TreeMap<Long, Pinnable<E>> mElements;
169 private TreeMap<Long, Pinnable<E>> mUnpinnedElements;
189 mElements = new TreeMap<Long, Pinnable<E>>(); in ConcurrentSharedRingBuffer()
190 mUnpinnedElements = new TreeMap<Long, Pinnable<E>>(); in ConcurrentSharedRingBuffer()
275 Pair<Long, Pinnable<E>> toSwapEntry = null; in swapLeast()
288 Map.Entry<Long, Pinnable<E>> swapEntry = mUnpinnedElements.pollFirstEntry(); in swapLeast()
332 public Pair<Long, E> tryPin(long key) { in tryPin()
422 public Pair<Long, E> tryPinGreatest() { in tryPinGreatest()
442 public Pair<Long, E> tryPinGreatestSelected(Selector<E> selector) { in tryPinGreatestSelected()
444 ArrayList<Long> keys = new ArrayList<Long>(); in tryPinGreatestSelected()
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/cache/
DCacheManager.java64 private final Map<String, SortedMap<Long, SampleCache>> mCacheMap = new ArrayMap<>();
240 ArrayList<Long> readIndexFile(String trackId) throws IOException; in readIndexFile()
260 void writeIndexFile(String trackName, SortedMap<Long, SampleCache> index) in writeIndexFile() argument
330 SortedMap<Long, SampleCache> map = mCacheMap.get(id); in createNewWriteFile()
350 ArrayList<Long> keyPositions = mStorageManager.readIndexFile(trackId); in loadTrackFormStorage()
353 SortedMap<Long, SampleCache> map = mCacheMap.get(trackId); in loadTrackFormStorage()
375 SortedMap<Long, SampleCache> map = mCacheMap.get(id); in getReadFile()
380 SortedMap<Long, SampleCache> headMap = map.headMap(positionUs + 1); in getReadFile()
397 SortedMap<Long, SampleCache> earliestCacheMap = null; in maybeEvictCache()
400 for (Map.Entry<String, SortedMap<Long, SampleCache>> entry : mCacheMap.entrySet()) { in maybeEvictCache()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java76 private final Map<Long, ChannelWrapper> mChannelWrapperMap = new HashMap<>();
82 private final Set<Long> mBrowsableUpdateChannelIds = new HashSet<>();
83 private final Set<Long> mLockedUpdateChannelIds = new HashSet<>();
234 public void addChannelListener(Long channelId, ChannelListener listener) { in addChannelListener()
246 public void removeChannelListener(Long channelId, ChannelListener listener) { in removeChannelListener()
316 public Channel getChannel(Long channelId) { in getChannel()
327 public void updateBrowsable(Long channelId, boolean browsable) { in updateBrowsable()
339 public void updateBrowsable(Long channelId, boolean browsable, in updateBrowsable()
401 public void updateLocked(Long channelId, boolean locked) { in updateLocked()
422 ArrayList<Long> browsableIds = new ArrayList<>(); in applyUpdatedValuesToDb()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectEntryContactListAdapter.java38 private TreeSet<Long> mSelectedContactIds = new TreeSet<Long>();
57 public TreeSet<Long> getSelectedContactIds() { in getSelectedContactIds()
64 public void setSelectedContactIds(TreeSet<Long> selectedContactIds) { in setSelectedContactIds()
78 setSelectedContactIds(new TreeSet<Long>()); in setDisplayCheckBoxes()
139 final Long contactId = (Long) checkBox.getTag();
/packages/apps/Contacts/src/com/android/contacts/interactions/
DJoinContactsDialogFragment.java46 public static void start(Activity activity, TreeSet<Long> contactIds) { in start()
53 private static JoinContactsDialogFragment newInstance(TreeSet<Long> contactIds) { in newInstance()
63 final TreeSet<Long> contactIds = in onCreateDialog()
64 (TreeSet<Long>) getArguments().getSerializable(KEY_CONTACT_IDS); in onCreateDialog()
87 private void joinContacts(TreeSet<Long> contactIds) {
88 final Long[] contactIdsArray = contactIds.toArray(new Long[contactIds.size()]);
DContactMultiDeletionInteraction.java75 private TreeSet<Long> mContactIds;
87 Activity activity, TreeSet<Long> contactIds) { in start()
122 public void setContactIds(TreeSet<Long> contactIds) { in setContactIds()
158 final TreeSet<Long> contactIds = (TreeSet<Long>) args.getSerializable(ARG_CONTACT_IDS); in onCreateLoader()
192 final HashSet<Long> readOnlyRawContacts = Sets.newHashSet(); in onLoadFinished()
193 final HashSet<Long> writableRawContacts = Sets.newHashSet(); in onLoadFinished()
194 final HashSet<Long> contactIds = Sets.newHashSet(); in onLoadFinished()
233 final Long[] contactIdObjectArray = contactIds.toArray(new Long[contactIds.size()]); in onLoadFinished()
287 mContactIds = (TreeSet<Long>) savedInstanceState.getSerializable(KEY_CONTACTS_IDS); in onActivityCreated()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java215 Set<Long> newIds = new HashSet<>(); in findRawContactMatchingCandidates()
222 final Set<Long> tmpIdSet = new HashSet<>(); in findRawContactMatchingCandidates()
318 final Set<Long> allIds = new HashSet<>(); in reAggregateRawContacts()
321 final Set<Set<Long>> connectedRawContactSets = findConnectedRawContacts(db, allIds); in reAggregateRawContacts()
323 final Map<Long, Long> rawContactsToAccounts = matchingCandidates.getRawContactToAccount(); in reAggregateRawContacts()
332 for (Set<Long> connectedRawContactIds : connectedRawContactSets) { in reAggregateRawContacts()
333 Long contactId = null; in reAggregateRawContacts()
334 Set<Long> cidsNeedToBeUpdated = new HashSet<>(); in reAggregateRawContacts()
343 for (Long connectedRawContactId : connectedRawContactIds) { in reAggregateRawContacts()
344 Long cid = matchingCandidates.getContactId(connectedRawContactId); in reAggregateRawContacts()
[all …]
DContactAggregator.java98 final Set<Long> rawContactIdsInSameAccount = new HashSet<Long>(); in aggregateContact()
99 final Set<Long> rawContactIdsInOtherAccount = new HashSet<Long>(); in aggregateContact()
205 final Set<Long> allRawContactIdSet = new HashSet<Long>(); in aggregateContact()
316 Set<Long> rawContactIdsInSameAccount, Set<Long> rawContactIdsInOtherAccount ) { in canJoinIntoContact()
348 final Set<Long> rawContactIdSet = new HashSet<Long>(); in canJoinIntoContact()
370 private boolean isDataMaching(SQLiteDatabase db, Set<Long> rawContactIdSet1, in isDataMaching()
371 Set<Long> rawContactIdSet2) { in isDataMaching()
418 Set<Long> existingRawContactIds) { in reAggregateRawContacts()
422 final Set<Long> allIds = new HashSet<Long>(); in reAggregateRawContacts()
425 final Set<Set<Long>> connectedRawContactSets = findConnectedRawContacts(db, allIds); in reAggregateRawContacts()
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java323 Long periodBegin = null; in query()
326 periodBegin = Long.parseLong(value); in query()
328 Long periodEnd = null; in query()
331 periodEnd = Long.parseLong(value); in query()
338 Long threadId = null; in query()
341 threadId = Long.parseLong(value); in query()
435 abstract protected Cursor queryConversation(String accountId, Long threadId, Boolean read, in queryConversation()
436 Long periodEnd, Long periodBegin, String searchString, String[] projection, in queryConversation()
459 abstract protected Cursor queryConvoContact(String accountId, Long contactId, in queryConvoContact()
515 Long messageId = values.getAsLong(BluetoothMapContract.MessageColumns._ID); in update()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DMostRecentImageSaver.java38 private final Map<Long, ImageProxy> mThumbnails;
39 private final Map<Long, MetadataImage> mFullSizeImages;
96 private void closeOlderImages(long threshold, Map<Long, ? extends ImageProxy> imageMap) { in closeOlderImages() argument
97 List<Long> toRemove = new ArrayList<>(); in closeOlderImages()
104 for (Long timestamp : toRemove) { in closeOlderImages()
110 Optional<Long> timestampThreshold = getMostRecentFullSizeImageTimestamp(); in closeOlderImages()
117 private Optional<Long> getMostRecentFullSizeImageTimestamp() { in getMostRecentFullSizeImageTimestamp()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
DImageDistributorImpl.java44 public final BufferQueue<Long> timestampBufferQueue;
47 private DispatchRecord(BufferQueue<Long> timestampBufferQueue, in DispatchRecord()
69 private final BufferQueue<Long> mGlobalTimestampBufferQueue;
78 BufferQueue<Long> globalTimestampBufferQueue) { in ImageDistributorImpl()
138 Long requestedImageTimestamp = dispatchRecord.timestampBufferQueue.peekNext(); in distributeImage()
209 public void addRoute(BufferQueue<Long> inputTimestampBufferQueue, in addRoute()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTransactionContextTest.java41 Set<Long> newDirty = context.getDirtyRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
42 Set<Long> newChanged = context.getChangedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
43 Set<Long> newInserted = context.getInsertedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
44 Set<Long> newUpdated = context.getUpdatedRawContactIds(); in testClearExceptSearchIndexUpdates_returnsNewSets()
45 Set<Map.Entry<Long, Object>> newSync = context.getUpdatedSyncStates(); in testClearExceptSearchIndexUpdates_returnsNewSets()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntitySet.java93 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()

12345678910>>...20