/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
NotesDbAdapter.java | 113 * successfully created return the new rowId for that note, otherwise return 118 * @return rowId or -1 if failed 129 * Delete the note with the given rowId 131 * @param rowId id of note to delete 134 public boolean deleteNote(long rowId) { 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; 151 * Return a Cursor positioned at the note that matches the given rowId 153 * @param rowId id of note to retrieve 157 public Cursor fetchNote(long rowId) throws SQLException { 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
DictionaryDatabase.java | 73 map.put(BaseColumns._ID, "rowid AS " + 75 map.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, "rowid AS " + 77 map.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, "rowid AS " + 83 * Returns a Cursor positioned at the word specified by rowId 85 * @param rowId id of word to retrieve 89 public Cursor getWord(String rowId, String[] columns) { 90 String selection = "rowid = ?"; 91 String[] selectionArgs = new String[] {rowId}; 96 * SELECT <columns> FROM <table> WHERE rowid = <rowId> [all...] |
DictionaryProvider.java | 139 String rowId = uri.getLastPathSegment(); 144 return mDictionary.getWord(rowId, columns); 155 String rowId = uri.getLastPathSegment(); 163 return mDictionary.getWord(rowId, columns);
|
/libcore/luni/src/main/java/java/sql/ |
RowId.java | 21 * Maps SQL's ROWID type into Java. 24 public interface RowId { 29 * Returns an array of bytes representing the value of the corresponding SQL ROWID.
|
RowIdLifetime.java | 21 * An enumeration to describe the life-time of RowID.
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmDatabaseHelper.java | 74 long rowId = db.insert("alarms", Alarm.Columns.MESSAGE, values); 75 if (rowId < 0) { 78 if (Log.LOGV) Log.v("Added alarm rowId = " + rowId); 80 return ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, rowId);
|
AlarmProvider.java | 101 long rowId = 0; 107 rowId = Long.parseLong(segment); 108 count = db.update("alarms", values, "_id=" + rowId, null); 116 if (Log.LOGV) Log.v("*** notifyChange() rowId: " + rowId + " url " + url); 135 long rowId = 0; 142 rowId = Long.parseLong(segment);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastDatabaseService.java | 100 long rowId = mBroadcastDb.insert(CellBroadcastDatabase.TABLE_NAME, null, cv); 101 if (rowId == -1) { 107 long rowId = intent.getLongExtra(DATABASE_ROW_ID_EXTRA, -1); 108 if (rowId == -1) { 115 new String[]{Long.toString(rowId)}); 123 long rowId = intent.getLongExtra(DATABASE_ROW_ID_EXTRA, -1); 125 if (rowId == -1 && deliveryTime == -1) { 132 if (rowId != -1) { 135 new String[]{Long.toString(rowId)});
|
CellBroadcastListActivity.java | 197 * @param rowId the row ID of the broadcast to delete, or -1 to delete all broadcasts 199 public void confirmDeleteThread(long rowId) { 200 DeleteThreadListener listener = new DeleteThreadListener(rowId); 201 confirmDeleteThreadDialog(listener, (rowId == -1), this); 233 public DeleteThreadListener(long rowId) { 234 mRowId = rowId;
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LocalProvider.java | 132 long rowId = 0; 138 rowId = Long.parseLong(segment); 139 count = db.update("data", values, "_id=" + rowId, null); 147 if (false) Log.d(TAG, "*** notifyChange() rowId: " + rowId);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DbModifierWithNotification.java | 100 long rowId = mDb.insert(table, nullColumnHack, values); 101 if (rowId > 0 && packagesModified.size() != 0) { 102 notifyVoicemailChangeOnInsert(ContentUris.withAppendedId(mBaseUri, rowId), 105 if (rowId > 0 && mIsCallsTable) { 108 return rowId; 114 long rowId = mInsertHelper.insert(values); 115 if (rowId > 0 && packagesModified.size() != 0) { 117 ContentUris.withAppendedId(mBaseUri, rowId), packagesModified); 119 if (rowId > 0 && mIsCallsTable) { 122 return rowId; [all...] |
VoicemailStatusTable.java | 66 long rowId = getDatabaseModifier(db).insert(mTableName, null, copiedValues); 67 if (rowId > 0) { 68 Uri newUri = ContentUris.withAppendedId(uriData.getUri(), rowId);
|
TransactionContext.java | 62 public void syncStateUpdated(long rowId, Object data) { 63 mUpdatedSyncStates.put(rowId, data);
|
/external/chromium/chrome/browser/history/ |
text_database.cc | 37 // keep in sync between the two tables. The internal rowid is the only part of 39 // free since sqlite always indexes the internal rowid. 228 int64 rowid = db_.GetLastInsertRowId(); local 230 // Add to the info table with the same rowid. 232 "INSERT INTO info (rowid, time) VALUES (?,?)")); 237 add_to_info.BindInt64(0, rowid); 252 "SELECT info.rowid " 253 "FROM info JOIN pages ON info.rowid = pages.rowid " 265 "DELETE FROM pages WHERE rowid=?")) [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerProvider.java | 101 long rowId = db.insert(TABLE_NAME, null, values); 102 if (rowId > 0) { 103 Uri addedUri = ContentUris.withAppendedId(CONTENT_URI, rowId);
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarInstancesHelper.java | 141 * @param rowId The Event's _id. 145 private static String getEventValue(SQLiteDatabase db, long rowId, String columnName) { 149 new String[] { String.valueOf(rowId) }); 606 * @param rowId The database row id of the event. 610 public void updateInstancesLocked(ContentValues values, long rowId, boolean newEvent, 646 String.valueOf(rowId) 673 updateRecurrenceInstancesLocked(values, rowId, db); 693 instanceValues.put(Instances.EVENT_ID, rowId); [all...] |
/packages/providers/DrmProvider/src/com/android/providers/drm/ |
DrmProvider.java | 231 long rowId; 244 rowId = db.insert("audio", "title", values); 245 if (rowId > 0) { 246 newUri = ContentUris.withAppendedId(DrmStore.Audio.CONTENT_URI, rowId); 254 rowId = db.insert("images", "title", values); 255 if (rowId > 0) { 256 newUri = ContentUris.withAppendedId(DrmStore.Images.CONTENT_URI, rowId);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppProvider.java | 278 long rowID = db.insert(DB_TABLE, null, filteredValues); 282 if (rowID != -1) { 284 ret = Uri.parse(BluetoothShare.CONTENT_URI + "/" + rowID); 391 long rowId = 0; 409 rowId = Long.parseLong(segment); 410 myWhere += " ( " + BluetoothShare._ID + " = " + rowId + " ) "; 450 long rowId = Long.parseLong(segment); 451 myWhere += " ( " + BluetoothShare._ID + " = " + rowId + " ) ";
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
IntentProvider.java | 55 public static IntentProvider getPlayVoicemailIntentProvider(final long rowId, 62 Calls.CONTENT_URI_WITH_VOICEMAIL, rowId));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
SynchronousContactsProvider2.java | 165 long rowId = 168 db.execSQL("DELETE FROM raw_contacts WHERE _id > " + rowId + ";");
|