/frameworks/base/tools/aapt2/ |
H A D | Locale.h | 35 char variant[8]; member in struct:aapt::LocaleValue 78 void set_variant(const char* variant);
|
/frameworks/base/tools/split-select/ |
H A D | Abi.cpp | 44 Family getFamily(Variant variant) { argument 45 switch (variant) { 76 const char* toString(Variant variant) { argument 77 switch (variant) {
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ConfigLocale_test.cpp | 116 const char* script, const char* variant, ResTable_config* out) { 134 if (variant != NULL) { 135 memcpy(out->localeVariant, variant, strlen(variant)); 115 fillIn(const char* lang, const char* country, const char* script, const char* variant, ResTable_config* out) argument
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
H A D | MockableTextToSpeechService.java | 40 protected int onIsLanguageAvailable(String lang, String country, String variant) { argument 41 return sDelegate.onIsLanguageAvailable(lang, country, variant); 50 protected int onLoadLanguage(String lang, String country, String variant) { argument 51 return sDelegate.onLoadLanguage(lang, country, variant); 65 int onIsLanguageAvailable(String lang, String country, String variant); argument 69 int onLoadLanguage(String lang, String country, String variant); argument
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | SynthesisRequest.java | 24 * <li>The synthesis locale, represented as a language, country and a variant. 26 * ISO 3166 alpha 3 code. The variant is not specified.</li> 100 * Gets the language variant to use. 137 void setLanguage(String language, String country, String variant) { argument 140 mVariant = variant;
|
H A D | TextToSpeechService.java | 170 * @param variant Language variant. May be empty or null. 178 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); argument 181 * Returns the language, country and variant currently being used by the TTS engine. 189 * country (ISO 3-letter code) and variant used by the engine. 190 * The country and variant may be {@code ""}. If country is empty, then variant must 210 * @param variant Language variant. May be empty or null. 218 protected abstract int onLoadLanguage(String lang, String country, String variant); argument 248 onGetFeaturesForLanguage(String lang, String country, String variant) argument 319 onGetDefaultVoiceNameFor(String lang, String country, String variant) argument 1207 LoadLanguageItem(Object callerIdentity, int callerUid, int callerPid, String language, String country, String variant) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 64 public FontFamily(@Nullable String[] langs, int variant) { argument 73 mBuilderPtr = nInitBuilder(langsString, variant); 170 private static native long nInitBuilder(String langs, int variant); argument
|
H A D | Typeface.java | 99 * Cache for Typeface objects for style variant. Currently max size is 3. 107 * Cache for Typeface objects for weight variant. Currently max size is 3. 965 String familyName, List<FontConfig.Font> fonts, String[] languageTags, int variant, 967 final FontFamily family = new FontFamily(languageTags, variant); 1001 final int variant = xmlFamily.getVariant(); 1022 xmlFamily.getName(), defaultFonts, languageTags, variant, cache, fontDir); 1034 xmlFamily.getName(), fallback, languageTags, variant, cache, fontDir); 964 createFontFamily( String familyName, List<FontConfig.Font> fonts, String[] languageTags, int variant, Map<String, ByteBuffer> cache, String fontDir) argument
|
/frameworks/minikin/tests/util/ |
H A D | FontTestUtils.cpp | 60 xmlChar* variantXmlch = xmlGetProp(familyNode, (const xmlChar*)"variant"); 61 FontFamily::Variant variant = FontFamily::Variant::DEFAULT; local 64 variant = FontFamily::Variant::ELEGANT; 66 variant = FontFamily::Variant::COMPACT; 109 family = std::make_shared<FontFamily>(variant, std::move(fonts)); 112 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts));
|
/frameworks/native/libs/vr/libdisplay/ |
H A D | display_client.cpp | 83 const auto* variant = &attribute.second; local 88 !IfAnyOf<int32_t, int64_t, bool>::Get(variant, &visible_); 91 invalid_value = !IfAnyOf<int32_t>::Get(variant, &z_order_); 99 key, variant->index());
|
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 190 * Value for font variant. 192 * Indicates the font has no variant attribute. 197 * Value for font variant. 199 * Indicates the font is for compact variant. 205 * Value for font variant. 207 * Indiates the font is for elegant variant. 212 // Must be same with Minikin's variant values. 217 @Variant int variant) { 221 mVariant = variant; 246 * Returns the font variant fo 216 Family(@onNull String name, @NonNull Font[] fonts, @NonNull String[] languages, @Variant int variant) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | FontFamily.cpp | 46 NativeFamilyBuilder(uint32_t langId, int variant) argument 47 : langId(langId), variant(static_cast<minikin::FontFamily::Variant>(variant)) {} 49 minikin::FontFamily::Variant variant; member in struct:android::NativeFamilyBuilder 66 static jlong FontFamily_initBuilder(JNIEnv* env, jobject clazz, jstring langs, jint variant) { argument 70 builder = new NativeFamilyBuilder(minikin::registerLocaleList(str.c_str()), variant); 72 builder = new NativeFamilyBuilder(minikin::registerLocaleList(""), variant); 86 builder->langId, builder->variant, std::move(builder->fonts));
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Paint.h | 76 void setFamilyVariant(minikin::FontFamily::Variant variant) { mFamilyVariant = variant; } argument
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Typeface_Delegate.java | 236 String[] languageTags, int variant, Map<String, ByteBuffer> cache, String fontDir) { 237 FontFamily fontFamily = new FontFamily(languageTags, variant); 329 private static List<Font> computeFonts(FontVariant variant, FontFamily_Delegate[] fontFamilies, argument 361 // Add the font with the matching variant to the list. 362 if (variant == ffd.getVariant()) { 381 * Return an Iterable of fonts that match the style and variant. The list is ordered 388 * @param variant The variant preferred. Can only be {@link FontVariant#COMPACT} or {@link 392 public Iterable<Font> getFonts(final FontVariant variant) { argument 393 assert variant ! 235 createFontFamily(String familyName, List<FontConfig.Font> fonts, String[] languageTags, int variant, Map<String, ByteBuffer> cache, String fontDir) argument 402 private final FontVariant variant; field in class:Typeface_Delegate.FontsIterator 406 FontsIterator(@onNull FontFamily_Delegate[] fontFamilies, @NonNull FontVariant variant, int weight, int style) argument [all...] |
H A D | FontFamily_Delegate.java | 142 * The variant of the Font Family - compact or elegant. 306 /*package*/ static long nInitBuilder(String lang, int variant) { argument 309 // variant can be 0, 1 or 2. 310 assert variant < 3; 311 delegate.mVariant = FontVariant.values()[variant];
|
/frameworks/minikin/include/minikin/ |
H A D | FontFamily.h | 136 FontFamily(Variant variant, std::vector<Font>&& fonts); 137 FontFamily(uint32_t localeListId, Variant variant, std::vector<Font>&& fonts); 142 Variant variant() const { return mVariant; } function in class:minikin::FontFamily
|
/frameworks/minikin/libs/minikin/ |
H A D | FontFamily.cpp | 110 FontFamily::FontFamily(Variant variant, std::vector<Font>&& fonts) argument 111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts)) {} 113 FontFamily::FontFamily(uint32_t localeListId, Variant variant, std::vector<Font>&& fonts) argument 115 mVariant(variant),
|
H A D | FontCollection.cpp | 115 // - Variant Score: Whether the font family matches the variant. Note that this variant is not the 116 // one in BCP47. This is our own font variant (e.g., elegant, compact). 127 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, FontFamily::Variant variant, argument 137 const uint32_t variantScore = calcVariantMatchingScore(variant, *fontFamily); 141 // then the last 1 bit is for variant score. 229 // Calculates a font score based on variant ("compact" or "elegant") matching. 230 // - Returns 1 if the font doesn't have variant or the variant matches with the text style. 231 // - No score if the font has a variant bu 232 calcVariantMatchingScore(FontFamily::Variant variant, const FontFamily& fontFamily) argument [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | serialization.h | 29 #include "variant.h" 281 // Overload for empty variant type. 288 inline std::size_t GetSerializedSize(const Variant<Types...>& variant) { argument 289 return GetEncodingSize(EncodeType(variant)) + 290 GetSerializedSize(variant.index()) + 291 variant.Visit( 512 // Serializes type code for variant types. 871 // Overload for empty variant type. 880 inline void SerializeObject(const Variant<Types...>& variant, 882 SerializeType(variant, buffe [all...] |
H A D | variant.h | 12 // Type tag denoting an empty variant. 369 // unclear whether this would be more efficient for practical variant arity. 643 // Utility type to extract/convert values from a variant. This class simplifies 644 // conditional logic to get/move/swap/action values from a variant when one or 659 // Calls Op on the underlying value of the variant and returns true when the 660 // variant is a valid type, otherwise does nothing and returns false. 662 static bool Call(Variant<Types...>* variant, Op&& op) { argument 666 return variant->Visit(CallOp<Op>{std::forward<Op>(op)}); 669 static bool Call(const Variant<Types...>* variant, Op&& op) { argument 673 return variant 680 Get(const Variant<Types...>* variant, T* value_out) argument 688 Take(Variant<Types...>* variant, T* value_out) argument 697 Swap(Variant<Types...>* variant, T* value_out) argument [all...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | display_surface.cpp | 70 const auto* variant = &attribute.second; local 78 variant, [&](const auto& value) { 87 variant, [&](const auto& value) { 103 key, variant->index()); 106 if (variant->empty()) { 111 attributes_[key] = *variant;
|
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 425 const std::string variant = GetProperty("persist.sys.localevar", ""); local 432 if (!variant.empty()) { 433 out = out + "-" + variant; 631 char dex2oat_isa_variant[sizeof("--instruction-set-variant=") -1 + PROPERTY_VALUE_MAX]; 875 // pass the instruction-set-features/variant as an image-compiler-option. 896 // Copy the variant. 897 sprintf(dex2oat_isa_variant_key, "dalvik.vm.isa.%s.variant", instruction_set); 899 "--instruction-set-variant=", "-Ximage-compiler-option"); 901 "--instruction-set-variant=", "-Xcompiler-option");
|
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.h | 65 char variant[8]; member in struct:AaptLocaleValue 95 void setVariant(const char* variant);
|
/frameworks/base/media/java/android/media/audiofx/ |
H A D | DynamicsProcessing.java | 108 * Index of variant that favors frequency resolution. Frequency domain based implementation. 113 * Index of variant that favors time resolution resolution. Time domain based implementation. 232 Number[] values = { 0 /*0 variant */, 1252 * @param variant index of variant used for effect engine. See 1265 public Config(int variant, float frameDurationMs, int channelCount, argument 1271 mVariant = variant; 1370 * Gets variant for effect engine See {@link #VARIANT_FAVOR_FREQUENCY_RESOLUTION} and 1372 * @return variant of effect engine 1638 public Builder(int variant, in argument 1892 setEngineArchitecture(int variant, float preferredFrameDuration, boolean preEqInUse, int preEqBandCount, boolean mbcInUse, int mbcBandCount, boolean postEqInUse, int postEqBandCount, boolean limiterInUse) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 1945 int variant = memcmp(l.localeVariant, r.localeVariant, sizeof(l.localeVariant)); local 1946 if (variant) { 1947 return variant; 2359 // check the region and variant. 2369 // The regions are the same. Try the variant. 2674 // (Theoretically, the variant can also affect the script. For 2677 // the variant doesn't change the script.) 2679 // If two configs differ only in their country and variant, 3068 // this is a variant, so fall through
|