Home
last modified time | relevance | path

Searched refs:variant (Results 1 – 25 of 128) sorted by relevance

123456

/frameworks/native/include/ftl/
Dmatch.h46 decltype(auto) match(std::variant<Ts...>& variant, Ms&&... matchers) { in decltype()
50 return details::Match<Ts...>::match(variant, matcher); in decltype()
54 decltype(auto) match(const std::variant<Ts...>& variant, Ms&&... matchers) { in decltype()
59 return details::Match<Ts...>::match(variant, matcher); in decltype()
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DMockableTextToSpeechService.java40 protected int onIsLanguageAvailable(String lang, String country, String variant) { in onIsLanguageAvailable() argument
41 return sDelegate.onIsLanguageAvailable(lang, country, variant); in onIsLanguageAvailable()
50 protected int onLoadLanguage(String lang, String country, String variant) { in onLoadLanguage() argument
51 return sDelegate.onLoadLanguage(lang, country, variant); in onLoadLanguage()
65 int onIsLanguageAvailable(String lang, String country, String variant); in onIsLanguageAvailable() argument
69 int onLoadLanguage(String lang, String country, String variant); in onLoadLanguage() argument
/frameworks/native/include/ftl/details/
Dmatch.h42 static decltype(auto) match(Variant& variant, const Matcher& matcher) {
43 if (auto* const ptr = std::get_if<T>(&variant)) {
46 return Match<U, Ts...>::match(variant, matcher);
54 static decltype(auto) match(Variant& variant, const Matcher& matcher) {
55 return matcher(std::get<T>(variant));
/frameworks/opt/setupwizard/tools/gradle/
Ddocs.gradle11 android.libraryVariants.all { variant ->
12 if (variant.buildType.name.equals(com.android.builder.core.BuilderConstants.DEBUG)) {
15 def suffix = variant.name.capitalize()
19 source variant.javaCompile.source
20 classpath = files(variant.javaCompile.classpath.files) + files(
41 dependsOn(variant.assemble)
Ddist-library-instrumentation-tests.gradle17 android.testVariants.all { variant ->
19 tasks.dist.dependsOn variant.assemble
24 variant.outputs.each { output ->
28 android.libraryVariants.all { variant ->
30 variant.outputs.each { output ->
Ddist-unit-tests.gradle16 android.unitTestVariants.all { variant ->
17 def task = tasks.findByName('test' + variant.name.capitalize())
62 android.unitTestVariants.all { variant ->
63 def testTaskName = "test${variant.name.capitalize()}"
70 description = "Generate a Jacoco coverage report for robolectric tests on ${variant.name}."
74 "${variant.productFlavors[0].name}/${variant.buildType.name}",
81 sourceDirectories = files(variant.testedVariant.sourceSets.collect { it.java.srcDirs })
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerHierarchy.cpp98 void LayerHierarchy::addChild(LayerHierarchy* child, LayerHierarchy::Variant variant) { in addChild() argument
99 insertSorted(mChildren, {child, variant}); in addChild()
117 void LayerHierarchy::updateChild(LayerHierarchy* hierarchy, LayerHierarchy::Variant variant) { in updateChild() argument
125 it->second = variant; in updateChild()
283 for (auto& [child, variant] : hierarchy->mChildren) { in onLayerDestroyed()
284 if (variant == LayerHierarchy::Variant::Attached || in onLayerDestroyed()
285 variant == LayerHierarchy::Variant::Detached) { in onLayerDestroyed()
288 } else if (variant == LayerHierarchy::Variant::Relative) { in onLayerDestroyed()
415 {.id = UNASSIGNED_LAYER_ID, .variant = LayerHierarchy::Attached};
453 LayerHierarchy::Variant variant) in ScopedAddToTraversalPath() argument
[all …]
/frameworks/base/tools/split-select/
DAbi.cpp44 Family getFamily(Variant variant) { in getFamily() argument
45 switch (variant) { in getFamily()
76 const char* toString(Variant variant) { in toString() argument
77 switch (variant) { in toString()
DAbi.h43 Family getFamily(Variant variant);
45 const char* toString(Variant variant);
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp49 NativeFamilyBuilder(uint32_t langId, int variant) in NativeFamilyBuilder()
50 : langId(langId), variant(static_cast<minikin::FamilyVariant>(variant)) {} in NativeFamilyBuilder()
52 minikin::FamilyVariant variant; member
69 static jlong FontFamily_initBuilder(JNIEnv* env, jobject clazz, jstring langs, jint variant) { in FontFamily_initBuilder() argument
73 builder = new NativeFamilyBuilder(minikin::registerLocaleList(str.c_str()), variant); in FontFamily_initBuilder()
75 builder = new NativeFamilyBuilder(minikin::registerLocaleList(""), variant); in FontFamily_initBuilder()
89 builder->langId, builder->variant, std::move(builder->fonts), in FontFamily_create()
/frameworks/base/core/java/android/speech/tts/
DITextToSpeechService.aidl134 int isLanguageAvailable(in String lang, in String country, in String variant); in isLanguageAvailable() argument
149 String[] getFeaturesForLanguage(in String lang, in String country, in String variant); in getFeaturesForLanguage() argument
166 int loadLanguage(in IBinder caller, in String lang, in String country, in String variant); in loadLanguage() argument
209 String getDefaultVoiceNameFor(in String lang, in String country, in String variant); in getDefaultVoiceNameFor() argument
DTextToSpeechService.java178 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); in onIsLanguageAvailable() argument
218 protected abstract int onLoadLanguage(String lang, String country, String variant); in onLoadLanguage() argument
248 protected Set<String> onGetFeaturesForLanguage(String lang, String country, String variant) { in onGetFeaturesForLanguage() argument
319 public String onGetDefaultVoiceNameFor(String lang, String country, String variant) { in onGetDefaultVoiceNameFor() argument
320 int localeStatus = onIsLanguageAvailable(lang, country, variant); in onGetDefaultVoiceNameFor()
330 iso3Locale = new Locale(lang, country, variant); in onGetDefaultVoiceNameFor()
1207 String language, String country, String variant) { in LoadLanguageItem() argument
1211 mVariant = variant; in LoadLanguageItem()
1396 public int isLanguageAvailable(String lang, String country, String variant) {
1401 return onIsLanguageAvailable(lang, country, variant);
[all …]
DSynthesisRequest.java137 void setLanguage(String language, String country, String variant) { in setLanguage() argument
140 mVariant = variant; in setLanguage()
/frameworks/minikin/include/minikin/
DFontFamily.h36 static std::shared_ptr<FontFamily> create(FamilyVariant variant,
38 static std::shared_ptr<FontFamily> create(uint32_t localeListId, FamilyVariant variant,
52 FamilyVariant variant() const { return mVariant; } in variant() function
81 FontFamily(uint32_t localeListId, FamilyVariant variant,
/frameworks/minikin/tests/util/
DFontTestUtils.cpp61 FamilyVariant variant = FamilyVariant::DEFAULT; in getFontFamilies() local
64 variant = FamilyVariant::ELEGANT; in getFontFamilies()
66 variant = FamilyVariant::COMPACT; in getFontFamilies()
109 family = FontFamily::create(variant, std::move(fonts)); in getFontFamilies()
113 FontFamily::create(langId, variant, std::move(fonts), in getFontFamilies()
/frameworks/base/services/core/java/com/android/server/textservices/
DLocaleUtils.java77 final String variant = systemLocale.getVariant(); in getSuitableLocalesForSpellChecker() local
78 final boolean hasVariant = !TextUtils.isEmpty(variant); in getSuitableLocalesForSpellChecker()
80 systemLocaleLanguageCountryVariant = new Locale(language, country, variant); in getSuitableLocalesForSpellChecker()
/frameworks/native/libs/binder/
DRpcState.h192 const std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds =
197 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds = nullptr);
204 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>&& ancillaryFds);
208 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>&& ancillaryFds);
212 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>&& ancillaryFds);
254 std::vector<std::variant<base::unique_fd, base::borrowed_fd>> ancillaryFds;
DOS.h38 const std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds);
42 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds);
/frameworks/native/services/surfaceflinger/
DLayerProtoHelper.cpp266 for (auto& [child, variant] : root.mChildren) { in generate()
267 if (variant != frontend::LayerHierarchy::Variant::Attached || in generate()
273 variant); in generate()
318 for (const auto& [child, variant] : root.mChildren) { in writeHierarchyToProto()
321 variant); in writeHierarchyToProto()
323 if (variant == Variant::Attached || variant == Variant::Detached || in writeHierarchyToProto()
324 variant == Variant::Mirror) { in writeHierarchyToProto()
327 } else if (variant == Variant::Relative) { in writeHierarchyToProto()
340 for (const auto& [child, variant] : root.mChildren) { in writeHierarchyToProto()
342 if (variant == Variant::Detached) { in writeHierarchyToProto()
[all …]
/frameworks/base/libs/androidfw/
DLocale.cpp58 safe_transform_copy(variant_chars, variant, [](size_t, char c) { return c; }); in set_variant()
232 static_assert(sizeof(ResTable_config::localeVariant) == sizeof(LocaleValue::variant));
242 memcpy(variant, config.localeVariant, sizeof(config.localeVariant)); in InitFromResTable()
254 if (variant[0]) { in WriteTo()
255 memcpy(out->localeVariant, variant, sizeof(out->localeVariant)); in WriteTo()
/frameworks/av/media/libmedia/xsd/vts/
DValidateMediaProfiles.cpp50 std::string variant = android::base::GetProperty( in TEST() local
52 std::string fileName = "media_profiles" + variant + ".xml"; in TEST()
/frameworks/native/libs/binder/trusty/
DOS.cpp64 const std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* /* ancillaryFds */) { in sendMessageOnSocket()
71 std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* /* ancillaryFds */) { in receiveMessageFromSocket()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFamily.java122 public @NonNull FontFamily build(@NonNull String langTags, int variant, in build() argument
128 final long ptr = nBuild(builderPtr, langTags, variant, isCustomFallback, in build()
142 private static native long nBuild(long builderPtr, String langTags, int variant, in nBuild() argument
/frameworks/av/media/libmediaplayerservice/
DDeathRecipient.h29 using Service = std::variant<
33 DeathNotifier(std::variant<sp<IBinder> const&,
/frameworks/base/libs/hwui/jni/fonts/
DFontFamily.cpp60 jstring langTags, jint variant, jboolean isCustomFallback, in FontFamily_Builder_build() argument
71 localeId, static_cast<minikin::FamilyVariant>(variant), std::move(builder->fonts), in FontFamily_Builder_build()
101 return static_cast<jint>(family->family->variant()); in FontFamily_getVariant()

123456