Home
last modified time | relevance | path

Searched refs:getLong (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistEntry.java78 mUid = getLong(values, KEY_UID); in BatteryHistEntry()
79 mUserId = getLong(values, KEY_USER_ID); in BatteryHistEntry()
83 mBootTimestamp = getLong(values, KEY_BOOT_TIMESTAMP); in BatteryHistEntry()
84 mTimestamp = getLong(values, KEY_TIMESTAMP); in BatteryHistEntry()
89 mForegroundUsageTimeInMs = getLong(values, KEY_FOREGROUND_USAGE_TIME); in BatteryHistEntry()
90 mBackgroundUsageTimeInMs = getLong(values, KEY_BACKGROUND_USAGE_TIME); in BatteryHistEntry()
99 mUid = getLong(cursor, KEY_UID); in BatteryHistEntry()
100 mUserId = getLong(cursor, KEY_USER_ID); in BatteryHistEntry()
104 mBootTimestamp = getLong(cursor, KEY_BOOT_TIMESTAMP); in BatteryHistEntry()
105 mTimestamp = getLong(cursor, KEY_TIMESTAMP); in BatteryHistEntry()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java266 mimeTypeCondition.append(c.getLong((0))); in clearSuperPrimarySetting()
409 if (!connectedRawContactIds.contains(cursor.getLong(0))) { in canBeReused()
472 long rawContactId = cursor.getLong(RawContactIdQuery.RAW_CONTACT_ID); in updateAggregationAfterVisibilityChange()
522 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in updateMatchScoresBasedOnExceptions()
528 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID2); in updateMatchScoresBasedOnExceptions()
529 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID2); in updateMatchScoresBasedOnExceptions()
530 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID2); in updateMatchScoresBasedOnExceptions()
534 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in updateMatchScoresBasedOnExceptions()
535 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID1); in updateMatchScoresBasedOnExceptions()
536 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID1); in updateMatchScoresBasedOnExceptions()
[all …]
DContactAggregator.java134 final long rcId = rawContactsToAccountsCursor.getLong(0); in aggregateContact()
135 final long rc_accountId = rawContactsToAccountsCursor.getLong(1); in aggregateContact()
274 mimeTypeCondition.append(c.getLong((0))); in clearSuperPrimarySetting()
487 long rawContactId = cursor.getLong(RawContactIdQuery.RAW_CONTACT_ID); in updateAggregationAfterVisibilityChange()
571 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); in pickBestMatchBasedOnExceptions()
576 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID2); in pickBestMatchBasedOnExceptions()
581 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID1); in pickBestMatchBasedOnExceptions()
722 final long contactId = c.getLong(IdentityLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnIdentityMatch()
768 long contactId = c.getLong(NameLookupMatchQuery.CONTACT_ID); in updateMatchScoresBasedOnNameMatches()
793 long contactId = c.getLong(EmailLookupQuery.CONTACT_ID); in updateMatchScoresBasedOnEmailMatches()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncMessagesAction.java77 final long smsSyncBackoffTimeMillis = bugleGservices.getLong( in fullSync()
95 final long smsSyncBackoffTimeMillis = bugleGservices.getLong( in sync()
126 final long syncLowerBoundTimeMillis = prefs.getLong(BuglePrefsKeys.LAST_SYNC_TIME, in sync()
146 long lowerBoundTimeMillis = actionParameters.getLong(KEY_LOWER_BOUND); in executeAction()
147 final long upperBoundTimeMillis = actionParameters.getLong(KEY_UPPER_BOUND); in executeAction()
149 final long startTimestamp = actionParameters.getLong(KEY_START_TIMESTAMP); in executeAction()
214 final long lowerBoundTimeMillis = actionParameters.getLong(KEY_LOWER_BOUND); in doBackgroundWork()
215 final long upperBoundTimeMillis = actionParameters.getLong(KEY_UPPER_BOUND); in doBackgroundWork()
355 final long lastTimestampMillis = response.getLong(BUNDLE_KEY_LAST_TIMESTAMP); in processBackgroundResponse()
356 final long lowerBoundTimeMillis = actionParameters.getLong(KEY_LOWER_BOUND); in processBackgroundResponse()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java93 long id = cursor.getLong(idColumn); in load()
120 long id = cursor.getLong(idColumn); in load()
126 long artistId = cursor.getLong(artistIdColumn); in load()
158 long id = cursor.getLong(idColumn); in load()
165 long artistId = cursor.getLong(artistIdColumn); in load()
172 long albumId = cursor.getLong(albumIdColumn); in load()
198 long id = cursor.getLong(idColumn); in load()
222 long id = cursor.getLong(idColumn); in load()
265 long artistId = cursor.getLong(artistIdColumn); in loadData()
271 long albumId = cursor.getLong(albumIdColumn); in loadData()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalVideo.java107 dateTakenInMs = cursor.getLong(INDEX_DATE_TAKEN); in loadFromCursor()
108 dateAddedInSec = cursor.getLong(INDEX_DATE_ADDED); in loadFromCursor()
109 dateModifiedInSec = cursor.getLong(INDEX_DATE_MODIFIED); in loadFromCursor()
113 fileSize = cursor.getLong(INDEX_SIZE); in loadFromCursor()
140 dateTakenInMs, cursor.getLong(INDEX_DATE_TAKEN)); in updateFromCursor()
142 dateAddedInSec, cursor.getLong(INDEX_DATE_ADDED)); in updateFromCursor()
144 dateModifiedInSec, cursor.getLong(INDEX_DATE_MODIFIED)); in updateFromCursor()
149 fileSize = uh.update(fileSize, cursor.getLong(INDEX_SIZE)); in updateFromCursor()
DLocalImage.java139 dateTakenInMs = cursor.getLong(INDEX_DATE_TAKEN); in loadFromCursor()
140 dateAddedInSec = cursor.getLong(INDEX_DATE_ADDED); in loadFromCursor()
141 dateModifiedInSec = cursor.getLong(INDEX_DATE_MODIFIED); in loadFromCursor()
145 fileSize = cursor.getLong(INDEX_SIZE); in loadFromCursor()
159 dateTakenInMs, cursor.getLong(INDEX_DATE_TAKEN)); in updateFromCursor()
161 dateAddedInSec, cursor.getLong(INDEX_DATE_ADDED)); in updateFromCursor()
163 dateModifiedInSec, cursor.getLong(INDEX_DATE_MODIFIED)); in updateFromCursor()
167 fileSize = uh.update(fileSize, cursor.getLong(INDEX_SIZE)); in updateFromCursor()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java115 mSharedPrefs.getLong(NoBackupKeys.KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP, -1)); in upgradePrefs()
119 mSharedPrefs.getLong(NoBackupKeys.KEY_LAST_DAILY_LOG_TIMESTAMP, 0)); in upgradePrefs()
123 mSharedPrefs.getLong(NoBackupKeys.KEY_LAST_APP_ACTIVE_TIMESTAMP, 0)); in upgradePrefs()
131 mSharedPrefs.getLong(NoBackupKeys.KEY_LAST_ROTATION_STATUS_TIMESTAMP, 0)); in upgradePrefs()
135 mSharedPrefs.getLong(NoBackupKeys.KEY_LAST_SYNC_TIMESTAMP, 0)); in upgradePrefs()
300 return mSharedPrefs.getLong(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_HASH_CODE, 0); in getHomeWallpaperHashCode()
508 return mSharedPrefs.getLong(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_HASH_CODE, 0); in getLockWallpaperHashCode()
571 return jsonArray.getLong(jsonArray.length() - 1); in getLastDailyRotationTimestamp()
604 long existingTimestamp = jsonArray.getLong(i); in getDailyRotationsInLastWeek()
656 long timestamp = jsonArray.getLong(i); in getDailyRotationsPreviousDay()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DTranscodeHelperImpl.java418 c.getLong(0) /* video_duration */, in reportTranscodingResult()
419 c.getLong(1) /* capture_framerate */, in reportTranscodingResult()
421 c.getLong(2) /* width */, in reportTranscodingResult()
422 c.getLong(3) /* height */, in reportTranscodingResult()
787 return Pair.create(result, cursor.getLong(3)); in getFileFlagsAndDurationMs()
937 return Pair.create(cursor.getLong(0), cursor.getInt(1)); in getTranscodeCacheInfoFromDB()
967 c.getLong(1) /* file size */, in onUriPublished()
970 c.getLong(4) /* video_duration */, in onUriPublished()
971 c.getLong(5) /* capture_framerate */, in onUriPublished()
973 c.getLong(6) /* width */, in onUriPublished()
[all …]
DMediaDocumentsProvider.java554 long date = cursor.getLong(index); in extractMetadataFromCursor()
736 final long id = cursor.getLong(ImagesBucketQuery.BUCKET_ID); in queryChildDocuments()
758 final long id = cursor.getLong(VideosBucketQuery.BUCKET_ID); in queryChildDocuments()
806 final long id = cursor.getLong(DocumentsBucketQuery.BUCKET_ID); in queryChildDocuments()
907 final long lastModifiedAfter = queryArgs.getLong( in querySearchDocuments()
909 final long fileSizeOver = queryArgs.getLong(DocumentsContract.QUERY_ARG_FILE_SIZE_OVER, in querySearchDocuments()
1232 final long id = cursor.getLong(ImagesBucketQuery.BUCKET_ID); in includeImagesBucket()
1242 cursor.getLong(ImagesBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeImagesBucket()
1263 final long id = cursor.getLong(ImageQuery._ID); in includeImage()
1269 row.add(Document.COLUMN_SIZE, cursor.getLong(ImageQuery.SIZE)); in includeImage()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DVideoDataFactory.java36 long id = c.getLong(VideoDataQuery.COL_ID); in fromCursor()
39 long creationDateInMilliSeconds = c.getLong(VideoDataQuery.COL_DATE_TAKEN); in fromCursor()
40 long lastModifiedDateInSeconds = c.getLong(VideoDataQuery.COL_DATE_MODIFIED); in fromCursor()
67 long sizeInBytes = c.getLong(VideoDataQuery.COL_SIZE); in fromCursor()
70 long videoDurationMillis = c.getLong(VideoDataQuery.COL_DURATION); in fromCursor()
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java54 return cursor.getLong(INDEX_ID); in getImageId()
59 long id = cursor.getLong(INDEX_ID); in loadImageFromCursor()
61 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); in loadImageFromCursor()
63 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; in loadImageFromCursor()
65 long miniThumbMagic = cursor.getLong(INDEX_MIMI_THUMB_MAGIC); in loadImageFromCursor()
DImageList.java116 return cursor.getLong(INDEX_ID); in getImageId()
121 long id = cursor.getLong(INDEX_ID); in loadImageFromCursor()
123 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); in loadImageFromCursor()
125 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; in loadImageFromCursor()
127 long miniThumbMagic = cursor.getLong(INDEX_MINI_THUMB_MAGIC); in loadImageFromCursor()
/packages/apps/TV/src/com/android/tv/dvr/data/
DScheduledRecording.java456 .setId(c.getLong(++index)) in fromCursor()
457 .setPriority(c.getLong(++index)) in fromCursor()
460 .setChannelId(c.getLong(++index)) in fromCursor()
461 .setProgramId(c.getLong(++index)) in fromCursor()
463 .setStartTimeMs(c.getLong(++index)) in fromCursor()
464 .setEndTimeMs(c.getLong(++index)) in fromCursor()
474 .setSeriesRecordingId(c.getLong(++index)) in fromCursor()
482 .setId(c.getLong(++index)) in fromCursorWithTimeOffset()
483 .setPriority(c.getLong(++index)) in fromCursorWithTimeOffset()
486 .setChannelId(c.getLong(++index)) in fromCursorWithTimeOffset()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java85 long start = bundle.getLong(KEY_START); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()
86 long end = bundle.getLong(KEY_END); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()
102 long start = bundle.getLong(KEY_START); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
103 long end = bundle.getLong(KEY_END); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
130 long start = bundle.getLong(KEY_START); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator()
131 long end = bundle.getLong(KEY_END); in onActivityCreated_iteratorIsNotEmpty_startAndEndDateShouldBeLastOneInIterator()
/packages/modules/StatsD/framework/test/src/android/util/
DStatsEventTest.java67 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testNoFields()
114 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testOnlyAtomId()
161 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testIntBooleanIntInt()
230 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testStringFloatByteArray()
294 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testAttributionChainLong()
321 .that(buffer.getLong()).isEqualTo(field2); in testAttributionChainLong()
364 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testKeyValuePairs()
395 .that(buffer.getLong()).isEqualTo(longMap.valueAt(i)); in testKeyValuePairs()
458 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testSingleAnnotations()
542 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testAtomIdAnnotations()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionConfigProvider.java73 .getLong("voicemail_transcription_max_transcription_retries", 2L); in getMaxTranscriptionRetries()
80 .getLong("voicemail_transcription_max_get_transcript_polls", 20L); in getMaxGetTranscriptPolls()
86 .getLong( in getInitialGetTranscriptPollDelayMillis()
94 .getLong( in getMaxGetTranscriptPollTimeMillis()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java396 long deleteContactId = deletedContactCursor.getLong(DeleteContactQuery.DELETED_CONTACT_ID); in removeDeletedContacts()
479 final Long contactId = updatedContactCursor.getLong(UpdatedContactQuery.UPDATED_CONTACT_ID); in removeUpdatedContacts()
583 insert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_ID)); in insertUpdatedContactsAndNumberPrefix()
584 insert.bindLong(3, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix()
585 insert.bindLong(6, updatedContactCursor.getLong(PhoneQuery.PHONE_PHOTO_ID)); in insertUpdatedContactsAndNumberPrefix()
586 insert.bindLong(7, updatedContactCursor.getLong(PhoneQuery.PHONE_LAST_TIME_USED)); in insertUpdatedContactsAndNumberPrefix()
600 numberInsert.bindLong(1, updatedContactCursor.getLong(PhoneQuery.PHONE_CONTACT_ID)); in insertUpdatedContactsAndNumberPrefix()
650 insert.bindLong(1, nameCursor.getLong(columnIndexContactId)); in insertNamePrefixes()
687 .getLong(DEFAULT_LAST_UPDATED_CONFIG_KEY, 0); in updateSmartDialDatabase()
690 databaseLastUpdateSharedPref.getLong(LAST_UPDATED_MILLIS, defaultLastUpdateMillis); in updateSmartDialDatabase()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/
DMetadata.java122 mMetadata.trackNum = "" + data.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER); in fromMediaMetadata()
125 mMetadata.numTracks = "" + data.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS); in fromMediaMetadata()
131 mMetadata.duration = "" + data.getLong(MediaMetadata.METADATA_KEY_DURATION); in fromMediaMetadata()
203 mMetadata.trackNum = "" + bundle.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER); in fromBundle()
206 mMetadata.numTracks = "" + bundle.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS); in fromBundle()
212 mMetadata.duration = "" + bundle.getLong(MediaMetadata.METADATA_KEY_DURATION); in fromBundle()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java139 runtimeMillis = in.getLong("runtimeMillis"); in IoStatsEntry()
299 bytesRead = in.getLong("bytesRead"); in Metrics()
300 bytesWritten = in.getLong("bytesWritten"); in Metrics()
301 bytesReadFromStorage = in.getLong("bytesReadFromStorage"); in Metrics()
302 bytesWrittenToStorage = in.getLong("bytesWrittenToStorage"); in Metrics()
303 fsyncCalls = in.getLong("fsyncCalls"); in Metrics()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java102 .getLong("post_call_prompt_duration_ms", 8_000); in promptUserToSendMessage()
191 .getLong(PostCall.KEY_POST_CALL_CALL_DISCONNECT_TIME, -1); in restartPerformanceRecordingIfARecentCallExist()
213 long disconnectTimeMillis = manager.getLong(KEY_POST_CALL_CALL_DISCONNECT_TIME, -1); in shouldPromptUserToSendMessage()
214 long connectTimeMillis = manager.getLong(KEY_POST_CALL_CALL_CONNECT_TIME, -1); in shouldPromptUserToSendMessage()
225 && binding.getLong("postcall_last_call_threshold", 30_000) > timeSinceDisconnect in shouldPromptUserToSendMessage()
227 || binding.getLong("postcall_call_duration_threshold", 35_000) > callDurationMillis) in shouldPromptUserToSendMessage()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java158 mRowId = cursor.getLong(INDEX_ID); in load()
161 mTimestampInMillis = cursor.getLong(INDEX_DATE); in load()
163 mTimestampSentInMillis = cursor.getLong(INDEX_DATE_SENT); in load()
165 mThreadId = cursor.getLong(INDEX_THREAD_ID); in load()
357 mRowId = cursor.getLong(INDEX_ID); in load()
369 mSize = cursor.getLong(INDEX_MESSAGE_SIZE); in load()
371 mTimestampInMillis = cursor.getLong(INDEX_DATE) * 1000; in load()
372 mSentTimestampInMillis = cursor.getLong(INDEX_DATE_SENT) * 1000; in load()
373 mThreadId = cursor.getLong(INDEX_THREAD_ID); in load()
381 mExpiryInMillis = cursor.getLong(INDEX_EXPIRY) * 1000; in load()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerDAO.kt74 val length: Long = prefs.getLong(LENGTH + id, Long.MIN_VALUE) in getTimers()
75 val totalLength: Long = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE) in getTimers()
76 val lastStartTime: Long = prefs.getLong(LAST_START_TIME + id, Timer.UNUSED) in getTimers()
77 val lastWallClockTime: Long = prefs.getLong(LAST_WALL_CLOCK_TIME + id, Timer.UNUSED) in getTimers()
78 val remainingTime: Long = prefs.getLong(REMAINING_TIME + id, totalLength) in getTimers()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DEpgDataCleanupServiceTests.java164 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2))); in queryPrograms()
203 programs.add(new Program(cursor.getLong(0), cursor.getLong(1), cursor.getLong(2))); in queryWatchedPrograms()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForNickname.java56 long dataId = c.getLong(DataUpdateQuery._ID); in update()
57 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); in update()
76 long dataId = c.getLong(DataDeleteQuery._ID); in delete()
77 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID); in delete()

12345678910>>...22