/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseDatabaseHelperUpgradeTest.java | 129 public void assertHasColumns(TableColumn[] columns) { in assertHasColumns() argument 130 for (final TableColumn column : columns) { in assertHasColumns() 138 public void assertSame(TableColumn[] columns) { in assertSame() argument 139 assertHasColumns(columns); in assertSame() 140 if (columns.length != mColumns.size()) { in assertSame() 153 public final TableColumn[] columns; field in BaseDatabaseHelperUpgradeTest.TableListEntry 156 public TableListEntry(String name, TableColumn[] columns) { in TableListEntry() argument 157 this(name, columns, /* shouldBeInNewDb = */ true); in TableListEntry() 160 public TableListEntry(String name, TableColumn[] columns, boolean shouldBeInNewDb) { in TableListEntry() argument 162 this.columns = columns; in TableListEntry() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_0/ |
D | embedding_lookup.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features)) 31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | embedding_lookup_v1_3.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
D | embedding_lookup_quant8_signed.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_1/ |
D | embedding_lookup_relaxed.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features)) 31 output = Output("output", "TENSOR_FLOAT32", "{%d, %d, %d}" % (lookups, columns, features))
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | embedding_lookup_v1_2.mod.py | 19 columns = 2 variable 22 actual_values = [x for x in range(rows * columns * features)] 24 for j in range(columns): 26 actual_values[(i * columns + j) * features + k] = i + j / 10. + k / 100. 31 "{%d, %d, %d}" % (rows, columns, features)) 33 "{%d, %d, %d}" % (lookups, columns, features))
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastListActivityTest.java | 572 List<String> columns = mColumnCaptor.getAllValues(); in testOnActionItemClickedViewDetail() local 573 assertTrue(contains(columns, PLMN)); in testOnActionItemClickedViewDetail() 574 assertTrue(contains(columns, LAC)); in testOnActionItemClickedViewDetail() 575 assertTrue(contains(columns, CID)); in testOnActionItemClickedViewDetail() 576 assertTrue(contains(columns, ETWS_WARNING_TYPE)); in testOnActionItemClickedViewDetail() 577 assertTrue(contains(columns, CMAS_MESSAGE_CLASS)); in testOnActionItemClickedViewDetail() 578 assertTrue(contains(columns, CMAS_CATEGORY)); in testOnActionItemClickedViewDetail() 579 assertTrue(contains(columns, CMAS_RESPONSE_TYPE)); in testOnActionItemClickedViewDetail() 580 assertTrue(contains(columns, CMAS_SEVERITY)); in testOnActionItemClickedViewDetail() 581 assertTrue(contains(columns, CMAS_URGENCY)); in testOnActionItemClickedViewDetail() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactDataHandler.java | 135 public abstract void addNeededColumns(Collection<String> columns); in addNeededColumns() argument 151 public final void addNeededColumns(@NonNull Collection<String> columns) { in addNeededColumns() argument 152 Objects.requireNonNull(columns); in addNeededColumns() 153 columns.add(mColumn); in addNeededColumns() 192 public final void addNeededColumns(@NonNull Collection<String> columns) { in addNeededColumns() argument 193 Objects.requireNonNull(columns); in addNeededColumns() 194 columns.add(Data._ID); in addNeededColumns() 195 columns.add(Data.IS_PRIMARY); in addNeededColumns() 196 columns.add(Data.IS_SUPER_PRIMARY); in addNeededColumns() 198 columns.add(mDataColumns[i]); in addNeededColumns() [all …]
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastDatabaseHelperTest.java | 65 String[] columns = cursor.getColumnNames(); in dataBaseHelper_create() local 66 Log.d(TAG, "cellbroadcastservice columns before upgrade: " + Arrays.toString(columns)); in dataBaseHelper_create() 67 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.SLOT_INDEX)); in dataBaseHelper_create() 68 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.LOCATION_CHECK_TIME)); in dataBaseHelper_create() 69 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.MESSAGE_DISPLAYED)); in dataBaseHelper_create() 70 assertFalse(Arrays.asList(columns).contains(CellBroadcasts.DATA_CODING_SCHEME)); in dataBaseHelper_create() 71 assertFalse(Arrays.asList(columns).contains("etws_is_primary")); in dataBaseHelper_create()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | OnDevicePersonalizationDbHelperTest.java | 151 List<String> columns = getColumns(db, QueriesContract.QueriesEntry.TABLE_NAME); in testOnUpgradeFromV1() local 153 "Column not found " + columns.toString(), in testOnUpgradeFromV1() 154 columns.contains(QueriesContract.QueriesEntry.APP_PACKAGE_NAME)); in testOnUpgradeFromV1() 156 "Column not found " + columns.toString(), in testOnUpgradeFromV1() 157 columns.contains(QueriesContract.QueriesEntry.SERVICE_CERT_DIGEST)); in testOnUpgradeFromV1() 170 List<String> columns = getColumns(db, QueriesContract.QueriesEntry.TABLE_NAME); in testOnUpgradeFromV2() local 172 "Column not found " + columns.toString(), in testOnUpgradeFromV2() 173 columns.contains(QueriesContract.QueriesEntry.SERVICE_CERT_DIGEST)); in testOnUpgradeFromV2() 187 List<String> columns = getColumns(db, UserDataContract.AppInstall.TABLE_NAME); in testOnUpgradeFromV3() local 189 "Column not found " + columns.toString(), in testOnUpgradeFromV3() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | CalculatedFolderSpecTest.kt | 46 val columns = 6 in validate_matchWidthWorkspace() constant 69 columns, in validate_matchWidthWorkspace() 76 columns, in validate_matchWidthWorkspace() 82 assertThat(cells).isEqualTo(columns) in validate_matchWidthWorkspace() 95 columns, in validate_matchWidthWorkspace() 102 columns, in validate_matchWidthWorkspace() 108 assertThat(cells).isEqualTo(columns) in validate_matchWidthWorkspace()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ |
D | FakeContentProvider.java | 42 private final String[] columns; field in FakeContentProvider.ContentOverride 46 final String[] columns, final Object[][] data) { in ContentOverride() argument 50 this.columns = columns; in ContentOverride() 89 final String[] columns, final Object[][] data) { in addOverrideData() argument 90 mOverrides.add(new ContentOverride(uri.toString(), where, args, columns, data)); in addOverrideData() 119 return new FakeCursor(projection, content.columns, content.data); in query()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | AbstractSuggestionExtras.kt | 27 val columns: HashSet<String> = HashSet<String>() constant in com.android.quicksearchbox.AbstractSuggestionExtras 28 columns.addAll(doGetExtraColumnNames()) 30 columns.addAll(mMore.extraColumnNames) 32 return columns
|
D | CursorBackedSuggestionExtras.kt | 54 val columns: Array<String>? = CursorBackedSuggestionExtras.Companion.getCursorColumns(cursor) in cursorContainsExtras() constant 55 if (columns != null) { in cursorContainsExtras() 56 for (cursorColumn in columns) { in cursorContainsExtras() 67 val columns: Array<String> = in getExtraColumns() constant 70 for (cursorColumn in columns) { in getExtraColumns()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
D | SharedImageProvider.java | 111 Object[] columns = new Object[projection.length]; in query() local 114 columns[i] = 0; in query() 116 columns[i] = uri; in query() 118 columns[i] = path.getName(); in query() 120 columns[i] = path.length(); in query() 123 cursor.addRow(columns); in query()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | UriMetadataReaderTest.kt | 68 val columns = arrayOf(DocumentsContract.Document.COLUMN_FLAGS) in <lambda>() constant 69 whenever(contentResolver.query(eq(uri), eq(columns), anyOrNull(), anyOrNull())) in <lambda>() 71 MatrixCursor(columns).apply { in <lambda>() 89 val columns = arrayOf(MediaMetadata.METADATA_KEY_DISPLAY_ICON_URI) in <lambda>() constant 90 whenever(contentResolver.query(eq(uri), eq(columns), anyOrNull(), anyOrNull())) in <lambda>() 91 .thenReturn(MatrixCursor(columns).apply { addRow(arrayOf(previewUri.toString())) }) in <lambda>()
|
/packages/apps/Launcher3/tools/ |
D | print_db.py | 55 columns = [d[0] for d in c.description] 59 return columns,rows 64 columns = [d[0] for d in c.description] 68 return columns,rows 155 columns,rows = get_favorites(conn) 158 data = [dict(zip(columns,row)) for row in rows] 199 for col in columns: 201 for i in range(0,len(columns)): 202 col = columns[i]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/ |
D | MeasurementDbMigratorTestBaseDeprecated.java | 96 String[] columns = cursor.getColumnNames(); in cursorRowToContentValues() local 98 for (int i = 0; i < columns.length; i++) { in cursorRowToContentValues() 101 values.put(columns[i], cursor.getDouble(i)); in cursorRowToContentValues() 104 values.put(columns[i], cursor.getLong(i)); in cursorRowToContentValues() 108 values.put(columns[i], cursor.getString(i)); in cursorRowToContentValues()
|
/packages/apps/TV/src/com/android/tv/dvr/provider/ |
D | DvrDatabaseHelper.java | 195 private static String buildCreateSchedulesSql(String tableName, ColumnInfo[] columns) { in buildCreateSchedulesSql() argument 198 columns, in buildCreateSchedulesSql() 207 ColumnInfo[] columns, in buildCreateSql() argument 212 for (ColumnInfo columnInfo : columns) { in buildCreateSql() 236 private static String buildSelectSql(ColumnInfo[] columns) { in buildSelectSql() argument 240 for (ColumnInfo columnInfo : columns) { in buildSelectSql() 250 private static String buildInsertSql(String tableName, ColumnInfo[] columns) { in buildInsertSql() argument 254 for (ColumnInfo columnInfo : columns) { in buildInsertSql() 262 for (int i = 1; i < columns.length; ++i) { in buildInsertSql() 269 private static String buildUpdateSql(String tableName, ColumnInfo[] columns) { in buildUpdateSql() argument [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | EntrySchema.java | 52 ColumnInfo[] columns = parseColumnInfo(clazz); in EntrySchema() local 54 mColumnInfo = columns; in EntrySchema() 59 if (columns != null) { in EntrySchema() 60 projection = new String[columns.length]; in EntrySchema() 61 for (int i = 0; i != columns.length; ++i) { in EntrySchema() 62 ColumnInfo column = columns[i]; in EntrySchema() 460 ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); in parseColumnInfo() local 462 parseColumnInfo(clazz, columns); in parseColumnInfo() 467 ColumnInfo[] columnList = new ColumnInfo[columns.size()]; in parseColumnInfo() 468 columns.toArray(columnList); in parseColumnInfo() [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyDatabaseHelperTest.java | 368 String[] columns = cursor.getColumnNames(); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() local 369 Log.d(TAG, "carriers columns: " + Arrays.toString(columns)); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() 371 assertTrue(Arrays.asList(columns).contains(Carriers.LINGERING_NETWORK_TYPE_BITMASK)); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() 372 assertTrue(Arrays.asList(columns).contains(Carriers.ALWAYS_ON)); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() 373 assertTrue(Arrays.asList(columns).contains(Carriers.MTU_V4)); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() 374 assertTrue(Arrays.asList(columns).contains(Carriers.MTU_V6)); in databaseHelperOnUpgrade_hasLingeringNetworkTypeAlwaysOnMtuFields() 523 String[] columns = cursor.getColumnNames(); in databaseHelperOnUpgrade_hasInfrastructureFields() local 524 Log.d(TAG, "carriers columns: " + Arrays.toString(columns)); in databaseHelperOnUpgrade_hasInfrastructureFields() 526 assertTrue(Arrays.asList(columns).contains(Carriers.INFRASTRUCTURE_BITMASK)); in databaseHelperOnUpgrade_hasInfrastructureFields() 538 String[] columns = cursor.getColumnNames(); in databaseHelperOnUpgrade_hasEsimBootstrapProvisioningFields() local [all …]
|
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 321 final String[] columns = new String[] { in testRestoreIdForRootDocuments() local 336 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 354 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 369 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForRootDocuments() 384 final String[] columns = new String[] { in testRestoreIdForChildDocuments() local 406 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments() 419 final Cursor cursor = mDatabase.queryChildDocuments(columns, "2"); in testRestoreIdForChildDocuments() 437 final String[] columns = new String[] { in testRestoreIdForDifferentDevices() local 463 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices() 509 final Cursor cursor = mDatabase.queryRootDocuments(columns); in testRestoreIdForDifferentDevices() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
D | TvProviderUtilsTest.java | 99 Set<String> columns = in testGetExistingColumns_noException() local 102 assertThat(columns).containsExactly("column 1", "column 2"); in testGetExistingColumns_noException() 110 Set<String> columns = in testGetExistingColumns_throwsException() local 113 assertThat(columns).isEmpty(); in testGetExistingColumns_throwsException()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoDatabase.java | 136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { in createTable() argument 140 for (String[] column : columns) { in createTable() 173 …protected static void addToTable(List<String[]> createTable, String[][] columns, String[][] constr… in addToTable() argument 174 if (columns != null) { in addToTable() 175 for (String[] column: columns) { in addToTable()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/ |
D | MigrationTestHelper.java | 116 String[] columns = cursor.getColumnNames(); in cursorRowToContentValues() local 118 for (int i = 0; i < columns.length; i++) { in cursorRowToContentValues() 121 values.put(columns[i], cursor.getDouble(i)); in cursorRowToContentValues() 124 values.put(columns[i], cursor.getLong(i)); in cursorRowToContentValues() 128 values.put(columns[i], cursor.getString(i)); in cursorRowToContentValues()
|