Home
last modified time | relevance | path

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

12345678910>>...28

/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.java76 private final Map<Long, CreatePreviewChannelTask> mCreatePreviewChannelTasks = new HashMap<>();
77 private final Map<Long, UpdatePreviewProgramTask> mUpdatePreviewProgramTasks = new HashMap<>();
239 Long previewChannelType = previewChannel.getInternalProviderFlag1(); in doInBackground()
259 Long previewChannelType = previewChannel.getInternalProviderFlag1(); in doInBackground()
307 private final class CreatePreviewChannelTask extends AsyncTask<Void, Void, Long> {
325 protected Long doInBackground(Void... params) { in doInBackground()
359 protected void onPostExecute(Long result) { in onPostExecute()
379 private Map<Long, Long> mCurrentProgramId2PreviewProgramId;
417 Map<Long, Long> uncheckedPrograms = new HashMap<>(mCurrentProgramId2PreviewProgramId); in doInBackground()
422 Long existingPreviewProgramId = uncheckedPrograms.remove(program.getId()); in doInBackground()
[all …]
DChannelDataManager.java94 private final Set<Long> mBrowsableUpdateChannelIds = new HashSet<>();
95 private final Set<Long> mLockedUpdateChannelIds = new HashSet<>();
247 public void addChannelListener(Long channelId, ChannelListener listener) { in addChannelListener()
259 public void removeChannelListener(Long channelId, ChannelListener listener) { in removeChannelListener()
326 public Channel getChannel(Long channelId) { in getChannel()
335 public void updateBrowsable(Long channelId, boolean browsable) { in updateBrowsable()
348 Long channelId, boolean browsable, boolean skipNotifyChannelBrowsableChanged) { in updateBrowsable()
401 public void updateLocked(Long channelId, boolean locked) { in updateLocked()
420 ArrayList<Long> browsableIds = new ArrayList<>(); in applyUpdatedValuesToDb()
421 ArrayList<Long> unbrowsableIds = new ArrayList<>(); in applyUpdatedValuesToDb()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.kt38 val length: Long, in <lambda>()
40 val totalLength: Long, in <lambda>()
42 val lastStartTime: Long, in <lambda>()
44 val lastWallClockTime: Long, in <lambda>()
46 val lastRemainingTime: Long, in <lambda>()
93 val remainingTime: Long in <lambda>()
109 val expirationTime: Long in <lambda>()
120 val wallClockExpirationTime: Long in <lambda>()
133 val elapsedTime: Long in <lambda>()
256 fun setLength(length: Long): Timer { in <lambda>()
[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/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/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.java96 private Map<Long, Msg> mMsgListSms = null;
97 private Map<Long, Msg> mMsgListMms = null;
98 private Map<Long, Msg> mMsgListMsg = null;
102 private HashMap<Long, BluetoothMapConvoListingElement> mSmsMmsConvoList =
103 new HashMap<Long, BluetoothMapConvoListingElement>();
105 private HashMap<Long, BluetoothMapConvoListingElement> mImEmailConvoList =
106 new HashMap<Long, BluetoothMapConvoListingElement>();
199 /* package */ Map<Long, Msg> getMsgListSms() { in getMsgListSms()
203 /* package */ void setMsgListSms(Map<Long, Msg> msgListSms) { in setMsgListSms() argument
207 /* 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/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.kt48 var mId: Long = 0
60 var mAlarmId: Long? = null
65 constructor(calendar: Calendar, alarmId: Long?) : this(calendar) {
222 return java.lang.Long.valueOf(mId).hashCode() in hashCode()
260 const val INVALID_ID: Long = -1
320 fun createIntent(action: String?, instanceId: Long): Intent { in createIntent()
325 fun createIntent(context: Context?, cls: Class<*>?, instanceId: Long): Intent { in createIntent()
330 fun getId(contentUri: Uri): Long { in getId()
337 fun getContentUri(instanceId: Long): Uri { in getContentUri()
349 fun getInstance(cr: ContentResolver, instanceId: Long): AlarmInstance? { in getInstance()
[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/exoplayer2/buffer/
DBufferManager.java66 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap =
68 private final Map<String, Long> mStartPositionMap = new ArrayMap<>();
291 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
397 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded()
436 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage()
469 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in getReadFile()
474 SortedMap<Long, Pair<SampleChunk, Integer>> headMap = map.headMap(positionUs + 1); in getReadFile()
503 Long ret = mStartPositionMap.get(id); in getStartPositionUs()
515 SortedMap<Long, Pair<SampleChunk, Integer>> earliestChunkMap = null; in maybeEvictChunk()
518 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/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java65 private final Map<String, SortedMap<Long, Pair<SampleChunk, Integer>>> mChunkMap =
67 private final Map<String, Long> mStartPositionMap = new ArrayMap<>();
288 void writeIndexFile(String trackName, SortedMap<Long, Pair<SampleChunk, Integer>> index) in writeIndexFile() argument
394 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded()
432 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage()
465 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in getReadFile()
470 SortedMap<Long, Pair<SampleChunk, Integer>> headMap = map.headMap(positionUs + 1); in getReadFile()
499 Long ret = mStartPositionMap.get(id); in getStartPositionUs()
511 SortedMap<Long, Pair<SampleChunk, Integer>> earliestChunkMap = null; in maybeEvictChunk()
514 for (Map.Entry<String, SortedMap<Long, Pair<SampleChunk, Integer>>> entry : in maybeEvictChunk()
[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.java60 public static final long DEFAULT_PRIORITY = Long.MAX_VALUE >> 1;
88 private final Map<String, Map<Long, ConflictInfo>> mInputConflictInfoMap = new HashMap<>();
172 Map<Long, ConflictInfo> conflictInfo = in DvrScheduleManager()
224 Map<Long, ConflictInfo> conflictInfo = in DvrScheduleManager()
309 Map<Long, ConflictInfo> oldConflictInfo = mInputConflictInfoMap.get(inputId); in onSchedulesChanged()
310 Map<Long, ScheduledRecording> oldConflictMap = new HashMap<>(); in onSchedulesChanged()
320 Map<Long, ConflictInfo> conflictInfos = new HashMap<>(); in onSchedulesChanged()
440 long highestPriority = Long.MIN_VALUE; in suggestHighestPriority()
448 if (highestPriority == Long.MIN_VALUE || highestPriority < schedule.getPriority()) { in suggestHighestPriority()
455 public long suggestHighestPriority(String inputId, Range<Long> peroid, long basePriority) { in suggestHighestPriority()
[all …]

12345678910>>...28