Home
last modified time | relevance | path

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

12345678

/packages/modules/Bluetooth/system/gd/dumpsys/internal/
Dfilter_internal.cc38 void internal::ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset) { in ScrubFromTable() argument
39 log::assert_that(table != nullptr, "assert failed: table != nullptr"); in ScrubFromTable()
40 uint8_t* vtable = const_cast<uint8_t*>(table->GetVTable()); in ScrubFromTable()
111 bool internal::FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLev… in FilterTypeBool() argument
112 log::assert_that(table != nullptr, "assert failed: table != nullptr"); in FilterTypeBool()
122 flatbuffers::SetField<int8_t>(table, field, default_val); in FilterTypeBool()
123 internal::ScrubFromTable(table, field_offset); in FilterTypeBool()
133 const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy_level) { in FilterTypeInteger() argument
134 log::assert_that(table != nullptr, "assert failed: table != nullptr"); in FilterTypeInteger()
141 [[maybe_unused]] int32_t val = table->GetField<int32_t>(field_offset, default_val); in FilterTypeInteger()
[all …]
Dfilter_internal_test.cc128 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local
134 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
143 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local
150 **it, table, bluetooth::dumpsys::internal::PrivacyLevel::kAnonymized); in TEST_F()
159 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local
165 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
174 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local
180 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
189 flatbuffers::Table* table = GetMutableTable(); in TEST_F() local
195 …bluetooth::dumpsys::internal::FilterTypeFloat(**it, table, bluetooth::dumpsys::internal::PrivacyLe… in TEST_F()
[all …]
Dfilter_internal.h47 void ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset);
118 bool FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy…
119 bool FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privac…
120 bool FilterTypeInteger(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priv…
121 bool FilterTypeLong(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy…
122 bool FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
123 bool FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
/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/modules/AdServices/adservices/service-core/java/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV14.java69 for (String table : mMigrationTables) { in performMigration()
70 insertRegistrationOriginOrDelete(db, table, enrollmentToReportingOrigin); in performMigration()
150 @NonNull SQLiteDatabase db, String table, Map<String, Uri> enrollmentIdToReportingUrl) { in insertRegistrationOriginOrDelete() argument
153 /*table=*/ table, in insertRegistrationOriginOrDelete()
171 deleteRecord(db, table, id); in insertRegistrationOriginOrDelete()
177 long rows = db.update(table, values, ID_COLUMN + " = ? ", new String[] {id}); in insertRegistrationOriginOrDelete()
184 + table); in insertRegistrationOriginOrDelete()
185 deleteRecord(db, table, id); in insertRegistrationOriginOrDelete()
192 private void deleteRecord(SQLiteDatabase db, String table, String recordId) { in deleteRecord() argument
194 .d("Deleting record with id - " + recordId + " from table - " + table); in deleteRecord()
[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/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java391 String table = TABLE_PDU; in insert() local
417 table = TABLE_PART; in insert()
421 table = TABLE_ADDR; in insert()
425 table = TABLE_RATE; in insert()
429 table = TABLE_DRM; in insert()
458 if (table.equals(TABLE_PDU)) { in insert()
507 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
521 } else if (table.equals(TABLE_ADDR)) { in insert()
525 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
534 } else if (table.equals(TABLE_PART)) { in insert()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java67 return "vnd.android.cursor.dir/" + args.table; in getType()
69 return "vnd.android.cursor.item/" + args.table; in getType()
78 qb.setTables(args.table); in query()
82 result[0] = controller.query(args.table, projection, args.where, args.args, sortOrder); in query()
127 return controller.insert(args.table, values); in insert()
136 return executeControllerTask(c -> c.delete(args.table, args.where, args.args)); in delete()
142 return executeControllerTask(c -> c.update(args.table, values, args.where, args.args)); in update()
164 public final String table; field in SqlArguments
170 this.table = url.getPathSegments().get(0); in SqlArguments()
178 this.table = url.getPathSegments().get(0); in SqlArguments()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinder.java97 WidgetsListTableView table = holder.tableContainer; in bindViewHolder() local
100 entry.mWidgets.size(), table.getChildCount())); in bindViewHolder()
102 table.setListDrawableState( in bindViewHolder()
113 recycleTableBeforeBinding(table, widgetItemsTable); in bindViewHolder()
119 WidgetTableRow row = (WidgetTableRow) table.getChildAt(i); in bindViewHolder()
140 private void recycleTableBeforeBinding(TableLayout table, in recycleTableBeforeBinding() argument
143 for (int i = widgetItemsTable.size(); i < table.getChildCount(); i++) { in recycleTableBeforeBinding()
144 table.getChildAt(i).setVisibility(View.GONE); in recycleTableBeforeBinding()
150 if (i < table.getChildCount()) { in recycleTableBeforeBinding()
151 tableRow = (WidgetTableRow) table.getChildAt(i); in recycleTableBeforeBinding()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
DMoreDatabaseUtils.java38 public static String buildCreateIndexSql(String table, String field) { in buildCreateIndexSql() argument
39 return "CREATE INDEX " + buildIndexName(table, field) + " ON " + table in buildCreateIndexSql()
51 public static String buildDropIndexSql(String table, String field) { in buildDropIndexSql() argument
52 return "DROP INDEX IF EXISTS " + buildIndexName(table, field); in buildDropIndexSql()
60 public static String buildIndexName(String table, String field) { in buildIndexName() argument
61 return table + "_" + field + "_index"; in buildIndexName()
/packages/modules/GeoTZ/tzs2storage/
DREADME.md38 a compact way. Each entry in the table takes up a fixed number of bytes.
41 table. Then they contain one or more fixed length `{key}`/`{value}` records of `{R}` bits sorted by
42 `{key}`. The table data is easily memory mapped and each record can be randomly accessed by
78 the "same prefix" property. All ranges with a common prefix can be stored in one "suffix table".
86 Suffix table block IDs are calculated by taking the prefix of the S2 cell ID being sought and
87 applying a fixed offset. The block info and block data for the cell's suffix table can be accessed
93 used to obtain the `{block ID}` of the block used to store the suffix table. The `{block ID}` is
99 When the `{block ID}` block is non-zero length, the block is interpreted as a packed table
100 (described above) which stores the suffix table's entries.
104 only one record in the table.
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/table/packed/
DIntValuePackedTableTest.java17 package com.android.storage.table.packed;
29 import com.android.storage.table.packed.read.IntValueTypedPackedTable;
30 import com.android.storage.table.packed.write.PackedTableWriter;
31 import com.android.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/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/
DSharedDbHelper.java229 Arrays.stream(tables).forEachOrdered((table) -> copyOrMigrateTable(oldDb, db, table)); in migrateOldDataToNewDatabase()
232 private void copyOrMigrateTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in copyOrMigrateTable() argument
236 switch (table) { in copyOrMigrateTable()
238 migrateEnrollmentTable(oldDb, newDb, table); in copyOrMigrateTable()
241 copyTable(oldDb, newDb, table); in copyOrMigrateTable()
245 private void copyTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in copyTable() argument
246 try (Cursor cursor = oldDb.query(table, null, null, null, null, null, null, null)) { in copyTable()
250 newDb.insert(table, null, contentValues); in copyTable()
255 private void migrateEnrollmentTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in migrateEnrollmentTable() argument
256 try (Cursor cursor = oldDb.query(table, null, null, null, null, null, null, null)) { in migrateEnrollmentTable()
[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/Virtualization/zipfuse/src/
Dinode.rs25 table: Vec<InodeData>, field
135 _ => self.table.get(inode as usize), in get()
142 _ => self.table.get_mut(inode as usize), in get_mut()
147 let inode = self.table.len() as Inode; in put()
148 self.table.push(data); in put()
180 let mut table = InodeTable { table: Vec::new() }; in from_zip() localVariable
183 assert_eq!(INVALID, table.put(InodeData::new_dir(0))); in from_zip()
184 assert_eq!(ROOT, table.put(InodeData::new_dir(DEFAULT_DIR_MODE))); in from_zip()
220 if let Some(found) = table.find(parent, &name) { in from_zip()
224 let inode = table.get_mut(parent).unwrap(); in from_zip()
[all …]
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Dnormalize.cc70 static uint16_t table[kTableSize]; in CreateTable() local
72 table[i] = i; in CreateTable()
77 table[group[j]] = group[0]; in CreateTable()
80 return table; in CreateTable()
87 static const uint16_t* table = CreateTable(); in NormalizeForSearch() local
89 return table[codepoint]; in NormalizeForSearch()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardContentProvider.java93 final String table = getTableFromMatch(uri); in bulkInsert() local
102 try (Cursor cursor = database.query(table, columns, selection, in bulkInsert()
117 database.delete(table, null /* whereClause */, null /* whereArgs */); in bulkInsert()
132 long ret = database.insert(table, null /* nullColumnHack */, value); in bulkInsert()
167 final String table = getTableFromMatch(uri); in query() local
168 queryBuilder.setTables(table); in query()
202 String table; in getTableFromMatch() local
205 table = CardDatabaseHelper.CARD_TABLE; in getTableFromMatch()
210 return table; in getTableFromMatch()
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java214 String table = uri.getPathSegments().get(1); in delete() local
215 if (table == null) { in delete()
231 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in delete()
235 Log.w(TAG, "Unknown table name: " + table); in delete()
260 String table = uri.getLastPathSegment(); in insert() local
261 if (table == null) { in insert()
281 if (table.equals(BluetoothMapContract.TABLE_MESSAGE)) { in insert()
288 Log.w(TAG, "Unknown table name: " + table); in insert()
517 String table = uri.getLastPathSegment(); in update() local
518 if (table == null) { in update()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMigrationTestHelper.java64 (table, rows) -> { in populateDb() argument
67 assertNotEquals(-1, db.insert(table, null, row)); in populateDb()
90 (table, rows) -> { in verifyDataInDb() argument
93 newDb.query(table, null, null, null, null, null, null, null)) { in verifyDataInDb()
99 assertEquals(table + " row count matching failed", rows.size(), newRows.size()); in verifyDataInDb()
107 table, i, expected, actual), in verifyDataInDb()
111 droppedKeys.getOrDefault(table, Set.of()), in verifyDataInDb()
112 columnsToBeSkipped.getOrDefault(table, Set.of()))); in verifyDataInDb()
/packages/modules/Bluetooth/system/gd/dumpsys/test_data/
Dbaz.fbs5 table BazSubTablePrivate {
10 table BazSubTableOpaque {
15 table BazSubTableAnonymized {
20 table BazSubTableAny {
28 table BazTestSchema {
/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/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DMigrationTestHelper.java58 (table, rows) -> { in populateDb() argument
61 assertNotEquals(-1, db.insert(table, null, row)); in populateDb()
84 (table, rows) -> { in verifyDataInDb() argument
87 newDb.query(table, null, null, null, null, null, null, null)) { in verifyDataInDb()
93 assertEquals(table + " row count matching failed", rows.size(), newRows.size()); in verifyDataInDb()
101 table, i, expected, actual), in verifyDataInDb()
105 droppedKeys.getOrDefault(table, Set.of()), in verifyDataInDb()
106 columnsToBeSkipped.getOrDefault(table, Set.of()))); in verifyDataInDb()
/packages/modules/Virtualization/pvmfw/
Dplatform.dts105 opp_table0: opp-table-0 {
117 opp_table1: opp-table-1 {
129 opp_table2: opp-table-2 {
141 opp_table3: opp-table-3 {
153 opp_table4: opp-table-4 {
165 opp_table5: opp-table-5 {
177 opp_table6: opp-table-6 {
189 opp_table7: opp-table-7 {
201 opp_table8: opp-table-8 {
213 opp_table9: opp-table-9 {
[all …]

12345678