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

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalSource.java112 private static int getMediaType(String type, int defaultType) { argument
113 if (type == null) return defaultType;
121 return defaultType;
128 private Path getAlbumPath(Uri uri, int defaultType) { argument
131 defaultType);
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
H A DContactsUtils.java85 final int defaultType;
89 defaultType = Phone.TYPE_HOME;
93 defaultType = Email.TYPE_HOME;
97 defaultType = StructuredPostal.TYPE_HOME;
101 defaultType = Organization.TYPE_WORK;
114 display = labels[defaultType - 1];
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityModifier.java1146 int defaultType;
1148 defaultType = newDataKind.defaultValues.getAsInteger(StructuredPostal.TYPE);
1150 defaultType = newDataKind.typeList.get(0).rawValue;
1152 values.put(StructuredPostal.TYPE, defaultType);
1309 // 1. detect defaultType
1314 // 3.2 replace unallowed types with defaultType
1317 // Here, defaultType can be supplied in two ways
1320 Integer defaultType = null;
1322 defaultType = newDataKind.defaultValues.getAsInteger(COLUMN_FOR_TYPE);
1327 if (defaultType !
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DEntityModifierTests.java1108 int defaultType = kind.defaultValues.getAsInteger(Im.TYPE);
1112 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue());
1117 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue());
1122 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue());
1172 int defaultType = kind.typeList.get(0).rawValue;
1181 assertEquals(defaultType, outputValues.getAsInteger(Phone.TYPE).intValue());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DLegacyContactsProviderTest.java951 private void assertPersonIdConstraint(Uri uri, String typeColumn, int defaultType) { argument
953 values.put(typeColumn, defaultType);
963 String typeColumn, int defaultType, int otherType, String labelColumn) {
962 assertTypeAndLabelConstraints(Uri uri, String personIdColumn, long personId, String typeColumn, int defaultType, int otherType, String labelColumn) argument

Completed in 84 milliseconds