/frameworks/base/core/tests/coretests/src/android/widget/layout/table/ |
H A D | WeightTest.java | 17 package android.widget.layout.table; 19 import android.widget.layout.table.Weight; 27 * {@link android.widget.layout.table.Weight} is
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | TableMaskFilter.java | 24 public TableMaskFilter(byte[] table) { argument 25 if (table.length < 256) { 26 throw new RuntimeException("table.length must be >= 256"); 28 native_instance = nativeNewTable(table); 43 private static native long nativeNewTable(byte[] table); argument
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 744 ALOGW("No memory trying to allocate decode cache table of %d bytes\n", 3188 // table that defined the package); the ones after are skins on top of it. 3292 // The table mapping dynamic references to resolved references for 3304 ResTable::Theme::Theme(const ResTable& table) argument 3305 : mTable(table) 3649 LOG_FATAL_IF(mError != NO_ERROR, "Error parsing resource table"); 3817 ALOGW("Bad resource table: header size 0x%x or total size 0x%x is larger than data size 0x%x\n", 3823 ALOGW("Bad resource table: header size 0x%x or total size 0x%x is not on an integer boundary\n", 3858 ALOGW("Multiple string chunks found in resource table."); 3873 ALOGW("Unknown chunk type 0x%x in table a [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | AppAsLib_test.cpp | 32 ResTable table; local 33 ASSERT_EQ(NO_ERROR, table.add(appaslib_arsc, appaslib_arsc_len)); 36 ssize_t block = table.getResource(appaslib::R::app::integer::number1, &val); 44 ResTable table; local 46 ASSERT_EQ(NO_ERROR, table.add(appaslib_arsc, appaslib_arsc_len, NULL, 0, -1, false, true)); 49 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val); 57 ResTable table; local 59 ASSERT_EQ(NO_ERROR, table.add(appaslib_lib_arsc, appaslib_lib_arsc_len, NULL, 0, -1, false, true)); 62 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val);
|
H A D | ResTable_test.cpp | 36 * Include a binary resource table. 43 * Include a binary library resource table. 50 * Include a system resource table. 57 ResTable table; local 58 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 62 ResTable table; local 63 ASSERT_EQ(NO_ERROR, table.add(basic_arsc, basic_arsc_len)); 65 EXPECT_TRUE(IsStringEqual(table, base::R::string::test1, "test1")); 69 ResTable table; local 70 ASSERT_EQ(NO_ERROR, table 82 ResTable table; local 102 ResTable table; local 122 ResTable table; local 142 ResTable table; local 158 ResTable table; local 186 ResTable table; local 212 ResTable table; local 320 ResTable table; local 345 ResTable table; local [all...] |
H A D | Split_test.cpp | 31 * Include a binary resource table. This table 32 * is a base table for an APK split. 39 * Include a binary resource table. This table 40 * is a configuration split table for an APK split. 50 * Include a binary resource table. This table 51 * is a feature split table for an APK split. 66 ResTable table; local 74 ResTable table; local 99 ResTable table; local 120 ResTable table; local 150 ResTable table; local 175 ResTable table; local 197 ResTable table; local 213 ResTable table; local 234 ResTable table; local [all...] |
H A D | TestHelpers.cpp | 25 ::testing::AssertionResult IsStringEqual(const ResTable& table, uint32_t resourceId, const char* expectedStr) { argument 27 ssize_t block = table.getResource(resourceId, &val, MAY_NOT_BE_BAG); 36 const ResStringPool* pool = table.getTableStringBlock(block); 38 return ::testing::AssertionFailure() << "table has no string pool for block " << block;
|
H A D | Theme_test.cpp | 40 ResTable table; local 41 ASSERT_EQ(NO_ERROR, table.add(system_arsc, system_arsc_len)); 42 ASSERT_EQ(NO_ERROR, table.add(app_arsc, app_arsc_len)); 44 ResTable::Theme theme1(table);
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | DatabaseHelper.java | 207 // Only create the global table for the singleton 'owner/system' user 232 // Populate bookmarks table with initial bookmarks 334 // This introduces the new secure settings table. 1675 // In the owner user, the global table exists so we can migrate the 1676 // entry from there to the secure table, preserving its value. 1682 // Secondary users' dbs don't have the global table, so institute the 1993 // Copy settings values from the source table to the dest, and remove from the source 2025 * Move any settings with the given prefixes from the source table to the 2026 * destination table. 2351 // The global table onl 2757 getIntValueFromTable(SQLiteDatabase db, String table, String name, int defaultValue) argument 2763 getStringValueFromTable(SQLiteDatabase db, String table, String name, String defaultValue) argument [all...] |
H A D | SettingsProvider.java | 310 return "vnd.android.cursor.dir/" + args.table; 312 return "vnd.android.cursor.item/" + args.table; 326 // If a legacy table that is gone, done. 327 if (REMOVED_LEGACY_TABLES.contains(args.table)) { 331 switch (args.table) { 373 String table = getValidTableOrThrow(uri); 375 // If a legacy table that is gone, done. 376 if (REMOVED_LEGACY_TABLES.contains(table)) { 387 switch (table) { 440 // If a legacy table tha 1539 public final String table; field in class:SettingsProvider.Arguments 1881 migrateLegacySettingsLocked(SettingsState settingsState, SQLiteDatabase database, String table) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 896 // alpha. This allows us to reencode the color table more 1584 ResourceTable* table, const sp<AaptFile>& file) 1592 return compileXmlFile(bundle, assets, resourceName, file, table); 1583 postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets, ResourceTable* table, const sp<AaptFile>& file) argument
|
H A D | Resource.cpp | 298 ResourceTable* table, 329 table->addEntry(SourcePos(it.getPath(), 0), String16(assets->getPackage()), 476 static int validateAttr(const String8& path, const ResTable& table, argument 490 if ((strIdx=table.resolveReference(&value, 0x10000000, NULL, &specFlags)) < 0) { 498 pool = table.getTableStringBlock(strIdx); 954 const ResTable& table = assets.getResources(true); local 956 ssize_t idx = table.getResource(0x01010000, &val, true); 960 ssize_t cnt = table.lockBag(0x01010000, &entry); 964 table.unlockBag(entry); 970 return table 297 makeFileResources(Bundle* bundle, const sp<AaptAssets>& assets, ResourceTable* table, const sp<ResourceTypeSet>& set, const char* resType) argument 1087 generateAndroidManifestForSplit(Bundle* bundle, const sp<AaptAssets>& assets, const sp<ApkSplit>& split, sp<AaptFile>& outFile, ResourceTable* table) argument [all...] |
H A D | ResourceTable.cpp | 46 ResourceTable* table, 54 return compileXmlFile(bundle, assets, resourceName, root, target, table, options); 62 ResourceTable* table, 70 return compileXmlFile(bundle, assets, resourceName, root, outTarget, table, options); 78 ResourceTable* table, 91 if (table->processBundleFormat(bundle, resourceName, target, root) != NO_ERROR) { 97 status_t err = root->assignResourceIds(assets, table); 104 status_t err = root->parseValues(assets, table); 114 if (table->modifyForCompat(bundle, resourceName, target, root) != NO_ERROR) { 515 enumOrFlagsComment.append(String16("</p>\n<table>\ 42 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<AaptFile>& target, ResourceTable* table, int options) argument 57 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<AaptFile>& target, const sp<AaptFile>& outTarget, ResourceTable* table, int options) argument 73 compileXmlFile(const Bundle* bundle, const sp<AaptAssets>& assets, const String16& resourceName, const sp<XMLNode>& root, const sp<AaptFile>& target, ResourceTable* table, int options) argument 1786 findLargestTypeIdForPackage(const ResTable& table, const String16& packageName) argument 2873 const ResTable& table = mAssets->getIncludedResources(); local 3591 generateAttributes(ResourceTable* table, const String16& package) argument 3639 assignResourceIds(ResourceTable* table, const String16& ) argument 3676 prepareFlatten(StringPool* strings, ResourceTable* table, const String8* configTypeName, const ConfigDescription* config) argument [all...] |
/frameworks/base/tools/aapt2/ |
H A D | Debug.cpp | 119 void Debug::printTable(ResourceTable* table, const DebugPrintTableOptions& options) { argument 122 for (auto& package : table->packages) { 185 void Debug::printStyleGraph(ResourceTable* table, const ResourceName& targetStyle) { argument 198 Maybe<ResourceTable::SearchResult> result = table->findResource(styleName);
|
H A D | ResourceParser.cpp | 83 static bool addResourcesToTable(ResourceTable* table, IDiagnostics* diag, ParsedResource* res) { argument 95 if (!table->setSymbolState(res->name, res->id, symbol, diag)) { 105 if (!table->addResource(res->name, res->id, res->config, res->product, 113 error |= !addResourcesToTable(table, diag, &child); 124 ResourceParser::ResourceParser(IDiagnostics* diag, ResourceTable* table, const Source& source, argument 127 mDiag(diag), mTable(table), mSource(source), mConfig(config), mOptions(options) { 496 // name.package can be empty here, as it will assume the package name of the table. 1225 // Create the ParsedResource that will add the attribute to the table.
|
H A D | ResourceParser_test.cpp | 36 ResourceTable table; local 37 ResourceParser parser(context->getDiagnostics(), &table, Source{ "test" }, {});
|
H A D | ResourceTable_test.cpp | 32 ResourceTable table; local 34 EXPECT_FALSE(table.addResource( 40 EXPECT_FALSE(table.addResource( 48 ResourceTable table; local 50 EXPECT_TRUE(table.addResource(test::parseNameOrDie(u"@android:attr/id"), 57 ASSERT_NE(nullptr, test::getValue<Id>(&table, u"@android:attr/id")); 61 ResourceTable table; local 67 EXPECT_TRUE(table.addResource( 74 EXPECT_TRUE(table.addResource( 81 EXPECT_TRUE(table 105 ResourceTable table; local 123 ResourceTable table; local [all...] |
H A D | ValueVisitor.h | 155 inline void visitAllValuesInTable(ResourceTable* table, RawValueVisitor* visitor) { argument 156 for (auto& pkg : table->packages) {
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Compile.cpp | 187 ResourceTable table; local 205 ResourceParser resParser(context->getDiagnostics(), &table, pathData.source, 219 if (!pseudolocaleGenerator.consume(context, &table)) { 225 table.createPackage(context->getCompilationPackage()); 228 for (auto& pkg : table.packages) { 241 std::unique_ptr<pb::ResourceTable> pbTable = serializeTableToPb(&table);
|
H A D | IdAssigner.cpp | 29 bool IdAssigner::consume(IAaptContext* context, ResourceTable* table) { argument 33 for (auto& package : table->packages) {
|
H A D | IdAssigner_test.cpp | 26 ::testing::AssertionResult verifyIds(ResourceTable* table); 29 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() local 39 ASSERT_TRUE(assigner.consume(context.get(), table.get())); 40 ASSERT_TRUE(verifyIds(table.get())); 44 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() local 56 ASSERT_TRUE(assigner.consume(context.get(), table.get())); 57 ASSERT_TRUE(verifyIds(table.get())); 61 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() local 71 ASSERT_FALSE(assigner.consume(context.get(), table.get())); 74 ::testing::AssertionResult verifyIds(ResourceTable* table) { argument [all...] |
H A D | PseudolocaleGenerator.cpp | 243 bool PseudolocaleGenerator::consume(IAaptContext* context, ResourceTable* table) { argument 244 for (auto& package : table->packages) { 251 &table->stringPool, entry.get()); 253 &table->stringPool, entry.get());
|
H A D | PseudolocaleGenerator_test.cpp | 76 std::unique_ptr<ResourceTable> table = test::ResourceTableBuilder() local 85 String* val = test::getValue<String>(table.get(), u"@android:string/four"); 90 ASSERT_TRUE(generator.consume(context.get(), table.get())); 93 ASSERT_NE(nullptr, test::getValueForConfig<String>(table.get(), u"@android:string/one", 95 ASSERT_NE(nullptr, test::getValueForConfig<String>(table.get(), u"@android:string/one", 99 ASSERT_EQ(nullptr, test::getValueForConfig<String>(table.get(), u"@android:string/two", 101 ASSERT_EQ(nullptr, test::getValueForConfig<String>(table.get(), u"@android:string/two", 106 val = test::getValueForConfig<String>(table.get(), u"@android:string/three", 111 ASSERT_NE(nullptr, test::getValueForConfig<String>(table.get(), u"@android:string/three", 115 ASSERT_EQ(nullptr, test::getValueForConfig<String>(table [all...] |
/frameworks/base/tools/aapt2/dump/ |
H A D | Dump.cpp | 49 std::unique_ptr<ResourceTable> table = deserializeTableFromPb(pbTable, source, local 51 if (!table) { 55 Debug::printTable(table.get()); 78 std::unique_ptr<ResourceTable> table = deserializeTableFromPb( local 80 if (table) { 83 Debug::printTable(table.get(), debugPrintTableOptions); 97 // Try as a compiled table.
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | TableFlattener.cpp | 440 // The binary resource table lists resource entries for each configuration. 442 // configuration available. Here we reverse this to match the binary table. 467 bool TableFlattener::consume(IAaptContext* context, ResourceTable* table) { argument 469 table->stringPool.sort([](const StringPool::Entry& a, const StringPool::Entry& b) -> bool { 478 table->stringPool.prune(); 483 tableHeader->packageCount = util::hostToDevice32(table->packages.size()); 486 StringPool::flattenUtf8(tableWriter.getBuffer(), table->stringPool); 491 for (auto& package : table->packages) {
|