Home
last modified time | relevance | path

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

12345

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_ContactsTest.java68 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()
82 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
83 assertEquals("#" + i, 0, contact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
85 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testMarkAsContacted()
86 assertEquals("#" + i, 0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testMarkAsContacted()
186 assertEquals(0L, contact.getLong(Contacts.TIMES_CONTACTED)); in testContactUpdate_usageStats()
187 assertEquals(0L, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testContactUpdate_usageStats()
[all …]
DContactsContract_RawContactsTest.java249 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat()
250 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat()
261 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat()
262 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat()
272 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat()
273 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat()
289 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat()
290 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat()
297 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat()
298 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat()
[all …]
DContactsContract_TestDataBuilder.java194 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); in loadUsingValues()
202 public long getLong(String columnName) { in getLong() method in ContactsContract_TestDataBuilder.Builder
203 return mCursor.getLong(mCursor.getColumnIndex(columnName)); in getLong()
211 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); in assertColumn()
277 return getLong(RawContacts.CONTACT_ID); in getContactId()
342 return getLong(Data.RAW_CONTACT_ID); in getRawContactId()
346 return getLong(Data._ID); in getId()
DContactsContract_DataUsageTest.java192 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testUsageUpdate()
193 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); in testUsageUpdate()
195 assertEquals(0, rawContact.getLong(Contacts.LAST_TIME_CONTACTED)); in testUsageUpdate()
196 assertEquals(0, rawContact.getLong(Contacts.TIMES_CONTACTED)); in testUsageUpdate()
DContacts_PeopleTest.java235 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/
DMediaStore_Audio_Genres_MembersTest.java81 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); in setUp()
87 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); in setUp()
118 long genreId = c.getLong(c.getColumnIndex(Genres._ID)); in testStoreAudioGenresMembersExternal()
139 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members.AUDIO_ID))); in testStoreAudioGenresMembersExternal()
140 assertEquals(genreId, c.getLong(c.getColumnIndex(Members.GENRE_ID))); in testStoreAudioGenresMembersExternal()
141 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioGenresMembersExternal()
145 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioGenresMembersExternal()
146 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioGenresMembersExternal()
154 long albumId = c.getLong(c.getColumnIndex(Members.ALBUM_ID)); in testStoreAudioGenresMembersExternal()
159 long artistId = c.getLong(c.getColumnIndex(Members.ARTIST_ID)); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java134 long id = c.getLong(c.getColumnIndex(Media._ID)); in insertAudioItem()
231 long playlistId = c.getLong(c.getColumnIndex(Playlists._ID)); in testStoreAudioPlaylistsMembersExternal()
250 long memberId = c.getLong(c.getColumnIndex(Members._ID)); in testStoreAudioPlaylistsMembersExternal()
255 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal()
256 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioPlaylistsMembersExternal()
263 assertTrue(c.getLong(c.getColumnIndex(Members.ALBUM_ID)) > 0); in testStoreAudioPlaylistsMembersExternal()
266 assertTrue(c.getLong(c.getColumnIndex(Members.ARTIST_ID)) > 0); in testStoreAudioPlaylistsMembersExternal()
268 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
296 assertEquals(memberId, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioPlaylistsMembersExternal()
300 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal()
[all …]
DMediaStore_Video_MediaTest.java157 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreVideoMediaExternal()
162 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreVideoMediaExternal()
168 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreVideoMediaExternal()
176 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreVideoMediaExternal()
178 assertEquals(dateModified, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreVideoMediaExternal()
385 assertEquals(9296, c.getLong(c.getColumnIndex(VideoColumns.DURATION))); in testMetadata()
386 assertEquals(1920, c.getLong(c.getColumnIndex(VideoColumns.WIDTH))); in testMetadata()
387 assertEquals(1080, c.getLong(c.getColumnIndex(VideoColumns.HEIGHT))); in testMetadata()
398 assertEquals(1539711603000L, c.getLong(c.getColumnIndex(VideoColumns.DATE_TAKEN))); in testMetadata()
401 final long added = c.getLong(c.getColumnIndex(VideoColumns.DATE_ADDED)); in testMetadata()
[all …]
DMediaStore_Images_MediaTest.java261 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreImagesMediaExternal()
264 assertEquals(0, c.getLong(c.getColumnIndex(Media.PICASA_ID))); in testStoreImagesMediaExternal()
265 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal()
269 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal()
275 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreImagesMediaExternal()
278 assertTrue(Math.abs(dateModified - c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))) in testStoreImagesMediaExternal()
471 assertEquals(0, c.getLong(c.getColumnIndex(ImageColumns.ORIENTATION)));
472 assertEquals(600, c.getLong(c.getColumnIndex(ImageColumns.WIDTH)));
473 assertEquals(337, c.getLong(c.getColumnIndex(ImageColumns.HEIGHT)));
485 c.getLong(c.getColumnIndex(ImageColumns.DATE_TAKEN)));
[all …]
DMediaStore_Audio_MediaTest.java114 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia()
118 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); in testStoreAudioMedia()
119 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreAudioMedia()
127 long albumId = c.getLong(c.getColumnIndex(Media.ALBUM_ID)); in testStoreAudioMedia()
132 long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); in testStoreAudioMedia()
135 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
153 long fid = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia()
DMediaStore_Audio_PlaylistsTest.java101 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); in testStoreAudioPlaylistsExternal()
103 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); in testStoreAudioPlaylistsExternal()
104 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); in testStoreAudioPlaylistsExternal()
DSettings_SecureTest.java74 assertEquals(20, Secure.getLong(cr, "long", 20)); in testGetDefaultValues()
135 Secure.getLong(cr, NO_SUCH_SETTING); in testGetPutLong()
141 Secure.getLong(cr, STRING_VALUE_SETTING); in testGetPutLong()
DMediaStore_Audio_AlbumsTest.java110 long id = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums()
147 long fid = c.getLong(c.getColumnIndex(Albums._ID)); in testStoreAudioAlbums()
183 albumId = c.getLong(c.getColumnIndex(Albums.ALBUM_ID)); in testAlbumArt()
DSettings_SystemTest.java100 assertEquals(20l, System.getLong(cr, LONG_FIELD)); in testSystemSettings()
135 assertEquals(20, System.getLong(cr, "long", 20l)); in testGetDefaultValues()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMetricsTest.java103 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()
DMediaFormatTest.java79 long value = format.getLong(key); in assertGetLongsThrowClassCastException()
85 long value = format.getLong(key, 321L); in assertGetLongsThrowClassCastException()
152 assertEquals(9876543210L, format.getLong("long")); in testLongValue()
542 assertEquals(9876543210L, format.getLong("long")); in testFeatureKeySetContainsAndRemove()
557 long value = format.getLong(key); in testNullOrMissingValue()
575 assertEquals(321L, format.getLong(key, 321L)); in testNullOrMissingValue()
DMediaScannerTest.java243 long playlistid = c.getLong(c.getColumnIndex(MediaStore.MediaColumns._ID)); in testMediaScanner()
250 long song1a = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner()
252 long song1b = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner()
264 playlistid = c.getLong(c.getColumnIndex(MediaStore.MediaColumns._ID)); in testMediaScanner()
271 long song2a = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner()
273 long song2b = c.getLong(c.getColumnIndex(MediaStore.Audio.Playlists.Members.AUDIO_ID)); in testMediaScanner()
325 long parent1id = c.getLong(0); in testWildcardPaths()
329 long parent2id = c.getLong(0); in testWildcardPaths()
/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.java102 assertEquals(0, window.getLong(0, 0)); in testNull()
114 assertEquals(0, window.getLong(0, 0)); in testEmptyString()
224 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 0)); in testAccessDataValues()
238 assertEquals(0, cursorWindow.getLong(0, 0)); in testAccessDataValues()
250 assertEquals(0, cursorWindow.getLong(0, 1)); in testAccessDataValues()
262 assertEquals(NUMBER_LONG_INTEGER, cursorWindow.getLong(0, 2)); in testAccessDataValues()
279 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/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DField.java59 public long getLong(Cursor cursor) { in getLong() method in Field
125 public long getLong(Cursor cursor) { in getLong() method in Field.IntegerField
126 return cursor.getLong(mPos); in getLong()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java351 verify(mDataStore, atLeast(0)).getLong(eq(KEY), anyLong()); in putLongTestCommon()
356 assertEquals(-1, mSharedPref.getLong(KEY, -1L)); in putLongTestCommon()
363 mPreference.getLong(1L); in testGetLongWithDataStoreOnPref()
364 verify(mDataStore, atLeastOnce()).getLong(eq(KEY), eq(1L)); in testGetLongWithDataStoreOnPref()
371 mPreference.getLong(1L); in testGetLongWithDataStoreOnMgr()
372 verify(mDataStore, atLeastOnce()).getLong(eq(KEY), eq(1L)); in testGetLongWithDataStoreOnMgr()
538 long getLong(long defaultValue) { in getLong() method in PreferenceDataStoreTest.PreferenceWrapper
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEvent.java162 final long enterTimestamp = bundle.getLong("mEnterTimestamp"); in fromBundle()
163 final long exitTimestamp = bundle.getLong("mExitTimestamp"); in fromBundle()
164 final long enterWallTime = bundle.getLong("mEnterWallTime"); in fromBundle()
165 final long exitWallTime = bundle.getLong("mExitWallTime"); in fromBundle()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java367 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in getLong_empty()
380 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in getLong_valid()
392 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in getLong_invalid()
404 DeviceConfig.getLong(null, KEY1, DEFAULT_LONG); in getLong_nullNamespace()
418 DeviceConfig.getLong(NAMESPACE1, null, 0); in getLong_nullName()
647 final long result = properties.getLong(KEY1, DEFAULT_LONG); in getPropertiesLong_empty()
660 final long result = properties.getLong(KEY1, DEFAULT_LONG); in getPropertiesLong_valid()
674 final long result = properties.getLong(KEY1, DEFAULT_LONG); in getPropertiesLong_invalid()
/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()

12345