Home
last modified time | relevance | path

Searched refs:a2 (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java49 private ValueAnimator a2; field in ValueAnimatorTests
69 a2 = ValueAnimator.ofInt(A2_START_VALUE, A2_END_VALUE).setDuration(500); in setUp()
75 a2 = null; in tearDown()
126 a2.addListener(l2); in testListenerCallbacks()
127 a2.setStartDelay(400); in testListenerCallbacks()
140 a2.start(); in testListenerCallbacks()
158 while (wait < a2.getStartDelay()) { in testListenerCallbacks()
171 long delay = Math.max(a1.getTotalDuration(), a2.getTotalDuration()) + TOLERANCE; in testListenerCallbacks()
193 assertFalse(a2.isStarted()); in testIsStarted()
195 assertFalse(a2.isRunning()); in testIsStarted()
[all …]
DAnimatorSetActivityTest.java48 private ObjectAnimator a1,a2,a3; field in AnimatorSetActivityTest
85 a2 = ObjectAnimator.ofFloat(square2, View.ALPHA, 1f, 0f).setDuration(350); in setUp()
95 a2 = null; in tearDown()
104 s1.playTogether(a1, a2, a3); in testGetChildAnimations()
108 assertTrue(children.contains(a2)); in testGetChildAnimations()
112 s2.playSequentially(a1, a2, a3); in testGetChildAnimations()
116 assertTrue(children.contains(a2)); in testGetChildAnimations()
120 s3.play(a1).before(a2).after(s1).with(s2).after(a3); in testGetChildAnimations()
125 assertTrue(s3Children.contains(a2)); in testGetChildAnimations()
176 s3.play(a1).before(a2).after(a3); in testTotalDuration()
[all …]
/frameworks/native/opengl/libagl/
Dmatrix.h117 GLfixed a2, GLfixed b2, in mla3a() argument
133 "%r"(a2), "r"(b2), in mla3a()
143 int64_t(a2)*b2)>>16) + c; in mla3a()
153 GLfixed a2, int32_t b2, in mla3a16() argument
168 "r"(a2), "r"(b2), in mla3a16()
182 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16()
192 GLfixed a2, in mla3a16_btb() argument
208 "r"(a2), in mla3a16_btb()
224 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16_btb()
233 GLfixed a2, in mla3a16_btt() argument
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java34 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() local
43 s.forEach_copyFloat2(a1, a2); in testFloat2()
45 a2.copyTo(f2); in testFloat2()
53 a2.destroy(); in testFloat2()
58 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() local
67 s.forEach_copyFloat3(a1, a2); in testFloat3()
69 a2.copyTo(f2); in testFloat3()
77 a2.destroy(); in testFloat3()
82 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() local
91 s.forEach_copyFloat4(a1, a2); in testFloat4()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_copy_test.java36 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() local
45 s.forEach_copyFloat2(a1, a2); in testFloat2()
47 a2.copyTo(f2); in testFloat2()
55 a2.destroy(); in testFloat2()
60 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() local
69 s.forEach_copyFloat3(a1, a2); in testFloat3()
71 a2.copyTo(f2); in testFloat3()
79 a2.destroy(); in testFloat3()
84 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() local
93 s.forEach_copyFloat4(a1, a2); in testFloat4()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_copy_test.java35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() local
44 s.forEach_copyFloat2(a1, a2); in testFloat2()
46 a2.copyTo(f2); in testFloat2()
54 a2.destroy(); in testFloat2()
59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() local
68 s.forEach_copyFloat3(a1, a2); in testFloat3()
70 a2.copyTo(f2); in testFloat3()
78 a2.destroy(); in testFloat3()
83 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() local
92 s.forEach_copyFloat4(a1, a2); in testFloat4()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DIAidlTest.aidl34 boolean[] booleanArray(in boolean[] a0, out boolean[] a1, inout boolean[] a2); in booleanArray() argument
35 char[] charArray(in char[] a0, out char[] a1, inout char[] a2); in charArray() argument
36 int[] intArray(in int[] a0, out int[] a1, inout int[] a2); in intArray() argument
37 long[] longArray(in long[] a0, out long[] a1, inout long[] a2); in longArray() argument
38 float[] floatArray(in float[] a0, out float[] a1, inout float[] a2); in floatArray() argument
39 double[] doubleArray(in double[] a0, out double[] a1, inout double[] a2); in doubleArray() argument
40 String[] stringArray(in String[] a0, out String[] a1, inout String[] a2); in stringArray() argument
43 inout AidlTest.TestParcelable[] a2); in parcelableArray() argument
DAidlTest.java122 public boolean[] booleanArray(boolean[] a0, boolean[] a1, boolean[] a2) { in booleanArray() argument
123 for (int i = 0; i < a0.length && i < a2.length; i++) { in booleanArray()
124 a2[i] = a0[i]; in booleanArray()
132 public char[] charArray(char[] a0, char[] a1, char[] a2) { in charArray() argument
133 for (int i = 0; i < a0.length && i < a2.length; i++) { in charArray()
134 a2[i] = a0[i]; in charArray()
142 public int[] intArray(int[] a0, int[] a1, int[] a2) { in intArray() argument
143 for (int i = 0; i < a0.length && i < a2.length; i++) { in intArray()
144 a2[i] = a0[i]; in intArray()
152 public long[] longArray(long[] a0, long[] a1, long[] a2) { in longArray() argument
[all …]
/frameworks/compile/mclinker/unittests/
DGraphTest.cpp185 ListDigraph::Arc* a2 = graph.addArc(*u2, *u3); in TEST_F() local
189 ASSERT_TRUE(u2 == a2->source && u3 == a2->target); in TEST_F()
193 ASSERT_TRUE(u2->first_in == a1 && u2->first_out == a2); in TEST_F()
194 ASSERT_TRUE(u3->first_in == a2 && u3->first_out == a3); in TEST_F()
205 ListDigraph::Arc* a2 = graph.addArc(*u1, *u2); in TEST_F() local
209 ASSERT_TRUE(u1 == a2->source && u2 == a2->target); in TEST_F()
213 ASSERT_TRUE(u2->first_in == a2 && u2->first_out == NULL); in TEST_F()
225 ListDigraph::Arc* a2 = graph.addArc(*u2, *u3); in TEST_F() local
228 graph.erase(*a2); in TEST_F()
240 ASSERT_TRUE(NULL == a2->next_in); in TEST_F()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java99 private static void assertApnSettingsEqual(List<ApnSetting> a1, List<ApnSetting> a2) { in assertApnSettingsEqual() argument
100 assertEquals(a1.size(), a2.size()); in assertApnSettingsEqual()
102 assertApnSettingEqual(a1.get(i), a2.get(i)); in assertApnSettingsEqual()
106 private static void assertApnSettingEqual(ApnSetting a1, ApnSetting a2) { in assertApnSettingEqual() argument
107 assertEquals(a1.getEntryName(), a2.getEntryName()); in assertApnSettingEqual()
108 assertEquals(a1.getApnName(), a2.getApnName()); in assertApnSettingEqual()
109 assertEquals(a1.getProxyAddressAsString(), a2.getProxyAddressAsString()); in assertApnSettingEqual()
110 assertEquals(a1.getProxyPort(), a2.getProxyPort()); in assertApnSettingEqual()
111 assertEquals(a1.getMmsc(), a2.getMmsc()); in assertApnSettingEqual()
112 assertEquals(a1.getMmsProxyAddressAsString(), a2.getMmsProxyAddressAsString()); in assertApnSettingEqual()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DMessageUtilsTest.java65 SparseArray<String> a1, SparseArray<String> a2) throws Exception { in assertSparseArrayEquals() argument
66 String msg = String.format("%s != %s", a1.toString(), a2.toString()); in assertSparseArrayEquals()
67 assertEquals(msg, a1.size(), a2.size()); in assertSparseArrayEquals()
70 assertEquals(msg, a1.keyAt(i), a2.keyAt(i)); in assertSparseArrayEquals()
71 assertEquals(msg, a1.valueAt(i), a2.valueAt(i)); in assertSparseArrayEquals()
/frameworks/base/core/java/android/net/
DIpPrefix.java275 final byte[] a2 = prefix2.address; in lengthComparator() field in IpPrefix
276 final int len = a1.length < a2.length ? a1.length : a2.length; in lengthComparator()
278 if (a1[i] < a2[i]) return -1; in lengthComparator()
279 if (a1[i] > a2[i]) return 1; in lengthComparator()
281 if (a2.length < len) return 1; in lengthComparator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DWeakIdentityHashMapTest.java54 String a2 = new String("a"); in testUsesIdentity() local
55 assertNotSame(a1, a2); in testUsesIdentity()
58 mMap.put(a2, "value2"); in testUsesIdentity()
61 assertEquals("value2", mMap.get(a2)); in testUsesIdentity()
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java312 float a2 = EARTH_SEMI_MAJOR_AXIS_KM * EARTH_SEMI_MAJOR_AXIS_KM; in computeGeocentricCoordinates() local
319 (float) Math.sqrt(a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
322 / (latRad * altitudeKm + a2)); in computeGeocentricCoordinates()
327 + 2 * altitudeKm * (float) Math.sqrt(a2 * clat * clat + in computeGeocentricCoordinates()
329 + (a2 * a2 * clat * clat + b2 * b2 * slat * slat) in computeGeocentricCoordinates()
330 / (a2 * clat * clat + b2 * slat * slat); in computeGeocentricCoordinates()
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp160 const audio_coef_t a2 = mCoefs[4]; in process_normal_mono() local
168 acc = mac_coef_sample(a2, y2, acc); in process_normal_mono()
207 const audio_coef_t a2 = mCoefs[4]; in process_normal_multi() local
221 acc = mac_coef_sample(a2, y2, acc); in process_normal_multi()
/frameworks/compile/slang/tests/P_warnings_rsSetElementAt/
Dsetelementat.rscript9 float2 a2 = {4.0f, 4.0f};
23 rsSetElementAt(A, &a2, 0, 0);
/frameworks/base/core/jni/
Dandroid_os_Parcel.cpp336 jbyte* a2 = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); in android_os_Parcel_createByteArray() local
337 if (a2) { in android_os_Parcel_createByteArray()
340 memcpy(a2, data, len); in android_os_Parcel_createByteArray()
342 env->ReleasePrimitiveArrayCritical(ret, a2, 0); in android_os_Parcel_createByteArray()
398 jbyte* a2 = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); in android_os_Parcel_readBlob() local
399 if (a2) { in android_os_Parcel_readBlob()
400 memcpy(a2, blob.data(), len); in android_os_Parcel_readBlob()
401 env->ReleasePrimitiveArrayCritical(ret, a2, 0); in android_os_Parcel_readBlob()
/frameworks/base/rs/java/android/renderscript/
DAllocationAdapter.java73 int a1 = 0, a2 = 0, a3 = 0, a4 = 0; in updateOffsets() local
80 a2 = mSelectedArray[2]; in updateOffsets()
90 mSelectedLOD, mSelectedFace.mID, a1, a2, a3, a4); in updateOffsets() local
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
Dresidu_asm_opt.s41 ORR r6, r7, r6, LSL #16 @r6 --- a2, a3
89 SMLATB r11, r6, r2, r11 @i3(2) --- r11 += x[0] * a2
90 SMLATT r12, r6, r2, r12 @i4(2) --- r12 += x[1] * a2
96 SMLATT r4, r6, r2, r4 @i2(2) --- r4 += x[-1] * a2
99 SMLATB r3, r6, r2, r3 @i1(2) --- r3 += x[-2] * a2
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
DSliceClientPermissionsTest.java233 ArrayList<SliceAuthority> a2 = new ArrayList<>(o2.getAuthorities()); in assertEquivalent() local
235 a2.sort(Comparator.comparing(SliceAuthority::getAuthority)); in assertEquivalent()
236 assertEquals(a1, a2); in assertEquivalent()
/frameworks/compile/slang/lit-tests/P_ref_count/
Dfunc_params.rscript47 static void bar(int a0, rs_element a1, float a2, struct Wrapper a3) {
52 g2 = a2;
/frameworks/base/services/tests/servicestests/assets/KeyStoreRecoveryControllerTest/pem/
Dvalid-cert.pem68 87:bb:b9:a2:d0:ad:32:6e:eb:ca:ad:14:8e:96:d3:
100 a2:2f:8c:7a:a9:06:80:27:72:17:20:59:3b:c1:b6:
186 9d:df:b8:5d:9a:6c:27:99:08:1e:ec:02:1a:ed:33:0f:8d:a2:
191 8c:4c:26:0e:2b:f7:83:f9:66:62:90:c3:a2:7b:2b:c7:9b:6b:
195 33:4c:ed:15:9f:07:b0:ec:a4:4b:77:32:e1:59:b8:a2:92:18:
198 72:2c:a2:1e:37:1e:9c:10:70:e3:11:35:e5:3d:81:9b:08:09:
/frameworks/base/services/core/java/com/android/server/slice/
DSliceClientPermissions.java337 String[] a2 = p2.get(i); in equals() local
338 if (a1.length != a2.length) return false; in equals()
340 if (!Objects.equals(a1[j], a2[j])) return false; in equals()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidUserSysTimeReaderTest.java240 private long[] subtract(long[] a1, long[] a2) { in subtract() argument
243 val[i] = a1[i] - a2[i]; in subtract()
DKernelCpuUidClusterTimeReaderTest.java286 private long[] subtract(long[] a1, long[] a2) { in subtract() argument
289 val[i] = a1[i] - a2[i]; in subtract()

12