/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Audio_Genres_MembersTest.java | 82 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 88 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); in setUp() 120 long genreId = c.getLong(c.getColumnIndex(Genres._ID)); in testStoreAudioGenresMembersExternal() 141 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members.AUDIO_ID))); in testStoreAudioGenresMembersExternal() 142 assertEquals(genreId, c.getLong(c.getColumnIndex(Members.GENRE_ID))); in testStoreAudioGenresMembersExternal() 143 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioGenresMembersExternal() 147 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioGenresMembersExternal() 148 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioGenresMembersExternal() 156 long albumId = c.getLong(c.getColumnIndex(Members.ALBUM_ID)); in testStoreAudioGenresMembersExternal() 161 long artistId = c.getLong(c.getColumnIndex(Members.ARTIST_ID)); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_Audio_Playlists_MembersTest.java | 136 long id = c.getLong(c.getColumnIndex(Media._ID)); in insertAudioItem() 232 long playlistId = c.getLong(c.getColumnIndex(Playlists._ID)); in testStoreAudioPlaylistsMembersExternal() 251 long memberId = c.getLong(c.getColumnIndex(Members._ID)); in testStoreAudioPlaylistsMembersExternal() 256 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal() 257 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); in testStoreAudioPlaylistsMembersExternal() 264 assertTrue(c.getLong(c.getColumnIndex(Members.ALBUM_ID)) > 0); in testStoreAudioPlaylistsMembersExternal() 267 assertTrue(c.getLong(c.getColumnIndex(Members.ARTIST_ID)) > 0); in testStoreAudioPlaylistsMembersExternal() 269 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal() 297 assertEquals(memberId, c.getLong(c.getColumnIndex(Members._ID))); in testStoreAudioPlaylistsMembersExternal() 301 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); in testStoreAudioPlaylistsMembersExternal() [all …]
|
D | MediaStore_Images_MediaTest.java | 273 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreImagesMediaExternal() 276 assertEquals(0, c.getLong(c.getColumnIndex(Media.PICASA_ID))); in testStoreImagesMediaExternal() 277 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); in testStoreImagesMediaExternal() 281 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))); in testStoreImagesMediaExternal() 287 long realDateAdded = c.getLong(c.getColumnIndex(Media.DATE_ADDED)); in testStoreImagesMediaExternal() 290 assertTrue(Math.abs(dateModified - c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))) in testStoreImagesMediaExternal() 525 assertEquals(0, c.getLong(c.getColumnIndex(ImageColumns.ORIENTATION))); 526 assertEquals(600, c.getLong(c.getColumnIndex(ImageColumns.WIDTH))); 527 assertEquals(337, c.getLong(c.getColumnIndex(ImageColumns.HEIGHT))); 547 c.getLong(c.getColumnIndex(ImageColumns.DATE_TAKEN))); [all …]
|
D | MediaStore_Audio_MediaTest.java | 134 long id = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia() 138 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); in testStoreAudioMedia() 139 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); in testStoreAudioMedia() 147 long albumId = c.getLong(c.getColumnIndex(Media.ALBUM_ID)); in testStoreAudioMedia() 152 long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); in testStoreAudioMedia() 155 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia() 174 long fid = c.getLong(c.getColumnIndex(Media._ID)); in testStoreAudioMedia()
|
D | MediaStore_Video_MediaTest.java | 157 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() 389 assertEquals(9296, c.getLong(c.getColumnIndex(VideoColumns.DURATION))); in testMetadata() 390 assertEquals(1920, c.getLong(c.getColumnIndex(VideoColumns.WIDTH))); in testMetadata() 391 assertEquals(1080, c.getLong(c.getColumnIndex(VideoColumns.HEIGHT))); in testMetadata() 411 assertEquals(1539711603000L, c.getLong(c.getColumnIndex(VideoColumns.DATE_TAKEN))); in testMetadata() 414 final long added = c.getLong(c.getColumnIndex(VideoColumns.DATE_ADDED)); in testMetadata() 415 final long modified = c.getLong(c.getColumnIndex(VideoColumns.DATE_MODIFIED)); in testMetadata() 423 assertEquals(20716, c.getLong(c.getColumnIndex(VideoColumns.SIZE))); in testMetadata()
|
D | MediaStore_Audio_PlaylistsTest.java | 98 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); in testStoreAudioPlaylistsExternal() 100 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); in testStoreAudioPlaylistsExternal() 101 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); in testStoreAudioPlaylistsExternal()
|
/cts/tests/tests/contactsprovider/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() 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() 273 assertEquals(0L, contact.getLong(Contacts.TIMES_CONTACTED)); in testContactUpdate_usageStats() 274 assertEquals(0L, contact.getLong(Contacts.LAST_TIME_CONTACTED)); in testContactUpdate_usageStats() [all …]
|
D | ContactsContract_RawContactsTest.java | 328 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 329 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 340 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 341 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 351 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testInsertUsageStat() 352 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testInsertUsageStat() 368 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat() 369 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat() 376 assertEquals(0, rawContact.getLong(RawContacts.TIMES_CONTACTED)); in testUpdateUsageStat() 377 assertEquals(0, rawContact.getLong(RawContacts.LAST_TIME_CONTACTED)); in testUpdateUsageStat() [all …]
|
D | ContactsContract_TestDataBuilder.java | 194 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()
|
D | ContactsContract_DataUsageTest.java | 192 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()
|
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/media/src/android/media/cts/ |
D | MediaDrmMetricsTest.java | 106 assertEquals(2, metrics.getLong( in testGetMetricsSession() 108 assertEquals(-1, metrics.getLong( in testGetMetricsSession() 110 assertEquals(2, metrics.getLong( in testGetMetricsSession() 112 assertEquals(-1, metrics.getLong( in testGetMetricsSession() 164 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 166 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 168 assertEquals(1, metrics.getLong( in testGetMetricsGetKeyRequest() 189 assertThat(startTimesMs.getLong(hexSid), in testGetMetricsGetKeyRequest() 190 lessThanOrEqualTo(endTimesMs.getLong(hexSid))); in testGetMetricsGetKeyRequest()
|
D | MediaMetricsTest.java | 55 assertEquals(2, bundle.getLong("long")); in testBasicItem() 64 assertEquals(0, bundle.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); // default Time in testBasicItem() 94 assertEquals(2, bundle.getLong("long")); in testBigItem() 103 assertEquals(3, bundle.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); in testBigItem() 121 assertEquals(0, bundle2.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); // time is reset. in testBigItem() 136 assertEquals(12, bundle3.getLong(MediaMetrics.Item.BUNDLE_TIMESTAMP)); in testBigItem()
|
D | NativeDecoderTest.java | 247 foo.add((int)format.getLong(MediaFormat.KEY_DURATION)); in getSampleSizes() 252 foo.add((int)format.getLong(MediaFormat.KEY_DURATION)); in getSampleSizes() 308 aDurationUs = format.getLong(MediaFormat.KEY_DURATION); in testExtractorFileDurationNative() 310 vDurationUs = format.getLong(MediaFormat.KEY_DURATION); in testExtractorFileDurationNative() 762 && Math.abs(f1.getLong(KEY_DURATION) in compareFormats() 763 - f2.getLong(KEY_DURATION)) <= maxDurationDiffUs) { in compareFormats() 764 f2.setLong(KEY_DURATION, f1.getLong(KEY_DURATION)); in compareFormats() 822 long f1Long = f1.getLong(key); in compareFormats() 823 long f2Long = f2.getLong(key); in compareFormats() 877 long f1Long = f1.getLong(key); in compareFormats() [all …]
|
/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 | 102 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()
|
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/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeTestActivity.java | 128 long initiateTime = prefs.getLong(GarageModeChecker.PREFS_INITIATION, 0); in verifyStatus() 129 long garageModeStart = prefs.getLong(GarageModeChecker.PREFS_GARAGE_MODE_START, 0); in verifyStatus() 130 long garageModeEnd = prefs.getLong(GarageModeChecker.PREFS_GARAGE_MODE_END, 0); in verifyStatus() 131 long termination = prefs.getLong(GarageModeChecker.PREFS_TERMINATION, 0); in verifyStatus() 132 long jobUpdate = prefs.getLong(GarageModeChecker.PREFS_JOB_UPDATE, 0); in verifyStatus()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Field.java | 59 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/ |
D | PreferenceDataStoreTest.java | 351 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/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SecureTest.java | 74 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()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEvent.java | 169 final long enterTimestamp = bundle.getLong("mEnterTimestamp"); in fromBundle() 170 final long exitTimestamp = bundle.getLong("mExitTimestamp"); in fromBundle() 171 final long enterWallTime = bundle.getLong("mEnterWallTime"); in fromBundle() 172 final long exitWallTime = bundle.getLong("mExitWallTime"); in fromBundle()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 465 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in testGetLong_empty() 478 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in testGetLong_valid() 490 final long result = DeviceConfig.getLong(NAMESPACE1, KEY1, DEFAULT_LONG); in testGetLong_invalid() 502 DeviceConfig.getLong(null, KEY1, DEFAULT_LONG); in testGetLong_nullNamespace() 516 DeviceConfig.getLong(NAMESPACE1, null, 0); in testGetLong_nullName() 745 final long result = properties.getLong(KEY1, DEFAULT_LONG); in testGetPropertiesLong_empty() 758 final long result = properties.getLong(KEY1, DEFAULT_LONG); in testGetPropertiesLong_valid() 772 final long result = properties.getLong(KEY1, DEFAULT_LONG); in testGetPropertiesLong_invalid() 1125 assertEquals(expected.getLong(key, DEFAULT_LONG), in assertEqual() 1126 properties.getLong(key, DEFAULT_LONG)); in assertEqual()
|
/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/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSourceCursor.java | 62 public long getLong(int column) { in getLong() method in DragSourceCursor
|