Lines Matching refs:dt
1083 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
1085 if ((dt != DataType.UNSIGNED_5_6_5) && in Element()
1086 (dt != DataType.UNSIGNED_4_4_4_4) && in Element()
1087 (dt != DataType.UNSIGNED_5_5_5_1)) { in Element()
1089 mSize = dt.mSize * 4; in Element()
1091 mSize = dt.mSize * size; in Element()
1094 mSize = dt.mSize; in Element()
1096 mType = dt; in Element()
1117 for (DataType dt: DataType.values()) { in updateFromNative()
1118 if(dt.mID == dataBuffer[0]){ in updateFromNative()
1119 mType = dt; in updateFromNative()
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
1183 switch (dt) { in createVector()
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
1232 if (!(dt == DataType.UNSIGNED_8 || in createPixel()
1233 dt == DataType.UNSIGNED_16 || in createPixel()
1234 dt == DataType.UNSIGNED_5_6_5 || in createPixel()
1235 dt == DataType.UNSIGNED_4_4_4_4 || in createPixel()
1236 dt == DataType.UNSIGNED_5_5_5_1)) { in createPixel()
1239 if (dt == DataType.UNSIGNED_5_6_5 && dk != DataKind.PIXEL_RGB) { in createPixel()
1242 if (dt == DataType.UNSIGNED_5_5_5_1 && dk != DataKind.PIXEL_RGBA) { in createPixel()
1245 if (dt == DataType.UNSIGNED_4_4_4_4 && dk != DataKind.PIXEL_RGBA) { in createPixel()
1248 if (dt == DataType.UNSIGNED_16 && in createPixel()
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()