Lines Matching refs:type
186 public static String getPhoneTypeString(Integer type) {
187 return sKnownPhoneTypesMap_ItoS.get(type);
191 * Returns Interger when the given types can be parsed as known type. Returns String object
199 int type = -1;
216 if (typeStringUpperCase.startsWith("X-") && type < 0) {
228 // 1. If a type isn't specified yet, we'll choose the new type candidate.
229 // 2. If the current type is default one (OTHER) or custom one, we'll
243 || type < 0
244 || type == Phone.TYPE_CUSTOM
245 || type == Phone.TYPE_OTHER) {
246 type = tmp;
248 } else if (type < 0) {
249 type = Phone.TYPE_CUSTOM;
255 if (type < 0) {
257 type = Phone.TYPE_MAIN;
260 type = Phone.TYPE_HOME;
264 if (type == Phone.TYPE_HOME) {
265 type = Phone.TYPE_FAX_HOME;
266 } else if (type == Phone.TYPE_WORK) {
267 type = Phone.TYPE_FAX_WORK;
268 } else if (type == Phone.TYPE_OTHER) {
269 type = Phone.TYPE_OTHER_FAX;
272 if (type == Phone.TYPE_CUSTOM) {
275 return type;
283 // To support mobile type at that time, this custom label had been used.
393 // Unknown vCard type
394 Log.w(LOG_TAG, "Unknown vCard type");
659 * The type "GIF", "PNG", or "JPEG" is returned when possible. Returns null when
662 * @return The image type or null when the type cannot be determined.