// Tests whether we have a match for a particular accessibility // property. private boolean _matchAccessibilityProperty( String propertyName, AccessibilityProfile accProfile) { if (XMLConstants.ACC_HIGH_CONTRAST.equals(propertyName)) return accProfile.isHighContrast(); if (XMLConstants.ACC_LARGE_FONTS.equals(propertyName)) return accProfile.isLargeFonts(); // Should never reach here (did we add a new property?) assert (false); return false; }