Home
last modified time | relevance | path

Searched refs:ResTable_config (Results 1 – 25 of 37) sorted by relevance

12

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/
DConfigDescriptionTest.java4 import static org.robolectric.res.android.ResTable_config.DENSITY_ANY;
5 import static org.robolectric.res.android.ResTable_config.DENSITY_HIGH;
6 import static org.robolectric.res.android.ResTable_config.DENSITY_LOW;
7 import static org.robolectric.res.android.ResTable_config.DENSITY_MEDIUM;
8 import static org.robolectric.res.android.ResTable_config.DENSITY_NONE;
9 import static org.robolectric.res.android.ResTable_config.DENSITY_TV;
10 import static org.robolectric.res.android.ResTable_config.DENSITY_XHIGH;
11 import static org.robolectric.res.android.ResTable_config.DENSITY_XXHIGH;
12 import static org.robolectric.res.android.ResTable_config.DENSITY_XXXHIGH;
13 import static org.robolectric.res.android.ResTable_config.KEYBOARD_12KEY;
[all …]
DResTableConfigTest.java84 ResTable_config.kEnglish).build())) in isBetterThan_language_comparedNotSame_requestedEnglish()
93 ResTable_config.kEnglish).build())) in isBetterThan_language_comparedNotSame_requestedEnglishUS()
100 assertThat(newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_RTL).build() in isBetterThan_layoutDirection_()
101 … .isBetterThan(newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_LTR).build(), in isBetterThan_layoutDirection_()
102 newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_RTL).build())) in isBetterThan_layoutDirection_()
106 assertThat(newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_LTR).build() in isBetterThan_layoutDirection_()
107 … .isBetterThan(newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_RTL).build(), in isBetterThan_layoutDirection_()
108 newBuilder().setLayoutDirection(ResTable_config.SCREENLAYOUT_LAYOUTDIR_RTL).build())) in isBetterThan_layoutDirection_()
142 ResTable_config build() { in build()
143 …return new ResTable_config(0, mcc, mnc, language, region, orientation, touchscreen, density, keybo… in build()
DResTable_configTest.java14 ResTable_config resTable_config = new ResTable_config(); in testLocale()
26 ResTable_config resTable_config = new ResTable_config(); in getBcp47Locale_shouldReturnCanonicalizedTag()
37 ResTable_config resTable_config = new ResTable_config(); in getBcp47Locale_philippines_shouldReturnFil()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DConfigDescription.java181 public void writeTo(ResTable_config out) { in writeTo()
195 public static boolean parse(final String str, ResTable_config out) { in parse()
199 …public static boolean parse(final String str, ResTable_config out, boolean applyVersionForCompat) { in parse()
385 private static boolean parseLayoutDirection(String name, ResTable_config out) { in parseLayoutDirection()
389 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
390 ResTable_config.LAYOUTDIR_ANY; in parseLayoutDirection()
396 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
397 ResTable_config.LAYOUTDIR_LTR; in parseLayoutDirection()
403 (out.screenLayout & ~ResTable_config.MASK_LAYOUTDIR) | in parseLayoutDirection()
404 ResTable_config.LAYOUTDIR_RTL; in parseLayoutDirection()
[all …]
DCppAssetManager2.java145 final ResTable_config GetConfiguration() { return configuration_; } in GetConfiguration()
157 final List<ResTable_config> configurations = new ArrayList<>();
203 private ResTable_config configuration_ = new ResTable_config();
247 ResTable_config config;
426 public void SetConfiguration(final ResTable_config configuration) { in SetConfiguration()
445 public Set<ResTable_config> GetResourceConfigurations(boolean exclude_system, in GetResourceConfigurations()
448 Set<ResTable_config> configurations = new HashSet<>(); in GetResourceConfigurations()
621 ResTable_config density_override_config; in FindEntry()
624 ResTable_config desired_config = configuration_; in FindEntry()
652 ResTable_config best_config = null; in FindEntry()
[all …]
DResTable_config.java85 public class ResTable_config { class
119 static ResTable_config createConfig(ByteBuffer buffer) { in createConfig()
180 return new ResTable_config(size, mcc, mnc, language, region, orientation, in createConfig()
631 public final ResTable_config withSdkVersion(int sdkVersion) { in withSdkVersion()
635 return new ResTable_config(size, mcc, mnc, language, country, in withSdkVersion()
642 public ResTable_config(int size, int mcc, int mnc, byte[] language, byte[] country, in ResTable_config() method in ResTable_config
676 public ResTable_config() { in ResTable_config() method in ResTable_config
866 static ResTable_config fromDtoH(final ResTable_config o) { in fromDtoH()
867 return new ResTable_config( in fromDtoH()
911 static final int compareLocales(final ResTable_config l, final ResTable_config r) { in compareLocales()
[all …]
DAttributeResolution9.java99 ResTable_config config = new ResTable_config(); in ResolveAttrs()
168 final Ref<ResTable_config> configRef = new Ref<>(config); in ResolveAttrs()
246 final Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in ApplyStyle()
446 final Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in RetrieveAttributes()
DAttributeResolution10.java103 ResTable_config config = new ResTable_config(); in ResolveAttrs()
172 final Ref<ResTable_config> configRef = new Ref<>(config); in ResolveAttrs()
250 final Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in ApplyStyle()
456 final Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in RetrieveAttributes()
DAttributeResolution.java74 ResTable_config config = new ResTable_config(); in ResolveAttrs()
146 Ref<ResTable_config> configRef = new Ref<>(config); in ResolveAttrs()
234 Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in ApplyStyle()
437 Ref<ResTable_config> config = new Ref<>(new ResTable_config()); in RetrieveAttributes()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DDeviceConfig.java12 import org.robolectric.res.android.ResTable_config;
21 public static final int DEFAULT_DENSITY = ResTable_config.DENSITY_DPI_MDPI;
99 ResTable_config resTab = qualifiers.getConfig(); in applyToConfiguration()
113 if (resTabSize != ResTable_config.SCREENSIZE_ANY) { in applyToConfiguration()
127 if (resTabLong != ResTable_config.SCREENLONG_ANY) { in applyToConfiguration()
133 if (resTabLayoutDir != ResTable_config.LAYOUTDIR_ANY) { in applyToConfiguration()
139 if (resTabRound != ResTable_config.SCREENROUND_ANY) { in applyToConfiguration()
177 if (resTab.orientation != ResTable_config.ORIENTATION_ANY) { in applyToConfiguration()
184 if (resTabType != ResTable_config.UI_MODE_TYPE_ANY) { in applyToConfiguration()
190 if (resTabNight != ResTable_config.UI_MODE_NIGHT_ANY) { in applyToConfiguration()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceTable.java5 import org.robolectric.res.android.ResTable_config;
14 TypedResource getValue(int resId, ResTable_config config); in getValue()
16 TypedResource getValue(@Nonnull ResName resName, ResTable_config config); in getValue()
18 XmlBlock getXml(ResName resName, ResTable_config config); in getXml()
20 InputStream getRawValue(ResName resName, ResTable_config config); in getRawValue()
22 InputStream getRawValue(int resId, ResTable_config config); in getRawValue()
DRoutingResourceTable.java8 import org.robolectric.res.android.ResTable_config;
23 @Override public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue()
28 @Override public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue()
32 @Override public TypedResource getValue(int resId, ResTable_config config) { in getValue()
37 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml()
41 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue()
DPackageResourceTable.java8 import org.robolectric.res.android.ResTable_config;
57 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue()
62 public TypedResource getValue(int resId, ResTable_config config) { in getValue()
66 @Override public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml()
75 @Override public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue()
89 private FileTypedResource getFileResource(ResName resName, ResTable_config config) { in getFileResource()
99 public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue()
DQualifiers.java6 import org.robolectric.res.android.ResTable_config;
22 private final ResTable_config config;
29 final ResTable_config config = new ResTable_config(); in parse()
39 protected Qualifiers(String qualifiers, ResTable_config config) { in Qualifiers()
44 public ResTable_config getConfig() { in getConfig()
DResBundle.java7 import org.robolectric.res.android.ResTable_config;
17 public TypedResource get(ResName resName, ResTable_config config) { in get()
30 public TypedResource pick(ResName resName, ResTable_config toMatch) { in pick()
36 ResTable_config candidateConfig = candidate.getConfig(); in pick()
DXmlContext.java3 import org.robolectric.res.android.ResTable_config;
20 public ResTable_config getConfig() { in getConfig()
DTypedResource.java3 import org.robolectric.res.android.ResTable_config;
24 public ResTable_config getConfig() { in getConfig()
DResBunch.java6 import org.robolectric.res.android.ResTable_config;
25 public TypedResource get(@Nonnull ResName resName, ResTable_config config) { in get()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/res/
DNullResourceTable.java5 import org.robolectric.res.android.ResTable_config;
23 public TypedResource getValue(int resId, ResTable_config config) { in getValue()
30 public TypedResource getValue(@Nonnull ResName resName, ResTable_config config) { in getValue()
37 public XmlBlock getXml(ResName resName, ResTable_config config) { in getXml()
42 public InputStream getRawValue(ResName resName, ResTable_config config) { in getRawValue()
47 public InputStream getRawValue(int resId, ResTable_config config) { in getRawValue()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DRawResourceLoaderTest.java11 import org.robolectric.res.android.ResTable_config;
28 String f = (String) resourceTable.getValue(R.raw.raw_resource, new ResTable_config()).getData(); in shouldReturnRawResourcesWithExtensions()
34 String f = (String) resourceTable.getValue(R.raw.raw_no_ext, new ResTable_config()).getData(); in shouldReturnRawResourcesWithoutExtensions()
DDrawableResourceLoaderNoRunnerTest.java14 import org.robolectric.res.android.ResTable_config;
74 …able.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_config()).isFile()).… in shouldFindDrawableResourcesWorkWithUnixJarFilePath()
97 …able.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_config()).isFile()).… in shouldFindDrawableResourcesWorkWithUnixFilePath()
120 …able.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_config()).isFile()).… in shouldFindDrawableResourcesWorkWithWindowsJarFilePath()
143 …able.getValue(new ResName("org.robolectric", "drawable", "foo"), new ResTable_config()).isFile()).… in shouldFindDrawableResourcesWorkWithWindowsFilePath()
DResourceParserTest.java10 import org.robolectric.res.android.ResTable_config;
16 private ResTable_config config;
22 config = new ResTable_config(); in setUp()
DResBundleTest.java16 import org.robolectric.res.android.ResTable_config;
171 when(xmlContext.getConfig()).thenReturn(new ResTable_config()); in shouldNotOverwriteValuesWithMatchingQualifiers()
203 private static ResTable_config from(String qualifiers) { in from()
204 ResTable_config config = new ResTable_config(); in from()
DStyleResourceLoaderTest.java13 import org.robolectric.res.android.ResTable_config;
28 …rce = resourceTable.getValue(new ResName("android", "style", "Theme_Holo"), new ResTable_config()); in testStyleDataIsLoadedCorrectly()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DStaxValueLoaderTest.java13 import org.robolectric.res.android.ResTable_config;
40 …rceTable.getValue(new ResName("pkg:string/preposition_for_date"), new ResTable_config()).getData()) in ignoresXliffTags()
54 …eTable.getValue(new ResName("pkg:string/sms_short_code_details"), new ResTable_config()).getData()) in ignoresBTags()

12