Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 105) sorted by relevance

12345

/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMediaView.java89 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/
DBaseDatabaseHelperUpgradeTest.java201 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/
DMmsProvider.java318 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()
369 if (table.equals(TABLE_PDU)) { in insert()
411 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
422 } else if (table.equals(TABLE_ADDR)) { in insert()
426 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
432 } else if (table.equals(TABLE_PART)) { in insert()
[all …]
DSmsProvider.java565 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/
DPhotoProvider.java295 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 …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java461 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 …]
DPhotoTableDream.java39 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/modules/GeoTZ/s2storage/
DREADME.md31 a compact way. Each entry in the table takes up a fixed number of bytes.
34 table. Then they contain one or more fixed length `{key}`/`{value}` records of `{R}` bits sorted by
35 `{key}`. The table data is easily memory mapped and each record can be randomly accessed by
71 the "same prefix" property. All ranges with a common prefix can be stored in one "suffix table".
79 Suffix table block IDs are calculated by taking the prefix of the S2 cell ID being sought and
80 applying a fixed offset. The block info and block data for the cell's suffix table can be accessed
86 used to obtain the `{block ID}` of the block used to store the suffix table. The `{block ID}` is
92 When the `{block ID}` block is non-zero length, the block is interpreted as a packed table
93 (described above) which stores the suffix table's entries.
97 only one record in the table.
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinder.java101 WidgetsListTableView table = holder.mTableContainer; in bindViewHolder() local
104 entry.mWidgets.size(), table.getChildCount())); in bindViewHolder()
107 table.setListDrawableState( in bindViewHolder()
113 recycleTableBeforeBinding(table, widgetItemsTable); in bindViewHolder()
118 TableRow row = (TableRow) table.getChildAt(i); in bindViewHolder()
144 private void recycleTableBeforeBinding(TableLayout table, in recycleTableBeforeBinding() argument
147 for (int i = widgetItemsTable.size(); i < table.getChildCount(); i++) { in recycleTableBeforeBinding()
148 table.getChildAt(i).setVisibility(View.GONE); in recycleTableBeforeBinding()
154 if (i < table.getChildCount()) { in recycleTableBeforeBinding()
155 tableRow = (TableRow) table.getChildAt(i); in recycleTableBeforeBinding()
[all …]
/packages/modules/Virtualization/zipfuse/src/
Dinode.rs25 table: Vec<InodeData>, field
123 _ => self.table.get(inode as usize), in get()
130 _ => self.table.get_mut(inode as usize), in get_mut()
135 let inode = self.table.len() as Inode; in put()
136 self.table.push(data); in put()
168 let mut table = InodeTable { table: Vec::new() }; in from_zip() localVariable
171 assert_eq!(INVALID, table.put(InodeData::new_dir(0))); in from_zip()
172 assert_eq!(ROOT, table.put(InodeData::new_dir(0))); in from_zip()
198 if let Some(found) = table.find(parent, &name) { in from_zip()
202 let mut inode = table.get_mut(parent).unwrap(); in from_zip()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/
DIntValuePackedTableTest.java17 package com.android.timezone.location.storage.table.packed;
29 import com.android.timezone.location.storage.table.packed.read.IntValueTypedPackedTable;
30 import com.android.timezone.location.storage.table.packed.write.PackedTableWriter;
31 import com.android.timezone.location.storage.table.reader.IntValueTable;
75 IntValueTypedPackedTable table = new IntValueTypedPackedTable(blockData); in valueSizeMax_unsigned() local
76 assertEquals(maxUnsignedInt, table.getEntry(1).getValue()); in valueSizeMax_unsigned()
77 assertEquals(minUnsignedInt, table.getEntry(2).getValue()); in valueSizeMax_unsigned()
98 IntValueTypedPackedTable table = new IntValueTypedPackedTable(blockData); in valueSizeMax_signed() local
99 assertEquals(maxSignedInt, table.getEntry(1).getValue()); in valueSizeMax_signed()
100 assertEquals(minSignedInt, table.getEntry(2).getValue()); in valueSizeMax_signed()
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java202 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 …]
DBluetoothMapEmailProvider.java406 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/providers/ContactsProvider/src/com/android/providers/contacts/database/
DMoreDatabaseUtils.java36 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()
DContactsTableUtil.java44 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/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java301 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/Settings/src/com/android/settings/homepage/contextualcards/
DCardContentProvider.java95 final String table = getTableFromMatch(uri); in bulkInsert() local
104 try (Cursor cursor = database.query(table, columns, selection, in bulkInsert()
119 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert()
134 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert()
169 final String table = getTableFromMatch(uri); in query() local
170 queryBuilder.setTables(table); in query()
203 String table; in getTableFromMatch() local
206 table = CardDatabaseHelper.CARD_TABLE; in getTableFromMatch()
211 return table; in getTableFromMatch()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugStorageProvider.java262 String table; in query() local
266 table = BUG_REPORTS_TABLE; in query()
270 table = BUG_REPORTS_TABLE; in query()
282 Cursor cursor = db.query(false, table, null, selection, selectionArgs, null, null, in query()
292 String table; in insert() local
298 table = BUG_REPORTS_TABLE; in insert()
304 long rowId = db.insert(table, null, values); in insert()
306 Uri resultUri = Uri.parse("content://" + AUTHORITY + "/" + table + "/" + rowId); in insert()
386 String table; in update() local
389 table = BUG_REPORTS_TABLE; in update()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java416 List<ContentValues> table = new ArrayList<>(); in createBodyCursor() local
441 table.add(bodyPart); in createBodyCursor()
455 table.add(attachmentPart); in createBodyCursor()
460 return new FakeCursor(table, TelephonyBackupAgent.MMS_TEXT_PROJECTION); in createBodyCursor()
465 List<ContentValues> table = new ArrayList<>(); in createAddrCursor() local
472 table.add(addr); in createAddrCursor()
474 return new FakeCursor(table, TelephonyBackupAgent.MMS_ADDR_PROJECTION); in createAddrCursor()
1028 List<ContentValues> table = new ArrayList<>(); in query() local
1031 table.add(row); in query()
1032 return new FakeCursor(table, projection); in query()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java178 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/providers/ContactsProvider/src/com/android/providers/contacts/
DDbModifierWithNotification.java109 public long insert(String table, String nullColumnHack, ContentValues values) { in insert() argument
114 long rowId = mDb.insert(table, nullColumnHack, values); in insert()
173 public int update(Uri uri, String table, ContentValues values, String whereClause, in update() argument
187 updateLastModified(table, whereClause, whereArgs); in update()
217 if (count > 0 && isVoicemailContent || Tables.VOICEMAIL_STATUS.equals(table)) { in update()
266 private void updateLastModified(String table, String whereClause, String[] whereArgs) { in updateLastModified() argument
270 mDb.update(table, values, in updateLastModified()
276 public int delete(String table, String whereClause, String[] whereArgs) { in delete() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java127 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/
DFilterStackDBHelper.java69 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/Launcher3/src/com/android/launcher3/
DLauncherProvider.java142 return "vnd.android.cursor.dir/" + args.table; in getType()
144 return "vnd.android.cursor.item/" + args.table; in getType()
189 qb.setTables(args.table); in query()
202 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { in dbInsertAndCheck() argument
210 return (int) db.insert(table, nullColumnHack, values); in dbInsertAndCheck()
236 final int rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); in insert()
292 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) { in bulkInsert()
339 && Favorites.TABLE_NAME.equalsIgnoreCase(args.table)) { in delete()
342 int count = db.delete(args.table, args.where, args.args); in delete()
357 int count = db.update(args.table, values, args.where, args.args); in update()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DInspectorBot.java62 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()

12345