Home
last modified time | relevance | path

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

123

/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_Genres_MembersTest.java47 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 …]
DMediaStore_Audio_MediaTest.java94 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 …]
DMediaStore_Audio_Playlists_MembersTest.java108 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 …]
DMediaStore_Audio_PlaylistsTest.java86 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()
DMediaStore_Video_MediaTest.java115 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()
DMediaStore_Images_MediaTest.java257 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 …]
DMediaStore_Images_ThumbnailsTest.java133 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 …]
DContactsContract_TestDataBuilder.java193 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()
DSettings_SecureTest.java63 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()
DMediaStore_Audio_AlbumsTest.java95 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()
DMediaStore_Audio_ArtistsTest.java85 long id = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists()
116 long fid = c.getLong(c.getColumnIndex(Artists._ID)); in testStoreAudioArtists()
DMediaStore_Video_ThumbnailsTest.java110 long vid = c.getLong(2); in testGetThumbnail()
114 long id = c.getLong(0); in testGetThumbnail()
DContactsContract_ContactsTest.java68 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()
DVoicemailContractTest.java106 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()
DSettings_SystemTest.java122 assertEquals(20l, System.getLong(cr, LONG_FIELD)); in testSystemSettings()
158 assertEquals(20, System.getLong(cr, "long", 20l)); in testGetDefaultValues()
DMediaStore_Audio_GenresTest.java75 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/
DMatrixCursorTest.java104 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 …]
DCursorWindowTest.java84 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()
DDatabaseUtils_InsertHelperTest.java131 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/
DDatabaseStatementTest.java144 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/
DDragSourceCursor.java62 public long getLong(int column) { in getLong() method in DragSourceCursor
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerTest.java188 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/
DActivityTransitionTest.java111 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/
DTvProviderPerfTest.java123 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/
DDeletedContactUtil.java44 deletedTime = cursor.getLong(0); in queryDeletedTimestampForContactId()

123