Home
last modified time | relevance | path

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

12345678910>>...17

/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/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/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/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/providers/ContactsProvider/src/com/android/providers/contacts/
DTransactionContext.java35 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 …]
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/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java213 Set<Long> newIds = new HashSet<>(); in findRawContactMatchingCandidates()
220 final Set<Long> tmpIdSet = new HashSet<>(); in findRawContactMatchingCandidates()
316 final Set<Long> allIds = new HashSet<>(); in reAggregateRawContacts()
319 final Set<Set<Long>> connectedRawContactSets = findConnectedRawContacts(db, allIds); in reAggregateRawContacts()
321 final Map<Long, Long> rawContactsToAccounts = matchingCandidates.getRawContactToAccount(); in reAggregateRawContacts()
330 for (Set<Long> connectedRawContactIds : connectedRawContactSets) { in reAggregateRawContacts()
331 Long contactId = null; in reAggregateRawContacts()
332 Set<Long> cidsNeedToBeUpdated = new HashSet<>(); in reAggregateRawContacts()
341 for (Long connectedRawContactId : connectedRawContactIds) { in reAggregateRawContacts()
342 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/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>();
183 /* package */ Map<Long, Msg> getMsgListSms() { in getMsgListSms()
187 /* package */ void setMsgListSms(Map<Long, Msg> msgListSms) { in setMsgListSms() argument
191 /* package */ Map<Long, Msg> getMsgListMms() { in getMsgListMms()
[all …]
DBluetoothMapContentObserver.java309 setMsgListSms(new HashMap<Long, Msg>(), false); in BluetoothMapContentObserver()
314 setMsgListMms(new HashMap<Long, Msg>(), false); in BluetoothMapContentObserver()
321 setMsgListMsg(new HashMap<Long, Msg>(), false); in BluetoothMapContentObserver()
331 private Map<Long, Msg> getMsgListSms() { in getMsgListSms()
335 private void setMsgListSms(Map<Long, Msg> msgListSms, boolean changesDetected) { in setMsgListSms() argument
344 private Map<Long, Msg> getMsgListMms() { in getMsgListMms()
349 private void setMsgListMms(Map<Long, Msg> msgListMms, boolean changesDetected) { in setMsgListMms() argument
358 private Map<Long, Msg> getMsgListMsg() { in getMsgListMsg()
363 private void setMsgListMsg(Map<Long, Msg> msgListMsg, boolean changesDetected) { in setMsgListMsg() argument
857 private Map<Long, Msg> mMsgListSms = null;
[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/util/
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 …]
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 …]
/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/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/Contacts/src/com/android/contacts/interactions/
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()
227 final Long[] contactIdObjectArray = contactIds.toArray(new Long[contactIds.size()]); in onLoadFinished()
281 mContactIds = (TreeSet<Long>) savedInstanceState.getSerializable(KEY_CONTACTS_IDS); in onActivityCreated()
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()]);
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java588 ArrayList<Long> foundMailboxes = new ArrayList<Long>(); in deleteMessageOrphans()
589 ArrayList<Long> notFoundMailboxes = new ArrayList<Long>(); in deleteMessageOrphans()
590 ArrayList<Long> deleteList = new ArrayList<Long>(); in deleteMessageOrphans()
601 bindArray[0] = Long.toString(mailboxId); in deleteMessageOrphans()
620 bindArray[0] = Long.toString(messageId); in deleteMessageOrphans()
767 final long messageId = Long.valueOf(id); in delete()
960 final Long accountId = in insert()
993 longId = Long.parseLong(uri.getPathSegments().get(2)); in insert()
1000 longId = Long.parseLong(uri.getPathSegments().get(1)); in insert()
1006 longId = Long.parseLong(id); in insert()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDelta.java109 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 …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java301 Long.toString(Long.MAX_VALUE) + " AS " + Bookmarks.POSITION); in OTHER_BOOKMARKS_PROJECTION_MAP.put()
665 String parent = Long.toString(parentId); in addDefaultBookmarks()
666 String now = Long.toString(System.currentTimeMillis()); in addDefaultBookmarks()
915 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
921 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
967 args = new String[] { Long.toString(FIXED_ID_ROOT) }; in query()
1034 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
1050 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
1082 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
1110 new String[] { Long.toString(ContentUris.parseId(uri)) }); in query()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java182 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForFullName()
220 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForPartialName()
251 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForNameTokens()
272 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForInitialMatches()
316 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForInitialMatchesForLongTokenNames()
350 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testCheckLongToken()
370 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testAccentedCharacters()
390 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testNumbersInName()
413 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutForNumbers()
443 mTestHelper.insertUpdatedContactsAndNumberPrefix(db, contactCursor, Long.valueOf(0)); in testPutNumbersCountryCode()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectEntryContactListAdapter.java37 private TreeSet<Long> mSelectedContactIds = new TreeSet<Long>();
56 public TreeSet<Long> getSelectedContactIds() { in getSelectedContactIds()
63 public void setSelectedContactIds(TreeSet<Long> selectedContactIds) { in setSelectedContactIds()
77 setSelectedContactIds(new TreeSet<Long>()); in setDisplayCheckBoxes()
136 final Long contactId = (Long) checkBox.getTag();
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactDeltaList.java106 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()

12345678910>>...17