/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MediaView.java | 89 public static void showAudioData(TableDisplay table, Bundle tags) { in showAudioData() argument 92 table.put(R.string.metadata_artist, tags.getString(MediaMetadata.METADATA_KEY_ARTIST)); in showAudioData() 96 table.put(R.string.metadata_composer, in showAudioData() 101 table.put(R.string.metadata_album, tags.getString(MediaMetadata.METADATA_KEY_ALBUM)); in showAudioData() 106 table.put(R.string.metadata_duration, DateUtils.formatElapsedTime(millis / 1000)); in showAudioData() 112 TableDisplay table, in showVideoData() argument 118 addDimensionsRow(table, resources, tags); in showVideoData() 122 showCoordiantes(table, resources, coords, geoClickListener); in showVideoData() 127 table.put(R.string.metadata_duration, DateUtils.formatElapsedTime(millis / 1000)); in showVideoData() 133 TableDisplay table, in showExifData() argument [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseDatabaseHelperUpgradeTest.java | 201 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_Match() local 202 table.assertHasColumn("foo", INTEGER, false, null); in testAssertHasColumn_Match() 206 TableStructure table = new TableStructure(); in testAssertHasColumn_Empty() local 209 table.assertHasColumn("bar", INTEGER, false, null); in testAssertHasColumn_Empty() 217 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_ColumnNotExist() local 220 table.assertHasColumn("bar", INTEGER, false, null); in testAssertHasColumn_ColumnNotExist() 228 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_TypeMismatch() local 231 table.assertHasColumn("foo", TEXT, false, null); in testAssertHasColumn_TypeMismatch() 239 TableStructure table = createOneColumnTable("foo", INTEGER, false, null); in testAssertHasColumn_NotNullMismatch() local 242 table.assertHasColumn("foo", INTEGER, true, null); in testAssertHasColumn_NotNullMismatch() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsProvider.java | 317 String table = TABLE_PDU; in insert() local 343 table = TABLE_PART; in insert() 347 table = TABLE_ADDR; in insert() 351 table = TABLE_RATE; in insert() 355 table = TABLE_DRM; in insert() 368 if (table.equals(TABLE_PDU)) { in insert() 410 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert() 421 } else if (table.equals(TABLE_ADDR)) { in insert() 425 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert() 431 } else if (table.equals(TABLE_PART)) { in insert() [all …]
|
D | SmsProvider.java | 565 String table = TABLE_SMS; in insertInner() local 603 table = "raw"; in insertInner() 607 table = "sr_pending"; in insertInner() 611 table = "attachments"; in insertInner() 615 table = "canonical_addresses"; in insertInner() 666 if (table.equals(TABLE_SMS)) { in insertInner() 758 rowID = db.insert(table, "body", values); in insertInner() 763 if (table == TABLE_SMS) { in insertInner() 776 if (table == TABLE_SMS) { in insertInner() 1039 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()
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapIMProvider.java | 202 String table = uri.getPathSegments().get(1); in delete() local 203 if (table == null) { in delete() 219 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in delete() 223 Log.w(TAG, "Unknown table name: " + table); in delete() 250 String table = uri.getLastPathSegment(); in insert() local 251 if (table == null) { in insert() 267 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in insert() 274 Log.w(TAG, "Unknown table name: " + table); in insert() 497 String table = uri.getLastPathSegment(); in update() local 498 if (table == null) { in update() [all …]
|
D | BluetoothMapEmailProvider.java | 406 String table = uri.getPathSegments().get(1); in delete() local 407 if (table == null) { in delete() 424 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in delete() 428 Log.w(TAG, "Unknown table name: " + table); in delete() 455 String table = uri.getLastPathSegment(); in insert() local 456 if (table == null) { in insert() 470 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in insert() 477 Log.w(TAG, "Unknown table name: " + table); in insert() 600 String table = uri.getLastPathSegment(); in update() local 601 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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | CardContentProvider.java | 88 final String table = getTableFromMatch(uri); in bulkInsert() local 92 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert() 94 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert() 129 final String table = getTableFromMatch(uri); in query() local 130 queryBuilder.setTables(table); in query() 163 String table; in getTableFromMatch() local 166 table = CardDatabaseHelper.CARD_TABLE; in getTableFromMatch() 171 return table; in getTableFromMatch()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | CardContentProvider.java | 88 final String table = getTableFromMatch(uri); in bulkInsert() local 92 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert() 94 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert() 129 final String table = getTableFromMatch(uri); in query() local 130 queryBuilder.setTables(table); in query() 163 String table; in getTableFromMatch() local 166 table = CardDatabaseHelper.CARD_TABLE; in getTableFromMatch() 171 return table; in getTableFromMatch()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DbModifierWithNotification.java | 101 public long insert(String table, String nullColumnHack, ContentValues values) { in insert() argument 106 long rowId = mDb.insert(table, nullColumnHack, values); in insert() 165 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument 179 updateLastModified(table, whereClause, whereArgs); in update() 199 int count = mDb.update(table, values, whereClause, whereArgs); in update() 200 if (count > 0 && isVoicemailContent || Tables.VOICEMAIL_STATUS.equals(table)) { in update() 249 private void updateLastModified(String table, String whereClause, String[] whereArgs) { in updateLastModified() argument 253 mDb.update(table, values, in updateLastModified() 259 public int delete(String table, String whereClause, String[] whereArgs) { in delete() argument 277 count = mDb.update(table, values, whereClause, whereArgs); in delete() [all …]
|
D | DatabaseModifier.java | 35 public abstract long insert(String table, String nullColumnHack, ContentValues values); in insert() argument 45 public abstract int update(Uri uri, String table, ContentValues values, in update() argument 51 public abstract int delete(String table, String whereClause, String[] whereArgs); in delete() argument
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | BugStorageProvider.java | 238 String table; in query() local 242 table = BUG_REPORTS_TABLE; in query() 246 table = BUG_REPORTS_TABLE; in query() 258 Cursor cursor = db.query(false, table, null, selection, selectionArgs, null, null, in query() 267 String table; in insert() local 273 table = BUG_REPORTS_TABLE; in insert() 279 long rowId = db.insert(table, null, values); in insert() 281 Uri resultUri = Uri.parse("content://" + AUTHORITY + "/" + table + "/" + rowId); in insert() 343 String table; in update() local 346 table = BUG_REPORTS_TABLE; in update() [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 404 List<ContentValues> table = new ArrayList<>(); in createBodyCursor() local 429 table.add(bodyPart); in createBodyCursor() 443 table.add(attachmentPart); in createBodyCursor() 448 return new FakeCursor(table, TelephonyBackupAgent.MMS_TEXT_PROJECTION); in createBodyCursor() 453 List<ContentValues> table = new ArrayList<>(); in createAddrCursor() local 460 table.add(addr); in createAddrCursor() 462 return new FakeCursor(table, TelephonyBackupAgent.MMS_ADDR_PROJECTION); in createAddrCursor() 938 List<ContentValues> table = new ArrayList<>(); in query() local 941 table.add(row); in query() 942 return new FakeCursor(table, projection); in query() [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/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 145 return "vnd.android.cursor.dir/" + args.table; in getType() 147 return "vnd.android.cursor.item/" + args.table; in getType() 177 qb.setTables(args.table); in query() 187 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument 195 return (int) db.insert(table, nullColumnHack, values); in dbInsertAndCheck() 221 final int rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert() 278 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert() 326 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) { in delete() 329 int count = db.delete(args.table, args.where, args.args); in delete() 345 int count = db.update(args.table, values, args.where, args.args); in update() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowSecureSettings.java | 127 Table<Integer, String, Object> table = sUserDataMap.get(contentResolver); in getUserTable() local 128 if (table == null) { in getUserTable() 129 table = HashBasedTable.create(); in getUserTable() 130 sUserDataMap.put(contentResolver, table); in getUserTable() 132 return table; in getUserTable()
|
/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/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | InspectorBot.java | 62 private static Map<String, String> getTableRows(TableView table) in getTableRows() argument 65 int children = table.getChildCount(); in getTableRows() 67 View view = table.getChildAt(i); in getTableRows() 69 LinearLayout row = (LinearLayout) table.getChildAt(i); in getTableRows()
|
/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()
|