Searched refs:validTypes (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactModifierTests.java | 206 List<EditType> validTypes; in testValidTypes() local 214 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes() 215 assertContains(validTypes, typeHome); in testValidTypes() 216 assertNotContains(validTypes, typeWork); in testValidTypes() 217 assertContains(validTypes, typeOther); in testValidTypes() 223 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes() 224 assertNotContains(validTypes, typeHome); in testValidTypes() 225 assertNotContains(validTypes, typeWork); in testValidTypes() 226 assertContains(validTypes, typeOther); in testValidTypes() 233 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactModifier.java | 91 final boolean validTypes = hasValidTypes(state, kind); in canInsert() 94 return (validTypes && validOverall); in canInsert() 150 final ArrayList<EditType> validTypes = new ArrayList<EditType>(); in getValidTypes() local 153 if (!hasEditTypes(kind)) return validTypes; in getValidTypes() 175 validTypes.add(type); in getValidTypes() 179 return validTypes; in getValidTypes() 293 final ArrayList<EditType> validTypes = getValidTypes(state, kind, null, includeSecondary, in getBestValidType() local 295 if (validTypes.size() == 0) return null; in getBestValidType() 298 final EditType lastType = validTypes.get(validTypes.size() - 1); in getBestValidType() 301 Iterator<EditType> iterator = validTypes.iterator(); in getBestValidType() [all …]
|