/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseDatabaseHelperUpgradeTest.java | 193 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_Match() local 194 table.assertHasColumn("foo", INTEGER, false, null); in testAssertHasColumn_Match() 198 TableStructure table = new TableStructure(); in testAssertHasColumn_Empty() local 201 table.assertHasColumn("bar", INTEGER, false, null); in testAssertHasColumn_Empty() 209 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_ColumnNotExist() local 212 table.assertHasColumn("bar", INTEGER, false, null); in testAssertHasColumn_ColumnNotExist() 220 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_TypeMismatch() local 223 table.assertHasColumn("foo", TEXT, false, null); in testAssertHasColumn_TypeMismatch() 231 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_NotNullMismatch() local 234 table.assertHasColumn("foo", INTEGER, true, null); in testAssertHasColumn_NotNullMismatch() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsProvider.java | 318 String table = TABLE_PDU; in insert() local 344 table = TABLE_PART; in insert() 348 table = TABLE_ADDR; in insert() 352 table = TABLE_RATE; in insert() 356 table = TABLE_DRM; in insert() 368 if (table.equals(TABLE_PDU)) { in insert() 410 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert() 416 } else if (table.equals(TABLE_ADDR)) { in insert() 420 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert() 426 } else if (table.equals(TABLE_PART)) { in insert() [all …]
|
D | SmsProvider.java | 461 String table = TABLE_SMS; in insertInner() local 500 table = "raw"; in insertInner() 508 table = "sr_pending"; in insertInner() 512 table = "attachments"; in insertInner() 516 table = "canonical_addresses"; in insertInner() 526 if (table.equals(TABLE_SMS)) { in insertInner() 618 rowID = db.insert(table, "body", values); in insertInner() 623 if (table == TABLE_SMS) { in insertInner() 635 Uri uri = Uri.parse("content://" + table + "/" + rowID); in insertInner() 755 String table = TABLE_SMS; in update() local [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoProvider.java | 295 String table = getTableFromMatch(match, uri); in insertInTransaction() local 298 long id = db.insert(table, null, values); in insertInTransaction() 320 String table = getTableFromMatch(match, uri); in query() local 321 … Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); in query() 339 String table = getTableFromMatch(match, uri); in updateInTransaction() local 340 rowsUpdated = db.update(table, values, selection, selectionArgs); in updateInTransaction() 391 String table; in getTableFromMatch() local 395 table = Photos.TABLE; in getTableFromMatch() 399 table = Albums.TABLE; in getTableFromMatch() 403 table = Metadata.TABLE; in getTableFromMatch() [all …]
|
D | PhotoDatabase.java | 136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { in createTable() argument 138 create.append(table).append('('); in createTable() 186 protected static void dropTable(SQLiteDatabase db, String table) { in dropTable() argument 189 db.execSQL("drop table if exists " + table); in dropTable()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 461 private static View applyFrame(final PhotoTable table, final BitmapFactory.Options options, in applyFrame() argument 463 LayoutInflater inflater = (LayoutInflater) table.getContext() in applyFrame() 474 layers[0] = new BitmapDrawable(table.mResources, decodedPhoto); in applyFrame() 475 layers[1] = table.mResources.getDrawable(R.drawable.frame); in applyFrame() 477 layerList.setLayerInset(0, table.mInset, table.mInset, in applyFrame() 478 table.mInset, table.mInset); in applyFrame() 484 photo.setOnTouchListener(new PhotoTouchListener(table.getContext(), in applyFrame() 485 table)); in applyFrame() 504 final PhotoTable table = PhotoTable.this; in doInBackground() local 509 decodedPhoto = table.mPhotoSource.naturalNext(current, in doInBackground() [all …]
|
D | PhotoTableDream.java | 39 PhotoTable table = (PhotoTable) findViewById(R.id.table); in onDreamingStarted() local 40 if (table != null) { in onDreamingStarted() 41 table.setDream(this); in onDreamingStarted() 51 setContentView(R.layout.table); in onAttachedToWindow()
|
D | EdgeSwipeDetector.java | 34 public EdgeSwipeDetector(Context context, PhotoTable table) { in EdgeSwipeDetector() argument 35 mTable = table; in EdgeSwipeDetector()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
D | MoreDatabaseUtils.java | 36 public static String buildCreateIndexSql(String table, String field) { in buildCreateIndexSql() argument 37 return "CREATE INDEX " + buildIndexName(table, field) + " ON " + table in buildCreateIndexSql() 49 public static String buildDropIndexSql(String table, String field) { in buildDropIndexSql() argument 50 return "DROP INDEX IF EXISTS " + buildIndexName(table, field); in buildDropIndexSql() 58 public static String buildIndexName(String table, String field) { in buildIndexName() argument 59 return table + "_" + field + "_index"; in buildIndexName()
|
D | ContactsTableUtil.java | 44 final String table = Tables.CONTACTS; in createIndexes() local 46 db.execSQL("CREATE INDEX contacts_has_phone_index ON " + table + " (" + in createIndexes() 50 db.execSQL("CREATE INDEX contacts_name_raw_contact_id_index ON " + table + " (" + in createIndexes() 54 db.execSQL(MoreDatabaseUtils.buildCreateIndexSql(table, in createIndexes()
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapIMProvider.java | 200 String table = uri.getPathSegments().get(1); in delete() local 201 if(table == null) in delete() 214 if(table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in delete() 217 if (D) Log.w(TAG, "Unknown table name: " + table); in delete() 243 String table = uri.getLastPathSegment(); in insert() local 244 if(table == null) in insert() 258 if(table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in insert() 263 Log.w(TAG, "Unknown table name: " + table); in insert() 484 String table = uri.getLastPathSegment(); in update() local 485 if(table == null){ in update() [all …]
|
D | BluetoothMapEmailProvider.java | 394 String table = uri.getPathSegments().get(1); in delete() local 395 if(table == null) in delete() 409 if(table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in delete() 412 if (D) Log.w(TAG, "Unknown table name: " + table); in delete() 438 String table = uri.getLastPathSegment(); in insert() local 439 if(table == null){ in insert() 453 if(table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in insert() 458 Log.w(TAG, "Unknown table name: " + table); in insert() 579 String table = uri.getLastPathSegment(); in update() local 580 if(table == null){ in update() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 301 public long queryNumEntries(final String table, final String selection, in queryNumEntries() argument 309 DatabaseUtils.queryNumEntries(mDatabase, table, selection, selectionArgs); in queryNumEntries() 313 String.format(Locale.US, "queryNumEntries %s with %s ==> %d", table, in queryNumEntries() 337 public int update(final String table, final ContentValues values, in update() argument 346 count = mDatabase.update(table, values, selection, selectionArgs); in update() 353 table, selection, count)); in update() 358 public int delete(final String table, final String whereClause, final String[] whereArgs) { in delete() argument 366 count = mDatabase.delete(table, whereClause, whereArgs); in delete() 373 String.format(Locale.US, "delete from %s with %s ==> %d", table, in delete() 379 public long insert(final String table, final String nullColumnHack, in insert() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharMatcher.java | 367 @Override protected void setBits(LookupTable table) { 398 @Override protected void setBits(LookupTable table) { in is() argument 399 table.set(match); in is() 448 @Override protected void setBits(LookupTable table) { 449 table.set(match1); 450 table.set(match2); 465 @Override protected void setBits(LookupTable table) { 467 table.set(c); 495 @Override protected void setBits(LookupTable table) { 498 table.set(c); [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 335 List<ContentValues> table = new ArrayList<>(); in createBodyCursor() local 357 table.add(bodyPart); in createBodyCursor() 360 return new FakeCursor(table, TelephonyBackupAgent.MMS_TEXT_PROJECTION); in createBodyCursor() 365 List<ContentValues> table = new ArrayList<>(); in createAddrCursor() local 372 table.add(addr); in createAddrCursor() 374 return new FakeCursor(table, TelephonyBackupAgent.MMS_ADDR_PROJECTION); in createAddrCursor() 774 List<ContentValues> table = new ArrayList<>(); in query() local 777 table.add(row); in query() 778 return new FakeCursor(table, projection); in query() 784 List<ContentValues> table = new ArrayList<>(); in query() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 178 TableLayout table = (TableLayout)findViewById(R.id.table); in addRow() local 182 table.addView(row); in addRow() 188 TableLayout table = (TableLayout)findViewById(R.id.table); in addSeparator() local 194 table.addView(separator); in addSeparator()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | FilterStackDBHelper.java | 69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) { in createTable() argument 71 create.append(table).append('('); in createTable() 92 protected static void dropTable(SQLiteDatabase db, String table) { in dropTable() argument 95 db.execSQL("drop table if exists " + table); in dropTable()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DbModifierWithNotification.java | 102 public long insert(String table, String nullColumnHack, ContentValues values) { in insert() argument 107 long rowId = mDb.insert(table, nullColumnHack, values); in insert() 158 public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { in update() argument 177 int count = mDb.update(table, values, whereClause, whereArgs); in update() 188 public int delete(String table, String whereClause, String[] whereArgs) { in delete() argument 206 count = mDb.update(table, values, whereClause, whereArgs); in delete() 208 count = mDb.delete(table, whereClause, whereArgs); in delete()
|
D | DatabaseModifier.java | 34 public abstract long insert(String table, String nullColumnHack, ContentValues values); in insert() argument 44 public abstract int update(String table, ContentValues values, in update() argument 50 public abstract int delete(String table, String whereClause, String[] whereArgs); in delete() argument
|
D | ProfileDatabaseHelper.java | 68 for (String table : Tables.SEQUENCE_TABLES) { in initializeAutoIncrementSequences() 70 values.put(SEQUENCE_NAME, table); in initializeAutoIncrementSequences()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 110 return "vnd.android.cursor.dir/" + args.table; in getType() 112 return "vnd.android.cursor.item/" + args.table; in getType() 131 qb.setTables(args.table); in query() 141 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument 148 helper.checkId(table, values); in dbInsertAndCheck() 149 return db.insert(table, nullColumnHack, values); in dbInsertAndCheck() 174 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 208 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert() 242 int count = db.delete(args.table, args.where, args.args); in delete() 255 int count = db.update(args.table, values, args.where, args.args); in update() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 1806 for (String table : tables) { in updateDatabase() 1807 db.execSQL("UPDATE " + table + " SET " + "_data='" + externalStorage in updateDatabase() 2134 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument 2136 qb.setTables(table); in queryThumbnail() 2296 int table = URI_MATCHER.match(uri); in query() local 2301 if (table == MEDIA_SCANNER) { in query() 2315 if (table == FS_ID) { in query() 2321 if (table == VERSION) { in query() 2359 switch (table) { in query() 2478 if (table == AUDIO_GENRES_ID_MEMBERS) { in query() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | TestProvider.java | 121 String table = uri.getPath().substring(1); in insert() local 123 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) in insert() 130 sURIMatcher.addURI(AUTHORITY, table, TABLE); in insert() 131 sURIMatcher.addURI(AUTHORITY, table + "/#", RECORD); in insert()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 83 final LevenshteinDistance table = new LevenshteinDistance(source, target); in findMatches() local 84 table.calculate(); in findMatches() 87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations(); in findMatches()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | LauncherProvider.java | 112 return "vnd.android.cursor.dir/" + args.table; in getType() 114 return "vnd.android.cursor.item/" + args.table; in getType() 124 qb.setTables(args.table); in query() 134 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument 138 return db.insert(table, nullColumnHack, values); in dbInsertAndCheck() 144 db.delete(args.table, args.where, args.args); in deleteId() 152 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 170 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert() 188 int count = db.delete(args.table, args.where, args.args); in delete() 199 int count = db.update(args.table, values, args.where, args.args); in update() [all …]
|