Home
last modified time | relevance | path

Searched refs:defaultType (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java1104 int defaultType; in migratePostal() local
1106 defaultType = newDataKind.defaultValues.getAsInteger(StructuredPostal.TYPE); in migratePostal()
1108 defaultType = newDataKind.typeList.get(0).rawValue; in migratePostal()
1110 values.put(StructuredPostal.TYPE, defaultType); in migratePostal()
1279 Integer defaultType = null; in migrateGenericWithTypeColumn() local
1281 defaultType = newDataKind.defaultValues.getAsInteger(COLUMN_FOR_TYPE); in migrateGenericWithTypeColumn()
1286 if (defaultType != null) { in migrateGenericWithTypeColumn()
1287 allowedTypes.add(defaultType); in migrateGenericWithTypeColumn()
1288 typeSpecificMaxMap.put(defaultType, -1); in migrateGenericWithTypeColumn()
1300 if (defaultType == null) { in migrateGenericWithTypeColumn()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalSource.java114 private static int getMediaType(String type, int defaultType) { in getMediaType() argument
115 if (type == null) return defaultType; in getMediaType()
123 return defaultType; in getMediaType()
131 private Path getAlbumPath(Uri uri, int defaultType) { in getAlbumPath() argument
134 defaultType); in getAlbumPath()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java1079 int defaultType = kind.defaultValues.getAsInteger(Im.TYPE); in testMigrateImFromGoogleToExchange() local
1083 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1088 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1093 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1160 int defaultType = Phone.TYPE_MOBILE; in testMigratePhoneFromGoogleToExchange() local
1169 assertEquals(defaultType, outputValues.getAsInteger(Phone.TYPE).intValue()); in testMigratePhoneFromGoogleToExchange()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java970 private void assertPersonIdConstraint(Uri uri, String typeColumn, int defaultType) { in assertPersonIdConstraint() argument
972 values.put(typeColumn, defaultType); in assertPersonIdConstraint()
982 String typeColumn, int defaultType, int otherType, String labelColumn) { in assertTypeAndLabelConstraints() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java9868 private static final int getDataUsageFeedbackType(String type, Integer defaultType) { in getDataUsageFeedbackType() argument
9878 if (defaultType != null) { in getDataUsageFeedbackType()
9879 return defaultType; in getDataUsageFeedbackType()
9884 private static final int getAggregationType(String type, Integer defaultType) { in getAggregationType() argument
9894 if (defaultType != null) { in getAggregationType()
9895 return defaultType; in getAggregationType()