/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtils_InsertHelperTest.java | 63 assertEquals(1, mInsertHelper.getColumnIndex("_id")); 64 assertEquals(2, mInsertHelper.getColumnIndex("name")); 65 assertEquals(3, mInsertHelper.getColumnIndex("age")); 66 assertEquals(4, mInsertHelper.getColumnIndex("address")); 68 mInsertHelper.getColumnIndex("missing_column"); 113 mInsertHelper.bind(mInsertHelper.getColumnIndex("boolean_value"), true); 114 mInsertHelper.bind(mInsertHelper.getColumnIndex("int_value"), 10); 115 mInsertHelper.bind(mInsertHelper.getColumnIndex("long_value"), 1000L); 116 mInsertHelper.bind(mInsertHelper.getColumnIndex("double_value"), 123.456); 117 mInsertHelper.bind(mInsertHelper.getColumnIndex("float_value"), 1.0f) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_MediaTest.java | 114 long id = c.getLong(c.getColumnIndex(Media._ID)); 117 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA))); 118 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); 119 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 120 assertEquals(Audio1.DISPLAY_NAME, c.getString(c.getColumnIndex(Media.DISPLAY_NAME))); 121 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 122 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); 123 assertEquals(Audio1.TITLE, c.getString(c.getColumnIndex(Media.TITLE))); 124 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Media.ALBUM))); 125 String albumKey = c.getString(c.getColumnIndex(Media.ALBUM_KEY)) [all...] |
MediaStore_Audio_Genres_MembersTest.java | 81 mAudioIdOfJam = c.getLong(c.getColumnIndex(Media._ID)); 87 mAudioIdOfJamLive = c.getLong(c.getColumnIndex(Media._ID)); 118 long genreId = c.getLong(c.getColumnIndex(Genres._ID)); 139 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members.AUDIO_ID))); 140 assertEquals(genreId, c.getLong(c.getColumnIndex(Members.GENRE_ID))); 141 assertEquals(mAudioIdOfJam, c.getLong(c.getColumnIndex(Members._ID))); 144 assertEquals(expected1, c.getString(c.getColumnIndex(Members.DATA))); 145 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); 146 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); 147 assertEquals(Audio1.DISPLAY_NAME, c.getString(c.getColumnIndex(Members.DISPLAY_NAME))) [all...] |
MediaStore_Audio_Playlists_MembersTest.java | 134 long id = c.getLong(c.getColumnIndex(Media._ID)); 204 members[pos], c.getInt(c.getColumnIndex(Members.AUDIO_ID))); 208 ordering[pos], c.getInt(c.getColumnIndex(Members.PLAY_ORDER))); 231 long playlistId = c.getLong(c.getColumnIndex(Playlists._ID)); 250 long memberId = c.getLong(c.getColumnIndex(Members._ID)); 254 assertEquals(expected1, c.getString(c.getColumnIndex(Members.DATA))); 255 assertTrue(c.getLong(c.getColumnIndex(Members.DATE_ADDED)) > 0); 256 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Members.DATE_MODIFIED))); 257 assertEquals(Audio1.DISPLAY_NAME, c.getString(c.getColumnIndex(Members.DISPLAY_NAME))); 258 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Members.MIME_TYPE))) [all...] |
MediaStore_Images_MediaTest.java | 145 assertEquals(TEST_TITLE2, c.getString(c.getColumnIndex(Media.TITLE))); 146 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 156 assertEquals(TEST_TITLE2, c.getString(c.getColumnIndex(Media.TITLE))); 157 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 159 assertEquals(TEST_TITLE1, c.getString(c.getColumnIndex(Media.TITLE))); 160 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 169 assertEquals(MIME_TYPE_JPEG, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 195 Uri.fromFile(new File(c.getString(c.getColumnIndex(Media.DATA))))); 261 long id = c.getLong(c.getColumnIndex(Media._ID)); 263 assertEquals(0, c.getInt(c.getColumnIndex(Media.ORIENTATION))) [all...] |
MediaStore_Video_MediaTest.java | 154 long id = c.getLong(c.getColumnIndex(Media._ID)); 156 assertEquals("cts", c.getString(c.getColumnIndex(Media.ALBUM))); 157 assertEquals("cts team", c.getString(c.getColumnIndex(Media.ARTIST))); 158 assertEquals("test", c.getString(c.getColumnIndex(Media.CATEGORY))); 159 assertEquals(dateTaken, c.getLong(c.getColumnIndex(Media.DATE_TAKEN))); 160 assertEquals(8480, c.getInt(c.getColumnIndex(Media.DURATION))); 162 c.getString(c.getColumnIndex(Media.DESCRIPTION))); 163 assertEquals("en", c.getString(c.getColumnIndex(Media.LANGUAGE))); 164 assertEquals(1, c.getInt(c.getColumnIndex(Media.IS_PRIVATE))); 165 assertEquals(0, c.getLong(c.getColumnIndex(Media.MINI_THUMB_MAGIC))) [all...] |
MediaStore_Audio_Artists_AlbumsTest.java | 87 Long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); 104 assertFalse(c.isNull(c.getColumnIndex(Albums.ALBUM_ID))); 105 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Albums.ALBUM))); 106 assertNull(c.getString(c.getColumnIndex(Albums.ALBUM_ART))); 107 assertNotNull(c.getString(c.getColumnIndex(Albums.ALBUM_KEY))); 108 assertFalse(c.isNull(c.getColumnIndex(Albums.ARTIST_ID))); 109 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Albums.ARTIST))); 110 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR))); 111 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR))); 112 assertEquals(1, c.getInt(c.getColumnIndex(Albums.NUMBER_OF_SONGS))) [all...] |
MediaStore_Audio_ArtistsTest.java | 98 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Artists.ARTIST))); 99 long id = c.getLong(c.getColumnIndex(Artists._ID)); 101 assertNotNull(c.getString(c.getColumnIndex(Artists.ARTIST_KEY))); 102 assertEquals(1, c.getInt(c.getColumnIndex(Artists.NUMBER_OF_ALBUMS))); 103 assertEquals(1, c.getInt(c.getColumnIndex(Artists.NUMBER_OF_TRACKS))); 130 long fid = c.getLong(c.getColumnIndex(Artists._ID));
|
MediaStore_Audio_AlbumsTest.java | 110 long id = c.getLong(c.getColumnIndex(Albums._ID)); 112 assertFalse(c.isNull(c.getColumnIndex(Albums.ALBUM_ID))); 113 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Albums.ALBUM))); 114 assertNull(c.getString(c.getColumnIndex(Albums.ALBUM_ART))); 115 assertNotNull(c.getString(c.getColumnIndex(Albums.ALBUM_KEY))); 116 assertFalse(c.isNull(c.getColumnIndex(Albums.ARTIST_ID))); 117 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Albums.ARTIST))); 118 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR))); 119 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR))); 120 assertEquals(1, c.getInt(c.getColumnIndex(Albums.NUMBER_OF_SONGS))) [all...] |
MediaStore_Audio_PlaylistsTest.java | 97 assertEquals("My favourites", c.getString(c.getColumnIndex(Playlists.NAME))); 99 c.getString(c.getColumnIndex(Playlists.DATA))); 101 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); 103 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); 104 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0);
|
MediaStore_Audio_GenresTest.java | 94 assertEquals("POP", c.getString(c.getColumnIndex(Genres.NAME))); 95 assertTrue(c.getLong(c.getColumnIndex(Genres._ID)) > 0); 134 assertEquals(genreId, cursor.getLong(cursor.getColumnIndex(Genres._ID)));
|
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 100 int phoneColumnIndex = cursor.getColumnIndex(CommonDataKinds.Phone.NUMBER); 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS); 102 int nameColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.DISPLAY_NAME); 103 int lookupColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.LOOKUP_KEY); 104 int typeColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.MIMETYPE); 135 cursor.getString(cursor.getColumnIndex(column)) + "\n");
|
/developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/ |
ContactablesLoaderCallbacks.java | 100 int phoneColumnIndex = cursor.getColumnIndex(CommonDataKinds.Phone.NUMBER); 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS); 102 int nameColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.DISPLAY_NAME); 103 int lookupColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.LOOKUP_KEY); 104 int typeColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.MIMETYPE); 135 cursor.getString(cursor.getColumnIndex(column)) + "\n");
|
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
ContactablesLoaderCallbacks.java | 100 int phoneColumnIndex = cursor.getColumnIndex(CommonDataKinds.Phone.NUMBER); 101 int emailColumnIndex = cursor.getColumnIndex(CommonDataKinds.Email.ADDRESS); 102 int nameColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.DISPLAY_NAME); 103 int lookupColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.LOOKUP_KEY); 104 int typeColumnIndex = cursor.getColumnIndex(CommonDataKinds.Contactables.MIMETYPE); 135 cursor.getString(cursor.getColumnIndex(column)) + "\n");
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowDownloadManagerTest.java | 118 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_URI)).isAtLeast(0); 119 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI)).isAtLeast(0); 120 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_FILENAME)).isAtLeast(0); 121 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_DESCRIPTION)).isAtLeast(0); 122 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_REASON)).isAtLeast(0); 123 assertThat(cursor.getColumnIndex(DownloadManager.COLUMN_STATUS)).isAtLeast(0); 133 assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_URI))).isEqualTo(uri.toString()); 134 assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI))).isEqualTo(destination.toString()); 154 assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_URI))).isEqualTo(uri.toString()); 155 assertThat(cursor.getString(cursor.getColumnIndex(DownloadManager.COLUMN_LOCAL_URI))).isEqualTo(destination.toString()) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_TestDataBuilder.java | 194 mId = mCursor.getLong(getColumnIndex(BaseColumns._ID)); 199 return mCursor.isNull(mCursor.getColumnIndex(columnName)); 203 return mCursor.getLong(mCursor.getColumnIndex(columnName)); 207 return mCursor.getString(mCursor.getColumnIndex(columnName)); 211 assertEquals(value, mCursor.getLong(getColumnIndex(columnName))); 215 assertEquals(value, mCursor.getString(getColumnIndex(columnName))); 219 assertEquals(value, mCursor.getBlob(getColumnIndex(columnName))); 223 assertNotNull(mCursor.getBlob(getColumnIndex(columnName))); 227 assertNull(mCursor.getBlob(getColumnIndex(columnName))); 242 private int getColumnIndex(String columnName) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ChangedContacts.java | 215 timestamp = data.getLong(data.getColumnIndex( 229 timestamp = data.getLong(data.getColumnIndex( 268 return super.getColumnIndex(ContactsContract.DeletedContacts.CONTACT_ID); 270 return super.getColumnIndex(columnName); 294 String id = cursor.getString(cursor.getColumnIndex( 296 String timestamp = cursor.getString(cursor.getColumnIndex( 326 String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Data.CONTACT_ID)); 327 String name = cursor.getString(cursor.getColumnIndex( 329 String timestamp = cursor.getString(cursor.getColumnIndex(
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
EABProvider.java | 295 .getColumnIndex(EABContract.EABColumns.CONTACT_ID)); 436 cursor.getColumnIndex(EABContract.EABColumns.FORMATTED_NUMBER)); 445 cursor.getString(cursor.getColumnIndex( 448 cursor.getColumnIndex( 451 cursor.getLong(cursor.getColumnIndex( 454 cursor.getString(cursor.getColumnIndex( 457 cursor.getLong(cursor.getColumnIndex( 460 cursor.getString(cursor.getColumnIndex( 463 cursor.getString(cursor.getColumnIndex( 466 cursor.getLong(cursor.getColumnIndex( [all...] |
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
WeatherWidgetService.java | 71 final int dayColIndex = mCursor.getColumnIndex(WeatherDataProvider.Columns.DAY); 72 final int tempColIndex = mCursor.getColumnIndex(
|
/developers/build/prebuilts/gradle/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
CalendarQueryService.java | 143 int idIdx = cursor.getColumnIndex(CalendarContract.Instances._ID); 144 int eventIdIdx = cursor.getColumnIndex(CalendarContract.Instances.EVENT_ID); 145 int titleIdx = cursor.getColumnIndex(CalendarContract.Instances.TITLE); 146 int beginIdx = cursor.getColumnIndex(CalendarContract.Instances.BEGIN); 147 int endIdx = cursor.getColumnIndex(CalendarContract.Instances.END); 148 int allDayIdx = cursor.getColumnIndex(CalendarContract.Instances.ALL_DAY); 149 int descIdx = cursor.getColumnIndex(CalendarContract.Instances.DESCRIPTION); 150 int ownerEmailIdx = cursor.getColumnIndex(CalendarContract.Instances.ORGANIZER); 165 int ownerIdIdx = contactCursor.getColumnIndex(Data.CONTACT_ID);
|
/developers/samples/android/deprecated/wearable/wear/AgendaData/Application/src/main/java/com/example/android/wearable/agendadata/ |
CalendarQueryService.java | 143 int idIdx = cursor.getColumnIndex(CalendarContract.Instances._ID); 144 int eventIdIdx = cursor.getColumnIndex(CalendarContract.Instances.EVENT_ID); 145 int titleIdx = cursor.getColumnIndex(CalendarContract.Instances.TITLE); 146 int beginIdx = cursor.getColumnIndex(CalendarContract.Instances.BEGIN); 147 int endIdx = cursor.getColumnIndex(CalendarContract.Instances.END); 148 int allDayIdx = cursor.getColumnIndex(CalendarContract.Instances.ALL_DAY); 149 int descIdx = cursor.getColumnIndex(CalendarContract.Instances.DESCRIPTION); 150 int ownerEmailIdx = cursor.getColumnIndex(CalendarContract.Instances.ORGANIZER); 165 int ownerIdIdx = contactCursor.getColumnIndex(Data.CONTACT_ID);
|
/development/samples/browseable/AgendaData/Application/src/com.example.android.wearable.agendadata/ |
CalendarQueryService.java | 143 int idIdx = cursor.getColumnIndex(CalendarContract.Instances._ID); 144 int eventIdIdx = cursor.getColumnIndex(CalendarContract.Instances.EVENT_ID); 145 int titleIdx = cursor.getColumnIndex(CalendarContract.Instances.TITLE); 146 int beginIdx = cursor.getColumnIndex(CalendarContract.Instances.BEGIN); 147 int endIdx = cursor.getColumnIndex(CalendarContract.Instances.END); 148 int allDayIdx = cursor.getColumnIndex(CalendarContract.Instances.ALL_DAY); 149 int descIdx = cursor.getColumnIndex(CalendarContract.Instances.DESCRIPTION); 150 int ownerEmailIdx = cursor.getColumnIndex(CalendarContract.Instances.ORGANIZER); 165 int ownerIdIdx = contactCursor.getColumnIndex(Data.CONTACT_ID);
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
MmsTest.java | 72 String actualSubject = cursor.getString(cursor.getColumnIndex(Telephony.Mms.SUBJECT)); 129 assertThat(cursor.getString(cursor.getColumnIndex(Telephony.Mms.SUBJECT))).isNotEqualTo( 142 String actualSubject = cursor.getString(cursor.getColumnIndex(Telephony.Mms.SUBJECT));
|
/development/apps/Development/src/com/android/development/ |
DataList.java | 98 int idCol = mCursor.getColumnIndex("_id"); 106 int displayColumn = mCursor.getColumnIndex(mDisplay);
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
WeatherWidgetService.java | 76 final int dayColIndex = mCursor.getColumnIndex(WeatherDataProvider.Columns.DAY); 77 final int tempColIndex = mCursor.getColumnIndex(
|