/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_ContactsTest.java | 68 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted() 69 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted() 71 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted() 72 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted() 80 contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted() 81 assertEquals("#" + i, i, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted() 84 rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted() 85 assertEquals("#" + i, i, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted() 94 contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted() 95 assertEquals("#" + i, 10, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted() [all …]
|
D | ContactsContract_RawContactsTest.java | 246 assertEquals(12340, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 247 assertEquals(now / 86400 * 86400, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 258 assertEquals(5L, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 259 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 269 assertEquals(0L, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 270 assertEquals(now / 86400 * 86400, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 286 assertEquals(12340L, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat() 287 assertEquals(now / 86400 * 86400, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat() 294 assertEquals(99990L, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat() 295 assertEquals(now / 86400 * 86400, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat() [all …]
|
D | ContactsContract_TestDataBuilder.java | 197 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues() 205 public long getLong(String columnName) { in getLong() method in ContactsContract_TestDataBuilder.Builder 206 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong() 214 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn() 280 return getLong(RawContacts.CONTACT_ID); in getContactId() 345 return getLong(Data.RAW_CONTACT_ID); in getRawContactId() 349 return getLong(Data._ID); in getId()
|
D | Contacts_PeopleTest.java | 235 assertEquals(0, cursor.getLong(PEOPLE_LAST_CONTACTED_INDEX)); in testMarkAsContacted() 236 assertEquals(0, cursor.getLong(PEOPLE_TIMES_CONTACTED_INDEX)); in testMarkAsContacted() 243 assertEquals(0, cursor.getLong(PEOPLE_LAST_CONTACTED_INDEX)); in testMarkAsContacted() 244 assertEquals(0, cursor.getLong(PEOPLE_TIMES_CONTACTED_INDEX)); in testMarkAsContacted()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Audio_Genres_MembersTest.java | 47 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 53 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 97 long genreId = c.getLong(c.getColumnIndex(Genres._ID)); in testStoreAudioGenresMembersExternal() 118 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members.AUDIO_ID))); in testStoreAudioGenresMembersExternal() 119 assertEquals(genreId, c.getLong(c.getColumnIndex(Members.GENRE_ID))); in testStoreAudioGenresMembersExternal() 120 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioGenresMembersExternal() 122 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioGenresMembersExternal() 123 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioGenresMembersExternal() 132 long albumId = c.getLong(c.getColumnIndex(Members.ALBUM_ID)); in testStoreAudioGenresMembersExternal() 137 long artistId = c.getLong(c.getColumnIndex(Members.ARTIST_ID)); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_Audio_MediaTest.java | 94 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia() 98 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); in testStoreAudioMedia() 99 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreAudioMedia() 108 long albumId = c.getLong(c.getColumnIndex(Media.ALBUM_ID)); in testStoreAudioMedia() 113 long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); in testStoreAudioMedia() 116 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia() 137 long id2 = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia() 141 assertEquals(Audio2.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreAudioMedia() 149 assertTrue(albumId != c.getLong(c.getColumnIndex(Media.ALBUM_ID))); in testStoreAudioMedia() 152 assertTrue(artistId != c.getLong(c.getColumnIndex(Media.ARTIST_ID))); in testStoreAudioMedia() [all …]
|
D | MediaStore_Audio_Playlists_MembersTest.java | 108 long id = c.getLong(c.getColumnIndex(Media._ID)); in insertAudioItem() 198 long playlistId = c.getLong(c.getColumnIndex(Playlists._ID)); in testStoreAudioPlaylistsMembersExternal() 217 long memberId = c.getLong(c.getColumnIndex(Members._ID)); in testStoreAudioPlaylistsMembersExternal() 220 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal() 221 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioPlaylistsMembersExternal() 229 assertTrue(c.getLong(c.getColumnIndex(Members.ALBUM_ID)) > 0); in testStoreAudioPlaylistsMembersExternal() 232 assertTrue(c.getLong(c.getColumnIndex(Members.ARTIST_ID)) > 0); in testStoreAudioPlaylistsMembersExternal() 234 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal() 262 assertEquals(memberId, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioPlaylistsMembersExternal() 264 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal() [all …]
|
D | MediaStore_Audio_PlaylistsTest.java | 86 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); in testStoreAudioPlaylistsExternal() 88 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); in testStoreAudioPlaylistsExternal() 89 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); in testStoreAudioPlaylistsExternal() 104 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Playlists.DATE_ADDED))); in testStoreAudioPlaylistsExternal() 105 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); in testStoreAudioPlaylistsExternal()
|
D | MediaStore_Video_MediaTest.java | 116 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreVideoMediaExternal() 121 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreVideoMediaExternal() 129 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreVideoMediaExternal() 137 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreVideoMediaExternal() 139 assertEquals(dateModified, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreVideoMediaExternal() 170 assertEquals(id, c.getLong(c.getColumnIndex(Media._ID))); in testStoreVideoMediaExternal() 174 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreVideoMediaExternal() 182 assertEquals(2, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreVideoMediaExternal() 191 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Media.DATE_ADDED))); in testStoreVideoMediaExternal() 192 assertEquals(dateModified, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreVideoMediaExternal()
|
D | MediaStore_Images_MediaTest.java | 258 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreImagesMediaExternal() 261 assertEquals(0, c.getLong(c.getColumnIndex(Media.PICASA_ID))); in testStoreImagesMediaExternal() 262 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal() 268 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal() 274 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreImagesMediaExternal() 277 assertTrue(Math.abs(dateModified - c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))) in testStoreImagesMediaExternal() 304 assertEquals(id, c.getLong(c.getColumnIndex(Media._ID))); in testStoreImagesMediaExternal() 307 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal() 313 assertEquals(2, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal() 320 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Media.DATE_ADDED))); in testStoreImagesMediaExternal() [all …]
|
D | MediaStore_Images_ThumbnailsTest.java | 135 long imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 146 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.WIDTH)) >= Math.min(src.getWidth(), 240)); in testQueryExternalMiniThumbnails() 147 … assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240)); in testQueryExternalMiniThumbnails() 153 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.WIDTH))); in testQueryExternalMiniThumbnails() 154 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT))); in testQueryExternalMiniThumbnails() 161 long img = c.getLong(c.getColumnIndex(Thumbnails.IMAGE_ID)); in testQueryExternalMiniThumbnails() 187 imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 201 imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 255 long id = c.getLong(c.getColumnIndex(Thumbnails._ID)); in testStoreImagesMediaExternal() 258 assertEquals(0, c.getLong(c.getColumnIndex(Thumbnails.IMAGE_ID))); in testStoreImagesMediaExternal() [all …]
|
D | Settings_SecureTest.java | 64 assertEquals(20, Secure.getLong(cr, "long", 20)); in testGetDefaultValues() 122 Secure.getLong(cr, NO_SUCH_SETTING); in testGetPutLong() 128 Secure.getLong(cr, STRING_VALUE_SETTING); in testGetPutLong()
|
D | MediaStore_Audio_ArtistsTest.java | 85 long id = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists() 116 long fid = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists()
|
D | MediaStore_Audio_AlbumsTest.java | 96 long id = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums() 147 long fid = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums() 186 long aid = c.getLong(c.getColumnIndex(Albums.ALBUM_ID)); in testAlbumArt()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmMetricsTest.java | 103 assertEquals(2, metrics.getLong( in testGetMetricsSession() 105 assertEquals(-1, metrics.getLong( in testGetMetricsSession() 107 assertEquals(2, metrics.getLong( in testGetMetricsSession() 109 assertEquals(-1, metrics.getLong( in testGetMetricsSession() 160 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 162 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 164 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 185 assertThat(startTimesMs.getLong(hexSid), in testGetMetricsGetKeyRequest() 186 lessThanOrEqualTo(endTimesMs.getLong(hexSid))); in testGetMetricsGetKeyRequest()
|
D | MediaMetadata2Test.java | 56 assertEquals(discNumber, metadata.getLong(MediaMetadata2.METADATA_KEY_DISC_NUMBER)); in testBuilder()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | MatrixCursorTest.java | 104 assertEquals(Long.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); in testAddRow() 106 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); in testAddRow() 108 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); in testAddRow() 187 assertEquals(Short.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); in testGetters() 188 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); in testGetters() 189 assertEquals(Short.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); in testGetters() 218 assertEquals(0, mMatrixCursor.getLong(COLUMN0_INDEX)); in testGetters() 219 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); in testGetters() 220 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); in testGetters() 248 assertEquals(-1, mMatrixCursor.getLong(COLUMN0_INDEX)); in testGetters() [all …]
|
D | CursorWindowTest.java | 100 assertEquals(0, window.getLong(0, 0)); in testNull() 112 assertEquals(0, window.getLong(0, 0)); in testEmptyString() 222 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 0)); in testAccessDataValues() 236 assertEquals(0, cursorWindow.getLong(0, 0)); in testAccessDataValues() 248 assertEquals(0, cursorWindow.getLong(0, 1)); in testAccessDataValues() 260 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 2)); in testAccessDataValues() 277 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 3)); in testAccessDataValues()
|
D | DatabaseUtils_InsertHelperTest.java | 131 assertEquals(1000L, cursor.getLong(longValueIndex)); in testInsert() 163 assertEquals(987654L, cursor.getLong(longValueIndex)); in testInsert() 227 assertEquals(1000L, cursor.getLong(longValueIndex)); in testReplace() 273 assertEquals(987654L, cursor.getLong(longValueIndex)); in testReplace()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Field.java | 53 public long getLong(final Cursor cursor) { in getLong() method in Field 101 public long getLong(final Cursor cursor) { in getLong() method in Field.IntegerField 102 return cursor.getLong(pos); in getLong()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEvent.java | 118 final long enterTimestamp = bundle.getLong("mEnterTimestamp"); in fromBundle() 119 final long exitTimestamp = bundle.getLong("mExitTimestamp"); in fromBundle() 120 final long enterWallTime = bundle.getLong("mEnterWallTime"); in fromBundle() 121 final long exitWallTime = bundle.getLong("mExitWallTime"); in fromBundle()
|
D | ImeCommand.java | 46 mId = bundle.getLong(ID_KEY); in ImeCommand()
|
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSourceCursor.java | 62 public long getLong(int column) { in getLong() method in DragSourceCursor
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceDataStoreTest.java | 350 verify(mDataStore, atLeast(0)).getLong(eq(KEY), anyLong()); in putLongTestCommon() 355 assertEquals(-1, mSharedPref.getLong(KEY, -1L)); in putLongTestCommon() 362 mPreference.getLong(1L); in testGetLongWithDataStoreOnPref() 363 verify(mDataStore, atLeastOnce()).getLong(eq(KEY), eq(1L)); in testGetLongWithDataStoreOnPref() 370 mPreference.getLong(1L); in testGetLongWithDataStoreOnMgr() 371 verify(mDataStore, atLeastOnce()).getLong(eq(KEY), eq(1L)); in testGetLongWithDataStoreOnMgr() 537 long getLong(long defaultValue) { in getLong() method in PreferenceDataStoreTest.PreferenceWrapper
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | DatabaseStatementTest.java | 144 long num = c.getLong(numCol); in testStatementLongBinding() 237 long num = c.getLong(numCol); in testStatementMultipleBindings() 272 long num = c.getLong(numCol); in run() 319 long num = c.getLong(numCol); in testStatementConstraint()
|