Home
last modified time | relevance | path

Searched refs:validTypes (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactModifierTests.java214 List<EditType> validTypes; in testValidTypes() local
222 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
223 assertContains(validTypes, typeHome); in testValidTypes()
224 assertNotContains(validTypes, typeWork); in testValidTypes()
225 assertContains(validTypes, typeOther); in testValidTypes()
231 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
232 assertNotContains(validTypes, typeHome); in testValidTypes()
233 assertNotContains(validTypes, typeWork); in testValidTypes()
234 assertContains(validTypes, typeOther); in testValidTypes()
241 validTypes = RawContactModifier.getValidTypes(state, kindPhone, null, true, null, true); in testValidTypes()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactModifier.java93 final boolean validTypes = hasValidTypes(state, kind); in canInsert()
96 return (validTypes && validOverall); in canInsert()
152 final ArrayList<EditType> validTypes = new ArrayList<EditType>(); in getValidTypes() local
155 if (!hasEditTypes(kind)) return validTypes; in getValidTypes()
177 validTypes.add(type); in getValidTypes()
181 return validTypes; in getValidTypes()
295 final ArrayList<EditType> validTypes = getValidTypes(state, kind, null, includeSecondary, in getBestValidType() local
297 if (validTypes.size() == 0) return null; in getBestValidType()
300 final EditType lastType = validTypes.get(validTypes.size() - 1); in getBestValidType()
303 Iterator<EditType> iterator = validTypes.iterator(); in getBestValidType()
[all …]