diff options
author | Jason Sams <rjsams@android.com> | 2011-04-22 17:05:25 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2011-04-25 16:09:48 -0700 |
commit | 6cc888e77e17ac522f75bf61403307de8ace2ef3 (patch) | |
tree | bcd815ba22f2165576399fa1cfcf24f828fc6f43 | |
parent | 466e3a22db283958a1da71cc60a23ce3976a3659 (diff) | |
download | frameworks_base-6cc888e77e17ac522f75bf61403307de8ace2ef3.zip frameworks_base-6cc888e77e17ac522f75bf61403307de8ace2ef3.tar.gz frameworks_base-6cc888e77e17ac522f75bf61403307de8ace2ef3.tar.bz2 |
Start ICS header cleanup and finish type matrix.
Change-Id: If65f96f08c958d330862c543d85dd9d4a0f90e06
-rw-r--r-- | api/current.txt | 36 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Byte2.java | 5 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Byte3.java | 6 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Byte4.java | 7 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Double2.java | 43 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Double3.java | 45 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Double4.java | 46 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Int2.java | 5 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Int3.java | 6 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Int4.java | 7 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Long2.java | 5 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Long3.java | 6 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Long4.java | 7 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Short2.java | 5 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Short3.java | 6 | ||||
-rw-r--r-- | graphics/java/android/renderscript/Short4.java | 7 | ||||
-rw-r--r-- | libs/rs/scriptc/rs_types.rsh | 11 |
17 files changed, 253 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index fd05e48..214d5f3 100644 --- a/api/current.txt +++ b/api/current.txt @@ -16240,12 +16240,14 @@ package android.renderscript { public class Byte2 { ctor public Byte2(); + ctor public Byte2(byte, byte); field public byte x; field public byte y; } public class Byte3 { ctor public Byte3(); + ctor public Byte3(byte, byte, byte); field public byte x; field public byte y; field public byte z; @@ -16253,12 +16255,37 @@ package android.renderscript { public class Byte4 { ctor public Byte4(); + ctor public Byte4(byte, byte, byte, byte); field public byte w; field public byte x; field public byte y; field public byte z; } + public class Double2 { + ctor public Double2(); + ctor public Double2(double, double); + field public double x; + field public double y; + } + + public class Double3 { + ctor public Double3(); + ctor public Double3(double, double, double); + field public double x; + field public double y; + field public double z; + } + + public class Double4 { + ctor public Double4(); + ctor public Double4(double, double, double, double); + field public double w; + field public double x; + field public double y; + field public double z; + } + public class Element extends android.renderscript.BaseObj { method public static android.renderscript.Element ALLOCATION(android.renderscript.RenderScript); method public static android.renderscript.Element A_8(android.renderscript.RenderScript); @@ -16422,12 +16449,14 @@ package android.renderscript { public class Int2 { ctor public Int2(); + ctor public Int2(int, int); field public int x; field public int y; } public class Int3 { ctor public Int3(); + ctor public Int3(int, int, int); field public int x; field public int y; field public int z; @@ -16435,6 +16464,7 @@ package android.renderscript { public class Int4 { ctor public Int4(); + ctor public Int4(int, int, int, int); field public int w; field public int x; field public int y; @@ -16443,12 +16473,14 @@ package android.renderscript { public class Long2 { ctor public Long2(); + ctor public Long2(long, long); field public long x; field public long y; } public class Long3 { ctor public Long3(); + ctor public Long3(long, long, long); field public long x; field public long y; field public long z; @@ -16456,6 +16488,7 @@ package android.renderscript { public class Long4 { ctor public Long4(); + ctor public Long4(long, long, long, long); field public long w; field public long x; field public long y; @@ -16852,12 +16885,14 @@ package android.renderscript { public class Short2 { ctor public Short2(); + ctor public Short2(short, short); field public short x; field public short y; } public class Short3 { ctor public Short3(); + ctor public Short3(short, short, short); field public short x; field public short y; field public short z; @@ -16865,6 +16900,7 @@ package android.renderscript { public class Short4 { ctor public Short4(); + ctor public Short4(short, short, short, short); field public short w; field public short x; field public short y; diff --git a/graphics/java/android/renderscript/Byte2.java b/graphics/java/android/renderscript/Byte2.java index 7ec6cb0..7df5f2e 100644 --- a/graphics/java/android/renderscript/Byte2.java +++ b/graphics/java/android/renderscript/Byte2.java @@ -28,6 +28,11 @@ public class Byte2 { public Byte2() { } + public Byte2(byte initX, byte initY) { + x = initX; + y = initY; + } + public byte x; public byte y; } diff --git a/graphics/java/android/renderscript/Byte3.java b/graphics/java/android/renderscript/Byte3.java index 7bcd4b4..02a01c1 100644 --- a/graphics/java/android/renderscript/Byte3.java +++ b/graphics/java/android/renderscript/Byte3.java @@ -28,6 +28,12 @@ public class Byte3 { public Byte3() { } + public Byte3(byte initX, byte initY, byte initZ) { + x = initX; + y = initY; + z = initZ; + } + public byte x; public byte y; public byte z; diff --git a/graphics/java/android/renderscript/Byte4.java b/graphics/java/android/renderscript/Byte4.java index c6e7f63..a55a696 100644 --- a/graphics/java/android/renderscript/Byte4.java +++ b/graphics/java/android/renderscript/Byte4.java @@ -28,6 +28,13 @@ public class Byte4 { public Byte4() { } + public Byte4(byte initX, byte initY, byte initZ, byte initW) { + x = initX; + y = initY; + z = initZ; + w = initW; + } + public byte x; public byte y; public byte z; diff --git a/graphics/java/android/renderscript/Double2.java b/graphics/java/android/renderscript/Double2.java new file mode 100644 index 0000000..9f4f328 --- /dev/null +++ b/graphics/java/android/renderscript/Double2.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.renderscript; + +import java.lang.Math; +import android.util.Log; + + +/** + * Class for exposing the native Renderscript double2 type back + * to the Android system. + * + **/ +public class Double2 { + public Double2() { + } + + public Double2(double initX, double initY) { + x = initX; + y = initY; + } + + public double x; + public double y; +} + + + + diff --git a/graphics/java/android/renderscript/Double3.java b/graphics/java/android/renderscript/Double3.java new file mode 100644 index 0000000..eb55142 --- /dev/null +++ b/graphics/java/android/renderscript/Double3.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.renderscript; + +import java.lang.Math; +import android.util.Log; + + +/** + * Class for exposing the native Renderscript double3 type back + * to the Android system. + * + **/ +public class Double3 { + public Double3() { + } + + public Double3(double initX, double initY, double initZ) { + x = initX; + y = initY; + z = initZ; + } + + public double x; + public double y; + public double z; +} + + + + diff --git a/graphics/java/android/renderscript/Double4.java b/graphics/java/android/renderscript/Double4.java new file mode 100644 index 0000000..4755a76 --- /dev/null +++ b/graphics/java/android/renderscript/Double4.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.renderscript; + +import java.lang.Math; +import android.util.Log; + + +/** + * Class for exposing the native Renderscript double4 type back + * to the Android system. + * + **/ +public class Double4 { + public Double4() { + } + + public Double4(double initX, double initY, double initZ, double initW) { + x = initX; + y = initY; + z = initZ; + w = initW; + } + + public double x; + public double y; + public double z; + public double w; +} + + + diff --git a/graphics/java/android/renderscript/Int2.java b/graphics/java/android/renderscript/Int2.java index 7aaa4e8..434af21 100644 --- a/graphics/java/android/renderscript/Int2.java +++ b/graphics/java/android/renderscript/Int2.java @@ -28,6 +28,11 @@ public class Int2 { public Int2() { } + public Int2(int initX, int initY) { + x = initX; + y = initY; + } + public int x; public int y; } diff --git a/graphics/java/android/renderscript/Int3.java b/graphics/java/android/renderscript/Int3.java index e5c1cdf..333ccf8 100644 --- a/graphics/java/android/renderscript/Int3.java +++ b/graphics/java/android/renderscript/Int3.java @@ -28,6 +28,12 @@ public class Int3 { public Int3() { } + public Int3(int initX, int initY, int initZ) { + x = initX; + y = initY; + z = initZ; + } + public int x; public int y; public int z; diff --git a/graphics/java/android/renderscript/Int4.java b/graphics/java/android/renderscript/Int4.java index 5289a89..8734c95 100644 --- a/graphics/java/android/renderscript/Int4.java +++ b/graphics/java/android/renderscript/Int4.java @@ -28,6 +28,13 @@ public class Int4 { public Int4() { } + public Int4(int initX, int initY, int initZ, int initW) { + x = initX; + y = initY; + z = initZ; + w = initW; + } + public int x; public int y; public int z; diff --git a/graphics/java/android/renderscript/Long2.java b/graphics/java/android/renderscript/Long2.java index 8590b96..95ea18c 100644 --- a/graphics/java/android/renderscript/Long2.java +++ b/graphics/java/android/renderscript/Long2.java @@ -27,6 +27,11 @@ public class Long2 { public Long2() { } + public Long2(long initX, long initY) { + x = initX; + y = initY; + } + public long x; public long y; } diff --git a/graphics/java/android/renderscript/Long3.java b/graphics/java/android/renderscript/Long3.java index 6ae837a..96ee885 100644 --- a/graphics/java/android/renderscript/Long3.java +++ b/graphics/java/android/renderscript/Long3.java @@ -27,6 +27,12 @@ public class Long3 { public Long3() { } + public Long3(long initX, long initY, long initZ) { + x = initX; + y = initY; + z = initZ; + } + public long x; public long y; public long z; diff --git a/graphics/java/android/renderscript/Long4.java b/graphics/java/android/renderscript/Long4.java index 04c12f2..50e664c 100644 --- a/graphics/java/android/renderscript/Long4.java +++ b/graphics/java/android/renderscript/Long4.java @@ -27,6 +27,13 @@ public class Long4 { public Long4() { } + public Long4(long initX, long initY, long initZ, long initW) { + x = initX; + y = initY; + z = initZ; + w = initW; + } + public long x; public long y; public long z; diff --git a/graphics/java/android/renderscript/Short2.java b/graphics/java/android/renderscript/Short2.java index 7094edd..617f1f5 100644 --- a/graphics/java/android/renderscript/Short2.java +++ b/graphics/java/android/renderscript/Short2.java @@ -28,6 +28,11 @@ public class Short2 { public Short2() { } + public Short2(short initX, short initY) { + x = initX; + y = initY; + } + public short x; public short y; } diff --git a/graphics/java/android/renderscript/Short3.java b/graphics/java/android/renderscript/Short3.java index f34500c..b9ca49b 100644 --- a/graphics/java/android/renderscript/Short3.java +++ b/graphics/java/android/renderscript/Short3.java @@ -28,6 +28,12 @@ public class Short3 { public Short3() { } + public Short3(short initX, short initY, short initZ) { + x = initX; + y = initY; + z = initZ; + } + public short x; public short y; public short z; diff --git a/graphics/java/android/renderscript/Short4.java b/graphics/java/android/renderscript/Short4.java index 5698fee..d5f2db5 100644 --- a/graphics/java/android/renderscript/Short4.java +++ b/graphics/java/android/renderscript/Short4.java @@ -28,6 +28,13 @@ public class Short4 { public Short4() { } + public Short4(short initX, short initY, short initZ, short initW) { + x = initX; + y = initY; + z = initZ; + w = initW; + } + public short x; public short y; public short z; diff --git a/libs/rs/scriptc/rs_types.rsh b/libs/rs/scriptc/rs_types.rsh index a010096..d9f4b4b 100644 --- a/libs/rs/scriptc/rs_types.rsh +++ b/libs/rs/scriptc/rs_types.rsh @@ -36,6 +36,10 @@ typedef float float2 __attribute__((ext_vector_type(2))); typedef float float3 __attribute__((ext_vector_type(3))); typedef float float4 __attribute__((ext_vector_type(4))); +typedef double double2 __attribute__((ext_vector_type(2))); +typedef double double3 __attribute__((ext_vector_type(3))); +typedef double double4 __attribute__((ext_vector_type(4))); + typedef uchar uchar2 __attribute__((ext_vector_type(2))); typedef uchar uchar3 __attribute__((ext_vector_type(3))); typedef uchar uchar4 __attribute__((ext_vector_type(4))); @@ -48,6 +52,10 @@ typedef uint uint2 __attribute__((ext_vector_type(2))); typedef uint uint3 __attribute__((ext_vector_type(3))); typedef uint uint4 __attribute__((ext_vector_type(4))); +typedef ulong ulong2 __attribute__((ext_vector_type(2))); +typedef ulong ulong3 __attribute__((ext_vector_type(3))); +typedef ulong ulong4 __attribute__((ext_vector_type(4))); + typedef char char2 __attribute__((ext_vector_type(2))); typedef char char3 __attribute__((ext_vector_type(3))); typedef char char4 __attribute__((ext_vector_type(4))); @@ -60,6 +68,9 @@ typedef int int2 __attribute__((ext_vector_type(2))); typedef int int3 __attribute__((ext_vector_type(3))); typedef int int4 __attribute__((ext_vector_type(4))); +typedef long long2 __attribute__((ext_vector_type(2))); +typedef long long3 __attribute__((ext_vector_type(3))); +typedef long long4 __attribute__((ext_vector_type(4))); typedef struct { float m[16]; |