Lines Matching refs:type

92         final int type = data[index+AssetManager.STYLE_TYPE];
93 if (type == TypedValue.TYPE_NULL) {
95 } else if (type == TypedValue.TYPE_STRING) {
104 Log.w(Resources.TAG, "getString of bad type: 0x"
105 + Integer.toHexString(type));
120 final int type = data[index+AssetManager.STYLE_TYPE];
121 if (type == TypedValue.TYPE_NULL) {
123 } else if (type == TypedValue.TYPE_STRING) {
133 Log.w(Resources.TAG, "getString of bad type: 0x"
134 + Integer.toHexString(type));
155 final int type = data[index+AssetManager.STYLE_TYPE];
156 if (type == TypedValue.TYPE_STRING) {
181 final int type = data[index+AssetManager.STYLE_TYPE];
185 if (type == TypedValue.TYPE_NULL) {
187 } else if (type == TypedValue.TYPE_STRING) {
197 Log.w(Resources.TAG, "getString of bad type: 0x"
198 + Integer.toHexString(type));
213 final int type = data[index+AssetManager.STYLE_TYPE];
214 if (type == TypedValue.TYPE_NULL) {
216 } else if (type >= TypedValue.TYPE_FIRST_INT
217 && type <= TypedValue.TYPE_LAST_INT) {
227 Log.w(Resources.TAG, "getBoolean of bad type: 0x"
228 + Integer.toHexString(type));
243 final int type = data[index+AssetManager.STYLE_TYPE];
244 if (type == TypedValue.TYPE_NULL) {
246 } else if (type >= TypedValue.TYPE_FIRST_INT
247 && type <= TypedValue.TYPE_LAST_INT) {
257 Log.w(Resources.TAG, "getInt of bad type: 0x"
258 + Integer.toHexString(type));
272 final int type = data[index+AssetManager.STYLE_TYPE];
273 if (type == TypedValue.TYPE_NULL) {
275 } else if (type == TypedValue.TYPE_FLOAT) {
277 } else if (type >= TypedValue.TYPE_FIRST_INT
278 && type <= TypedValue.TYPE_LAST_INT) {
290 Log.w(Resources.TAG, "getFloat of bad type: 0x"
291 + Integer.toHexString(type));
310 final int type = data[index+AssetManager.STYLE_TYPE];
311 if (type == TypedValue.TYPE_NULL) {
313 } else if (type >= TypedValue.TYPE_FIRST_INT
314 && type <= TypedValue.TYPE_LAST_INT) {
316 } else if (type == TypedValue.TYPE_STRING) {
326 throw new UnsupportedOperationException("Can't convert to color: type=0x"
327 + Integer.toHexString(type));
359 final int type = data[index+AssetManager.STYLE_TYPE];
360 if (type == TypedValue.TYPE_NULL) {
362 } else if (type >= TypedValue.TYPE_FIRST_INT
363 && type <= TypedValue.TYPE_LAST_INT) {
367 throw new UnsupportedOperationException("Can't convert to integer: type=0x"
368 + Integer.toHexString(type));
390 final int type = data[index+AssetManager.STYLE_TYPE];
391 if (type == TypedValue.TYPE_NULL) {
393 } else if (type == TypedValue.TYPE_DIMENSION) {
398 throw new UnsupportedOperationException("Can't convert to dimension: type=0x"
399 + Integer.toHexString(type));
422 final int type = data[index+AssetManager.STYLE_TYPE];
423 if (type == TypedValue.TYPE_NULL) {
425 } else if (type == TypedValue.TYPE_DIMENSION) {
430 throw new UnsupportedOperationException("Can't convert to dimension: type=0x"
431 + Integer.toHexString(type));
455 final int type = data[index+AssetManager.STYLE_TYPE];
456 if (type == TypedValue.TYPE_NULL) {
458 } else if (type == TypedValue.TYPE_DIMENSION) {
463 throw new UnsupportedOperationException("Can't convert to dimension: type=0x"
464 + Integer.toHexString(type));
482 final int type = data[index+AssetManager.STYLE_TYPE];
483 if (type >= TypedValue.TYPE_FIRST_INT
484 && type <= TypedValue.TYPE_LAST_INT) {
486 } else if (type == TypedValue.TYPE_DIMENSION) {
503 * default or contains the wrong type of data.
511 final int type = data[index+AssetManager.STYLE_TYPE];
512 if (type >= TypedValue.TYPE_FIRST_INT
513 && type <= TypedValue.TYPE_LAST_INT) {
515 } else if (type == TypedValue.TYPE_DIMENSION) {
541 final int type = data[index+AssetManager.STYLE_TYPE];
542 if (type == TypedValue.TYPE_NULL) {
544 } else if (type == TypedValue.TYPE_FRACTION) {
549 throw new UnsupportedOperationException("Can't convert to fraction: type=0x"
550 + Integer.toHexString(type));
594 System.out.println("Got drawable resource: type="
595 + value.type
621 System.out.println("Got drawable resource: type="
622 + value.type
656 final int type = data[index+AssetManager.STYLE_TYPE];
657 return type != TypedValue.TYPE_NULL;
669 * receive a TypedValue whose type is TYPE_NULL.)
701 final int type = data[index+AssetManager.STYLE_TYPE];
702 if (type == TypedValue.TYPE_NULL) {
705 outValue.type = type;
711 outValue.string = (type == TypedValue.TYPE_STRING) ? loadStringValueAt(index) : null;