/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/rs/java/android/renderscript/ |
D | Int4.java | 62 public void add(Int4 a) { in add() argument 63 this.x += a.x; in add() 64 this.y += a.y; in add() 65 this.z += a.z; in add() 66 this.w += a.w; in add() 76 public static Int4 add(Int4 a, Int4 b) { in add() argument 78 result.x = a.x + b.x; in add() 79 result.y = a.y + b.y; in add() 80 result.z = a.z + b.z; in add() 81 result.w = a.w + b.w; in add() [all …]
|
D | Long4.java | 62 public void add(Long4 a) { in add() argument 63 this.x += a.x; in add() 64 this.y += a.y; in add() 65 this.z += a.z; in add() 66 this.w += a.w; in add() 76 public static Long4 add(Long4 a, Long4 b) { in add() argument 78 result.x = a.x + b.x; in add() 79 result.y = a.y + b.y; in add() 80 result.z = a.z + b.z; in add() 81 result.w = a.w + b.w; in add() [all …]
|
D | Short4.java | 62 public void add(Short4 a) { in add() argument 63 this.x += a.x; in add() 64 this.y += a.y; in add() 65 this.z += a.z; in add() 66 this.w += a.w; in add() 76 public static Short4 add(Short4 a, Short4 b) { in add() argument 78 result.x = (short)(a.x + b.x); in add() 79 result.y = (short)(a.y + b.y); in add() 80 result.z = (short)(a.z + b.z); in add() 81 result.w = (short)(a.w + b.w); in add() [all …]
|
D | Byte4.java | 56 public void add(Byte4 a) { in add() argument 57 this.x += a.x; in add() 58 this.y += a.y; in add() 59 this.z += a.z; in add() 60 this.w += a.w; in add() 70 public static Byte4 add(Byte4 a, Byte4 b) { in add() argument 72 result.x = (byte)(a.x + b.x); in add() 73 result.y = (byte)(a.y + b.y); in add() 74 result.z = (byte)(a.z + b.z); in add() 75 result.w = (byte)(a.w + b.w); in add() [all …]
|
D | Long3.java | 59 public void add(Long3 a) { in add() argument 60 this.x += a.x; in add() 61 this.y += a.y; in add() 62 this.z += a.z; in add() 72 public static Long3 add(Long3 a, Long3 b) { in add() argument 74 result.x = a.x + b.x; in add() 75 result.y = a.y + b.y; in add() 76 result.z = a.z + b.z; in add() 99 public static Long3 add(Long3 a, long b) { in add() argument 101 result.x = a.x + b; in add() [all …]
|
D | Short3.java | 59 public void add(Short3 a) { in add() argument 60 this.x += a.x; in add() 61 this.y += a.y; in add() 62 this.z += a.z; in add() 72 public static Short3 add(Short3 a, Short3 b) { in add() argument 74 result.x = (short)(a.x + b.x); in add() 75 result.y = (short)(a.y + b.y); in add() 76 result.z = (short)(a.z + b.z); in add() 99 public static Short3 add(Short3 a, short b) { in add() argument 101 result.x = (short)(a.x + b); in add() [all …]
|
D | Int3.java | 59 public void add(Int3 a) { in add() argument 60 this.x += a.x; in add() 61 this.y += a.y; in add() 62 this.z += a.z; in add() 72 public static Int3 add(Int3 a, Int3 b) { in add() argument 74 result.x = a.x + b.x; in add() 75 result.y = a.y + b.y; in add() 76 result.z = a.z + b.z; in add() 99 public static Int3 add(Int3 a, int b) { in add() argument 101 result.x = a.x + b; in add() [all …]
|
D | Byte3.java | 54 public void add(Byte3 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 Byte3 add(Byte3 a, Byte3 b) { in add() argument 69 result.x = (byte)(a.x + b.x); in add() 70 result.y = (byte)(a.y + b.y); in add() 71 result.z = (byte)(a.z + b.z); in add() 94 public static Byte3 add(Byte3 a, byte b) { in add() argument 96 result.x = (byte)(a.x + b); in add() [all …]
|
D | Long2.java | 56 public void add(Long2 a) { in add() argument 57 this.x += a.x; in add() 58 this.y += a.y; in add() 68 public static Long2 add(Long2 a, Long2 b) { in add() argument 70 result.x = a.x + b.x; in add() 71 result.y = a.y + b.y; in add() 93 public static Long2 add(Long2 a, long b) { in add() argument 95 result.x = a.x + b; in add() 96 result.y = a.y + b; in add() 106 public void sub(Long2 a) { in sub() argument [all …]
|
D | Short2.java | 59 public void add(Short2 a) { in add() argument 60 this.x += a.x; in add() 61 this.y += a.y; in add() 71 public static Short2 add(Short2 a, Short2 b) { in add() argument 73 result.x = (short)(a.x + b.x); in add() 74 result.y = (short)(a.y + b.y); in add() 96 public static Short2 add(Short2 a, short b) { in add() argument 98 result.x = (short)(a.x + b); in add() 99 result.y = (short)(a.y + b); in add() 109 public void sub(Short2 a) { in sub() argument [all …]
|
D | Int2.java | 56 public void add(Int2 a) { in add() argument 57 this.x += a.x; in add() 58 this.y += a.y; in add() 68 public static Int2 add(Int2 a, Int2 b) { in add() argument 70 result.x = a.x + b.x; in add() 71 result.y = a.y + b.y; in add() 93 public static Int2 add(Int2 a, int b) { in add() argument 95 result.x = a.x + b; in add() 96 result.y = a.y + b; in add() 106 public void sub(Int2 a) { in sub() argument [all …]
|
D | Byte2.java | 51 public void add(Byte2 a) { in add() argument 52 this.x += a.x; in add() 53 this.y += a.y; in add() 63 public static Byte2 add(Byte2 a, Byte2 b) { in add() argument 65 result.x = (byte)(a.x + b.x); in add() 66 result.y = (byte)(a.y + b.y); in add() 88 public static Byte2 add(Byte2 a, byte b) { in add() argument 90 result.x = (byte)(a.x + b); in add() 91 result.y = (byte)(a.y + b); in add() 101 public void sub(Byte2 a) { in sub() argument [all …]
|
D | Double4.java | 58 public static Double4 add(Double4 a, Double4 b) { in add() argument 60 res.x = a.x + b.x; in add() 61 res.y = a.y + b.y; in add() 62 res.z = a.z + b.z; in add() 63 res.w = a.w + b.w; in add() 99 public static Double4 add(Double4 a, double b) { in add() argument 101 res.x = a.x + b; in add() 102 res.y = a.y + b; in add() 103 res.z = a.z + b; in add() 104 res.w = a.w + b; in add() [all …]
|
D | Float4.java | 58 public static Float4 add(Float4 a, Float4 b) { in add() argument 60 res.x = a.x + b.x; in add() 61 res.y = a.y + b.y; in add() 62 res.z = a.z + b.z; in add() 63 res.w = a.w + b.w; in add() 99 public static Float4 add(Float4 a, float b) { in add() argument 101 res.x = a.x + b; in add() 102 res.y = a.y + b; in add() 103 res.z = a.z + b; in add() 104 res.w = a.w + b; in add() [all …]
|
D | Double3.java | 55 public static Double3 add(Double3 a, Double3 b) { in add() argument 57 res.x = a.x + b.x; in add() 58 res.y = a.y + b.y; in add() 59 res.z = a.z + b.z; in add() 93 public static Double3 add(Double3 a, double b) { in add() argument 95 res.x = a.x + b; in add() 96 res.y = a.y + b; in add() 97 res.z = a.z + b; in add() 120 public static Double3 sub(Double3 a, Double3 b) { in sub() argument 122 res.x = a.x - b.x; in sub() [all …]
|
D | Float3.java | 55 public static Float3 add(Float3 a, Float3 b) { in add() argument 57 res.x = a.x + b.x; in add() 58 res.y = a.y + b.y; in add() 59 res.z = a.z + b.z; in add() 93 public static Float3 add(Float3 a, float b) { in add() argument 95 res.x = a.x + b; in add() 96 res.y = a.y + b; in add() 97 res.z = a.z + b; in add() 120 public static Float3 sub(Float3 a, Float3 b) { in sub() argument 122 res.x = a.x - b.x; in sub() [all …]
|
/frameworks/base/core/tests/utiltests/src/android/util/ |
D | IntArrayTest.java | 36 IntArray a = new IntArray(); in testIntArray() local 37 a.add(1); in testIntArray() 38 a.add(2); in testIntArray() 39 a.add(3); in testIntArray() 40 verify(a, 1, 2, 3); in testIntArray() 43 a.addAll(b); in testIntArray() 44 verify(a, 1, 2, 3, 4, 5, 6); in testIntArray() 46 a.resize(2); in testIntArray() 47 verify(a, 1, 2); in testIntArray() 49 a.resize(8); in testIntArray() [all …]
|
D | LongArrayTest.java | 34 LongArray a = new LongArray(); in testLongArray() local 35 a.add(1); in testLongArray() 36 a.add(2); in testLongArray() 37 a.add(3); in testLongArray() 38 verify(new long[]{1, 2, 3}, a); in testLongArray() 41 a.addAll(b); in testLongArray() 42 verify(new long[]{1, 2, 3, 4, 5, 6}, a); in testLongArray() 44 a.resize(2); in testLongArray() 45 verify(new long[]{1, 2}, a); in testLongArray() 47 a.resize(8); in testLongArray() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | DescendantFocusabilityTest.java | 29 private DescendantFocusability a; field in DescendantFocusabilityTest 38 a = getActivity(); in setUp() 45 a.beforeDescendants.getDescendantFocusability()); in testPreconditions() 47 a.afterDescendants.getDescendantFocusability()); in testPreconditions() 49 a.blocksDescendants.getDescendantFocusability()); in testPreconditions() 51 assertTrue(a.beforeDescendantsChild.isFocusable()); in testPreconditions() 52 assertTrue(a.afterDescendantsChild.isFocusable()); in testPreconditions() 53 assertTrue(a.blocksDescendantsChild.isFocusable()); in testPreconditions() 59 a.beforeDescendants.setFocusable(true); in testBeforeDescendants() 61 assertTrue(a.beforeDescendants.requestFocus()); in testBeforeDescendants() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 54 public static float log(float a) { in log() argument 55 return (float) Math.log(a); in log() 58 public static float exp(float a) { in exp() argument 59 return (float) Math.exp(a); in exp() 62 public static float pow(float a, float b) { in pow() argument 63 return (float) Math.pow(a, b); in pow() 66 public static float sqrt(float a) { in sqrt() argument 67 return (float) Math.sqrt(a); in sqrt() 70 public static float max(float a, float b) { in max() argument 71 return a > b ? a : b; in max() [all …]
|
/frameworks/av/media/module/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 …]
|
/frameworks/av/media/module/codecs/amrwb/enc/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/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | MetricsHelper.java | 63 alarmStore.getCount(a -> a.windowLength == 0), in registerPuller() 64 alarmStore.getCount(a -> a.wakeup), in registerPuller() 66 a -> (a.flags & AlarmManager.FLAG_ALLOW_WHILE_IDLE) != 0), in registerPuller() 68 a -> (a.flags & AlarmManager.FLAG_PRIORITIZE) != 0), in registerPuller() 69 alarmStore.getCount(a -> (a.operation != null in registerPuller() 70 && a.operation.isForegroundService())), in registerPuller() 72 a -> (a.operation != null && a.operation.isActivity())), in registerPuller() 74 a -> (a.operation != null && a.operation.isService())), in registerPuller() 75 alarmStore.getCount(a -> (a.listener != null)), in registerPuller() 77 a -> (a.getRequestedElapsed() > now + INDEFINITE_DELAY)), in registerPuller() [all …]
|
/frameworks/native/libs/renderengine/tests/ |
D | DisplaySettingsTest.cpp | 26 DisplaySettings a, b; in TEST() local 27 ASSERT_EQ(a, b); in TEST() 29 a.currentLuminanceNits = 45.f; in TEST() 31 ASSERT_FALSE(a == b); in TEST() 35 DisplaySettings a, b; in TEST() local 36 ASSERT_EQ(a, b); in TEST() 38 a.targetLuminanceNits = 45.f; in TEST() 40 ASSERT_FALSE(a == b); in TEST() 44 DisplaySettings a, b; in TEST() local 45 ASSERT_EQ(a, b); in TEST() [all …]
|