/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 296 String tableName = mTableName; in createTables() local 297 Utils.assertTrue(tableName != null); in createTables() 301 sql.append(tableName); in createTables() 335 sql.append(tableName); in createTables() 339 sql.append(tableName); in createTables() 350 String ftsTableName = tableName + FULL_TEXT_INDEX_SUFFIX; in createTables() 390 sql.append(tableName); in createTables() 392 sql.append(tableName); in createTables() 401 sql.append(tableName); in createTables() 403 sql.append(tableName); in createTables() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LauncherDbUtils.java | 34 public static IntArray queryIntArray(boolean distinct, SQLiteDatabase db, String tableName, in queryIntArray() argument 37 try (Cursor c = db.query(distinct, tableName, new String[] { columnName }, selection, null, in queryIntArray() argument 46 public static boolean tableExists(SQLiteDatabase db, String tableName) { in tableExists() argument 48 "tbl_name = ?", new String[] {tableName}, in tableExists() argument 54 public static void dropTable(SQLiteDatabase db, String tableName) { in dropTable() argument 55 db.execSQL("DROP TABLE IF EXISTS " + tableName); in dropTable()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | HbpcdLookupDatabaseHelper.java | 175 String tableName = parser.getAttributeValue(null, "name"); in initDatabase() local 176 loadTable(db, parser, tableName); in initDatabase() 196 private void loadTable(SQLiteDatabase db, XmlPullParser parser, String tableName) in loadTable() argument 203 if (tableName.equalsIgnoreCase(HbpcdLookupProvider.TABLE_MCC_IDD)) { in loadTable() 205 } else if (tableName.equalsIgnoreCase(HbpcdLookupProvider.TABLE_MCC_LOOKUP_TABLE)) { in loadTable() 207 } else if (tableName.equalsIgnoreCase(HbpcdLookupProvider.TABLE_MCC_SID_CONFLICT)) { in loadTable() 209 } else if (tableName.equalsIgnoreCase(HbpcdLookupProvider.TABLE_MCC_SID_RANGE)) { in loadTable() 211 } else if (tableName.equalsIgnoreCase(HbpcdLookupProvider.TABLE_NANP_AREA_CODE)) { in loadTable() 213 } else if (tableName.equalsIgnoreCase( in loadTable() 217 Log.e(TAG, "unrecognized table name" + tableName); in loadTable() [all …]
|
D | CarrierDatabaseHelper.java | 64 public static String getStringForCarrierKeyTableCreation(String tableName) { in getStringForCarrierKeyTableCreation() argument 65 return "CREATE TABLE " + tableName + in getStringForCarrierKeyTableCreation()
|
D | CarrierIdProvider.java | 168 public static String getStringForCarrierIdTableCreation(String tableName) { in getStringForCarrierIdTableCreation() argument 169 return "CREATE TABLE " + tableName in getStringForCarrierIdTableCreation() 187 public static String getStringForIndexCreation(String tableName) { in getStringForIndexCreation() argument 188 return "CREATE INDEX IF NOT EXISTS mccmncIndex ON " + tableName + " (" in getStringForIndexCreation()
|
D | TelephonyProvider.java | 449 public static String getStringForCarrierTableCreation(String tableName) { in getStringForCarrierTableCreation() argument 450 return "CREATE TABLE " + tableName + in getStringForCarrierTableCreation() 505 public static String getStringForSimInfoTableCreation(String tableName) { in getStringForSimInfoTableCreation() argument 506 return "CREATE TABLE " + tableName + "(" in getStringForSimInfoTableCreation() 753 private void createSimInfoTable(SQLiteDatabase db, String tableName) { in createSimInfoTable() argument 754 if (DBG) log("dbh.createSimInfoTable:+ " + tableName); in createSimInfoTable() 755 db.execSQL(getStringForSimInfoTableCreation(tableName)); in createSimInfoTable() 759 private void createCarriersTable(SQLiteDatabase db, String tableName) { in createCarriersTable() argument 761 if (DBG) log("dbh.createCarriersTable: " + tableName); in createCarriersTable() 762 db.execSQL(getStringForCarrierTableCreation(tableName)); in createCarriersTable()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 195 private static String buildCreateSchedulesSql(String tableName, ColumnInfo[] columns) { in buildCreateSchedulesSql() argument 197 tableName, in buildCreateSchedulesSql() 206 String tableName, in buildCreateSql() argument 210 sb.append("CREATE TABLE ").append(tableName).append("("); in buildCreateSql() 250 private static String buildInsertSql(String tableName, ColumnInfo[] columns) { in buildInsertSql() argument 252 sb.append("INSERT INTO ").append(tableName).append(" ("); in buildInsertSql() 269 private static String buildUpdateSql(String tableName, ColumnInfo[] columns) { in buildUpdateSql() argument 271 sb.append("UPDATE ").append(tableName).append(" SET "); in buildUpdateSql() 284 private static String buildDeleteSql(String tableName) { in buildDeleteSql() argument 285 return "DELETE FROM " + tableName + " WHERE " + BaseColumns._ID + "=?"; in buildDeleteSql() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridBackupTable.java | 88 public void createCustomBackupTable(String tableName) { in createCustomBackupTable() argument 91 copyTable(mDb, Favorites.TABLE_NAME, tableName, profileId); in createCustomBackupTable() 100 public void restoreFromCustomBackupTable(String tableName, boolean dropAfterUse) { in restoreFromCustomBackupTable() argument 101 if (!tableExists(mDb, tableName)) { in restoreFromCustomBackupTable() 106 copyTable(mDb, tableName, Favorites.TABLE_NAME, userSerial); in restoreFromCustomBackupTable() 108 dropTable(mDb, tableName); in restoreFromCustomBackupTable()
|
D | GridSizeMigrationUtil.java | 348 private static void removeEntryFromDb(SQLiteDatabase db, String tableName, IntArray entryIds) { in removeEntryFromDb() argument 349 db.delete(tableName, in removeEntryFromDb() 467 DbReader(SQLiteDatabase db, String tableName, Context context, in DbReader() argument 470 mTableName = tableName; in DbReader()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DbModifierWithNotification.java | 80 public DbModifierWithNotification(String tableName, SQLiteDatabase db, Context context) { in DbModifierWithNotification() argument 81 this(tableName, db, null, context); in DbModifierWithNotification() 84 public DbModifierWithNotification(String tableName, InsertHelper insertHelper, in DbModifierWithNotification() argument 86 this(tableName, null, insertHelper, context); in DbModifierWithNotification() 89 private DbModifierWithNotification(String tableName, SQLiteDatabase db, in DbModifierWithNotification() argument 91 this(tableName, db, insertHelper, true /* hasReadVoicemail */, context); in DbModifierWithNotification() 94 public DbModifierWithNotification(String tableName, SQLiteDatabase db, in DbModifierWithNotification() argument 96 mTableName = tableName; in DbModifierWithNotification()
|
D | VoicemailStatusTable.java | 65 public VoicemailStatusTable(String tableName, Context context, CallLogDatabaseHelper dbHelper, in VoicemailStatusTable() argument 67 mTableName = tableName; in VoicemailStatusTable()
|
D | VoicemailContentTable.java | 96 public VoicemailContentTable(String tableName, Context context, CallLogDatabaseHelper dbHelper, in VoicemailContentTable() argument 99 mTableName = tableName; in VoicemailContentTable()
|
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/ |
D | ChatProvider.java | 120 String tableName = ""; in update() local 123 tableName = CHAT_TABLE_NAME; in update() 126 tableName = SUMMARY_TABLE_NAME; in update() 129 if (!TextUtils.isEmpty(tableName)) { in update() 130 result = db.updateWithOnConflict(tableName, contentValues, in update()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | BackupRestoreTest.java | 174 private void verifyTableIsEmpty(String tableName) { in verifyTableIsEmpty() argument 175 assertEquals(0, getCount(mDb, "SELECT * FROM " + tableName)); in verifyTableIsEmpty() 178 private void verifyTableIsFilled(String tableName, boolean sanitized) { in verifyTableIsFilled() argument 180 "SELECT * FROM " + tableName + " WHERE profileId = " in verifyTableIsFilled() 182 assertEquals(10, getCount(mDb, "SELECT * FROM " + tableName + " WHERE profileId = " in verifyTableIsFilled()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | BootCompletedReceiver.java | 89 String tableName = getTableName(uri); in deleteRowsOfUninstalledPackagesInternal() local 90 if (tableName == null) { in deleteRowsOfUninstalledPackagesInternal() 96 true /* distinct */, tableName, PROJECTION, null, null, null, null, null, null)) { in deleteRowsOfUninstalledPackagesInternal() argument
|
D | TvProvider.java | 1352 String tableName; in call() local 1355 tableName = CHANNELS_TABLE; in call() 1359 tableName = PROGRAMS_TABLE; in call() 1363 tableName = PREVIEW_PROGRAMS_TABLE; in call() 1367 tableName = WATCH_NEXT_PROGRAMS_TABLE; in call() 1371 tableName = RECORDED_PROGRAMS_TABLE; in call() 1379 db.execSQL("ALTER TABLE " + tableName + " ADD " in call() 1381 projectionMap.put(columnName.toString(), tableName + '.' + columnName); in call() 1800 private static void updateProjectionMap(SQLiteDatabase db, String tableName, in updateProjectionMap() argument 1802 for (String columnName : getColumnNames(db, tableName)) { in updateProjectionMap() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseDatabaseHelperUpgradeTest.java | 71 public TableStructure(SQLiteDatabase db, String tableName) { in TableStructure() argument 72 mName = tableName; in TableStructure() 73 try (final Cursor cursor = db.rawQuery("PRAGMA table_info(" + tableName + ");", null)) { in TableStructure()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseHelper.java | 693 final String tableName = tableCursor.getString(0); in dropAllTables() local 696 if (tableName.startsWith("android_") || tableName.startsWith("sqlite_")) { in dropAllTables() 700 db.execSQL(dropPrefix + tableName); in dropAllTables() 703 LogUtil.d(LogUtil.BUGLE_TAG, "unable to drop table " + tableName + " " in dropAllTables()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherSettings.java | 346 String tableName) { in addTableToDb() argument 348 db.execSQL("CREATE TABLE " + ifNotExists + tableName + " (" + in addTableToDb()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbSettingsStorage.java | 206 private void createTable(SQLiteDatabase db, String tableName) { in createTable() argument 207 db.execSQL("CREATE TABLE " + tableName + " (" in createTable()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastDatabaseHelper.java | 107 public static String getStringForCellBroadcastTableCreation(String tableName) { in getStringForCellBroadcastTableCreation() argument 108 return "CREATE TABLE " + tableName + " (" in getStringForCellBroadcastTableCreation()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CellBroadcastProvider.java | 341 public static String getStringForCellBroadcastTableCreation(String tableName) { in getStringForCellBroadcastTableCreation() argument 342 return "CREATE TABLE " + tableName + " (" in getStringForCellBroadcastTableCreation()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | PickerDbFacade.java | 776 int limit, String tableName, String authority) { in queryMediaForUi() argument 778 final String orderBy = getOrderClause(tableName); in queryMediaForUi() 796 private static String getOrderClause(String tableName) { in getOrderClause() argument 797 return "date_taken_ms DESC," + tableName + "._id DESC"; in getOrderClause()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | LauncherModelHelper.java | 366 public void deleteItem(int itemId, @NonNull final String tableName) { in deleteItem() argument 368 + LauncherProvider.AUTHORITY + "/" + tableName + "/" + itemId); in deleteItem()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | WatchdogStorage.java | 516 private static int atomicReplaceEntries(SQLiteDatabase db, String tableName, in atomicReplaceEntries() argument 525 if (db.replaceOrThrow(tableName, null, rows.get(i)) == -1) { in atomicReplaceEntries() 526 Slogf.e(TAG, "Failed to insert %s entry [%s]", tableName, rows.get(i)); in atomicReplaceEntries() 530 Slogf.e(TAG, e, "Failed to insert %s entry [%s]", tableName, rows.get(i)); in atomicReplaceEntries()
|