Home
last modified time | relevance | path

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

1234567

/packages/modules/Bluetooth/system/gd/dumpsys/internal/
Dfilter_internal.cc35 void internal::ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset) { in ScrubFromTable() argument
36 ASSERT(table != nullptr); in ScrubFromTable()
37 uint8_t* vtable = const_cast<uint8_t*>(table->GetVTable()); in ScrubFromTable()
108 bool internal::FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLev… in FilterTypeBool() argument
109 ASSERT(table != nullptr); in FilterTypeBool()
119 flatbuffers::SetField<int8_t>(table, field, default_val); in FilterTypeBool()
120 internal::ScrubFromTable(table, field_offset); in FilterTypeBool()
130 const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy_level) { in FilterTypeInteger() argument
131 ASSERT(table != nullptr); in FilterTypeInteger()
136 [[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.h46 void ScrubFromTable(flatbuffers::Table* table, flatbuffers::voffset_t field_offset);
117 bool FilterTypeBool(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy…
118 bool FilterTypeFloat(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privac…
119 bool FilterTypeInteger(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priv…
120 bool FilterTypeLong(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel privacy…
121 bool FilterTypeString(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
122 bool FilterTypeStruct(const reflection::Field& field, flatbuffers::Table* table, PrivacyLevel priva…
/packages/modules/Bluetooth/system/gd/dumpsys/
Dfilter.cc53 virtual bool FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument
65 virtual void FilterObject(const reflection::Object* object, flatbuffers::Table* table){}; in FilterObject() argument
75 virtual void FilterTable(const reflection::Schema* schema, flatbuffers::Table* table){}; in FilterTable() argument
93 bool FilterField(const reflection::Field* field, flatbuffers::Table* table) override;
94 void FilterObject(const reflection::Object* object, flatbuffers::Table* table) override;
95 void FilterTable(const reflection::Schema* schema, flatbuffers::Table* table) override;
98 bool UserPrivacyFilter::FilterField(const reflection::Field* field, flatbuffers::Table* table) { in FilterField() argument
100 ASSERT(table != nullptr); in FilterField()
106 return internal::FilterTypeInteger(*field, table, privacy_level); in FilterField()
109 return internal::FilterTypeFloat(*field, table, privacy_level); in FilterField()
[all …]
/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.java384 String table = TABLE_PDU; in insert() local
410 table = TABLE_PART; in insert()
414 table = TABLE_ADDR; in insert()
418 table = TABLE_RATE; in insert()
422 table = TABLE_DRM; in insert()
447 if (table.equals(TABLE_PDU)) { in insert()
496 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
507 } else if (table.equals(TABLE_ADDR)) { in insert()
511 if ((rowId = db.insert(table, null, finalValues)) <= 0) { in insert()
517 } else if (table.equals(TABLE_PART)) { in insert()
[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/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListTableViewHolderBinder.java92 WidgetsListTableView table = holder.tableContainer; in bindViewHolder() local
95 entry.mWidgets.size(), table.getChildCount())); in bindViewHolder()
97 table.setListDrawableState( in bindViewHolder()
108 recycleTableBeforeBinding(table, widgetItemsTable); in bindViewHolder()
114 TableRow row = (TableRow) table.getChildAt(i); in bindViewHolder()
136 private void recycleTableBeforeBinding(TableLayout table, in recycleTableBeforeBinding() argument
139 for (int i = widgetItemsTable.size(); i < table.getChildCount(); i++) { in recycleTableBeforeBinding()
140 table.getChildAt(i).setVisibility(View.GONE); in recycleTableBeforeBinding()
146 if (i < table.getChildCount()) { in recycleTableBeforeBinding()
147 tableRow = (TableRow) table.getChildAt(i); in recycleTableBeforeBinding()
[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()
148 @NonNull SQLiteDatabase db, String table, Map<String, Uri> enrollmentIdToReportingUrl) { in insertRegistrationOriginOrDelete() argument
151 /*table=*/ table, in insertRegistrationOriginOrDelete()
168 deleteRecord(db, table, id); in insertRegistrationOriginOrDelete()
174 long rows = db.update(table, values, ID_COLUMN + " = ? ", new String[] {id}); in insertRegistrationOriginOrDelete()
180 + table); in insertRegistrationOriginOrDelete()
181 deleteRecord(db, table, id); in insertRegistrationOriginOrDelete()
188 private void deleteRecord(SQLiteDatabase db, String table, String recordId) { in deleteRecord() argument
189 LogUtil.d("Deleting record with id - " + recordId + " from table - " + table); in deleteRecord()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/shared/
DSharedDbHelper.java193 Arrays.stream(tables).forEachOrdered((table) -> copyOrMigrateTable(oldDb, db, table)); in migrateOldDataToNewDatabase()
196 private void copyOrMigrateTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in copyOrMigrateTable() argument
200 switch (table) { in copyOrMigrateTable()
202 migrateEnrollmentTable(oldDb, newDb, table); in copyOrMigrateTable()
205 copyTable(oldDb, newDb, table); in copyOrMigrateTable()
209 private void copyTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in copyTable() argument
210 try (Cursor cursor = oldDb.query(table, null, null, null, null, null, null, null)) { in copyTable()
214 newDb.insert(table, null, contentValues); in copyTable()
219 private void migrateEnrollmentTable(SQLiteDatabase oldDb, SQLiteDatabase newDb, String table) { in migrateEnrollmentTable() argument
220 try (Cursor cursor = oldDb.query(table, null, null, null, null, null, null, null)) { in migrateEnrollmentTable()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java77 return "vnd.android.cursor.dir/" + args.table; in getType()
79 return "vnd.android.cursor.item/" + args.table; in getType()
88 qb.setTables(args.table); in query()
92 result[0] = controller.query(args.table, projection, args.where, args.args, sortOrder); in query()
137 return controller.insert(args.table, values); in insert()
146 return executeControllerTask(c -> c.delete(args.table, args.where, args.args)); in delete()
152 return executeControllerTask(c -> c.update(args.table, values, args.where, args.args)); in update()
174 public final String table; field in SqlArguments
180 this.table = url.getPathSegments().get(0); in SqlArguments()
188 this.table = url.getPathSegments().get(0); in SqlArguments()
[all …]
/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/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
124 _ => self.table.get(inode as usize), in get()
131 _ => self.table.get_mut(inode as usize), in get_mut()
136 let inode = self.table.len() as Inode; in put()
137 self.table.push(data); in put()
169 let mut table = InodeTable { table: Vec::new() }; in from_zip() localVariable
172 assert_eq!(INVALID, table.put(InodeData::new_dir(0))); in from_zip()
173 assert_eq!(ROOT, table.put(InodeData::new_dir(DEFAULT_DIR_MODE))); in from_zip()
209 if let Some(found) = table.find(parent, &name) { in from_zip()
213 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/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/Bluetooth/android/app/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/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/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/fbs/
DQueryData.fbs5 table QueryData {
9 table QueryFields {
14 table Owner {
19 table Slot {
24 table Bid {
/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/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 {

1234567