/frameworks/base/rs/java/android/renderscript/ |
D | Short4.java | 57 public void add(Short4 a) { in add() argument 58 this.x += a.x; in add() 59 this.y += a.y; in add() 60 this.z += a.z; in add() 61 this.w += a.w; in add() 71 public static Short4 add(Short4 a, Short4 b) { in add() argument 73 result.x = (short)(a.x + b.x); in add() 74 result.y = (short)(a.y + b.y); in add() 75 result.z = (short)(a.z + b.z); in add() 76 result.w = (short)(a.w + b.w); in add() [all …]
|
D | Long4.java | 57 public void add(Long4 a) { in add() argument 58 this.x += a.x; in add() 59 this.y += a.y; in add() 60 this.z += a.z; in add() 61 this.w += a.w; in add() 71 public static Long4 add(Long4 a, Long4 b) { in add() argument 73 result.x = a.x + b.x; in add() 74 result.y = a.y + b.y; in add() 75 result.z = a.z + b.z; in add() 76 result.w = a.w + b.w; in add() [all …]
|
D | Int4.java | 57 public void add(Int4 a) { in add() argument 58 this.x += a.x; in add() 59 this.y += a.y; in add() 60 this.z += a.z; in add() 61 this.w += a.w; in add() 71 public static Int4 add(Int4 a, Int4 b) { in add() argument 73 result.x = a.x + b.x; in add() 74 result.y = a.y + b.y; in add() 75 result.z = a.z + b.z; in add() 76 result.w = a.w + b.w; in add() [all …]
|
D | Byte4.java | 52 public void add(Byte4 a) { in add() argument 53 this.x += a.x; in add() 54 this.y += a.y; in add() 55 this.z += a.z; in add() 56 this.w += a.w; in add() 66 public static Byte4 add(Byte4 a, Byte4 b) { in add() argument 68 result.x = (byte)(a.x + b.x); in add() 69 result.y = (byte)(a.y + b.y); in add() 70 result.z = (byte)(a.z + b.z); in add() 71 result.w = (byte)(a.w + b.w); in add() [all …]
|
D | Short3.java | 54 public void add(Short3 a) { in add() argument 55 this.x += a.x; in add() 56 this.y += a.y; in add() 57 this.z += a.z; in add() 67 public static Short3 add(Short3 a, Short3 b) { in add() argument 69 result.x = (short)(a.x + b.x); in add() 70 result.y = (short)(a.y + b.y); in add() 71 result.z = (short)(a.z + b.z); in add() 94 public static Short3 add(Short3 a, short b) { in add() argument 96 result.x = (short)(a.x + b); in add() [all …]
|
D | Long3.java | 54 public void add(Long3 a) { in add() argument 55 this.x += a.x; in add() 56 this.y += a.y; in add() 57 this.z += a.z; in add() 67 public static Long3 add(Long3 a, Long3 b) { in add() argument 69 result.x = a.x + b.x; in add() 70 result.y = a.y + b.y; in add() 71 result.z = a.z + b.z; in add() 94 public static Long3 add(Long3 a, long b) { in add() argument 96 result.x = a.x + b; in add() [all …]
|
D | Int3.java | 54 public void add(Int3 a) { in add() argument 55 this.x += a.x; in add() 56 this.y += a.y; in add() 57 this.z += a.z; in add() 67 public static Int3 add(Int3 a, Int3 b) { in add() argument 69 result.x = a.x + b.x; in add() 70 result.y = a.y + b.y; in add() 71 result.z = a.z + b.z; in add() 94 public static Int3 add(Int3 a, int b) { in add() argument 96 result.x = a.x + b; in add() [all …]
|
D | Byte3.java | 50 public void add(Byte3 a) { in add() argument 51 this.x += a.x; in add() 52 this.y += a.y; in add() 53 this.z += a.z; in add() 63 public static Byte3 add(Byte3 a, Byte3 b) { in add() argument 65 result.x = (byte)(a.x + b.x); in add() 66 result.y = (byte)(a.y + b.y); in add() 67 result.z = (byte)(a.z + b.z); in add() 90 public static Byte3 add(Byte3 a, byte b) { in add() argument 92 result.x = (byte)(a.x + b); in add() [all …]
|
D | Short2.java | 54 public void add(Short2 a) { in add() argument 55 this.x += a.x; in add() 56 this.y += a.y; in add() 66 public static Short2 add(Short2 a, Short2 b) { in add() argument 68 result.x = (short)(a.x + b.x); in add() 69 result.y = (short)(a.y + b.y); in add() 91 public static Short2 add(Short2 a, short b) { in add() argument 93 result.x = (short)(a.x + b); in add() 94 result.y = (short)(a.y + b); in add() 104 public void sub(Short2 a) { in sub() argument [all …]
|
D | Int2.java | 51 public void add(Int2 a) { in add() argument 52 this.x += a.x; in add() 53 this.y += a.y; in add() 63 public static Int2 add(Int2 a, Int2 b) { in add() argument 65 result.x = a.x + b.x; in add() 66 result.y = a.y + b.y; in add() 88 public static Int2 add(Int2 a, int b) { in add() argument 90 result.x = a.x + b; in add() 91 result.y = a.y + b; in add() 101 public void sub(Int2 a) { in sub() argument [all …]
|
D | Long2.java | 51 public void add(Long2 a) { in add() argument 52 this.x += a.x; in add() 53 this.y += a.y; in add() 63 public static Long2 add(Long2 a, Long2 b) { in add() argument 65 result.x = a.x + b.x; in add() 66 result.y = a.y + b.y; in add() 88 public static Long2 add(Long2 a, long b) { in add() argument 90 result.x = a.x + b; in add() 91 result.y = a.y + b; in add() 101 public void sub(Long2 a) { in sub() argument [all …]
|
D | Byte2.java | 47 public void add(Byte2 a) { in add() argument 48 this.x += a.x; in add() 49 this.y += a.y; in add() 59 public static Byte2 add(Byte2 a, Byte2 b) { in add() argument 61 result.x = (byte)(a.x + b.x); in add() 62 result.y = (byte)(a.y + b.y); in add() 84 public static Byte2 add(Byte2 a, byte b) { in add() argument 86 result.x = (byte)(a.x + b); in add() 87 result.y = (byte)(a.y + b); in add() 97 public void sub(Byte2 a) { in sub() argument [all …]
|
D | Double4.java | 53 public static Double4 add(Double4 a, Double4 b) { in add() argument 55 res.x = a.x + b.x; in add() 56 res.y = a.y + b.y; in add() 57 res.z = a.z + b.z; in add() 58 res.w = a.w + b.w; in add() 94 public static Double4 add(Double4 a, double b) { in add() argument 96 res.x = a.x + b; in add() 97 res.y = a.y + b; in add() 98 res.z = a.z + b; in add() 99 res.w = a.w + b; in add() [all …]
|
D | Float4.java | 53 public static Float4 add(Float4 a, Float4 b) { in add() argument 55 res.x = a.x + b.x; in add() 56 res.y = a.y + b.y; in add() 57 res.z = a.z + b.z; in add() 58 res.w = a.w + b.w; in add() 94 public static Float4 add(Float4 a, float b) { in add() argument 96 res.x = a.x + b; in add() 97 res.y = a.y + b; in add() 98 res.z = a.z + b; in add() 99 res.w = a.w + b; in add() [all …]
|
D | Double3.java | 50 public static Double3 add(Double3 a, Double3 b) { in add() argument 52 res.x = a.x + b.x; in add() 53 res.y = a.y + b.y; in add() 54 res.z = a.z + b.z; in add() 88 public static Double3 add(Double3 a, double b) { in add() argument 90 res.x = a.x + b; in add() 91 res.y = a.y + b; in add() 92 res.z = a.z + b; in add() 115 public static Double3 sub(Double3 a, Double3 b) { in sub() argument 117 res.x = a.x - b.x; in sub() [all …]
|
D | Float3.java | 50 public static Float3 add(Float3 a, Float3 b) { in add() argument 52 res.x = a.x + b.x; in add() 53 res.y = a.y + b.y; in add() 54 res.z = a.z + b.z; in add() 88 public static Float3 add(Float3 a, float b) { in add() argument 90 res.x = a.x + b; in add() 91 res.y = a.y + b; in add() 92 res.z = a.z + b; in add() 115 public static Float3 sub(Float3 a, Float3 b) { in sub() argument 117 res.x = a.x - b.x; in sub() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | VectorUtil.java | 23 public static void sub(double[] a, double[] b, double[] out) { in sub() argument 24 out[0] = a[0] - b[0]; in sub() 25 out[1] = a[1] - b[1]; in sub() 26 out[2] = a[2] - b[2]; in sub() 29 public static void mult(double[] a, double b, double[] out) { in mult() argument 30 out[0] = a[0] * b; in mult() 31 out[1] = a[1] * b; in mult() 32 out[2] = a[2] * b; in mult() 35 public static double dot(double[] a, double[] b) { in dot() argument 36 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; in dot() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | DescendantFocusabilityTest.java | 30 private DescendantFocusability a; field in DescendantFocusabilityTest 39 a = getActivity(); in setUp() 46 a.beforeDescendants.getDescendantFocusability()); in testPreconditions() 48 a.afterDescendants.getDescendantFocusability()); in testPreconditions() 50 a.blocksDescendants.getDescendantFocusability()); in testPreconditions() 52 assertTrue(a.beforeDescendantsChild.isFocusable()); in testPreconditions() 53 assertTrue(a.afterDescendantsChild.isFocusable()); in testPreconditions() 54 assertTrue(a.blocksDescendantsChild.isFocusable()); in testPreconditions() 60 a.beforeDescendants.setFocusable(true); in testBeforeDescendants() 62 assertTrue(a.beforeDescendants.requestFocus()); in testBeforeDescendants() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 47 public static float log(float a) { in log() argument 48 return (float) Math.log(a); in log() 51 public static float exp(float a) { in exp() argument 52 return (float) Math.exp(a); in exp() 55 public static float pow(float a, float b) { in pow() argument 56 return (float) Math.pow(a, b); in pow() 59 public static float max(float a, float b) { in max() argument 60 return a > b ? a : b; in max() 63 public static float max(int a, int b) { in max() argument 64 return a > b ? a : b; in max() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | LongArrayTest.java | 33 LongArray a = new LongArray(); in testLongArray() local 34 a.add(1); in testLongArray() 35 a.add(2); in testLongArray() 36 a.add(3); in testLongArray() 37 verify(new long[]{1, 2, 3}, a); in testLongArray() 40 a.addAll(b); in testLongArray() 41 verify(new long[]{1, 2, 3, 4, 5, 6}, a); in testLongArray() 43 a.resize(2); in testLongArray() 44 verify(new long[]{1, 2}, a); in testLongArray() 46 a.resize(8); in testLongArray() [all …]
|
D | IntArrayTest.java | 33 IntArray a = new IntArray(); in testIntArray() local 34 a.add(1); in testIntArray() 35 a.add(2); in testIntArray() 36 a.add(3); in testIntArray() 37 verify(new int[]{1, 2, 3}, a); in testIntArray() 40 a.addAll(b); in testIntArray() 41 verify(new int[]{1, 2, 3, 4, 5, 6}, a); in testIntArray() 43 a.resize(2); in testIntArray() 44 verify(new int[]{1, 2}, a); in testIntArray() 46 a.resize(8); in testIntArray() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageParserTest.java | 190 public static void assertPackagesEqual(PackageParser.Package a, PackageParser.Package b) { in assertPackagesEqual() argument 191 assertEquals(a.baseRevisionCode, b.baseRevisionCode); in assertPackagesEqual() 192 assertEquals(a.baseHardwareAccelerated, b.baseHardwareAccelerated); in assertPackagesEqual() 193 assertEquals(a.mVersionCode, b.mVersionCode); in assertPackagesEqual() 194 assertEquals(a.mSharedUserLabel, b.mSharedUserLabel); in assertPackagesEqual() 195 assertEquals(a.mPreferredOrder, b.mPreferredOrder); in assertPackagesEqual() 196 assertEquals(a.installLocation, b.installLocation); in assertPackagesEqual() 197 assertEquals(a.coreApp, b.coreApp); in assertPackagesEqual() 198 assertEquals(a.mRequiredForAllUsers, b.mRequiredForAllUsers); in assertPackagesEqual() 199 assertEquals(a.mTrustedOverlay, b.mTrustedOverlay); in assertPackagesEqual() [all …]
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | Objects.java | 37 public static <T> int compare(T a, T b, Comparator<? super T> c) { in compare() argument 38 if (a == b) { in compare() 41 return c.compare(a, b); in compare() 50 public static boolean deepEquals(Object a, Object b) { in deepEquals() argument 51 if (a == null || b == null) { in deepEquals() 52 return a == b; in deepEquals() 53 } else if (a instanceof Object[] && b instanceof Object[]) { in deepEquals() 54 return Arrays.deepEquals((Object[]) a, (Object[]) b); in deepEquals() 55 } else if (a instanceof boolean[] && b instanceof boolean[]) { in deepEquals() 56 return Arrays.equals((boolean[]) a, (boolean[]) b); in deepEquals() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
D | syn_filt_opt.s | 18 @ Word16 a[], /* (i) Q12 : a[m+1] prediction coefficients */ 24 @ a[] --- r0 83 LDRSH r5, [r0] @ load a[0] 85 MOV r5, r5, ASR #1 @ a0 = a[0] >> 1 87 @ load all a[] 90 LDRSH r6, [r0, #2] @ load a[1] 91 LDRSH r7, [r0, #4] @ load a[2] 92 LDRSH r9, [r0, #6] @ load a[3] 93 LDRSH r11,[r0, #8] @ load a[4] 96 ORR r10, r6, r7, LSL #16 @ -a[2] -- -a[1] [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pv_mp3dec_fxd_op_msc_evc.h | 57 __inline int32 fxp_mul32_Q30(const int32 a, const int32 b) in fxp_mul32_Q30() argument 59 return (int32)(((int64)(a) * b) >> 30); in fxp_mul32_Q30() 63 __inline int32 fxp_mac32_Q30(const int32 a, const int32 b, int32 L_add) in fxp_mac32_Q30() argument 65 return (L_add + (int32)(((int64)(a) * b) >> 30)); in fxp_mac32_Q30() 69 #define Qfmt_31(a) (int32)(a*0x7FFFFFFF + (a>=0?0.5F:-0.5F)) argument 73 #define fxp_mul32_Q32( a, b) _MulHigh( b, a) argument 77 __inline int32 fxp_mul32_Q28(const int32 a, const int32 b) in fxp_mul32_Q28() argument 79 return (int32)(((int64)(a) * b) >> 28); in fxp_mul32_Q28() 83 __inline int32 fxp_mul32_Q27(const int32 a, const int32 b) in fxp_mul32_Q27() argument 85 return (int32)(((int64)(a) * b) >> 27); in fxp_mul32_Q27() [all …]
|