Lines Matching refs:rs

320     public static Element BOOLEAN(RenderScript rs) {  in BOOLEAN()  argument
321 if (rs.mElement_BOOLEAN == null) { in BOOLEAN()
322 synchronized (rs) { in BOOLEAN()
323 if (rs.mElement_BOOLEAN == null) { in BOOLEAN()
324 rs.mElement_BOOLEAN = createUser(rs, DataType.BOOLEAN); in BOOLEAN()
328 return rs.mElement_BOOLEAN; in BOOLEAN()
338 public static Element U8(RenderScript rs) { in U8() argument
339 if (rs.mElement_U8 == null) { in U8()
340 synchronized (rs) { in U8()
341 if (rs.mElement_U8 == null) { in U8()
342 rs.mElement_U8 = createUser(rs, DataType.UNSIGNED_8); in U8()
346 return rs.mElement_U8; in U8()
356 public static Element I8(RenderScript rs) { in I8() argument
357 if (rs.mElement_I8 == null) { in I8()
358 synchronized (rs) { in I8()
359 if (rs.mElement_I8 == null) { in I8()
360 rs.mElement_I8 = createUser(rs, DataType.SIGNED_8); in I8()
364 return rs.mElement_I8; in I8()
367 public static Element U16(RenderScript rs) { in U16() argument
368 if (rs.mElement_U16 == null) { in U16()
369 synchronized (rs) { in U16()
370 if (rs.mElement_U16 == null) { in U16()
371 rs.mElement_U16 = createUser(rs, DataType.UNSIGNED_16); in U16()
375 return rs.mElement_U16; in U16()
378 public static Element I16(RenderScript rs) { in I16() argument
379 if (rs.mElement_I16 == null) { in I16()
380 synchronized (rs) { in I16()
381 if (rs.mElement_I16 == null) { in I16()
382 rs.mElement_I16 = createUser(rs, DataType.SIGNED_16); in I16()
386 return rs.mElement_I16; in I16()
389 public static Element U32(RenderScript rs) { in U32() argument
390 if (rs.mElement_U32 == null) { in U32()
391 synchronized (rs) { in U32()
392 if (rs.mElement_U32 == null) { in U32()
393 rs.mElement_U32 = createUser(rs, DataType.UNSIGNED_32); in U32()
397 return rs.mElement_U32; in U32()
400 public static Element I32(RenderScript rs) { in I32() argument
401 if (rs.mElement_I32 == null) { in I32()
402 synchronized (rs) { in I32()
403 if (rs.mElement_I32 == null) { in I32()
404 rs.mElement_I32 = createUser(rs, DataType.SIGNED_32); in I32()
408 return rs.mElement_I32; in I32()
411 public static Element U64(RenderScript rs) { in U64() argument
412 if (rs.mElement_U64 == null) { in U64()
413 synchronized (rs) { in U64()
414 if (rs.mElement_U64 == null) { in U64()
415 rs.mElement_U64 = createUser(rs, DataType.UNSIGNED_64); in U64()
419 return rs.mElement_U64; in U64()
422 public static Element I64(RenderScript rs) { in I64() argument
423 if (rs.mElement_I64 == null) { in I64()
424 synchronized (rs) { in I64()
425 if (rs.mElement_I64 == null) { in I64()
426 rs.mElement_I64 = createUser(rs, DataType.SIGNED_64); in I64()
430 return rs.mElement_I64; in I64()
433 public static Element F16(RenderScript rs) { in F16() argument
434 if (rs.mElement_F16 == null) { in F16()
435 synchronized (rs) { in F16()
436 if (rs.mElement_F16 == null) { in F16()
437 rs.mElement_F16 = createUser(rs, DataType.FLOAT_16); in F16()
441 return rs.mElement_F16; in F16()
444 public static Element F32(RenderScript rs) { in F32() argument
445 if (rs.mElement_F32 == null) { in F32()
446 synchronized (rs) { in F32()
447 if (rs.mElement_F32 == null) { in F32()
448 rs.mElement_F32 = createUser(rs, DataType.FLOAT_32); in F32()
452 return rs.mElement_F32; in F32()
455 public static Element F64(RenderScript rs) { in F64() argument
456 if (rs.mElement_F64 == null) { in F64()
457 synchronized (rs) { in F64()
458 if (rs.mElement_F64 == null) { in F64()
459 rs.mElement_F64 = createUser(rs, DataType.FLOAT_64); in F64()
463 return rs.mElement_F64; in F64()
466 public static Element ELEMENT(RenderScript rs) { in ELEMENT() argument
467 if (rs.mElement_ELEMENT == null) { in ELEMENT()
468 synchronized (rs) { in ELEMENT()
469 if (rs.mElement_ELEMENT == null) { in ELEMENT()
470 rs.mElement_ELEMENT = createUser(rs, DataType.RS_ELEMENT); in ELEMENT()
474 return rs.mElement_ELEMENT; in ELEMENT()
477 public static Element TYPE(RenderScript rs) { in TYPE() argument
478 if (rs.mElement_TYPE == null) { in TYPE()
479 synchronized (rs) { in TYPE()
480 if (rs.mElement_TYPE == null) { in TYPE()
481 rs.mElement_TYPE = createUser(rs, DataType.RS_TYPE); in TYPE()
485 return rs.mElement_TYPE; in TYPE()
488 public static Element ALLOCATION(RenderScript rs) { in ALLOCATION() argument
489 if (rs.mElement_ALLOCATION == null) { in ALLOCATION()
490 synchronized (rs) { in ALLOCATION()
491 if (rs.mElement_ALLOCATION == null) { in ALLOCATION()
492 rs.mElement_ALLOCATION = createUser(rs, DataType.RS_ALLOCATION); in ALLOCATION()
496 return rs.mElement_ALLOCATION; in ALLOCATION()
499 public static Element SAMPLER(RenderScript rs) { in SAMPLER() argument
500 if (rs.mElement_SAMPLER == null) { in SAMPLER()
501 synchronized (rs) { in SAMPLER()
502 if (rs.mElement_SAMPLER == null) { in SAMPLER()
503 rs.mElement_SAMPLER = createUser(rs, DataType.RS_SAMPLER); in SAMPLER()
507 return rs.mElement_SAMPLER; in SAMPLER()
510 public static Element SCRIPT(RenderScript rs) { in SCRIPT() argument
511 if (rs.mElement_SCRIPT == null) { in SCRIPT()
512 synchronized (rs) { in SCRIPT()
513 if (rs.mElement_SCRIPT == null) { in SCRIPT()
514 rs.mElement_SCRIPT = createUser(rs, DataType.RS_SCRIPT); in SCRIPT()
518 return rs.mElement_SCRIPT; in SCRIPT()
521 public static Element MESH(RenderScript rs) { in MESH() argument
522 if (rs.mElement_MESH == null) { in MESH()
523 synchronized (rs) { in MESH()
524 if (rs.mElement_MESH == null) { in MESH()
525 rs.mElement_MESH = createUser(rs, DataType.RS_MESH); in MESH()
529 return rs.mElement_MESH; in MESH()
532 public static Element PROGRAM_FRAGMENT(RenderScript rs) { in PROGRAM_FRAGMENT() argument
533 if (rs.mElement_PROGRAM_FRAGMENT == null) { in PROGRAM_FRAGMENT()
534 synchronized (rs) { in PROGRAM_FRAGMENT()
535 if (rs.mElement_PROGRAM_FRAGMENT == null) { in PROGRAM_FRAGMENT()
536 rs.mElement_PROGRAM_FRAGMENT = createUser(rs, DataType.RS_PROGRAM_FRAGMENT); in PROGRAM_FRAGMENT()
540 return rs.mElement_PROGRAM_FRAGMENT; in PROGRAM_FRAGMENT()
543 public static Element PROGRAM_VERTEX(RenderScript rs) { in PROGRAM_VERTEX() argument
544 if (rs.mElement_PROGRAM_VERTEX == null) { in PROGRAM_VERTEX()
545 synchronized (rs) { in PROGRAM_VERTEX()
546 if (rs.mElement_PROGRAM_VERTEX == null) { in PROGRAM_VERTEX()
547 rs.mElement_PROGRAM_VERTEX = createUser(rs, DataType.RS_PROGRAM_VERTEX); in PROGRAM_VERTEX()
551 return rs.mElement_PROGRAM_VERTEX; in PROGRAM_VERTEX()
554 public static Element PROGRAM_RASTER(RenderScript rs) { in PROGRAM_RASTER() argument
555 if (rs.mElement_PROGRAM_RASTER == null) { in PROGRAM_RASTER()
556 synchronized (rs) { in PROGRAM_RASTER()
557 if (rs.mElement_PROGRAM_RASTER == null) { in PROGRAM_RASTER()
558 rs.mElement_PROGRAM_RASTER = createUser(rs, DataType.RS_PROGRAM_RASTER); in PROGRAM_RASTER()
562 return rs.mElement_PROGRAM_RASTER; in PROGRAM_RASTER()
565 public static Element PROGRAM_STORE(RenderScript rs) { in PROGRAM_STORE() argument
566 if (rs.mElement_PROGRAM_STORE == null) { in PROGRAM_STORE()
567 synchronized (rs) { in PROGRAM_STORE()
568 if (rs.mElement_PROGRAM_STORE == null) { in PROGRAM_STORE()
569 rs.mElement_PROGRAM_STORE = createUser(rs, DataType.RS_PROGRAM_STORE); in PROGRAM_STORE()
573 return rs.mElement_PROGRAM_STORE; in PROGRAM_STORE()
576 public static Element FONT(RenderScript rs) { in FONT() argument
577 if (rs.mElement_FONT == null) { in FONT()
578 synchronized (rs) { in FONT()
579 if (rs.mElement_FONT == null) { in FONT()
580 rs.mElement_FONT = createUser(rs, DataType.RS_FONT); in FONT()
584 return rs.mElement_FONT; in FONT()
587 public static Element A_8(RenderScript rs) { in A_8() argument
588 if (rs.mElement_A_8 == null) { in A_8()
589 synchronized (rs) { in A_8()
590 if (rs.mElement_A_8 == null) { in A_8()
591 rs.mElement_A_8 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_A); in A_8()
595 return rs.mElement_A_8; in A_8()
598 public static Element RGB_565(RenderScript rs) { in RGB_565() argument
599 if (rs.mElement_RGB_565 == null) { in RGB_565()
600 synchronized (rs) { in RGB_565()
601 if (rs.mElement_RGB_565 == null) { in RGB_565()
602rs.mElement_RGB_565 = createPixel(rs, DataType.UNSIGNED_5_6_5, DataKind.PIXEL_RGB); in RGB_565()
606 return rs.mElement_RGB_565; in RGB_565()
609 public static Element RGB_888(RenderScript rs) { in RGB_888() argument
610 if (rs.mElement_RGB_888 == null) { in RGB_888()
611 synchronized (rs) { in RGB_888()
612 if (rs.mElement_RGB_888 == null) { in RGB_888()
613 rs.mElement_RGB_888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGB); in RGB_888()
617 return rs.mElement_RGB_888; in RGB_888()
620 public static Element RGBA_5551(RenderScript rs) { in RGBA_5551() argument
621 if (rs.mElement_RGBA_5551 == null) { in RGBA_5551()
622 synchronized (rs) { in RGBA_5551()
623 if (rs.mElement_RGBA_5551 == null) { in RGBA_5551()
624rs.mElement_RGBA_5551 = createPixel(rs, DataType.UNSIGNED_5_5_5_1, DataKind.PIXEL_RGBA); in RGBA_5551()
628 return rs.mElement_RGBA_5551; in RGBA_5551()
631 public static Element RGBA_4444(RenderScript rs) { in RGBA_4444() argument
632 if (rs.mElement_RGBA_4444 == null) { in RGBA_4444()
633 synchronized (rs) { in RGBA_4444()
634 if (rs.mElement_RGBA_4444 == null) { in RGBA_4444()
635rs.mElement_RGBA_4444 = createPixel(rs, DataType.UNSIGNED_4_4_4_4, DataKind.PIXEL_RGBA); in RGBA_4444()
639 return rs.mElement_RGBA_4444; in RGBA_4444()
642 public static Element RGBA_8888(RenderScript rs) { in RGBA_8888() argument
643 if (rs.mElement_RGBA_8888 == null) { in RGBA_8888()
644 synchronized (rs) { in RGBA_8888()
645 if (rs.mElement_RGBA_8888 == null) { in RGBA_8888()
646rs.mElement_RGBA_8888 = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_RGBA); in RGBA_8888()
650 return rs.mElement_RGBA_8888; in RGBA_8888()
653 public static Element F16_2(RenderScript rs) { in F16_2() argument
654 if (rs.mElement_HALF_2 == null) { in F16_2()
655 synchronized (rs) { in F16_2()
656 if (rs.mElement_HALF_2 == null) { in F16_2()
657 rs.mElement_HALF_2 = createVector(rs, DataType.FLOAT_16, 2); in F16_2()
661 return rs.mElement_HALF_2; in F16_2()
664 public static Element F16_3(RenderScript rs) { in F16_3() argument
665 if (rs.mElement_HALF_3 == null) { in F16_3()
666 synchronized (rs) { in F16_3()
667 if (rs.mElement_HALF_3 == null) { in F16_3()
668 rs.mElement_HALF_3 = createVector(rs, DataType.FLOAT_16, 3); in F16_3()
672 return rs.mElement_HALF_3; in F16_3()
675 public static Element F16_4(RenderScript rs) { in F16_4() argument
676 if (rs.mElement_HALF_4 == null) { in F16_4()
677 synchronized (rs) { in F16_4()
678 if (rs.mElement_HALF_4 == null) { in F16_4()
679 rs.mElement_HALF_4 = createVector(rs, DataType.FLOAT_16, 4); in F16_4()
683 return rs.mElement_HALF_4; in F16_4()
686 public static Element F32_2(RenderScript rs) { in F32_2() argument
687 if (rs.mElement_FLOAT_2 == null) { in F32_2()
688 synchronized (rs) { in F32_2()
689 if (rs.mElement_FLOAT_2 == null) { in F32_2()
690 rs.mElement_FLOAT_2 = createVector(rs, DataType.FLOAT_32, 2); in F32_2()
694 return rs.mElement_FLOAT_2; in F32_2()
697 public static Element F32_3(RenderScript rs) { in F32_3() argument
698 if (rs.mElement_FLOAT_3 == null) { in F32_3()
699 synchronized (rs) { in F32_3()
700 if (rs.mElement_FLOAT_3 == null) { in F32_3()
701 rs.mElement_FLOAT_3 = createVector(rs, DataType.FLOAT_32, 3); in F32_3()
705 return rs.mElement_FLOAT_3; in F32_3()
708 public static Element F32_4(RenderScript rs) { in F32_4() argument
709 if (rs.mElement_FLOAT_4 == null) { in F32_4()
710 synchronized (rs) { in F32_4()
711 if (rs.mElement_FLOAT_4 == null) { in F32_4()
712 rs.mElement_FLOAT_4 = createVector(rs, DataType.FLOAT_32, 4); in F32_4()
716 return rs.mElement_FLOAT_4; in F32_4()
719 public static Element F64_2(RenderScript rs) { in F64_2() argument
720 if (rs.mElement_DOUBLE_2 == null) { in F64_2()
721 synchronized (rs) { in F64_2()
722 if (rs.mElement_DOUBLE_2 == null) { in F64_2()
723 rs.mElement_DOUBLE_2 = createVector(rs, DataType.FLOAT_64, 2); in F64_2()
727 return rs.mElement_DOUBLE_2; in F64_2()
730 public static Element F64_3(RenderScript rs) { in F64_3() argument
731 if (rs.mElement_DOUBLE_3 == null) { in F64_3()
732 synchronized (rs) { in F64_3()
733 if (rs.mElement_DOUBLE_3 == null) { in F64_3()
734 rs.mElement_DOUBLE_3 = createVector(rs, DataType.FLOAT_64, 3); in F64_3()
738 return rs.mElement_DOUBLE_3; in F64_3()
741 public static Element F64_4(RenderScript rs) { in F64_4() argument
742 if (rs.mElement_DOUBLE_4 == null) { in F64_4()
743 synchronized (rs) { in F64_4()
744 if (rs.mElement_DOUBLE_4 == null) { in F64_4()
745 rs.mElement_DOUBLE_4 = createVector(rs, DataType.FLOAT_64, 4); in F64_4()
749 return rs.mElement_DOUBLE_4; in F64_4()
752 public static Element U8_2(RenderScript rs) { in U8_2() argument
753 if (rs.mElement_UCHAR_2 == null) { in U8_2()
754 synchronized (rs) { in U8_2()
755 if (rs.mElement_UCHAR_2 == null) { in U8_2()
756 rs.mElement_UCHAR_2 = createVector(rs, DataType.UNSIGNED_8, 2); in U8_2()
760 return rs.mElement_UCHAR_2; in U8_2()
763 public static Element U8_3(RenderScript rs) { in U8_3() argument
764 if (rs.mElement_UCHAR_3 == null) { in U8_3()
765 synchronized (rs) { in U8_3()
766 if (rs.mElement_UCHAR_3 == null) { in U8_3()
767 rs.mElement_UCHAR_3 = createVector(rs, DataType.UNSIGNED_8, 3); in U8_3()
771 return rs.mElement_UCHAR_3; in U8_3()
774 public static Element U8_4(RenderScript rs) { in U8_4() argument
775 if (rs.mElement_UCHAR_4 == null) { in U8_4()
776 synchronized (rs) { in U8_4()
777 if (rs.mElement_UCHAR_4 == null) { in U8_4()
778 rs.mElement_UCHAR_4 = createVector(rs, DataType.UNSIGNED_8, 4); in U8_4()
782 return rs.mElement_UCHAR_4; in U8_4()
785 public static Element I8_2(RenderScript rs) { in I8_2() argument
786 if (rs.mElement_CHAR_2 == null) { in I8_2()
787 synchronized (rs) { in I8_2()
788 if (rs.mElement_CHAR_2 == null) { in I8_2()
789 rs.mElement_CHAR_2 = createVector(rs, DataType.SIGNED_8, 2); in I8_2()
793 return rs.mElement_CHAR_2; in I8_2()
796 public static Element I8_3(RenderScript rs) { in I8_3() argument
797 if (rs.mElement_CHAR_3 == null) { in I8_3()
798 synchronized (rs) { in I8_3()
799 if (rs.mElement_CHAR_3 == null) { in I8_3()
800 rs.mElement_CHAR_3 = createVector(rs, DataType.SIGNED_8, 3); in I8_3()
804 return rs.mElement_CHAR_3; in I8_3()
807 public static Element I8_4(RenderScript rs) { in I8_4() argument
808 if (rs.mElement_CHAR_4 == null) { in I8_4()
809 synchronized (rs) { in I8_4()
810 if (rs.mElement_CHAR_4 == null) { in I8_4()
811 rs.mElement_CHAR_4 = createVector(rs, DataType.SIGNED_8, 4); in I8_4()
815 return rs.mElement_CHAR_4; in I8_4()
818 public static Element U16_2(RenderScript rs) { in U16_2() argument
819 if (rs.mElement_USHORT_2 == null) { in U16_2()
820 synchronized (rs) { in U16_2()
821 if (rs.mElement_USHORT_2 == null) { in U16_2()
822 rs.mElement_USHORT_2 = createVector(rs, DataType.UNSIGNED_16, 2); in U16_2()
826 return rs.mElement_USHORT_2; in U16_2()
829 public static Element U16_3(RenderScript rs) { in U16_3() argument
830 if (rs.mElement_USHORT_3 == null) { in U16_3()
831 synchronized (rs) { in U16_3()
832 if (rs.mElement_USHORT_3 == null) { in U16_3()
833 rs.mElement_USHORT_3 = createVector(rs, DataType.UNSIGNED_16, 3); in U16_3()
837 return rs.mElement_USHORT_3; in U16_3()
840 public static Element U16_4(RenderScript rs) { in U16_4() argument
841 if (rs.mElement_USHORT_4 == null) { in U16_4()
842 synchronized (rs) { in U16_4()
843 if (rs.mElement_USHORT_4 == null) { in U16_4()
844 rs.mElement_USHORT_4 = createVector(rs, DataType.UNSIGNED_16, 4); in U16_4()
848 return rs.mElement_USHORT_4; in U16_4()
851 public static Element I16_2(RenderScript rs) { in I16_2() argument
852 if (rs.mElement_SHORT_2 == null) { in I16_2()
853 synchronized (rs) { in I16_2()
854 if (rs.mElement_SHORT_2 == null) { in I16_2()
855 rs.mElement_SHORT_2 = createVector(rs, DataType.SIGNED_16, 2); in I16_2()
859 return rs.mElement_SHORT_2; in I16_2()
862 public static Element I16_3(RenderScript rs) { in I16_3() argument
863 if (rs.mElement_SHORT_3 == null) { in I16_3()
864 synchronized (rs) { in I16_3()
865 if (rs.mElement_SHORT_3 == null) { in I16_3()
866 rs.mElement_SHORT_3 = createVector(rs, DataType.SIGNED_16, 3); in I16_3()
870 return rs.mElement_SHORT_3; in I16_3()
873 public static Element I16_4(RenderScript rs) { in I16_4() argument
874 if (rs.mElement_SHORT_4 == null) { in I16_4()
875 synchronized (rs) { in I16_4()
876 if (rs.mElement_SHORT_4 == null) { in I16_4()
877 rs.mElement_SHORT_4 = createVector(rs, DataType.SIGNED_16, 4); in I16_4()
881 return rs.mElement_SHORT_4; in I16_4()
884 public static Element U32_2(RenderScript rs) { in U32_2() argument
885 if (rs.mElement_UINT_2 == null) { in U32_2()
886 synchronized (rs) { in U32_2()
887 if (rs.mElement_UINT_2 == null) { in U32_2()
888 rs.mElement_UINT_2 = createVector(rs, DataType.UNSIGNED_32, 2); in U32_2()
892 return rs.mElement_UINT_2; in U32_2()
895 public static Element U32_3(RenderScript rs) { in U32_3() argument
896 if (rs.mElement_UINT_3 == null) { in U32_3()
897 synchronized (rs) { in U32_3()
898 if (rs.mElement_UINT_3 == null) { in U32_3()
899 rs.mElement_UINT_3 = createVector(rs, DataType.UNSIGNED_32, 3); in U32_3()
903 return rs.mElement_UINT_3; in U32_3()
906 public static Element U32_4(RenderScript rs) { in U32_4() argument
907 if (rs.mElement_UINT_4 == null) { in U32_4()
908 synchronized (rs) { in U32_4()
909 if (rs.mElement_UINT_4 == null) { in U32_4()
910 rs.mElement_UINT_4 = createVector(rs, DataType.UNSIGNED_32, 4); in U32_4()
914 return rs.mElement_UINT_4; in U32_4()
917 public static Element I32_2(RenderScript rs) { in I32_2() argument
918 if (rs.mElement_INT_2 == null) { in I32_2()
919 synchronized (rs) { in I32_2()
920 if (rs.mElement_INT_2 == null) { in I32_2()
921 rs.mElement_INT_2 = createVector(rs, DataType.SIGNED_32, 2); in I32_2()
925 return rs.mElement_INT_2; in I32_2()
928 public static Element I32_3(RenderScript rs) { in I32_3() argument
929 if (rs.mElement_INT_3 == null) { in I32_3()
930 synchronized (rs) { in I32_3()
931 if (rs.mElement_INT_3 == null) { in I32_3()
932 rs.mElement_INT_3 = createVector(rs, DataType.SIGNED_32, 3); in I32_3()
936 return rs.mElement_INT_3; in I32_3()
939 public static Element I32_4(RenderScript rs) { in I32_4() argument
940 if (rs.mElement_INT_4 == null) { in I32_4()
941 synchronized (rs) { in I32_4()
942 if (rs.mElement_INT_4 == null) { in I32_4()
943 rs.mElement_INT_4 = createVector(rs, DataType.SIGNED_32, 4); in I32_4()
947 return rs.mElement_INT_4; in I32_4()
950 public static Element U64_2(RenderScript rs) { in U64_2() argument
951 if (rs.mElement_ULONG_2 == null) { in U64_2()
952 synchronized (rs) { in U64_2()
953 if (rs.mElement_ULONG_2 == null) { in U64_2()
954 rs.mElement_ULONG_2 = createVector(rs, DataType.UNSIGNED_64, 2); in U64_2()
958 return rs.mElement_ULONG_2; in U64_2()
961 public static Element U64_3(RenderScript rs) { in U64_3() argument
962 if (rs.mElement_ULONG_3 == null) { in U64_3()
963 synchronized (rs) { in U64_3()
964 if (rs.mElement_ULONG_3 == null) { in U64_3()
965 rs.mElement_ULONG_3 = createVector(rs, DataType.UNSIGNED_64, 3); in U64_3()
969 return rs.mElement_ULONG_3; in U64_3()
972 public static Element U64_4(RenderScript rs) { in U64_4() argument
973 if (rs.mElement_ULONG_4 == null) { in U64_4()
974 synchronized (rs) { in U64_4()
975 if (rs.mElement_ULONG_4 == null) { in U64_4()
976 rs.mElement_ULONG_4 = createVector(rs, DataType.UNSIGNED_64, 4); in U64_4()
980 return rs.mElement_ULONG_4; in U64_4()
983 public static Element I64_2(RenderScript rs) { in I64_2() argument
984 if (rs.mElement_LONG_2 == null) { in I64_2()
985 synchronized (rs) { in I64_2()
986 if (rs.mElement_LONG_2 == null) { in I64_2()
987 rs.mElement_LONG_2 = createVector(rs, DataType.SIGNED_64, 2); in I64_2()
991 return rs.mElement_LONG_2; in I64_2()
994 public static Element I64_3(RenderScript rs) { in I64_3() argument
995 if (rs.mElement_LONG_3 == null) { in I64_3()
996 synchronized (rs) { in I64_3()
997 if (rs.mElement_LONG_3 == null) { in I64_3()
998 rs.mElement_LONG_3 = createVector(rs, DataType.SIGNED_64, 3); in I64_3()
1002 return rs.mElement_LONG_3; in I64_3()
1005 public static Element I64_4(RenderScript rs) { in I64_4() argument
1006 if (rs.mElement_LONG_4 == null) { in I64_4()
1007 synchronized (rs) { in I64_4()
1008 if (rs.mElement_LONG_4 == null) { in I64_4()
1009 rs.mElement_LONG_4 = createVector(rs, DataType.SIGNED_64, 4); in I64_4()
1013 return rs.mElement_LONG_4; in I64_4()
1016 public static Element YUV(RenderScript rs) { in YUV() argument
1017 if (rs.mElement_YUV == null) { in YUV()
1018 synchronized (rs) { in YUV()
1019 if (rs.mElement_YUV == null) { in YUV()
1020 rs.mElement_YUV = createPixel(rs, DataType.UNSIGNED_8, DataKind.PIXEL_YUV); in YUV()
1024 return rs.mElement_YUV; in YUV()
1027 public static Element MATRIX_4X4(RenderScript rs) { in MATRIX_4X4() argument
1028 if (rs.mElement_MATRIX_4X4 == null) { in MATRIX_4X4()
1029 synchronized (rs) { in MATRIX_4X4()
1030 if (rs.mElement_MATRIX_4X4 == null) { in MATRIX_4X4()
1031 rs.mElement_MATRIX_4X4 = createUser(rs, DataType.MATRIX_4X4); in MATRIX_4X4()
1035 return rs.mElement_MATRIX_4X4; in MATRIX_4X4()
1040 public static Element MATRIX4X4(RenderScript rs) { in MATRIX4X4() argument
1041 return MATRIX_4X4(rs); in MATRIX4X4()
1044 public static Element MATRIX_3X3(RenderScript rs) { in MATRIX_3X3() argument
1045 if (rs.mElement_MATRIX_3X3 == null) { in MATRIX_3X3()
1046 synchronized (rs) { in MATRIX_3X3()
1047 if (rs.mElement_MATRIX_3X3 == null) { in MATRIX_3X3()
1048 rs.mElement_MATRIX_3X3 = createUser(rs, DataType.MATRIX_3X3); in MATRIX_3X3()
1052 return rs.mElement_MATRIX_3X3; in MATRIX_3X3()
1055 public static Element MATRIX_2X2(RenderScript rs) { in MATRIX_2X2() argument
1056 if (rs.mElement_MATRIX_2X2 == null) { in MATRIX_2X2()
1057 synchronized (rs) { in MATRIX_2X2()
1058 if (rs.mElement_MATRIX_2X2 == null) { in MATRIX_2X2()
1059 rs.mElement_MATRIX_2X2 = createUser(rs, DataType.MATRIX_2X2); in MATRIX_2X2()
1063 return rs.mElement_MATRIX_2X2; in MATRIX_2X2()
1066 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) { in Element() argument
1067 super(id, rs); in Element()
1083 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
1084 super(id, rs); in Element()
1102 Element(long id, RenderScript rs) { in Element() argument
1103 super(id, rs); in Element()
1157 static Element createUser(RenderScript rs, DataType dt) { in createUser() argument
1161 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
1162 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
1178 public static Element createVector(RenderScript rs, DataType dt, int size) { in createVector() argument
1199 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
1200 return new Element(id, rs, dt, dk, norm, size); in createVector()
1222 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) { in createPixel() argument
1270 long id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createPixel()
1271 return new Element(id, rs, dt, dk, norm, size); in createPixel()
1320 public Builder(RenderScript rs) { in Builder() argument
1321 mRS = rs; in Builder()