Home
last modified time | relevance | path

Searched refs:FeedContract (Results 1 – 5 of 5) sorted by relevance

/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedProvider.java36 private static final String AUTHORITY = FeedContract.CONTENT_AUTHORITY;
77 return FeedContract.Entry.CONTENT_TYPE; in getType()
79 return FeedContract.Entry.CONTENT_ITEM_TYPE; in getType()
101 builder.where(FeedContract.Entry._ID + "=?", id); in query()
104 builder.table(FeedContract.Entry.TABLE_NAME) in query()
129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); in insert()
130 result = Uri.parse(FeedContract.Entry.CONTENT_URI + "/" + id); in insert()
155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
162 .where(FeedContract.Entry._ID + "=?", id) in delete()
[all …]
DFeedContract.java27 public class FeedContract { class
28 private FeedContract() { in FeedContract() method in FeedContract
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java36 import com.example.android.basicsyncadapter.provider.FeedContract;
89 FeedContract.Entry._ID,
90 FeedContract.Entry.COLUMN_NAME_ENTRY_ID,
91 FeedContract.Entry.COLUMN_NAME_TITLE,
92 FeedContract.Entry.COLUMN_NAME_LINK,
93 FeedContract.Entry.COLUMN_NAME_PUBLISHED};
222 Uri uri = FeedContract.Entry.CONTENT_URI; // Get all entries in updateLocalFeedData()
245 Uri existingUri = FeedContract.Entry.CONTENT_URI.buildUpon() in updateLocalFeedData()
253 .withValue(FeedContract.Entry.COLUMN_NAME_TITLE, match.title) in updateLocalFeedData()
254 .withValue(FeedContract.Entry.COLUMN_NAME_LINK, match.link) in updateLocalFeedData()
[all …]
DEntryListFragment.java44 import com.example.android.basicsyncadapter.provider.FeedContract;
93 FeedContract.Entry._ID,
94 FeedContract.Entry.COLUMN_NAME_TITLE,
95 FeedContract.Entry.COLUMN_NAME_LINK,
96 FeedContract.Entry.COLUMN_NAME_PUBLISHED
114 FeedContract.Entry.COLUMN_NAME_TITLE,
115 FeedContract.Entry.COLUMN_NAME_PUBLISHED
216 FeedContract.Entry.CONTENT_URI, // URI in onCreateLoader()
220 FeedContract.Entry.COLUMN_NAME_PUBLISHED + " desc"); // Sort in onCreateLoader()
347 account, FeedContract.CONTENT_AUTHORITY);
[all …]
DSyncUtils.java29 import com.example.android.basicsyncadapter.provider.FeedContract;
36 private static final String CONTENT_AUTHORITY = FeedContract.CONTENT_AUTHORITY;
96 FeedContract.CONTENT_AUTHORITY, // Content authority in TriggerRefresh()