Searched refs:ResourceIds (Results 1 – 7 of 7) sorted by relevance
16 assertThat(ResourceIds.isFrameworkResource(0x01000000)).isTrue(); in testIsFrameworkResource()17 assertThat(ResourceIds.isFrameworkResource(0x7F000000)).isFalse(); in testIsFrameworkResource()22 assertThat(ResourceIds.getPackageIdentifier(0x01000000)).isEqualTo(0x01); in testGetPackageIdentifier()23 assertThat(ResourceIds.getPackageIdentifier(0x7F000000)).isEqualTo(0x7F); in testGetPackageIdentifier()28 assertThat(ResourceIds.getTypeIdentifier(0x01019876)).isEqualTo(0x01); in testGetTypeIdentifier()29 assertThat(ResourceIds.getTypeIdentifier(0x7F781234)).isEqualTo(0x78); in testGetTypeIdentifier()34 assertThat(ResourceIds.getEntryIdentifier(0x01019876)).isEqualTo(0x9876); in testGetEntryIdentifier()35 assertThat(ResourceIds.getEntryIdentifier(0x7F781234)).isEqualTo(0x1234); in testGetEntryIdentifier()40 assertThat(ResourceIds.makeIdentifer(0x01, 0x01, 0x9876)).isEqualTo(0x01019876); in testMakeIdentifier()41 assertThat(ResourceIds.makeIdentifer(0x7F, 0x78, 0x1234)).isEqualTo(0x7F781234); in testMakeIdentifier()
57 …assertThat(ResourceIds.getTypeIdentifier(ApplicationRClass.string.string_one)).isEqualTo(ResourceI… in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()58 …assertThat(ResourceIds.getTypeIdentifier(ApplicationRClass.string.string_one)).isEqualTo(ResourceI… in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()60 …assertThat(ResourceIds.getTypeIdentifier(ApplicationRClass.string.string_two)).isNotEqualTo(Resour… in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()61 …assertThat(ResourceIds.getTypeIdentifier(ThirdClass.raw.raw_two)).isNotEqualTo(ResourceIds.getType… in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()
42 typeTracker = new TypeTracker(ResourceIds.getTypeIdentifier(resId)); in record()45 typeTracker.record(ResourceIds.getEntryIdentifier(resId)); in record()54 …return ResourceIds.makeIdentifer(packageIdentifier, typeTracker.getTypeIdentifier(), typeTracker.g… in generate()
109 if (ResourceIds.isFrameworkResource(resId)) { in addResource()113 int resIdPackageIdentifier = ResourceIds.getPackageIdentifier(resId); in addResource()
6 public class ResourceIds { class
69 if (resourceTable.getPackageIdentifier() == ResourceIds.getPackageIdentifier(resId)) { in pickFor()
71 import org.robolectric.res.ResourceIds;605 …ResourceTable resourceProvider = ResourceIds.isFrameworkResource(resId) ? RuntimeEnvironment.getSy… in loadXmlResourceParser()1239 …String defaultPackageName = ResourceIds.isFrameworkResource(resId) ? "android" : RuntimeEnvironmen… in findAttributeValue()