Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 3190) sorted by relevance

12345678910>>...128

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DVectorUtil.java23 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/
DLong4.java57 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 …]
DShort4.java57 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 …]
DInt4.java57 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 …]
DByte4.java52 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 …]
DShort3.java54 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 …]
DInt3.java54 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 …]
DLong3.java54 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 …]
DByte3.java50 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 …]
DShort2.java54 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 …]
DLong2.java51 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 …]
DInt2.java51 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 …]
DByte2.java47 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 …]
DFloat4.java53 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 …]
DDouble4.java53 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 …]
DDouble3.java50 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 …]
DFloat3.java50 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/base/core/tests/coretests/src/android/widget/focus/
DDescendantFocusabilityTest.java29 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/ml/nn/tools/systrace_parser/parser/test/
Domr1.txt8 Application n/a n/a n/a n/a n/a n/a
11 Driver 74.51 - 544.97 n/a n/a n/a
15 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t…
23 Application n/a n/a n/a n/a n/a n/a
26 Driver - - 522.53 n/a n/a n/a
30 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t…
38 Application n/a n/a n/a n/a n/a n/a
41 Driver - - 544.36 n/a n/a n/a
45 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t…
53 Application n/a n/a n/a n/a n/a n/a
[all …]
/frameworks/base/core/java/android/util/
DMathUtils.java53 public static float log(float a) { in log() argument
54 return (float) Math.log(a); in log()
57 public static float exp(float a) { in exp() argument
58 return (float) Math.exp(a); in exp()
61 public static float pow(float a, float b) { in pow() argument
62 return (float) Math.pow(a, b); in pow()
65 public static float sqrt(float a) { in sqrt() argument
66 return (float) Math.sqrt(a); in sqrt()
69 public static float max(float a, float b) { in max() argument
70 return a > b ? a : b; in max()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DIntArrayTest.java34 IntArray a = new IntArray(); in testIntArray() local
35 a.add(1); in testIntArray()
36 a.add(2); in testIntArray()
37 a.add(3); in testIntArray()
38 verify(new int[]{1, 2, 3}, a); in testIntArray()
41 a.addAll(b); in testIntArray()
42 verify(new int[]{1, 2, 3, 4, 5, 6}, a); in testIntArray()
44 a.resize(2); in testIntArray()
45 verify(new int[]{1, 2}, a); in testIntArray()
47 a.resize(8); in testIntArray()
[all …]
DLongArrayTest.java34 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/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java325 public static void assertPackagesEqual(AndroidPackage a, AndroidPackage b) { in assertPackagesEqual() argument
326 assertEquals(a.getBaseRevisionCode(), b.getBaseRevisionCode()); in assertPackagesEqual()
327 assertEquals(a.isBaseHardwareAccelerated(), b.isBaseHardwareAccelerated()); in assertPackagesEqual()
328 assertEquals(a.getVersionCode(), b.getVersionCode()); in assertPackagesEqual()
329 assertEquals(a.getSharedUserLabel(), b.getSharedUserLabel()); in assertPackagesEqual()
330 assertEquals(a.getInstallLocation(), b.getInstallLocation()); in assertPackagesEqual()
331 assertEquals(a.isCoreApp(), b.isCoreApp()); in assertPackagesEqual()
332 assertEquals(a.isRequiredForAllUsers(), b.isRequiredForAllUsers()); in assertPackagesEqual()
333 assertEquals(a.getCompileSdkVersion(), b.getCompileSdkVersion()); in assertPackagesEqual()
334 assertEquals(a.getCompileSdkVersionCodeName(), b.getCompileSdkVersionCodeName()); in assertPackagesEqual()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
Dsyn_filt_opt.s18 @ 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/
Dpv_mp3dec_fxd_op_msc_evc.h57 __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 …]

12345678910>>...128