Home
last modified time | relevance | path

Searched refs:rowId (Results 1 – 25 of 45) sorted by relevance

12

/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1980 long rowId = db.insert("files", FileColumns.DATE_MODIFIED, values); in insertDirectory() local
1981 sendObjectAdded(rowId); in insertDirectory()
1982 return rowId; in insertDirectory()
2151 long rowId = 0; in insertFile() local
2155 rowId = i.intValue(); in insertFile()
2218 if (rowId == 0) { in insertFile()
2265 rowId = db.insert("files", FileColumns.DATE_MODIFIED, values); in insertFile()
2266 if (LOCAL_LOGV) Log.v(TAG, "insertFile: values=" + values + " returned: " + rowId); in insertFile()
2268 if (rowId != -1 && notify) { in insertFile()
2269 notifyRowIds.add(rowId); in insertFile()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAdapter.java356 if (viewHolder.rowId == mCurrentlyExpandedRowId) {
547 mCurrentlyExpandedRowId = viewHolder.rowId; in expandViewHolderActions()
787 if (mCurrentlyExpandedRowId == views.rowId) { in bindCallLogListViewHolder()
790 loadAndRender(views, views.rowId, details, callDetailsEntries); in bindCallLogListViewHolder()
806 final long rowId, in loadAndRender() argument
848 return !isCancelled() && loadData(views, rowId, details); in loadAndRender()
855 int currentGroup = getDayGroupForCall(views.rowId); in loadAndRender()
862 render(views, details, rowId); in loadAndRender()
958 views.rowId = cursor.getLong(CallLogQuery.ID); in createPhoneCallDetails()
1005 private boolean loadData(CallLogListItemViewHolder views, long rowId, PhoneCallDetails details) { in loadData() argument
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java106 long rowId = mDb.insert(table, nullColumnHack, values); in insert() local
107 if (rowId > 0 && packagesModified.size() != 0) { in insert()
108 notifyVoicemailChangeOnInsert(ContentUris.withAppendedId(mBaseUri, rowId), in insert()
111 if (rowId > 0 && mIsCallsTable) { in insert()
114 return rowId; in insert()
123 long rowId = mInsertHelper.insert(values); in insert() local
124 if (rowId > 0 && packagesModified.size() != 0) { in insert()
126 ContentUris.withAppendedId(mBaseUri, rowId), packagesModified); in insert()
128 if (rowId > 0 && mIsCallsTable) { in insert()
131 return rowId; in insert()
DVoicemailStatusTable.java87 int rowId = c.getInt(0); in insert() local
89 return ContentUris.withAppendedId(uriData.getUri(), rowId); in insert()
93 long rowId = getDatabaseModifier(db).insert(mTableName, null, copiedValues); in insert() local
94 if (rowId > 0) { in insert()
95 return ContentUris.withAppendedId(uriData.getUri(), rowId); in insert()
DVoicemailContentTable.java163 long rowId = getDatabaseModifier(db).insert(mTableName, null, copiedValues); in insert() local
164 if (rowId > 0) { in insert()
165 Uri newUri = ContentUris.withAppendedId(uriData.getUri(), rowId); in insert()
DTransactionContext.java104 public void syncStateUpdated(long rowId, Object data) { in syncStateUpdated() argument
106 mUpdatedSyncStates.put(rowId, data); in syncStateUpdated()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java144 private static String getEventValue(SQLiteDatabase db, long rowId, String columnName) { in getEventValue() argument
148 new String[] { String.valueOf(rowId) }); in getEventValue()
610 public void updateInstancesLocked(ContentValues values, long rowId, boolean newEvent, in updateInstancesLocked() argument
646 String.valueOf(rowId) in updateInstancesLocked()
673 updateRecurrenceInstancesLocked(values, rowId, db); in updateInstancesLocked()
693 instanceValues.put(Instances.EVENT_ID, rowId); in updateInstancesLocked()
727 private void updateRecurrenceInstancesLocked(ContentValues values, long rowId, in updateRecurrenceInstancesLocked() argument
751 originalSyncId = getEventValue(db, rowId, Events.ORIGINAL_SYNC_ID); in updateRecurrenceInstancesLocked()
765 recurrenceSyncId = getEventValue(db, rowId, Events._SYNC_ID); in updateRecurrenceInstancesLocked()
778 originalId = getEventValue(db, rowId, Events.ORIGINAL_ID); in updateRecurrenceInstancesLocked()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DChannelUtils.java78 long rowId = cursor.getLong(0); in updateChannels() local
80 existingChannelsMap.put(originalNetworkId, rowId); in updateChannels()
113 Long rowId = existingChannelsMap.get(channel.originalNetworkId); in updateChannels() local
115 if (rowId == null) { in updateChannels()
120 uri = TvContract.buildChannelUri(rowId); in updateChannels()
135 Long rowId = existingChannelsMap.valueAt(i); in updateChannels() local
136 resolver.delete(TvContract.buildChannelUri(rowId), null, null); in updateChannels()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java363 long rowId; in insert() local
407 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
412 res = Uri.parse(res + "/" + rowId); in insert()
417 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
422 res = Uri.parse(res + "/addr/" + rowId); in insert()
525 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
530 res = Uri.parse(res + "/part/" + rowId); in insert()
544 cv.put(Telephony.MmsSms.WordsTable.ID, (2L << 32) + rowId); in insert()
546 cv.put(Telephony.MmsSms.WordsTable.SOURCE_ROW_ID, rowId); in insert()
577 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java200 long rowId = db.insert(CellBroadcastDatabaseHelper.TABLE_NAME, null, cv); in insertNewBroadcast() local
201 if (rowId == -1) { in insertNewBroadcast()
217 boolean deleteBroadcast(long rowId) { in deleteBroadcast() argument
222 new String[]{Long.toString(rowId)}); in deleteBroadcast()
226 Log.e(TAG, "failed to delete broadcast at row " + rowId); in deleteBroadcast()
DCellBroadcastListActivity.java240 public void confirmDeleteThread(long rowId) { in confirmDeleteThread() argument
241 DeleteThreadListener listener = new DeleteThreadListener(rowId); in confirmDeleteThread()
242 confirmDeleteThreadDialog(listener, (rowId == -1), getActivity()); in confirmDeleteThread()
268 public DeleteThreadListener(long rowId) { in DeleteThreadListener() argument
269 mRowId = rowId; in DeleteThreadListener()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockDatabaseHelper.java200 long rowId = -1; in fixAlarmInsert() local
220 rowId = db.insert(ALARMS_TABLE_NAME, ClockContract.AlarmsColumns.RINGTONE, values); in fixAlarmInsert()
225 if (rowId < 0) { in fixAlarmInsert()
228 LogUtils.v("Added alarm rowId = " + rowId); in fixAlarmInsert()
230 return rowId; in fixAlarmInsert()
DClockProvider.java238 long rowId; in insert() local
242 rowId = mOpenHelper.fixAlarmInsert(initialValues); in insert()
245 rowId = db.insert(INSTANCES_TABLE_NAME, null, initialValues); in insert()
251 Uri uriResult = ContentUris.withAppendedId(uri, rowId); in insert()
/packages/apps/TV/src/com/android/tv/customization/
DTvCustomizationManager.java202 String rowId = INTENT_CATEGORY_TO_ROW_ID.get(intentCategory); in buildCustomActions() local
203 List<CustomAction> actions = mRowIdToCustomActionsMap.get(rowId); in buildCustomActions()
206 mRowIdToCustomActionsMap.put(rowId, actions); in buildCustomActions()
233 public List<CustomAction> getCustomActions(String rowId) { in getCustomActions() argument
234 return mRowIdToCustomActionsMap.get(rowId); in getCustomActions()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1347 long rowId = db.insert(CHANNELS_TABLE, null, values); in insertChannel() local
1348 if (rowId > 0) { in insertChannel()
1349 Uri channelUri = TvContract.buildChannelUri(rowId); in insertChannel()
1369 long rowId = db.insert(PROGRAMS_TABLE, null, values); in insertProgram() local
1370 if (rowId > 0) { in insertProgram()
1371 Uri programUri = TvContract.buildProgramUri(rowId); in insertProgram()
1390 long rowId = db.insert(WATCHED_PROGRAMS_TABLE, null, values); in insertWatchedProgram() local
1391 if (rowId > 0) { in insertWatchedProgram()
1395 return TvContract.buildWatchedProgramUri(rowId); in insertWatchedProgram()
1419 long rowId = db.insert(RECORDED_PROGRAMS_TABLE, null, values); in insertRecordedProgram() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java386 long rowId = -1; in insert() local
388 rowId = mDatabase.insert(table, nullColumnHack, values); in insert()
396 return rowId; in insert()
406 long rowId = -1; in replace() local
408 rowId = mDatabase.replace(table, nullColumnHack, values); in replace()
416 return rowId; in replace()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java374 long rowId = 0; in update() local
392 rowId = Long.parseLong(segment); in update()
393 myWhere += " ( " + BluetoothShare._ID + " = " + rowId + " ) "; in update()
433 long rowId = Long.parseLong(segment); in delete() local
434 myWhere += " ( " + BluetoothShare._ID + " = " + rowId + " ) "; in delete()
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java175 public boolean update(String rowId, boolean menuActive) { in update() argument
177 MenuRow row = getMenuRow(rowId); in update()
221 private MenuRow getMenuRow(String rowId) { in getMenuRow() argument
223 if (rowId.equals(item.getId())) { in getMenuRow()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleApnSettingsLoader.java164 final long rowId, final int current) { in from() argument
177 return new DatabaseApn(apns, base, rowId, current); in from()
185 public DatabaseApn(final List<Apn> apns, final BaseApn base, final long rowId, in DatabaseApn() argument
189 mRowId = rowId; in DatabaseApn()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DTvProviderForTesting.java50 long rowId = db.insert(WATCHED_PROGRAMS_TABLE, null, values); in insertWatchedProgramSync() local
51 return TvContract.buildWatchedProgramUri(rowId); in insertWatchedProgramSync()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java247 long rowId = db.insert(USERDICT_TABLE_NAME, Words.WORD, values); in insert() local
248 if (rowId > 0) { in insert()
249 Uri wordUri = ContentUris.withAppendedId(UserDictionary.Words.CONTENT_URI, rowId); in insert()
/packages/apps/TV/src/com/android/tv/tuner/
DTunerPreferenceProvider.java184 long rowId = db.insert(PREFERENCES_TABLE, null, values); in insertRow() local
185 if (rowId > 0) { in insertRow()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java256 long rowId, in setPlaybackView() argument
260 mRowId = rowId; in setPlaybackView()
1040 void onVoicemailDeleteUndo(long rowId, int adaptorPosition, Uri uri); in onVoicemailDeleteUndo() argument
1042 void onVoicemailDeletedInDatabase(long rowId, Uri uri); in onVoicemailDeletedInDatabase() argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java695 protected long assertSingleGroup(Long rowId, Account account, String sourceId, String title) { in assertSingleGroup() argument
699 long actualRowId = assertGroup(c, rowId, account, sourceId, title); in assertSingleGroup()
707 protected long assertSingleGroupMembership(Long rowId, Long rawContactId, Long groupRowId, in assertSingleGroupMembership() argument
712 long actualRowId = assertGroupMembership(c, rowId, rawContactId, groupRowId, sourceId); in assertSingleGroupMembership()
720 protected long assertGroupMembership(Cursor c, Long rowId, Long rawContactId, Long groupRowId, in assertGroupMembership() argument
722 assertNullOrEquals(c, rowId, Data._ID); in assertGroupMembership()
729 … protected long assertGroup(Cursor c, Long rowId, Account account, String sourceId, String title) { in assertGroup() argument
730 assertNullOrEquals(c, rowId, Groups._ID); in assertGroup()
DSynchronousContactsProvider2.java195 long rowId =
198 db.execSQL("DELETE FROM raw_contacts WHERE _id > " + rowId + ";");

12