Search in sources :

Example 1 with DeviceFeatureTargeting

use of com.android.bundle.Targeting.DeviceFeatureTargeting in project bundletool by google.

the class DeviceFeatureMatcherTest method skipOpenGlFeature.

@Test
public void skipOpenGlFeature() {
    DeviceSpec deviceSpec = deviceFeatures("com.hardware.cool.feature");
    DeviceFeatureMatcher matcher = new DeviceFeatureMatcher(deviceSpec);
    ImmutableList<DeviceFeatureTargeting> deviceFeatureTargetings = ImmutableList.of(deviceFeatureTargeting(OpenGlFeatureMatcher.CONDITIONAL_MODULES_OPEN_GL_NAME, 0x30000), deviceFeatureTargeting("com.hardware.cool.feature"));
    assertThat(matcher.matchesTargeting(deviceFeatureTargetings)).isTrue();
}
Also used : DeviceSpec(com.android.bundle.Devices.DeviceSpec) DeviceFeatureTargeting(com.android.bundle.Targeting.DeviceFeatureTargeting) Test(org.junit.Test)

Aggregations

DeviceSpec (com.android.bundle.Devices.DeviceSpec)1 DeviceFeatureTargeting (com.android.bundle.Targeting.DeviceFeatureTargeting)1 Test (org.junit.Test)1