Home | History | Annotate | Download | only in provider

Lines Matching defs:HISTORY

47 import android.provider.BrowserContract.History;
97 static final String TABLE_HISTORY = "history";
107 static final String TABLE_HISTORY_JOIN_IMAGES = "history LEFT OUTER JOIN images " +
108 "ON history.url = images." + Images.URL;
115 "history LEFT OUTER JOIN (%s) bookmarks " +
116 "ON history.url = bookmarks.url LEFT OUTER JOIN images " +
117 "ON history.url = images.url_key";
119 static final String DEFAULT_SORT_HISTORY = History.DATE_LAST_VISITED + " DESC";
125 "history LEFT OUTER JOIN bookmarks ON history.url = bookmarks.url";
128 qualifyColumn(TABLE_HISTORY, History._ID),
129 qualifyColumn(TABLE_HISTORY, History.URL),
134 qualifyColumn(TABLE_HISTORY, History.DATE_LAST_VISITED)};
137 "history.url LIKE ? OR history.url LIKE ? OR history.url LIKE ? OR history.url LIKE ?"
138 + " OR history.title LIKE ? OR bookmarks.title LIKE ?";
141 TABLE_HISTORY + "." + History.DATE_LAST_VISITED + " != 0";
146 "(SELECT url FROM history WHERE url IS NOT NULL)";
159 static final int HISTORY = 2000;
218 matcher.addURI(authority, "history", HISTORY);
219 matcher.addURI(authority, "history/#", HISTORY_ID);
303 // History
305 map.put(History._ID, qualifyColumn(TABLE_HISTORY, History._ID));
306 map.put(History.TITLE, History.TITLE);
307 map.put(History.URL, History.URL);
308 map.put(History.FAVICON, History.FAVICON);
309 map.put(History.THUMBNAIL, History.THUMBNAIL);
310 map.put(History.TOUCH_ICON, History.TOUCH_ICON);
311 map.put(History.DATE_CREATED, History.DATE_CREATED);
312 map.put(History.DATE_LAST_VISITED, History.DATE_LAST_VISITED);
313 map.put(History.VISITS, History.VISITS);
314 map.put(History.USER_ENTERED, History.USER_ENTERED);
330 // Combined history half
374 "bookmarks." + column + " ELSE history." + column + " END AS " + column;
430 History._ID + " INTEGER PRIMARY KEY AUTOINCREMENT," +
431 History.TITLE + " TEXT," +
432 History.URL + " TEXT NOT NULL," +
433 History.DATE_CREATED + " INTEGER," +
434 History.DATE_LAST_VISITED + " INTEGER," +
435 History.VISITS + " INTEGER NOT NULL DEFAULT 0," +
436 History.USER_ENTERED + " INTEGER" +
550 // Import history
567 values.put(History.URL, url);
568 values.put(History.TITLE, c.getString(1));
569 values.put(History.VISITS, c.getInt(2));
570 values.put(History.DATE_LAST_VISITED, c.getLong(3));
571 values.put(History.DATE_CREATED, c.getLong(4));
572 db.insert(TABLE_HISTORY, History.FAVICON, values);
839 case HISTORY:
840 return History.CONTENT_TYPE;
842 return History.CONTENT_ITEM_TYPE;
1037 case HISTORY: {
1186 // Build the bookmark subquery for history union subquery
1189 // Build the history union subquery
1198 Combined.URL, History.URL, TABLE_HISTORY);
1307 case HISTORY: {
1364 db.delete(TABLE_HISTORY, History.URL + "=?",
1428 match = HISTORY;
1493 case HISTORY: {
1495 if (!values.containsKey(History.DATE_CREATED)) {
1496 values.put(History.DATE_CREATED, System.currentTimeMillis());
1498 String url = values.getAsString(History.URL);
1500 values.put(History.URL, url);
1504 values.getAsString(History.URL));
1509 id = db.insertOrThrow(TABLE_HISTORY, History.VISITS, values);
1601 // remove "client" before updating it to the history so that it wont
1678 match = HISTORY;
1720 case HISTORY: {
1765 postNotifyUri(History.CONTENT_URI);
2019 Cursor cursor = query(History.CONTENT_URI,
2020 new String[] { History._ID, History.URL },
2025 boolean updatingUrl = values.containsKey(History.URL);
2028 url = filterSearchClient(values.getAsString(History.URL));
2029 values.put(History.URL, url);
2124 if (uri.getPathSegments().contains("history")
2263 + " FROM history "