/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 | 115 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreVideoMediaExternal() 120 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreVideoMediaExternal() 128 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreVideoMediaExternal() 136 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreVideoMediaExternal() 138 assertEquals(dateModified, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreVideoMediaExternal() 169 assertEquals(id, c.getLong(c.getColumnIndex(Media._ID))); in testStoreVideoMediaExternal() 173 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreVideoMediaExternal() 181 assertEquals(2, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreVideoMediaExternal() 190 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Media.DATE_ADDED))); in testStoreVideoMediaExternal() 191 assertEquals(dateModified, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreVideoMediaExternal()
|
D | MediaStore_Images_MediaTest.java | 257 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreImagesMediaExternal() 260 assertEquals(0, c.getLong(c.getColumnIndex(Media.PICASA_ID))); in testStoreImagesMediaExternal() 261 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal() 267 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal() 273 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreImagesMediaExternal() 276 assertTrue(Math.abs(dateModified - c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))) in testStoreImagesMediaExternal() 303 assertEquals(id, c.getLong(c.getColumnIndex(Media._ID))); in testStoreImagesMediaExternal() 306 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal() 312 assertEquals(2, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal() 319 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Media.DATE_ADDED))); in testStoreImagesMediaExternal() [all …]
|
D | MediaStore_Images_ThumbnailsTest.java | 133 long imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 144 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.WIDTH)) >= Math.min(src.getWidth(), 240)); in testQueryExternalMiniThumbnails() 145 … assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240)); in testQueryExternalMiniThumbnails() 151 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.WIDTH))); in testQueryExternalMiniThumbnails() 152 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT))); in testQueryExternalMiniThumbnails() 159 long img = c.getLong(c.getColumnIndex(Thumbnails.IMAGE_ID)); in testQueryExternalMiniThumbnails() 185 imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 199 imageId = c.getLong(c.getColumnIndex(Media._ID)); in testQueryExternalMiniThumbnails() 253 long id = c.getLong(c.getColumnIndex(Thumbnails._ID)); in testStoreImagesMediaExternal() 256 assertEquals(0, c.getLong(c.getColumnIndex(Thumbnails.IMAGE_ID))); in testStoreImagesMediaExternal() [all …]
|
D | ContactsContract_TestDataBuilder.java | 193 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues() 197 public long getLong(String columnName) { in getLong() method in ContactsContract_TestDataBuilder.Builder 198 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong() 206 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn() 269 return getLong(RawContacts.CONTACT_ID); in getContactId() 334 return getLong(Data.RAW_CONTACT_ID); in getRawContactId() 338 return getLong(Data._ID); in getId()
|
D | Settings_SecureTest.java | 63 assertEquals(20, Secure.getLong(cr, "long", 20)); in testGetDefaultValues() 121 Secure.getLong(cr, NO_SUCH_SETTING); in testGetPutLong() 127 Secure.getLong(cr, STRING_VALUE_SETTING); in testGetPutLong()
|
D | MediaStore_Audio_AlbumsTest.java | 95 long id = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums() 146 long fid = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums() 185 long aid = c.getLong(c.getColumnIndex(Albums.ALBUM_ID)); in testAlbumArt()
|
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_Video_ThumbnailsTest.java | 110 long vid = c.getLong(2); in testGetThumbnail() 114 long id = c.getLong(0); in testGetThumbnail()
|
D | ContactsContract_ContactsTest.java | 68 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); in testMarkAsContacted() 73 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); in testMarkAsContacted() 80 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); in testMarkAsContacted()
|
D | VoicemailContractTest.java | 106 assertEquals(insertDate, cursor.getLong(DATE_INDEX)); in testVoicemailsTable() 107 assertEquals(insertCallsDuration, cursor.getLong(DURATION_INDEX)); in testVoicemailsTable() 131 assertEquals(updateDate, cursor.getLong(DATE_INDEX)); in testVoicemailsTable() 132 assertEquals(updateCallsDuration, cursor.getLong(DURATION_INDEX)); in testVoicemailsTable()
|
D | Settings_SystemTest.java | 122 assertEquals(20l, System.getLong(cr, LONG_FIELD)); in testSystemSettings() 158 assertEquals(20, System.getLong(cr, "long", 20l)); in testGetDefaultValues()
|
D | MediaStore_Audio_GenresTest.java | 75 assertTrue(c.getLong(c.getColumnIndex(Genres._ID)) > 0); in testStoreAudioGenresExternal() 133 assertEquals(genreId, cursor.getLong(cursor.getColumnIndex(Genres._ID))); in testGetContentUriForAudioId()
|
/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 | 84 assertEquals(0, window.getLong(0, 0)); in testNull() 95 assertEquals(0, window.getLong(0, 0)); in testEmptyString() 200 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 0)); in testAccessDataValues() 214 assertEquals(0, cursorWindow.getLong(0, 0)); in testAccessDataValues() 226 assertEquals(0, cursorWindow.getLong(0, 1)); in testAccessDataValues() 238 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 2)); in testAccessDataValues() 255 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/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()
|
/cts/hostsidetests/services/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/ |
D | DragSourceCursor.java | 62 public long getLong(int column) { in getLong() method in DragSourceCursor
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaScannerTest.java | 188 long playlistid = c.getLong(c.getColumnIndex(MediaStore.MediaColumns._ID)); in testMediaScanner() 195 long song1a = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner() 197 long song1b = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner() 209 playlistid = c.getLong(c.getColumnIndex(MediaStore.MediaColumns._ID)); in testMediaScanner() 216 long song2a = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner() 218 long song2b = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner() 270 long parent1id = c.getLong(0); in testWildcardPaths() 274 long parent2id = c.getLong(0); in testWildcardPaths()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | ActivityTransitionTest.java | 111 long enterTimeReady = mReceiver.resultData.getLong( in testOnSharedElementsArrived() 113 long returnTimeReady = mReceiver.resultData.getLong( in testOnSharedElementsArrived() 115 long enterTime = mReceiver.resultData.getLong( in testOnSharedElementsArrived() 117 long returnTime = mReceiver.resultData.getLong( in testOnSharedElementsArrived()
|
/cts/tests/tvprovider/src/android/tvprovider/cts/ |
D | TvProviderPerfTest.java | 123 Uri channelUri = TvContract.buildChannelUri(cursor.getLong(0)); in testChannels() 166 cursor.getLong(0)), null, null, null, null)) { in testChannels() 266 Uri programUri = TvContract.buildProgramUri(cursor.getLong(0)); in testPrograms() 331 cursor.getLong(0)), null, null, null, null)) { in testPrograms()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DeletedContactUtil.java | 44 deletedTime = cursor.getLong(0); in queryDeletedTimestampForContactId()
|