Home
last modified time | relevance | path

Searched refs:putLong (Results 1 – 25 of 342) sorted by relevance

12345678910>>...14

/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelper.java63 .putLong(IMAGES_SIZE_KEY, data.imagesSize) in cacheSizeInfo()
64 .putLong(VIDEOS_SIZE_KEY, data.videosSize) in cacheSizeInfo()
65 .putLong(AUDIO_SIZE_KEY, data.audioSize) in cacheSizeInfo()
66 .putLong(APPS_SIZE_KEY, data.allAppsExceptGamesSize) in cacheSizeInfo()
67 .putLong(GAMES_SIZE_KEY, data.gamesSize) in cacheSizeInfo()
68 .putLong(DOCUMENTS_SIZE_KEY, data.documentsSize) in cacheSizeInfo()
69 .putLong(OTHER_SIZE_KEY, data.otherSize) in cacheSizeInfo()
70 .putLong(TRASH_SIZE_KEY, data.trashSize) in cacheSizeInfo()
71 .putLong(SYSTEM_SIZE_KEY, data.systemSize) in cacheSizeInfo()
72 .putLong(TEMPORARY_FILES_SIZE_KEY, data.temporaryFilesSize) in cacheSizeInfo()
[all …]
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppMetadata.kt46 putLong(KEY_VERSION, INITIAL_SAFETY_LABELS_VERSION) in createDefaultAppMetadata()
51 putLong(KEY_VERSION, INITIAL_TOP_LEVEL_VERSION) in createDefaultAppMetadata()
65 putLong(KEY_VERSION, INITIAL_TOP_LEVEL_VERSION) in createInvalidAppMetadata()
92 putLong(KEY_VERSION, INVALID_TOP_LEVEL_VERSION) in createInvalidAppMetadataWithInvalidTopLevelVersion()
109 putLong(KEY_VERSION, INITIAL_TOP_LEVEL_VERSION) in createInvalidAppMetadataWithoutSafetyLabelVersion()
122 putLong(KEY_VERSION, INVALID_SAFETY_LABELS_VERSION) in createInvalidAppMetadataWithInvalidSafetyLabelVersion()
126 putLong(KEY_VERSION, INITIAL_TOP_LEVEL_VERSION) in createInvalidAppMetadataWithInvalidSafetyLabelVersion()
188 putLong(KEY_VERSION, INITIAL_SAFETY_LABELS_VERSION) in createMetadataWithDataShared()
193 putLong(KEY_VERSION, INITIAL_TOP_LEVEL_VERSION) in createMetadataWithDataShared()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerDAO.kt107 editor.putLong(LENGTH + id, timer.length) in addTimer()
108 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) in addTimer()
109 editor.putLong(LAST_START_TIME + id, timer.lastStartTime) in addTimer()
110 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.lastWallClockTime) in addTimer()
111 editor.putLong(REMAINING_TIME + id, timer.remainingTime) in addTimer()
133 editor.putLong(LENGTH + id, timer.length) in updateTimer()
134 editor.putLong(TOTAL_LENGTH + id, timer.totalLength) in updateTimer()
135 editor.putLong(LAST_START_TIME + id, timer.lastStartTime) in updateTimer()
136 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.lastWallClockTime) in updateTimer()
137 editor.putLong(REMAINING_TIME + id, timer.remainingTime) in updateTimer()
DStopwatchDAO.kt76 .putLong(LAST_START_TIME, stopwatch.lastStartTime) in setStopwatch()
77 .putLong(LAST_WALL_CLOCK_TIME, stopwatch.lastWallClockTime) in setStopwatch()
78 .putLong(ACCUMULATED_TIME, stopwatch.accumulatedTime) in setStopwatch()
123 .putLong(LAP_ACCUMULATED_TIME + newLapCount, accumulatedTime) in addLap()
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesAppsearchDeleteJobTest.java106 doReturn(mEditor).when(mEditor).putLong(any(), anyLong()); in setup()
354 .putLong(eq(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_OTA_DATE), anyLong()); in onStartJob_enabledJob_firstTimeOta_appsearchDataNotFound()
361 verify(mEditor).putLong(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_JOB_RUN_COUNT, 1); in onStartJob_enabledJob_firstTimeOta_appsearchDataNotFound()
391 .putLong(eq(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_OTA_DATE), anyLong()); in onStartJob_enabledJob_firstTimeOta_appsearchDataFound()
396 verify(mEditor).putLong(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_JOB_RUN_COUNT, 1); in onStartJob_enabledJob_firstTimeOta_appsearchDataFound()
444 verify(mEditor).putLong( in onStartJob_enabledJob_minMinutesFromOTAPassed_shouldDelete()
448 verify(mEditor).putLong(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_JOB_RUN_COUNT, 1); in onStartJob_enabledJob_minMinutesFromOTAPassed_shouldDelete()
453 .putLong(eq(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_OTA_DATE), anyLong()); in onStartJob_enabledJob_minMinutesFromOTAPassed_shouldDelete()
500 verify(mEditor).putLong(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_JOB_RUN_COUNT, 1); in onStartJob_enabledJob_deleteDbsException_shouldNotCancel()
505 .putLong(eq(AdServicesAppsearchDeleteJob.SHARED_PREFS_KEY_OTA_DATE), anyLong()); in onStartJob_enabledJob_deleteDbsException_shouldNotCancel()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarConfidenceChecker.java107 .putLong(LAST_CHECK_REALTIME_PREF_KEY, now) in updateLastCheckTime()
108 .putLong(LAST_CHECK_BOOT_COUNT_PREF_KEY, getBootCount()) in updateLastCheckTime()
170 .putLong(LAST_CHECK_REALTIME_PREF_KEY, 0) in checkLastCheckTime()
171 .putLong(LAST_WTF_REALTIME_PREF_KEY, nowRealtime) in checkLastCheckTime()
172 .putLong(LAST_CHECK_BOOT_COUNT_PREF_KEY, getBootCount()) in checkLastCheckTime()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobServiceLoggerTest.java136 editor.putLong(keyJobStartTime, previousJobStartTime); in testPersistJobExecutionData_openEndedLastExecution()
137 editor.putLong(keyJobStopTime, previousJobStopTime); in testPersistJobExecutionData_openEndedLastExecution()
138 editor.putLong(keyExecutionPeriod, previousExecutionPeriod); in testPersistJobExecutionData_openEndedLastExecution()
182 editor.putLong(keyJobStartTime, previousJobStartTime); in testPersistJobExecutionData_closeEndedLastExecution()
183 editor.putLong(keyJobStopTime, previousJobStopTime); in testPersistJobExecutionData_closeEndedLastExecution()
184 editor.putLong(keyExecutionPeriod, previousExecutionPeriod); in testPersistJobExecutionData_closeEndedLastExecution()
262 editor.putLong(keyJobStartTime, jobStartTime); in testLogExecutionStats()
263 editor.putLong(keyExecutionPeriod, executionPeriod); in testLogExecutionStats()
297 editor.putLong(keyJobStartTime, UNAVAILABLE_JOB_EXECUTION_PERIOD); in testLogExecutionStats_invalidStats()
298 editor.putLong(keyExecutionPeriod, executionPeriod); in testLogExecutionStats_invalidStats()
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/storage/
DUserParameters.java106 getSharedPreferences(context).edit().putLong(KEY_BOOT_TIME_MILLS, bootTime).apply(); in setBootTimeMillis()
120 getSharedPreferences(context).edit().putLong(KEY_NEXT_CHECK_IN_TIME_MILLIS, in setNextCheckInTimeMillis()
135 getSharedPreferences(context).edit().putLong(KEY_RESUME_PROVISION_TIME_MILLIS, in setResumeProvisionTimeMillis()
151 getSharedPreferences(context).edit().putLong(KEY_NEXT_PROVISION_FAILED_STEP_TIME_MILLIS, in setNextProvisionFailedStepTimeMills()
166 getSharedPreferences(context).edit().putLong(KEY_RESET_DEVICE_TIME_MILLIS, in setResetDeviceTimeMillis()
191 getSharedPreferences(context).edit().putLong(KEY_PROVISIONING_START_TIME_MILLIS, in setProvisioningStartTimeMillis()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsIndexerSettings.java85 mBundle.putLong(LAST_FULL_UPDATE_TIMESTAMP_KEY, timestampMillis); in setLastFullUpdateTimestampMillis()
95 mBundle.putLong(LAST_DELTA_UPDATE_TIMESTAMP_KEY, timestampMillis); in setLastDeltaUpdateTimestampMillis()
105 mBundle.putLong(LAST_CONTACT_UPDATE_TIMESTAMP_KEY, timestampMillis); in setLastContactUpdateTimestampMillis()
115 mBundle.putLong(LAST_CONTACT_DELETE_TIMESTAMP_KEY, timestampMillis); in setLastContactDeleteTimestampMillis()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DAdbAuthorizationTimeoutPreferenceControllerTest.java73 Settings.Global.putLong(mContext.getContentResolver(), in tearDown()
94 Settings.Global.putLong(mContentResolver, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 1); in onPreferenceChange_enableAndDisableSetting_timeoutSetToDefault()
106 Settings.Global.putLong(mContentResolver, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0); in updateState_timeoutSetToZero_preferenceDisplayedEnabled()
115 Settings.Global.putLong(mContentResolver, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, in updateState_timeoutSetToDefault_preferenceDisplayedDisabled()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/utils/
DStorageUtils.java348 .putLong(record.getAppInfoId()) in getDedupeByteBuffer()
349 .putLong(record.getDeviceInfoId()) in getDedupeByteBuffer()
350 .putLong(record.getTimeInMillis()) in getDedupeByteBuffer()
362 .putLong(record.getAppInfoId()) in getDedupeByteBuffer()
363 .putLong(record.getDeviceInfoId()) in getDedupeByteBuffer()
364 .putLong(record.getStartTimeInMillis()) in getDedupeByteBuffer()
365 .putLong(record.getEndTimeInMillis()) in getDedupeByteBuffer()
424 byteBuffer.putLong(uuid.getMostSignificantBits()); in convertUUIDToBytes()
425 byteBuffer.putLong(uuid.getLeastSignificantBits()); in convertUUIDToBytes()
456 byteBuffer.putLong(value); in convertLongToBytes()
/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DSafetyLabelTestPersistableBundles.kt55 putLong(KEY_VERSION, version) in <lambda>()
106 putLong(KEY_VERSION, INVALID_TOP_LEVEL_VERSION) in <lambda>()
118 putLong(KEY_VERSION, version) in <lambda>()
141 putLong(KEY_VERSION, INVALID_SAFETY_LABELS_VERSION) in <lambda>()
351 return PersistableBundle().apply { putLong(INVALID_KEY, 0) } in <lambda>()
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayerBrowserService.kt166 .putLong( in updateQueue()
170 .putLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS, NEW_QUEUE_ITEM_INDEX.toLong()) in updateQueue()
262 .putLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER, item.toLong()) in initMediaItems()
263 .putLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS, QUEUE_SIZE.toLong()) in initMediaItems()
286 .putLong( in initBrowseFolderList()
299 putLong( in initBrowseFolderList()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.kt117 noBackupEditor.putLong( in <lambda>()
123 noBackupEditor.putLong( in <lambda>()
129 noBackupEditor.putLong( in <lambda>()
141 noBackupEditor.putLong( in <lambda>()
147 noBackupEditor.putLong( in <lambda>()
321 sharedEditor.putLong(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_HASH_CODE, hashCode) in <lambda>()
375 .putLong(WallpaperPreferenceKeys.KEY_HOME_WALLPAPER_HASH_CODE, hashCode) in <lambda>()
538 sharedEditor.putLong(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_HASH_CODE, hashCode) in <lambda>()
592 .putLong(WallpaperPreferenceKeys.KEY_LOCK_WALLPAPER_HASH_CODE, hashCode) in <lambda>()
689 .putLong(NoBackupKeys.KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP, timestamp) in <lambda>()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncMessagesAction.java136 actionParameters.putLong(KEY_LOWER_BOUND, lowerBound); in SyncMessagesAction()
137 actionParameters.putLong(KEY_UPPER_BOUND, upperBound); in SyncMessagesAction()
139 actionParameters.putLong(KEY_START_TIMESTAMP, startTimestamp); in SyncMessagesAction()
166 actionParameters.putLong(KEY_LOWER_BOUND, lowerBoundTimeMillis); in executeAction()
261 response.putLong(BUNDLE_KEY_LAST_TIMESTAMP, lastTimestampMillis); in doBackgroundWork()
378 prefs.putLong(BuglePrefsKeys.LAST_SYNC_TIME, startTimestamp); in processBackgroundResponse()
380 prefs.putLong(BuglePrefsKeys.LAST_FULL_SYNC_TIME, startTimestamp); in processBackgroundResponse()
458 prefs.putLong(BuglePrefsKeys.LAST_SYNC_TIME, startTimestamp); in processBackgroundResponse()
461 prefs.putLong(BuglePrefsKeys.LAST_FULL_SYNC_TIME, startTimestamp); in processBackgroundResponse()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/
DRefinedStatsTest.java83 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS, 10_000); in testAddNetworkStats_toPersistableBundle()
84 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_END_MILLIS, 20_000); in testAddNetworkStats_toPersistableBundle()
127 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS, 10_000); in testSubtract()
128 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_END_MILLIS, 20_000); in testSubtract()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DImportantNoticeUtilsTests.java83 private void putLong(final String key, final Long value) { in putLong() method in ImportantNoticeUtilsTests.ImportantNoticePreferences
87 mPref.edit().putLong(key, value).apply(); in putLong()
100 putLong(KEY_TIMESTAMP_OF_CONTACTS_NOTICE, mLastTime); in restore()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DMetadataTest.java143 .putLong( in getMediaMetadata()
146 .putLong( in getMediaMetadata()
150 .putLong( in getMediaMetadata()
162 .putLong( in getMediaMetadataWithBitmap()
165 .putLong( in getMediaMetadataWithBitmap()
169 .putLong(MediaMetadata.METADATA_KEY_DURATION, Long.parseLong(SONG_DURATION)) in getMediaMetadataWithBitmap()
181 .putLong( in getMediaMetadataWithUri()
184 .putLong( in getMediaMetadataWithUri()
188 .putLong(MediaMetadata.METADATA_KEY_DURATION, Long.parseLong(SONG_DURATION)) in getMediaMetadataWithUri()
226 bundle.putLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER, Long.parseLong(SONG_TRACK_NUM)); in getBundle()
[all …]
/packages/apps/Dialer/java/com/android/dialer/configprovider/
DSharedPrefConfigProvider.java86 editor.putLong(prefixedKey, (Long) value); in put()
101 public void putLong(String key, long value) { in putLong() method in SharedPrefConfigProvider
102 sharedPreferences.edit().putLong(PREF_PREFIX + key, value).apply(); in putLong()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItem.java189 metaDataBuilder.putLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER, mTrackNumber); in toMediaMetadata()
190 metaDataBuilder.putLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS, mTotalNumberOfTracks); in toMediaMetadata()
192 metaDataBuilder.putLong(MediaMetadataCompat.METADATA_KEY_DURATION, mPlayingTime); in toMediaMetadata()
197 metaDataBuilder.putLong(MediaMetadataCompat.METADATA_KEY_BT_FOLDER_TYPE, mType); in toMediaMetadata()
219 extras.putLong(AVRCP_ITEM_KEY_UID, mUid); in toMediaItem()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java1141 appParamBuf.putLong(getFilterConvoId().getMostSignificantBits()); in encodeParams()
1142 appParamBuf.putLong(getFilterConvoId().getLeastSignificantBits()); in encodeParams()
1162 appParamBuf.putLong(getChatStateConvoId().getMostSignificantBits()); in encodeParams()
1163 appParamBuf.putLong(getChatStateConvoId().getLeastSignificantBits()); in encodeParams()
1173 appParamBuf.putLong(getFilterMsgHandle()); in encodeParams()
1350 ret.putLong(mDatabaseIdentifierHigh); in getDatabaseIdentifier()
1351 ret.putLong(mDatabaseIdentifierLow); in getDatabaseIdentifier()
1367 ret.putLong(mConvoListingVerCounterHigh); in getConvoListingVerCounter()
1368 ret.putLong(mConvoListingVerCounterLow); in getConvoListingVerCounter()
1384 ret.putLong(mFolderVerCounterHigh); in getFolderVerCounter()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchSettingsImpl.kt48 SharedPreferencesCompat.apply(searchPreferences.edit().putLong(name, value)) in storeLong()
98 .putLong(FIRST_VOICE_HINT_DISPLAY_TIME, currentTime) in haveVoiceSearchHintsExpired()
142 sharedPrefEditor.putLong(SEARCH_BASE_DOMAIN_APPLY_TIME, System.currentTimeMillis())
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/dltdoa/
DDlTDoAMeasurement.java183 bundle.putLong(TX_TIMESTAMP, mTxTimestamp); in toBundle()
184 bundle.putLong(RX_TIMESTAMP, mRxTimestamp); in toBundle()
187 bundle.putLong(INITIATOR_REPLY_TIME, mInitiatorReplyTime); in toBundle()
188 bundle.putLong(RESPONDER_REPLY_TIME, mResponderReplyTime); in toBundle()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DPermissionUsageWrapperFragment.java47 arguments.putLong(Intent.EXTRA_DURATION_MILLIS, numMillis); in newInstance()
48 arguments.putLong(EXTRA_SESSION_ID, sessionId); in newInstance()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java241 edit.putLong("primary", sPrimaryVersionCounter); in savePbapParams()
242 edit.putLong("secondary", sSecondaryVersionCounter); in savePbapParams()
243 edit.putLong("dbIdentifier", dbIdentifier); in savePbapParams()
244 edit.putLong("totalContacts", sTotalContacts); in savePbapParams()
245 edit.putLong("lastUpdatedTimestamp", sContactsLastUpdated); in savePbapParams()
246 edit.putLong("totalFields", sTotalFields); in savePbapParams()
247 edit.putLong("totalSvcFields", sTotalSvcFields); in savePbapParams()

12345678910>>...14