Lines Matching refs:property
47 for (CarPropertyConfig property : properties) {
48 if (supportedTypes.contains(property.getPropertyType())) {
49 assertTypeAndZone(property);
51 fail("Type is not supported for " + property);
56 private void assertTypeAndZone(CarPropertyConfig property) {
57 int propId = property.getPropertyId();
65 assertEquals(Boolean.class, property.getPropertyType());
66 assertFalse(property.isGlobalProperty());
106 assertEquals(Integer.class, property.getPropertyType());
107 assertFalse(property.isGlobalProperty());
108 checkIntMinMax(property);
117 private void checkIntMinMax(CarPropertyConfig<Integer> property) {
118 Log.i(TAG, "checkIntMinMax property:" + property);
119 if (!property.isGlobalProperty()) {
120 int[] areaIds = property.getAreaIds();
122 assertEquals(areaIds.length, property.getAreaCount());
125 assertTrue(property.hasArea(areId));
126 int min = property.getMinValue(areId);
127 int max = property.getMaxValue(areId);
131 int min = property.getMinValue();
132 int max = property.getMaxValue();
135 assertFalse(property.hasArea(0x1 << i));
136 assertNull(property.getMinValue(0x1 << i));
137 assertNull(property.getMaxValue(0x1 << i));