Home
last modified time | relevance | path

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

12345678910>>...27

/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.java41 public static void mergeComponentsWithDisjointAccounts(Set<Set<Long>> connectedRawContactSets, in mergeComponentsWithDisjointAccounts()
42 Map<Long, Long> rawContactsToAccounts) { in mergeComponentsWithDisjointAccounts() argument
44 final Map<Integer, Set<Long>> rawContactIds = new ArrayMap<>(); in mergeComponentsWithDisjointAccounts()
46 final Map<Long, Set<Integer>> accounts = new ArrayMap<>(); in mergeComponentsWithDisjointAccounts()
49 for (Set<Long> rIds : connectedRawContactSets) { in mergeComponentsWithDisjointAccounts()
51 for (Long rId : rIds) { in mergeComponentsWithDisjointAccounts()
64 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
68 final Set<Long> rIdSet = rawContactIds.get(i); in mergeComponentsWithDisjointAccounts()
77 final Set<Long> mergedSet = new ArraySet<>(); in mergeComponentsWithDisjointAccounts()
78 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
[all …]
DRawContactMatchingCandidates.java34 private Set<Long> mRawContactIds = null;
35 private Map<Long, Long> mRawContactToContact = null;
36 private Map<Long, Long> mRawContactToAccount = null;
64 public Set<Long> getRawContactIdSet() { in getRawContactIdSet()
71 public Map<Long, Long> getRawContactToAccount() { in getRawContactToAccount()
78 public Long getContactId(Long rawContactId) { in getContactId()
85 public Long getAccountId(Long rawContactId) { in getAccountId()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DTransactionContext.java36 private ArrayMap<Long, Long> mInsertedRawContactsAccounts;
37 private ArraySet<Long> mUpdatedRawContacts;
38 private ArraySet<Long> mMetadataDirtyRawContacts;
39 private ArraySet<Long> mBackupIdChangedRawContacts;
40 private ArraySet<Long> mDirtyRawContacts;
45 private ArraySet<Long> mChangedRawContacts;
46 private ArraySet<Long> mStaleSearchIndexRawContacts;
47 private ArraySet<Long> mStaleSearchIndexContacts;
48 private ArrayMap<Long, Object> mUpdatedSyncStates;
119 public Set<Long> getInsertedRawContactIds() { in getInsertedRawContactIds()
[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/TV/src/com/android/tv/data/
DPreviewDataManager.java72 private final Map<Long, CreatePreviewChannelTask> mCreatePreviewChannelTasks = new HashMap<>();
73 private final Map<Long, UpdatePreviewProgramTask> mUpdatePreviewProgramTasks = new HashMap<>();
235 Long previewChannelType = previewChannel.getInternalProviderFlag1(); in doInBackground()
255 Long previewChannelType = previewChannel.getInternalProviderFlag1(); in doInBackground()
303 private final class CreatePreviewChannelTask extends AsyncTask<Void, Void, Long> {
321 protected Long doInBackground(Void... params) { in doInBackground()
355 protected void onPostExecute(Long result) { in onPostExecute()
375 private Map<Long, Long> mCurrentProgramId2PreviewProgramId;
413 Map<Long, Long> uncheckedPrograms = new HashMap<>(mCurrentProgramId2PreviewProgramId); in doInBackground()
418 Long existingPreviewProgramId = uncheckedPrograms.remove(program.getId()); in doInBackground()
[all …]
DChannelDataManager.java88 private final Set<Long> mBrowsableUpdateChannelIds = new HashSet<>();
89 private final Set<Long> mLockedUpdateChannelIds = new HashSet<>();
251 public void addChannelListener(Long channelId, ChannelListener listener) { in addChannelListener()
263 public void removeChannelListener(Long channelId, ChannelListener listener) { in removeChannelListener()
330 public Channel getChannel(Long channelId) { in getChannel()
339 public void updateBrowsable(Long channelId, boolean browsable) { in updateBrowsable()
352 Long channelId, boolean browsable, boolean skipNotifyChannelBrowsableChanged) { in updateBrowsable()
405 public void updateLocked(Long channelId, boolean locked) { in updateLocked()
424 ArrayList<Long> browsableIds = new ArrayList<>(); in applyUpdatedValuesToDb()
425 ArrayList<Long> unbrowsableIds = new ArrayList<>(); in applyUpdatedValuesToDb()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java158 ListenableFuture<Map<DialerPhoneNumber, Set<Long>>> annotatedCallLogIdsByNumberFuture = in fill()
179 Callable<ImmutableMap<Long, PhoneLookupInfo>> computeRowsToUpdate = in fill()
182 Map<DialerPhoneNumber, Set<Long>> annotatedCallLogIdsByNumber = in fill()
190 ImmutableMap.Builder<Long, PhoneLookupInfo> in fill()
195 for (Long id : annotatedCallLogIdsByNumber.get(dialerPhoneNumber)) { in fill()
206 ImmutableMap.Builder<Long, PhoneLookupInfo> rowsToUpdate = ImmutableMap.builder(); in fill()
211 for (Long id : annotatedCallLogIdsByNumber.get(dialerPhoneNumber)) { in fill()
224 ListenableFuture<ImmutableMap<Long, PhoneLookupInfo>> rowsToUpdateFuture = in fill()
358 private Map<DialerPhoneNumber, Set<Long>> collectIdAndNumberFromAnnotatedCallLogAndPendingInserts( in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
360 Map<DialerPhoneNumber, Set<Long>> idsByNumber = new ArrayMap<>(); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
[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/Dialer/java/com/android/dialer/phonelookup/cp2/
DCp2DefaultDirectoryPhoneLookup.java79 @Nullable private Long currentLastTimestampProcessed;
172 ListenableFuture<Long> lastModifiedFuture = in isDirty()
205 ListenableFuture<Set<Long>> contactIdsFuture = in isDirty()
224 ListenableFuture<Set<Long>> phoneLookupContactIdsFuture = in isDirty()
244 private ListenableFuture<Set<Long>> queryPhoneTableForContactIds(
248 List<ListenableFuture<Set<Long>>> queryFutures = new ArrayList<>();
264 Set<Long> contactIds = new ArraySet<>();
265 for (Set<Long> ids : listOfSets) {
274 private ListenableFuture<Set<Long>> queryPhoneLookupHistoryForContactIds() {
277 Set<Long> contactIds = new ArraySet<>();
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java89 private Map<Long, Msg> mMsgListSms = null;
90 private Map<Long, Msg> mMsgListMms = null;
91 private Map<Long, Msg> mMsgListMsg = null;
95 private HashMap<Long, BluetoothMapConvoListingElement> mSmsMmsConvoList =
96 new HashMap<Long, BluetoothMapConvoListingElement>();
98 private HashMap<Long, BluetoothMapConvoListingElement> mImEmailConvoList =
99 new HashMap<Long, BluetoothMapConvoListingElement>();
191 /* package */ Map<Long, Msg> getMsgListSms() { in getMsgListSms()
195 /* package */ void setMsgListSms(Map<Long, Msg> msgListSms) { in setMsgListSms() argument
199 /* package */ Map<Long, Msg> getMsgListMms() { in getMsgListMms()
[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/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/services/Car/service/src/com/android/car/storagemonitoring/
DProcfsUidIoStatsProvider.java72 long foreground_rchar = Long.valueOf(tokenizer.nextToken()); in load()
73 long foreground_wchar = Long.valueOf(tokenizer.nextToken()); in load()
74 long foreground_read_bytes = Long.valueOf(tokenizer.nextToken()); in load()
75 long foreground_write_bytes = Long.valueOf(tokenizer.nextToken()); in load()
76 long background_rchar = Long.valueOf(tokenizer.nextToken()); in load()
77 long background_wchar = Long.valueOf(tokenizer.nextToken()); in load()
78 long background_read_bytes = Long.valueOf(tokenizer.nextToken()); in load()
79 long background_write_bytes = Long.valueOf(tokenizer.nextToken()); in load()
80 long foreground_fsync = Long.valueOf(tokenizer.nextToken()); in load()
81 long background_fsync = Long.valueOf(tokenizer.nextToken()); in load()
/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java61 } else if (Long.class == clazz) { in toCarPropertyValue()
76 } else if (Long[].class == clazz) { in toCarPropertyValue()
77 Long[] values = new Long[v.int64Values.size()]; in toCarPropertyValue()
117 } else if (o instanceof Long) { in toVehiclePropValue()
118 v.int64Values.add((Long) o); in toVehiclePropValue()
119 } else if (o instanceof Long[]) { in toVehiclePropValue()
120 Collections.addAll(v.int64Values, (Long[]) o); in toVehiclePropValue()
172 } else if (classMatched(Long.class, clazz)) { in toCarPropertyConfig()
177 classMatched(Long[].class, clazz) || in toCarPropertyConfig()
220 return Long.class; in getJavaClass()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java215 Set<Long> newIds = new ArraySet<>(); in findRawContactMatchingCandidates()
222 final Set<Long> tmpIdSet = new ArraySet<>(); in findRawContactMatchingCandidates()
318 final Set<Long> allIds = new ArraySet<>(); 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 ArraySet<>(); in reAggregateRawContacts()
343 for (Long connectedRawContactId : connectedRawContactIds) { in reAggregateRawContacts()
344 Long cid = matchingCandidates.getContactId(connectedRawContactId); in reAggregateRawContacts()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java62 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap =
64 private final Map<String, Long> mStartPositionMap = new ArrayMap<>();
285 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
391 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded()
429 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage()
462 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in getReadFile()
467 SortedMap<Long, Pair<SampleChunk, Integer>> headMap = map.headMap(positionUs + 1); in getReadFile()
496 Long ret = mStartPositionMap.get(id); in getStartPositionUs()
508 SortedMap<Long, Pair<SampleChunk, Integer>> earliestChunkMap = null; in maybeEvictChunk()
511 for (Map.Entry<String, SortedMap<Long, Pair<SampleChunk, Integer>>> entry : in maybeEvictChunk()
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java336 Long periodBegin = null; in query()
339 periodBegin = Long.parseLong(value); in query()
341 Long periodEnd = null; in query()
344 periodEnd = Long.parseLong(value); in query()
351 Long threadId = null; in query()
354 threadId = Long.parseLong(value); in query()
448 protected abstract Cursor queryConversation(String accountId, Long threadId, Boolean read, in queryConversation()
449 Long periodEnd, Long periodBegin, String searchString, String[] projection, in queryConversation()
472 protected abstract Cursor queryConvoContact(String accountId, Long contactId, in queryConvoContact()
530 Long messageId = values.getAsLong(BluetoothMapContract.MessageColumns._ID); in update()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
DSpeedDialEntryDatabaseHelper.java153 public ImmutableMap<SpeedDialEntry, Long> insert(ImmutableList<SpeedDialEntry> entries) { in insert()
161 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entries); in insert()
170 private ImmutableMap<SpeedDialEntry, Long> insert( in insert()
172 ImmutableMap.Builder<SpeedDialEntry, Long> insertedEntriesToIdsMap = ImmutableMap.builder(); in insert()
225 new String[] {Long.toString(entry.id())}); in update()
259 public void delete(ImmutableList<Long> ids) { in delete()
269 private void delete(SQLiteDatabase writeableDatabase, ImmutableList<Long> ids) { in delete()
271 for (Long id : ids) { in delete()
272 idStrings.add(Long.toString(id)); in delete()
286 public ImmutableMap<SpeedDialEntry, Long> insertUpdateAndDelete( in insertUpdateAndDelete()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DContactMultiDeletionInteraction.java82 private TreeSet<Long> mContactIds;
95 Fragment hostFragment, TreeSet<Long> contactIds) { in start()
130 public void setContactIds(TreeSet<Long> contactIds) { in setContactIds()
166 final TreeSet<Long> contactIds = (TreeSet<Long>) args.getSerializable(ARG_CONTACT_IDS); in onCreateLoader()
200 final HashSet<Long> readOnlyRawContacts = Sets.newHashSet(); in onLoadFinished()
201 final HashSet<Long> writableRawContacts = Sets.newHashSet(); in onLoadFinished()
202 final HashSet<Long> contactIds = Sets.newHashSet(); in onLoadFinished()
253 final Long[] contactIdObjectArray = contactIds.toArray(new Long[contactIds.size()]); in onLoadFinished()
309 mContactIds = (TreeSet<Long>) savedInstanceState.getSerializable(KEY_CONTACTS_IDS); in onActivityCreated()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemail.java28 private final Long timestamp;
31 private final Long id;
32 private final Long duration;
41 Long timestamp, in Voicemail()
44 Long id, in Voicemail()
45 Long duration, in Voicemail()
92 private Long builderTimestamp;
95 private Long builderId;
96 private Long builderDuration;
/packages/apps/TV/src/com/android/tv/dvr/
DDvrScheduleManager.java58 public static final long DEFAULT_PRIORITY = Long.MAX_VALUE >> 1;
86 private final Map<String, Map<Long, ConflictInfo>> mInputConflictInfoMap = new HashMap<>();
170 Map<Long, ConflictInfo> conflictInfo = in DvrScheduleManager()
222 Map<Long, ConflictInfo> conflictInfo = in DvrScheduleManager()
307 Map<Long, ConflictInfo> oldConflictInfo = mInputConflictInfoMap.get(inputId); in onSchedulesChanged()
308 Map<Long, ScheduledRecording> oldConflictMap = new HashMap<>(); in onSchedulesChanged()
318 Map<Long, ConflictInfo> conflictInfos = new HashMap<>(); in onSchedulesChanged()
438 long highestPriority = Long.MIN_VALUE; in suggestHighestPriority()
446 if (highestPriority == Long.MIN_VALUE || highestPriority < schedule.getPriority()) { in suggestHighestPriority()
453 public long suggestHighestPriority(String inputId, Range<Long> peroid, long basePriority) { in suggestHighestPriority()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/
DSystemCallLogDataSource.java82 @Nullable private Long lastTimestampProcessed;
207 Set<Long> annotatedCallLogIds = getAnnotatedCallLogIds(appContext); in fillInternal()
232 Context appContext, CallLogMutations mutations, Set<Long> existingAnnotatedCallLogIds) { in handleInsertsAndUpdates()
432 Context appContext, Set<Long> existingAnnotatedCallLogIds, CallLogMutations mutations) { in handleDeletes()
433 Set<Long> systemCallLogIds = in handleDeletes()
439 Set<Long> idsInAnnotatedCallLogNoLongerInSystemCallLog = new ArraySet<>(); in handleDeletes()
453 private static Set<Long> getAnnotatedCallLogIds(Context appContext) { in getAnnotatedCallLogIds()
454 ArraySet<Long> ids = new ArraySet<>(); in getAnnotatedCallLogIds()
481 private static Set<Long> getIdsFromSystemCallLogThatMatch( in getIdsFromSystemCallLogThatMatch()
482 Context appContext, Set<Long> matchingIds) { in getIdsFromSystemCallLogThatMatch()
[all …]

12345678910>>...27