Lines Matching refs:type
183 public static String getPhoneTypeString(Integer type) {
184 return sKnownPhoneTypesMap_ItoS.get(type);
188 * Returns Interger when the given types can be parsed as known type. Returns String object
196 int type = -1;
213 if (typeStringUpperCase.startsWith("X-") && type < 0) {
225 // 1. If a type isn't specified yet, we'll choose the new type candidate.
226 // 2. If the current type is default one (OTHER) or custom one, we'll
240 || type < 0
241 || type == Phone.TYPE_CUSTOM
242 || type == Phone.TYPE_OTHER) {
243 type = tmp;
245 } else if (type < 0) {
246 type = Phone.TYPE_CUSTOM;
252 if (type < 0) {
254 type = Phone.TYPE_MAIN;
257 type = Phone.TYPE_HOME;
261 if (type == Phone.TYPE_HOME) {
262 type = Phone.TYPE_FAX_HOME;
263 } else if (type == Phone.TYPE_WORK) {
264 type = Phone.TYPE_FAX_WORK;
265 } else if (type == Phone.TYPE_OTHER) {
266 type = Phone.TYPE_OTHER_FAX;
269 if (type == Phone.TYPE_CUSTOM) {
272 return type;
280 // To support mobile type at that time, this custom label had been used.
390 // Unknown vCard type
391 Log.w(LOG_TAG, "Unknown vCard type");
656 * The type "GIF", "PNG", or "JPEG" is returned when possible. Returns null when
659 * @return The image type or null when the type cannot be determined.