/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
SyncCalendarTest.java | 82 long dtStart = cursor.getLong(cursor.getColumnIndex("dtstart")); 83 long dtEnd = cursor.getLong(cursor.getColumnIndex("dtend")); 86 long eventId = cursor.getLong(cursor.getColumnIndex("_id")); 93 if (cursor.getLong(cursor.getColumnIndex("_id")) == eventId) { 109 long dtStart = cursor.getLong(cursor.getColumnIndex("dtstart")); 116 long eventId = cursor.getLong(cursor.getColumnIndex("_id")); 125 if (cursor.getLong(cursor.getColumnIndex("_id")) == eventId) { 126 assertEquals(cursor.getLong(cursor.getColumnIndex("dtstart")), newDtStart); 127 assertEquals(cursor.getLong(cursor.getColumnIndex("dtend")), newDtEnd); 141 long dtStart = cursor.getLong(cursor.getColumnIndex("dtstart")) [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldLongTest.java | 41 Long.getLong("testIncLong")); 46 // java.lang.Long.getLong(java.lang.String, long) 50 assertTrue("returned incorrect default Long", Long.getLong("testIncLong", 4L) 56 // java.lang.Long.getLong(java.lang.String, java.lang.Long) 60 assertTrue("returned incorrect default Long", Long.getLong("testIncLong",
|
/frameworks/base/core/tests/coretests/src/android/os/ |
PerformanceCollectorTest.java | 183 assertEquals(0, results.getLong("testAddMeasurementLongZero")); 185 assertEquals(348573, results.getLong("testAddMeasurementLongPos")); 187 assertEquals(-19354, results.getLong("testAddMeasurementLongNeg")); 403 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_CPU_TIME) > 0); 405 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_EXECUTION_TIME) > 0); 415 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_ALLOCATED) > 0); 417 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_FREE) > 0); 419 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PRIVATE_DIRTY) > 0); 421 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_PSS) > 0); 423 assertTrue(snapshot.getLong(PerformanceCollector.METRIC_KEY_JAVA_SHARED_DIRTY) > 0) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_Genres_MembersTest.java | 47 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); 53 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); 97 long genreId = c.getLong(c.getColumnIndex(Genres._ID)); 118 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members.AUDIO_ID))); 119 assertEquals(genreId, c.getLong(c.getColumnIndex(Members.GENRE_ID))); 120 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members._ID))); 122 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); 123 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); 132 long albumId = c.getLong(c.getColumnIndex(Members.ALBUM_ID)); 137 long artistId = c.getLong(c.getColumnIndex(Members.ARTIST_ID)) [all...] |
MediaStore_Audio_MediaTest.java | 94 long id = c.getLong(c.getColumnIndex(Media._ID)); 98 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); 99 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 108 long albumId = c.getLong(c.getColumnIndex(Media.ALBUM_ID)); 113 long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); 116 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); 137 long id2 = c.getLong(c.getColumnIndex(Media._ID)); 141 assertEquals(Audio2.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 149 assertTrue(albumId != c.getLong(c.getColumnIndex(Media.ALBUM_ID))); 152 assertTrue(artistId != c.getLong(c.getColumnIndex(Media.ARTIST_ID))) [all...] |
MediaStore_Audio_PlaylistsTest.java | 86 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); 88 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); 89 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); 104 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Playlists.DATE_ADDED))); 105 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED)));
|
Settings_SecureTest.java | 33 * NumberFormatExceptions for getInt, getFloat, and getLong. 63 assertEquals(20, Secure.getLong(cr, "long", 20)); 121 Secure.getLong(cr, NO_SUCH_SETTING); 127 Secure.getLong(cr, STRING_VALUE_SETTING);
|
/cts/tests/tests/database/src/android/database/cts/ |
MatrixCursorTest.java | 104 assertEquals(Long.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); 106 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 108 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 187 assertEquals(Short.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); 188 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 189 assertEquals(Short.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 218 assertEquals(0, mMatrixCursor.getLong(COLUMN0_INDEX)); 219 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 220 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 248 assertEquals(-1, mMatrixCursor.getLong(COLUMN0_INDEX)) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForEmail.java | 60 long dataId = c.getLong(DataUpdateQuery._ID); 61 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 75 long dataId = c.getLong(DataDeleteQuery._ID); 76 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
|
DataRowHandlerForNickname.java | 57 long dataId = c.getLong(DataUpdateQuery._ID); 58 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 77 long dataId = c.getLong(DataDeleteQuery._ID); 78 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
|
DataRowHandlerForOrganization.java | 63 long dataId = c.getLong(DataUpdateQuery._ID); 64 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID); 97 long dataId = c.getLong(DataUpdateQuery._ID); 98 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
UUIDConverter.java | 46 return new UUID(b.getLong(), b.getLong());
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
ImageList.java | 116 return cursor.getLong(INDEX_ID); 121 long id = cursor.getLong(INDEX_ID); 123 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); 125 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; 127 long miniThumbMagic = cursor.getLong(INDEX_MINI_THUMB_MAGIC);
|
VideoList.java | 54 return cursor.getLong(INDEX_ID); 59 long id = cursor.getLong(INDEX_ID); 61 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); 63 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; 65 long miniThumbMagic = cursor.getLong(INDEX_MIMI_THUMB_MAGIC);
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
tfsmalls.cpp | 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { 169 it_errln("*** Formattable constructor or getType or getLong"); 178 fta.getLong(&status); 180 it_errln("*** FT getLong(UErrorCode* status) failed on real Long"); 182 it_logln("FT getLong(UErrorCode* status) tested."); 220 fta.getLong(&status); 222 it_errln("*** FT getLong(UErrorCode* status) should fail on non-Long"); 263 && (ft_arr[2].getType() == Formattable::kLong) && (ft_arr[2].getLong() == (int32_t)3) 323 if ((ft_arr[0].getType() == Formattable::kLong) && (ft_arr[0].getLong() == (int32_t)1)) { 333 if ((ft_dynarr[0].getType() == Formattable::kLong) && (ft_dynarr[0].getLong() == (int32_t)3 [all...] |
/external/icu4c/test/intltest/ |
tfsmalls.cpp | 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { 169 it_errln("*** Formattable constructor or getType or getLong"); 178 fta.getLong(&status); 180 it_errln("*** FT getLong(UErrorCode* status) failed on real Long"); 182 it_logln("FT getLong(UErrorCode* status) tested."); 220 fta.getLong(&status); 222 it_errln("*** FT getLong(UErrorCode* status) should fail on non-Long"); 263 && (ft_arr[2].getType() == Formattable::kLong) && (ft_arr[2].getLong() == (int32_t)3) 323 if ((ft_arr[0].getType() == Formattable::kLong) && (ft_arr[0].getLong() == (int32_t)1)) { 333 if ((ft_dynarr[0].getType() == Formattable::kLong) && (ft_dynarr[0].getLong() == (int32_t)3 [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
CursorWindowTest.java | 87 long int2 = window.getLong(0, 1); 92 assertEquals(1198032740000L, window.getLong(0, 3)); 96 assertEquals(1198032740000L, window.getLong(0, 3));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SettingsTest.java | 77 assertThat(Settings.System.getLong(contentResolver, "property", 10L), equalTo(10L)); 79 assertThat(Settings.System.getLong(contentResolver, "property"), equalTo(42L)); 80 assertThat(Settings.System.getLong(contentResolver, "property", 10L), equalTo(42L)); 92 Settings.System.getLong(contentResolver, "property");
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/content/ |
TestSharedPreferencesTest.java | 48 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 76 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 97 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 119 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(666l));
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
StreamItemPhotoEntry.java | 51 mId = getLong(cursor, StreamItemPhotos._ID); 53 mPhotoFileId = getLong(cursor, StreamItemPhotos.PHOTO_FILE_ID); 121 private static long getLong(Cursor cursor, String columnName) { 123 return cursor.getLong(columnIndex);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/ |
AbstractTrackEncryptionBox.java | 43 return new UUID(b.getLong(), b.getLong()).toString();
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSQLiteStatement.java | 40 return resultSet.getLong(1); 55 return rs.getLong(1);
|
/frameworks/base/core/tests/systemproperties/src/android/os/ |
SystemPropertiesTest.java | 32 long ret = SystemProperties.getLong(PERSIST_KEY, -1); 41 long ret = SystemProperties.getLong(KEY, -1);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalVideo.java | 107 dateTakenInMs = cursor.getLong(INDEX_DATE_TAKEN); 108 dateAddedInSec = cursor.getLong(INDEX_DATE_ADDED); 109 dateModifiedInSec = cursor.getLong(INDEX_DATE_MODIFIED); 113 fileSize = cursor.getLong(INDEX_SIZE); 140 dateTakenInMs, cursor.getLong(INDEX_DATE_TAKEN)); 142 dateAddedInSec, cursor.getLong(INDEX_DATE_ADDED)); 144 dateModifiedInSec, cursor.getLong(INDEX_DATE_MODIFIED)); 149 fileSize = uh.update(fileSize, cursor.getLong(INDEX_SIZE));
|
/packages/apps/Settings/src/com/android/settings/net/ |
SummaryForAllUidLoader.java | 58 final long start = mArgs.getLong(KEY_START); 59 final long end = mArgs.getLong(KEY_END);
|