HomeSort by relevance Sort by last modified time
    Searched full:getlong (Results 1 - 25 of 978) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
  /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...]
  /cts/tests/tests/text/src/android/text/style/cts/
TtsSpanTest.java 42 assertEquals(3, args.getLong("argument.three"));
43 assertEquals(4, args.getLong("argument.four"));
75 assertEquals(3, args.getLong("argument.three"));
76 assertEquals(4, args.getLong("argument.four"));
  /frameworks/base/core/java/android/hardware/camera2/marshal/impl/
MarshalQueryableStreamConfigurationDuration.java 63 int format = (int)buffer.getLong();
64 int width = (int)buffer.getLong();
65 int height = (int)buffer.getLong();
66 long durationNs = buffer.getLong();
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
FrequentContactsCursorBuilderTest.java 36 assertEquals(expected.getLong(ContactUtil.INDEX_DATA_ID),
37 actual.getLong(ContactUtil.INDEX_DATA_ID));
38 assertEquals(expected.getLong(ContactUtil.INDEX_CONTACT_ID),
39 actual.getLong(ContactUtil.INDEX_CONTACT_ID));
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForEmail.java 59 long dataId = c.getLong(DataUpdateQuery._ID);
60 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
74 long dataId = c.getLong(DataDeleteQuery._ID);
75 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
DataRowHandlerForNickname.java 56 long dataId = c.getLong(DataUpdateQuery._ID);
57 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
76 long dataId = c.getLong(DataDeleteQuery._ID);
77 long rawContactId = c.getLong(DataDeleteQuery.RAW_CONTACT_ID);
DataRowHandlerForOrganization.java 62 long dataId = c.getLong(DataUpdateQuery._ID);
63 long rawContactId = c.getLong(DataUpdateQuery.RAW_CONTACT_ID);
96 long dataId = c.getLong(DataUpdateQuery._ID);
97 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/Camera2/src/com/android/camera/data/
VideoDataFactory.java 36 long id = c.getLong(VideoDataQuery.COL_ID);
39 long creationDateInMilliSeconds = c.getLong(VideoDataQuery.COL_DATE_TAKEN);
40 long lastModifiedDateInSeconds = c.getLong(VideoDataQuery.COL_DATE_MODIFIED);
67 long sizeInBytes = c.getLong(VideoDataQuery.COL_SIZE);
70 long videoDurationMillis = c.getLong(VideoDataQuery.COL_DURATION);
PhotoDataFactory.java 33 long id = c.getLong(PhotoDataQuery.COL_ID);
36 long dateTakenInMilliSeconds = c.getLong(PhotoDataQuery.COL_DATE_TAKEN);
37 long dateModifiedInSeconds = c.getLong(PhotoDataQuery.COL_DATE_MODIFIED);
65 long sizeInBytes = c.getLong(PhotoDataQuery.COL_SIZE);
  /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/icu/icu4c/source/test/intltest/
tfsmalls.cpp 167 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) {
168 it_errln("*** Formattable constructor or getType or getLong");
177 fta.getLong(&status);
179 it_errln("*** FT getLong(UErrorCode* status) failed on real Long");
181 it_logln("FT getLong(UErrorCode* status) tested.");
219 fta.getLong(&status);
221 it_errln("*** FT getLong(UErrorCode* status) should fail on non-Long");
262 && (ft_arr[2].getType() == Formattable::kLong) && (ft_arr[2].getLong() == (int32_t)3)
322 if ((ft_arr[0].getType() == Formattable::kLong) && (ft_arr[0].getLong() == (int32_t)1)) {
332 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));
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
ImportantNoticeUtilsTests.java 59 public Long getLong(final String key) {
61 return mPref.getLong(key, 0);
87 mLastTime = getLong(KEY_TIMESTAMP_OF_CONTACTS_NOTICE);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ContactAggregator2.java 264 mimeTypeCondition.append(c.getLong((0)));
407 if (!connectedRawContactIds.contains(cursor.getLong(0))) {
470 long rawContactId = cursor.getLong(RawContactIdQuery.RAW_CONTACT_ID);
520 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1);
526 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID2);
527 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID2);
528 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID2);
532 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1);
533 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID1);
534 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID1)
    [all...]
  /cts/tests/tests/app.usage/src/android/app/usage/cts/
ActivityTransitionTest.java 115 long enterTimeReady = mReceiver.resultData.getLong(
117 long returnTimeReady = mReceiver.resultData.getLong(
119 long enterTime = mReceiver.resultData.getLong(
121 long returnTime = mReceiver.resultData.getLong(
  /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));

Completed in 866 milliseconds

1 2 3 4 5 6 7 8 91011>>