Home
last modified time | relevance | path

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

1234567

/frameworks/base/libs/androidfw/tests/
DSplit_test.cpp67 ResTable table; in TEST_F() local
69 table.add(basic_contents_.data(), basic_contents_.size())); in TEST_F()
76 ResTable table; in TEST_F() local
77 table.setParameters(&frenchConfig); in TEST_F()
80 table.add(basic_contents_.data(), basic_contents_.size())); in TEST_F()
87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F()
105 ResTable table; in TEST_F() local
106 table.setParameters(&expectedConfig); in TEST_F()
109 table.add(basic_contents_.data(), basic_contents_.size())); in TEST_F()
110 ASSERT_EQ(NO_ERROR, table.add(basic_de_fr_contents_.data(), in TEST_F()
[all …]
DResTable_test.cpp40 ResTable table; in TEST() local
41 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
49 ResTable table; in TEST() local
50 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
55 table.setParameters(&config); in TEST()
60 table.identifierForName(name.string(), name.size(), nullptr, 0, nullptr, 0, &flags); in TEST()
66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config), in TEST()
77 ResTable table; in TEST() local
78 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
80 EXPECT_TRUE(IsStringEqual(table, basic::R::string::test1, "test1")); in TEST()
[all …]
DAppAsLib_test.cpp34 ResTable table; in TEST() local
35 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size())); in TEST()
38 ssize_t block = table.getResource(app::R::integer::number1, &val); in TEST()
51 ResTable table; in TEST() local
53 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size(), NULL, 0, -1, in TEST()
57 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST()
70 ResTable table; in TEST() local
72 ASSERT_EQ(NO_ERROR, table.add(contents.data(), contents.size(), NULL, 0, -1, in TEST()
76 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST()
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp30 ResourceTable table; in TEST() local
32 EXPECT_FALSE(table.AddResource( in TEST()
37 EXPECT_FALSE(table.AddResource( in TEST()
44 ResourceTable table; in TEST() local
46 EXPECT_TRUE(table.AddResourceAllowMangled( in TEST()
52 ResourceTable table; in TEST() local
54 EXPECT_TRUE(table.AddResource( in TEST()
59 ASSERT_NE(nullptr, test::GetValue<Id>(&table, "android:attr/id")); in TEST()
63 ResourceTable table; in TEST() local
69 EXPECT_TRUE(table.AddResource( in TEST()
[all …]
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp29 ResourceTable table; in TEST() local
30 ASSERT_TRUE(table.AddResource( in TEST()
34 ASSERT_TRUE(table.AddResource( in TEST()
39 ASSERT_TRUE(table.AddResource( in TEST()
43 ASSERT_TRUE(table.AddResource( in TEST()
49 ASSERT_TRUE(filter.Consume(context.get(), &table)); in TEST()
52 &table, "android:string/one", land, "")); in TEST()
54 &table, "android:string/one", land, "tablet")); in TEST()
56 &table, "android:string/one", port, "")); in TEST()
58 &table, "android:string/one", port, "tablet")); in TEST()
[all …]
DReferenceLinker_test.cpp26 std::unique_ptr<ResourceTable> table = in TEST() local
46 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
54 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST()
56 Reference* ref = test::GetValue<Reference>(table.get(), "com.app.test:string/foo"); in TEST()
61 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/bar"); in TEST()
66 ref = test::GetValue<Reference>(table.get(), "com.app.test:string/baz"); in TEST()
73 std::unique_ptr<ResourceTable> table = in TEST() local
89 Style* style = test::GetValue<Style>(table.get(), "com.app.test:style/Theme"); in TEST()
92 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
118 ASSERT_TRUE(linker.Consume(context.get(), table.get())); in TEST()
[all …]
DPrivateAttributeMover_test.cpp26 std::unique_ptr<ResourceTable> table = in TEST() local
39 ASSERT_TRUE(mover.Consume(context.get(), table.get())); in TEST()
41 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
60 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST() local
66 ASSERT_TRUE(mover.Consume(context.get(), table.get())); in TEST()
68 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
81 std::unique_ptr<ResourceTable> table = in TEST() local
87 ResourceTablePackage* package = table->FindPackage("android"); in TEST()
93 ASSERT_TRUE(mover.Consume(context.get(), table.get())); in TEST()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/procstats/
DSparseMappingTableTest.java51 final SparseMappingTable.Table table = new SparseMappingTable.Table(data); in testParcelingEmpty() local
57 table.writeToParcel(tableParcel); in testParcelingEmpty()
79 final SparseMappingTable.Table table = new SparseMappingTable.Table(data); in testParceling() local
81 key = table.getOrAddKey(ID1, 1); in testParceling()
82 table.setValue(key, VALUE1); in testParceling()
84 key = table.getOrAddKey(ID2, 1); in testParceling()
85 table.setValue(key, VALUE2); in testParceling()
91 table.writeToParcel(tableParcel); in testParceling()
120 final SparseMappingTable.Table table = new SparseMappingTable.Table(data); in testParcelingWithReset() local
122 key = table.getOrAddKey(ID1, 1); in testParcelingWithReset()
[all …]
/frameworks/base/tools/aapt2/optimize/
DVersionCollapser_test.cpp40 std::unique_ptr<ResourceTable> table = BuildTableWithConfigs( in TEST() local
45 ASSERT_TRUE(collapser.Consume(context.get(), table.get())); in TEST()
49 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
52 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
57 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
62 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
67 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
70 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
73 test::GetValueForConfig<Id>(table.get(), res_name, in TEST()
83 std::unique_ptr<ResourceTable> table = BuildTableWithConfigs( in TEST() local
[all …]
DResourceDeduper_test.cpp32 std::unique_ptr<ResourceTable> table = in TEST() local
49 ASSERT_TRUE(ResourceDeduper().Consume(context.get(), table.get())); in TEST()
51 table.get(), "android:string/dedupe", en_config)); in TEST()
53 table.get(), "android:string/dedupe", land_config)); in TEST()
55 table.get(), "android:string/dedupe2", en_config)); in TEST()
57 table.get(), "android:string/dedupe2", en_v21_config)); in TEST()
68 std::unique_ptr<ResourceTable> table = in TEST() local
78 ASSERT_TRUE(ResourceDeduper().Consume(context.get(), table.get())); in TEST()
80 table.get(), "android:string/keep", en_config)); in TEST()
82 table.get(), "android:string/keep", en_v21_config)); in TEST()
[all …]
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp24 std::unique_ptr<ResourceTable> table = in TEST() local
44 splitter.SplitTable(table.get()); in TEST()
47 table.get(), "android:drawable/icon", in TEST()
50 table.get(), "android:drawable/icon", in TEST()
53 table.get(), "android:drawable/icon", in TEST()
56 table.get(), "android:drawable/icon", in TEST()
58 EXPECT_NE(nullptr, test::GetValue<Id>(table.get(), "android:string/one")); in TEST()
62 std::unique_ptr<ResourceTable> table = in TEST() local
83 splitter.SplitTable(table.get()); in TEST()
88 table.get(), "android:drawable/icon", in TEST()
[all …]
/frameworks/base/tools/aapt2/compile/
DIdAssigner_test.cpp23 ::testing::AssertionResult VerifyIds(ResourceTable* table);
26 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() in TEST() local
36 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST()
37 ASSERT_TRUE(VerifyIds(table.get())); in TEST()
41 std::unique_ptr<ResourceTable> table = in TEST() local
59 ASSERT_TRUE(assigner.Consume(context.get(), table.get())); in TEST()
60 ASSERT_TRUE(VerifyIds(table.get())); in TEST()
66 maybe_result = table->FindResource(test::ParseNameOrDie("android:dimen/two")); in TEST()
71 table->FindResource(test::ParseNameOrDie("android:integer/three")); in TEST()
79 table->FindResource(test::ParseNameOrDie("android:string/five")); in TEST()
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp30 std::unique_ptr<ResourceTable> table = in TEST() local
39 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
42 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
49 std::unique_ptr<ResourceTable> table = in TEST() local
65 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
68 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
86 std::unique_ptr<ResourceTable> table = in TEST() local
96 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
99 JavaClassGenerator generator(context.get(), table.get(), {}); in TEST()
112 std::unique_ptr<ResourceTable> table = in TEST() local
[all …]
/frameworks/base/tools/aapt2/flatten/
DTableFlattener_test.cpp41 ResourceTable* table, std::string* out_content) { in Flatten() argument
44 if (!flattener.Consume(context, table)) { in Flatten()
52 ResourceTable* table, ResTable* out_table) { in Flatten() argument
54 auto result = Flatten(context, options, table, &content); in Flatten()
66 ResourceTable* table, ResourceTable* out_table) { in Flatten() argument
68 auto result = Flatten(context, options, table, &content); in Flatten()
80 ::testing::AssertionResult Exists(ResTable* table, in Exists() argument
89 table->setParameters(&expected_config); in Exists()
94 if (table->getResource(expected_id.id, &val, false, 0, &spec_flags, in Exists()
119 if (!table->getResourceName(expected_id.id, false, &actual_name)) { in Exists()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DFakeSettingsProvider.java80 private Uri getUriFor(String table, String key) { in getUriFor() argument
81 switch (table) { in getUriFor()
89 throw new UnsupportedOperationException("Unknown settings table " + table); in getUriFor()
97 String table = commands[1]; in call() local
103 value = mTables.get(table).get(arg); in call()
107 table, arg, value)); in call()
116 table, arg, value)); in call()
119 mTables.get(table).put(arg, value); in call()
121 mTables.get(table).remove(arg); in call()
/frameworks/wilhelm/tests/examples/
DxaVideoDecoderCapabilities.cpp64 const char *id_to_string(XAuint32 id, const id_to_string_t *table, size_t numEntries) in id_to_string() argument
68 if (id == table[i].id) { in id_to_string()
69 return table[i].string; in id_to_string()
83 const char *id_pair_to_string(XAuint32 id1, XAuint32 id2, const id_pair_to_string_t *table, in id_pair_to_string() argument
88 if (id1 == table[i].id1) { in id_pair_to_string()
89 return id_to_string(id2, table[i].id2_table, table[i].id2_numEntries); in id_pair_to_string()
148 static const id_pair_to_string_t table[] = { in videoProfileToString() local
155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0])); in videoProfileToString()
212 static const id_pair_to_string_t table[] = { in videoLevelToString() local
219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0])); in videoLevelToString()
/frameworks/base/tools/preload/
Dsorttable.js34 forEach(document.getElementsByTagName('table'), function(table) { argument
35 if (table.className.search(/\bsortable\b/) != -1) {
36 sorttable.makeSortable(table);
42 makeSortable: function(table) { argument
43 if (table.getElementsByTagName('thead').length == 0) {
47 the.appendChild(table.rows[0]);
48 table.insertBefore(the,table.firstChild);
51 if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0];
53 if (table.tHead.rows.length != 1) return; // can't cope with two header rows
60 for (var i=0; i<table.rows.length; i++) {
[all …]
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() argument
100 return query(db, table, columns, null, null, orderBy, null); in query()
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() argument
108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update() argument
116 return db.update(table, values, getSelection(), getSelectionArgs()); in update()
122 public int delete(SQLiteDatabase db, String table) { in delete() argument
123 return db.delete(table, getSelection(), getSelectionArgs()); in delete()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp49 std::unique_ptr<ResourceTable> table; in TryDumpFile() local
69 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
70 if (!table) { in TryDumpFile()
75 if (!table) { in TryDumpFile()
85 table = util::make_unique<ResourceTable>(); in TryDumpFile()
86 BinaryResourceParser parser(context, table.get(), Source(file_path), data->data(), in TryDumpFile()
95 if (!table) { in TryDumpFile()
107 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
110 if (!table) { in TryDumpFile()
138 if (table) { in TryDumpFile()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dlsp_lsf.cpp111 extern const Word16 table[];
231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >> 8; in Lsf_lsp()
232 lsp[i] = add(table[ind], (Word16) L_tmp, pOverflow); in Lsf_lsp()
367 while (table[ind] < temp) in Lsp_lsf()
375 L_tmp = (Word32)(temp - table[ind]) * slope[ind]; in Lsp_lsf()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsService.java307 private List<String> listForUser(IContentProvider provider, int userHandle, String table) { in listForUser() argument
308 final Uri uri = "system".equals(table) ? Settings.System.CONTENT_URI in listForUser()
309 : "secure".equals(table) ? Settings.Secure.CONTENT_URI in listForUser()
310 : "global".equals(table) ? Settings.Global.CONTENT_URI in listForUser()
336 final String table, final String key) { in getForUser() argument
338 if ("system".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SYSTEM; in getForUser()
339 else if ("secure".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_SECURE; in getForUser()
340 else if ("global".equals(table)) callGetCommand = Settings.CALL_METHOD_GET_GLOBAL; in getForUser()
343 throw new IllegalArgumentException("Invalid table " + table); in getForUser()
360 void putForUser(IContentProvider provider, int userHandle, final String table, in putForUser() argument
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp220 const android::ResTable& table = assets_.getResources(false); in GetAssignedPackageIds() local
221 const size_t package_count = table.getBasePackageCount(); in GetAssignedPackageIds()
223 package_map[table.getBasePackageId(i)] = in GetAssignedPackageIds()
224 util::Utf16ToUtf8(android::StringPiece16(table.getBasePackageName(i).string())); in GetAssignedPackageIds()
230 const android::ResTable& table, ResourceId id) { in LookupAttributeInTable() argument
233 ssize_t count = table.lockBag(id.id, &entry); in LookupAttributeInTable()
235 table.unlockBag(entry); in LookupAttributeInTable()
266 if (!table.getResourceName(map_entry.name.ident, false, &entry_name)) { in LookupAttributeInTable()
267 table.unlockBag(entry); in LookupAttributeInTable()
283 table.unlockBag(entry); in LookupAttributeInTable()
[all …]
DSymbolTable_test.cpp24 std::unique_ptr<ResourceTable> table = in TEST() local
32 ResourceTableSymbolSource symbol_source(table.get()); in TEST()
43 std::unique_ptr<ResourceTable> table = in TEST() local
49 ResourceTableSymbolSource symbol_source(table.get()); in TEST()
57 std::unique_ptr<ResourceTable> table = in TEST() local
65 symbol_table.AppendSource(util::make_unique<ResourceTableSymbolSource>(table.get())); in TEST()
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp242 const std::vector<uint8_t>& table) { in appendTable() argument
244 out.insert(out.end(), table.begin(), table.end()); in appendTable()
439 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST() local
440 table.resize(2); // Remove trailing data. in TEST()
443 builder.appendTable(0, 0, table); in TEST()
452 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'a', 'a'})); in TEST() local
453 writeU16(5000, table.data(), 6 /* segment count offset */); // 5000 segments. in TEST()
455 builder.appendTable(0, 0, table); in TEST()
464 std::vector<uint8_t> table = buildCmapFormat4Table(std::vector<uint16_t>({'b', 'b'})); in TEST() local
466 writeU16('a', table.data(), 14 /* the first element of endCount offset */); in TEST()
[all …]
/frameworks/base/graphics/java/android/graphics/
DTableMaskFilter.java24 public TableMaskFilter(byte[] table) { in TableMaskFilter() argument
25 if (table.length < 256) { in TableMaskFilter()
28 native_instance = nativeNewTable(table); in TableMaskFilter()
43 private static native long nativeNewTable(byte[] table); in nativeNewTable() argument

1234567