Home
last modified time | relevance | path

Searched refs:getAsLong (Results 1 – 25 of 57) sorted by relevance

123

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java85 when(mUptimeSupplier.getAsLong()).thenReturn(0L); in setUp()
250 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeys_anyDisplay()
260 when(mUptimeSupplier.getAsLong()).thenReturn(10L); in handlesRepeatedKeys_anyDisplay()
270 when(mUptimeSupplier.getAsLong()).thenReturn(15L); in handlesRepeatedKeys_anyDisplay()
296 when(mUptimeSupplier.getAsLong()).thenReturn(5L); in handlesRepeatedKeyWithIndents_anyDisplay()
310 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in handlesKeyUp_withoutKeyDown_mainDisplay()
324 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in handlesKeyUp_withoutKeyDown_clusterDisplay()
339 when(mUptimeSupplier.getAsLong()).thenReturn(27L); in separateKeyDownEvents_areIndependent_mainDisplay()
343 when(mUptimeSupplier.getAsLong()).thenReturn(42L); in separateKeyDownEvents_areIndependent_mainDisplay()
356 when(mUptimeSupplier.getAsLong()).thenReturn(27L); in separateKeyDownEvents_areIndependent_clusterDisplay()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedInformationTest.java111 (long) values.getAsLong(CallLog.Calls.MISSED_REASON)); in testNotMissedCall()
130 (long) values.getAsLong(CallLog.Calls.MISSED_REASON)); in testEmergencyCallPlacing()
159 (long) values.getAsLong(CallLog.Calls.MISSED_REASON)); in testMaximumDialingCalls()
185 (long) values.getAsLong(CallLog.Calls.MISSED_REASON)); in testMaximumRingingCalls()
199 long missedReason = values.getAsLong(CallLog.Calls.MISSED_REASON); in testCallFiltersTimeout()
220 long missedReason = values.getAsLong(CallLog.Calls.MISSED_REASON); in testCallScreeningServiceSilence()
DCallLogManagerTest.java444 assertEquals(insertedValues.getAsLong(CallLog.Calls.DATE), in testCreationTimeAndAge()
446 assertEquals(insertedValues.getAsLong(CallLog.Calls.DURATION), in testCreationTimeAndAge()
730 assertEquals(Long.valueOf(1000), insertedValues.getAsLong(CallLog.Calls.DATA_USAGE)); in testLogCallDataUsageSet()
757 assertNull(insertedValues.getAsLong(CallLog.Calls.DATA_USAGE)); in testLogCallDataUsageNotSet()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java94 assertThat(values.getAsLong(BatteryHistEntry.KEY_UID)).isEqualTo(1001L); in testConvert_returnsExpectedContentValues()
95 assertThat(values.getAsLong(BatteryHistEntry.KEY_USER_ID)) in testConvert_returnsExpectedContentValues()
102 assertThat(values.getAsLong(BatteryHistEntry.KEY_BOOT_TIMESTAMP)) in testConvert_returnsExpectedContentValues()
104 assertThat(values.getAsLong(BatteryHistEntry.KEY_TIMESTAMP)).isEqualTo(10001L); in testConvert_returnsExpectedContentValues()
110 assertThat(values.getAsLong(BatteryHistEntry.KEY_FOREGROUND_USAGE_TIME)) in testConvert_returnsExpectedContentValues()
112 assertThat(values.getAsLong(BatteryHistEntry.KEY_BACKGROUND_USAGE_TIME)) in testConvert_returnsExpectedContentValues()
136 assertThat(values.getAsLong(BatteryHistEntry.KEY_BOOT_TIMESTAMP)) in testConvert_nullBatteryEntry_returnsExpectedContentValues()
138 assertThat(values.getAsLong(BatteryHistEntry.KEY_TIMESTAMP)) in testConvert_nullBatteryEntry_returnsExpectedContentValues()
/packages/apps/Contacts/src/com/android/contacts/model/
DValuesDelta.java115 public Long getAsLong(String key) { in getAsLong() method in ValuesDelta
117 return mAfter.getAsLong(key); in getAsLong()
119 return mBefore.getAsLong(key); in getAsLong()
159 return getAsLong(mIdColumn); in getId()
167 final Long isPrimary = getAsLong(ContactsContract.Data.IS_PRIMARY); in isPrimary()
180 final Long isSuperPrimary = getAsLong(ContactsContract.Data.IS_SUPER_PRIMARY); in isSuperPrimary()
492 return getAsLong(ContactsContract.CommonDataKinds.GroupMembership.GROUP_ROW_ID); in getGroupRowId()
DRawContactDeltaList.java269 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiffHelper()
279 Long rawContactId2 = get(index2).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiffHelper()
298 final Long rawContactId = delta.getValues().getAsLong(RawContacts._ID); in findRawContactId()
314 return values.getAsLong(RawContacts._ID); in getRawContactId()
DRawContactDelta.java115 .getAsLong(RawContacts.VERSION); in mergeAfter()
116 final Long remoteVersion = remote.mValues.getAsLong(RawContacts.VERSION); in mergeAfter()
218 return getValues().getAsLong(RawContacts._ID); in getRawContactId()
440 final Long beforeVersion = mValues.getAsLong(RawContacts.VERSION); in buildAssertHelper()
DRawContact.java200 return getValues().getAsLong(RawContacts._ID); in getId()
253 return getValues().getAsLong(Contacts.Entity.CONTACT_ID); in getContactId()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1718 Long dtstart = values.getAsLong(Events.DTSTART); in fixAllDayTime()
1719 Long dtend = values.getAsLong(Events.DTEND); in fixAllDayTime()
1814 long startTimeMillis = values.getAsLong(Events.DTSTART); in setRecurrenceEnd()
1907 Long originalInstanceTime = modValues.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in handleInsertException()
2069 start = values.getAsLong(Events.DTSTART); in handleInsertException()
2071 start = values.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in handleInsertException()
2078 ", generated DTEND=" + values.getAsLong(Events.DTEND)); in handleInsertException()
2094 if (originalInstanceTime.equals(values.getAsLong(Events.DTSTART))) { in handleInsertException()
2191 long calendarId = values.getAsLong(Events.CALENDAR_ID); in handleInsertException()
2377 final long origStart = values.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in insertInTransactionInner()
[all …]
DCalendarInstancesHelper.java461 long originalTime = values.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in performInstanceExpansion()
476 long beginTime = originalValues.getAsLong(Instances.BEGIN); in performInstanceExpansion()
627 Long dtstartMillis = values.getAsLong(Events.DTSTART); in updateInstancesLocked()
655 Long lastDateMillis = values.getAsLong(Events.LAST_DATE); in updateInstancesLocked()
656 Long originalInstanceTime = values.getAsLong(Events.ORIGINAL_INSTANCE_TIME); in updateInstancesLocked()
681 Long dtendMillis = values.getAsLong(Events.DTEND); in updateInstancesLocked()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java736 assertEquals(1577836800, (long) reverse.getAsLong(MediaColumns.DATE_EXPIRES)); in testBuildData_Pending_FromData()
784 assertEquals(1577836800, (long) reverse.getAsLong(MediaColumns.DATE_EXPIRES)); in testBuildData_Trashed_FromData()
1115 final long albumIdOne = valuesOne.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1117 final long albumIdTwo = valuesTwo.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1143 final long albumIdThree = valuesThree.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1145 final long albumIdFour = valuesFour.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_differentAlbumIds()
1172 final long albumIdOne = valuesOne.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_sameAlbumId()
1174 final long albumIdTwo = valuesTwo.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_sameAlbumId()
1202 final long albumIdThree = valuesThree.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_sameAlbumId()
1204 final long albumIdFour = valuesFour.getAsLong(AudioColumns.ALBUM_ID); in testComputeAudioKeyValues_167339595_sameAlbumId()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java99 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId()
108 return mContentValues.getAsLong(Data._ID); in getId()
188 return mContentValues.getAsLong(Entity.LAST_TIME_USED); in getLastTimeUsed()
DPhotoDataItem.java33 return getContentValues().getAsLong(Photo.PHOTO_FILE_ID); in getPhotoFileId()
DGroupMembershipDataItem.java34 return getContentValues().getAsLong(GroupMembership.GROUP_ROW_ID); in getGroupRowId()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DWordListMetadata.java86 final Long lastUpdate = values.getAsLong(MetadataDbHelper.DATE_COLUMN); in createFromContentValues()
87 final Long fileSize = values.getAsLong(MetadataDbHelper.FILESIZE_COLUMN); in createFromContentValues()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReceiveSmsMessageAction.java78 final long received = messageValues.getAsLong(Sms.DATE); in executeAction()
127 final long sent = messageValues.getAsLong(Sms.DATE_SENT); in executeAction()
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapEmailProvider.java460 Long folderId = values.getAsLong(BluetoothMapContract.MessageColumns.FOLDER_ID); in insert()
630 Long messageId = values.getAsLong(BluetoothMapContract.MessageColumns._ID); in update()
634 Long folderId = values.getAsLong(BluetoothMapContract.MessageColumns.FOLDER_ID); in update()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java106 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId()
113 return mContentValues.getAsLong(Data._ID); in getId()
DPhotoDataItem.java34 return getContentValues().getAsLong(Photo.PHOTO_FILE_ID); in getPhotoFileId()
DGroupMembershipDataItem.java34 return getContentValues().getAsLong(GroupMembership.GROUP_ROW_ID); in getGroupRowId()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DRawContact.java121 return getValues().getAsLong(RawContacts._ID); in getId()
168 return getValues().getAsLong(Contacts.Entity.CONTACT_ID); in getContactId()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java201 .min().getAsLong(); in getDensedStatsData()
203 .max().getAsLong(); in getDensedStatsData()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java195 Long i = from.getAsLong(key); in copyLong()
239 Long ts = values.getAsLong(BluetoothShare.TIMESTAMP); in insert()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DEpgInput.java35 long id = contentValues.getAsLong(EpgContract.EpgInputs.COLUMN_ID); in createEpgChannel()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java340 playlistMap.getAsLong(MediaStore.Audio.Playlists.Members.PLAYLIST_ID); in testLegacy_PlaylistMap()
341 long legacyAudioId1 = audios[0].getAsLong(MediaColumns._ID); in testLegacy_PlaylistMap()
342 long legacyAudioId2 = audios[1].getAsLong(MediaColumns._ID); in testLegacy_PlaylistMap()

123