Home
last modified time | relevance | path

Searched refs:value_or_default (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tools/aapt2/configuration/
DConfigurationParser_test.cpp36 << ", target=" << sdk.target_sdk_version.value_or_default(-1) in PrintTo()
37 << ", max=" << sdk.max_sdk_version.value_or_default(-1); in PrintTo()
/frameworks/base/tools/aapt2/
DDebug.cpp293 const ResourceId id(package->id.value_or_default(0), type->id.value_or_default(0), in PrintTable()
294 entry->id.value_or_default(0)); in PrintTable()
485 attr.compiled_attribute.value().id.value_or_default(ResourceId(0)).to_string()); in Visit()
DResourceValues.cpp119 const ResourceId resid = id.value_or_default(ResourceId(0)); in Flatten()
1103 int cmp = a.name.value_or_default({}).compare(b.name.value_or_default({})); in operator <()
DResourceParser.cpp1359 attr->min_int = maybe_min.value_or_default(std::numeric_limits<int32_t>::min()); in ParseAttrImpl()
1360 attr->max_int = maybe_max.value_or_default(std::numeric_limits<int32_t>::max()); in ParseAttrImpl()
/frameworks/base/tools/aapt2/util/
DMaybe.h92 T value_or_default(const T& def) const;
262 T Maybe<T>::value_or_default(const T& def) const { in value_or_default() function
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator.cpp219 const ResourceId lhs_id = lhs.attr_ref->id.value_or_default(ResourceId(0)); in operator <()
220 const ResourceId rhs_id = rhs.attr_ref->id.value_or_default(ResourceId(0)); in operator <()
344 const ResourceId id = sorted_attributes[i].attr_ref->id.value_or_default(ResourceId(0)); in ProcessStyleable()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp400 pb_ref->set_id(ref.id.value_or_default(ResourceId(0x0)).id); in SerializeReferenceToPb()
682 const ResourceId attr_id = attr.compiled_attribute.value().id.value_or_default({}); in SerializeXmlToPb()
688 pb_src->set_line_number(attr.compiled_value->GetSource().line.value_or_default(0)); in SerializeXmlToPb()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp372 context->SetMinSdkVersion(out_options->app_info.min_sdk_version.value_or_default(0)); in ExtractAppDataFromManifest()
DLink.cpp1235 options_.custom_java_package.value_or_default(context_->GetCompilationPackage()); in WriteManifestJavaFile()
1627 app_info_.split_name.value_or_default("feature").c_str()); in WriteApk()
1699 context_->SetMinSdkVersion(app_info_.min_sdk_version.value_or_default(0)); in Run()
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp128 if (!ResourceUtils::ParseBool(attr->value).value_or_default(false)) { in AutoGenerateIsFeatureSplit()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp320 ResourceId id(package->id.value_or_default(0x0), type_spec->id, static_cast<size_t>(i)); in ParseTypeSpec()