Home
last modified time | relevance | path

Searched refs:a1 (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java50 private ValueAnimator a1; field in ValueAnimatorTests
70 a1 = ValueAnimator.ofFloat(A1_START_VALUE, A1_END_VALUE).setDuration(300); in setUp()
76 a1 = null; in tearDown()
127 a1.addListener(l1); in testListenerCallbacks()
141 a1.start(); in testListenerCallbacks()
154 a1.cancel(); in testListenerCallbacks()
173 long delay = Math.max(a1.getTotalDuration(), a2.getTotalDuration()) + TOLERANCE; in testListenerCallbacks()
194 assertFalse(a1.isStarted()); in testIsStarted()
196 assertFalse(a1.isRunning()); in testIsStarted()
199 a1.setStartDelay(startDelay); in testIsStarted()
[all …]
DAnimatorSetActivityTest.java52 private ObjectAnimator a1,a2,a3; field in AnimatorSetActivityTest
88 a1 = ObjectAnimator.ofFloat(square1, View.TRANSLATION_X, 0f, 500f, 0f).setDuration(250); in setUp()
98 a1 = null; in tearDown()
108 s1.playTogether(a1, a2, a3); in testGetChildAnimations()
111 assertTrue(children.contains(a1)); in testGetChildAnimations()
116 s2.playSequentially(a1, a2, a3); in testGetChildAnimations()
119 assertTrue(children.contains(a1)); in testGetChildAnimations()
124 s3.play(a1).before(a2).after(s1).with(s2).after(a3); in testGetChildAnimations()
128 assertTrue(s3Children.contains(a1)); in testGetChildAnimations()
164 a1.setStartDelay(100); in testTotalDuration()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java33 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() local
41 a1.copyFrom(f1); in testFloat2()
43 s.forEach_copyFloat2(a1, a2); in testFloat2()
52 a1.destroy(); in testFloat2()
57 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() local
65 a1.copyFrom(f1); in testFloat3()
67 s.forEach_copyFloat3(a1, a2); in testFloat3()
76 a1.destroy(); in testFloat3()
81 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() local
89 a1.copyFrom(f1); in testFloat4()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_copy_test.java35 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() local
43 a1.copyFrom(f1); in testFloat2()
45 s.forEach_copyFloat2(a1, a2); in testFloat2()
54 a1.destroy(); in testFloat2()
59 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() local
67 a1.copyFrom(f1); in testFloat3()
69 s.forEach_copyFloat3(a1, a2); in testFloat3()
78 a1.destroy(); in testFloat3()
83 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() local
91 a1.copyFrom(f1); 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
42 out AidlTest.TestParcelable[] a1, in parcelableArray() argument
DAidlTest.java144 public boolean[] booleanArray(boolean[] a0, boolean[] a1, boolean[] a2) { in booleanArray() argument
148 for (int i = 0; i < a0.length && i < a1.length; i++) { in booleanArray()
149 a1[i] = a0[i]; in booleanArray()
154 public char[] charArray(char[] a0, char[] a1, char[] a2) { in charArray() argument
158 for (int i = 0; i < a0.length && i < a1.length; i++) { in charArray()
159 a1[i] = a0[i]; in charArray()
164 public int[] intArray(int[] a0, int[] a1, int[] a2) { in intArray() argument
168 for (int i = 0; i < a0.length && i < a1.length; i++) { in intArray()
169 a1[i] = a0[i]; in intArray()
174 public long[] longArray(long[] a0, long[] a1, long[] a2) { in longArray() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DApnSettingTest.java85 private static void assertApnSettingsEqual(List<ApnSetting> a1, List<ApnSetting> a2) { in assertApnSettingsEqual() argument
86 assertEquals(a1.size(), a2.size()); in assertApnSettingsEqual()
87 for (int i = 0; i < a1.size(); ++i) { in assertApnSettingsEqual()
88 assertApnSettingEqual(a1.get(i), a2.get(i)); in assertApnSettingsEqual()
92 private static void assertApnSettingEqual(ApnSetting a1, ApnSetting a2) { in assertApnSettingEqual() argument
93 assertEquals(a1.getEntryName(), a2.getEntryName()); in assertApnSettingEqual()
94 assertEquals(a1.getApnName(), a2.getApnName()); in assertApnSettingEqual()
95 assertEquals(a1.getProxyAddressAsString(), a2.getProxyAddressAsString()); in assertApnSettingEqual()
96 assertEquals(a1.getProxyPort(), a2.getProxyPort()); in assertApnSettingEqual()
97 assertEquals(a1.getMmsc(), a2.getMmsc()); in assertApnSettingEqual()
[all …]
/frameworks/libs/binary_translation/tools/riscv-arch-test/include/
Dmodel_test.h29 lui a1, % hi(begin_signature); \
30 addi a1, a1, % lo(begin_signature); \
37 addi a1, a1, 8; \
38 bgt a3, a1, write_to_stderr; \
/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationListenerFilterTest.java58 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testConstructor() local
60 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testConstructor()
68 assertThat(nlf.getDisallowedPackages()).contains(a1); in testConstructor()
70 assertThat(nlf.isPackageAllowed(a1)).isFalse(); in testConstructor()
101 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testDescribeContents() local
103 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testDescribeContents()
111 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testParceling() local
113 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testParceling()
127 assertThat(nlf1.getDisallowedPackages()).contains(a1); in testParceling()
129 assertThat(nlf1.isPackageAllowed(a1)).isFalse(); in testParceling()
/frameworks/compile/mclinker/unittests/
DGraphTest.cpp184 ListDigraph::Arc* a1 = graph.addArc(*u1, *u2); in TEST_F() local
188 ASSERT_TRUE(u1 == a1->source && u2 == a1->target); in TEST_F()
192 ASSERT_TRUE(u1->first_in == a3 && u1->first_out == a1); in TEST_F()
193 ASSERT_TRUE(u2->first_in == a1 && u2->first_out == a2); in TEST_F()
204 ListDigraph::Arc* a1 = graph.addArc(*u1, *u1); in TEST_F() local
208 ASSERT_TRUE(u1 == a1->source && u1 == a1->target); in TEST_F()
212 ASSERT_TRUE(u1->first_in == a1 && u1->first_out == a3); in TEST_F()
224 ListDigraph::Arc* a1 = graph.addArc(*u1, *u2); in TEST_F() local
230 ASSERT_TRUE(u1 == a1->source && u2 == a1->target); in TEST_F()
234 ASSERT_TRUE(u2->first_in == a1 && u2->first_out == NULL); in TEST_F()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DWatchedIntentHandlingTest.java146 PreferredActivity a1 = new PreferredActivity(i, 1, components, component, true); in testPreferredIntentResolver() local
148 r.addFilter(null, a1); in testPreferredIntentResolver()
152 a1.setPriority(a1.getPriority() + 1); in testPreferredIntentResolver()
155 PreferredActivity s1 = a1.snapshot(); in testPreferredIntentResolver()
158 assertTrue(s1 == a1.snapshot()); in testPreferredIntentResolver()
159 a1.setPriority(a1.getPriority() + 1); in testPreferredIntentResolver()
161 PreferredActivity s2 = a1.snapshot(); in testPreferredIntentResolver()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DMessageUtilsTest.java69 SparseArray<String> a1, SparseArray<String> a2) throws Exception { in assertSparseArrayEquals() argument
70 String msg = String.format("%s != %s", a1.toString(), a2.toString()); in assertSparseArrayEquals()
71 assertEquals(msg, a1.size(), a2.size()); in assertSparseArrayEquals()
72 int size = a1.size(); in assertSparseArrayEquals()
74 assertEquals(msg, a1.keyAt(i), a2.keyAt(i)); in assertSparseArrayEquals()
75 assertEquals(msg, a1.valueAt(i), a2.valueAt(i)); in assertSparseArrayEquals()
/frameworks/libs/binary_translation/tests/tests_apk/src/com/example/ndk_tests/
DNdkTests.java53 public boolean jniArgTest(long a1, int a2, long a3, int a4, int a5, long a6) { in jniArgTest() argument
54 return a1 == 1 && a2 == 2 && a3 == 3 && a4 == 4 && a5 == 5 && a6 == 6; in jniArgTest()
57 public boolean jniFloatArgTest(float a1, int a2, float a3, int a4, int a5, in jniFloatArgTest() argument
59 return a1 == 1.0 && a2 == 2 && a3 == 3.0 && a4 == 4 && a5 == 5 && a6 == 6.0; in jniFloatArgTest()
/frameworks/base/core/java/android/content/res/loader/
DResourcesLoader.java203 private static boolean arrayEquals(ResourcesProvider[] a1, ResourcesProvider[] a2) { in arrayEquals() argument
204 if (a1 == a2) { in arrayEquals()
208 if (a1 == null || a2 == null) { in arrayEquals()
212 if (a1.length != a2.length) { in arrayEquals()
219 for (int i = 0, n = a1.length; i < n; i++) { in arrayEquals()
220 if (a1[i] != a2[i]) { in arrayEquals()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DWeakIdentityHashMapTest.java53 String a1 = new String("a"); in testUsesIdentity() local
55 assertNotSame(a1, a2); in testUsesIdentity()
57 mMap.put(a1, "value1"); in testUsesIdentity()
60 assertEquals("value1", mMap.get(a1)); in testUsesIdentity()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmStoreTest.java97 final Alarm a1 = createAlarm(1, 0); in add() local
98 mAlarmStore.add(a1); in add()
107 assertTrue(alarmsAdded.contains(a1) && alarmsAdded.contains(a2)); in add()
112 final Alarm a1 = createAlarm(1, 0); in remove() local
115 addAlarmsToStore(a1, a2, a5); in remove()
120 assertTrue(removed.contains(a1) && removed.contains(a2)); in remove()
123 addAlarmsToStore(a8, a2, a1); in remove()
/frameworks/compile/slang/lit-tests/P_ref_count/
Dfunc_params.rscript7 … call void @_Z11rsSetObjectP10rs_elementS_(%struct.rs_element{{.*}}* nonnull %.rs.param.a1, {{.*}})
28 // CHECK-CLR: call void @_Z13rsClearObjectP10rs_element(%struct.rs_element{{.*}}* {{.*}}%a1)
47 static void bar(int a0, rs_element a1, float a2, struct Wrapper a3) {
51 a1 = x;
/frameworks/rs/tests/cpp_api/cppbasic-shared/
Dcompute.cpp28 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute() local
29 printf("Allocation %p\n", a1.get()); in test_compute()
38 sc->set_alloc(a1); in test_compute()
/frameworks/base/core/java/android/view/
DDisplayAddress.java149 public static boolean isPortMatch(DisplayAddress a1, DisplayAddress a2) { in isPortMatch() argument
151 if (!(a1 instanceof Physical && a2 instanceof Physical)) { in isPortMatch()
154 Physical p1 = (Physical) a1; in isPortMatch()
/frameworks/rs/tests/cpp_api/cppbasic/
Dcompute.cpp28 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute() local
29 printf("Allocation %p\n", a1.get()); in test_compute()
38 sc->set_alloc(a1); in test_compute()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java234 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testWriteExtraTag() local
236 new NotificationListenerFilter(4, new ArraySet<>(new VersionedPackage[]{a1})); in testWriteExtraTag()
266 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in validateListenersFromXml() local
269 .contains(a1); in validateListenersFromXml()
275 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testOnUserRemoved() local
277 new NotificationListenerFilter(4, new ArraySet<>(new VersionedPackage[] {a1})); in testOnUserRemoved()
302 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testEnsureFilters_preExisting() local
304 new NotificationListenerFilter(4, new ArraySet<>(new VersionedPackage[] {a1})); in testEnsureFilters_preExisting()
426 VersionedPackage a1 = new VersionedPackage("pkg1", 243); in testOnPackageChanged() local
428 new NotificationListenerFilter(4, new ArraySet<>(new VersionedPackage[] {a1})); in testOnPackageChanged()
[all …]
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp159 const audio_coef_t a1 = mCoefs[3]; in process_normal_mono() local
167 acc = mac_coef_sample(a1, y1, acc); in process_normal_mono()
206 const audio_coef_t a1 = mCoefs[3]; in process_normal_multi() local
220 acc = mac_coef_sample(a1, y1, acc); in process_normal_multi()
/frameworks/base/services/tests/servicestests/assets/KeyStoreRecoveryControllerTest/pem/
Dvalid-cert.pem78 d2:ad:a8:cb:36:2d:02:a1:66:ac:47:a7:6e:d2:3a:
85 c2:a1:b3:80:7f:d0:a4:1d:ce:ad:7e:75:33:f0:7b:
94 25:a1:e1:47:2f:66:ae:e7:51:fd:57:10:ca:72:ca:
102 52:3c:63:ec:c5:54:60:0b:08:48:7b:07:82:a1:13:
123 a1:3c:7d:39:3b:5f:b8:bf:39:a5:76:c2:83:16:ca:
148 01:9f:2d:35:d6:f7:ae:3e:99:53:70:d7:b2:2d:e2:a1:59:19:
149 ff:cb:d5:4c:40:4c:a1:68:b9:6c:0b:50:e2:df:95:8d:f2:8c:
153 cd:47:0a:87:d6:5c:96:cf:f2:df:69:57:db:57:80:ad:69:a1:
162 d0:07:a7:60:56:b3:34:cd:48:4c:43:dc:d1:a7:94:7f:c6:a1:
182 12:64:e2:6f:15:07:56:3b:10:7c:73:7b:d9:64:61:a1:32:e4:
/frameworks/rs/tests/cpp_api/cppbasic-getpointer/
Dcompute.cpp32 sp<Allocation> a1 = Allocation::createSized(rs, e, 1000); in test_compute() local
33 printf("Allocation %p\n", a1.get()); in test_compute()
/frameworks/base/rs/java/android/renderscript/
DAllocationAdapter.java77 int a1 = 0, a2 = 0, a3 = 0, a4 = 0; in updateOffsets() local
81 a1 = mSelectedArray[0]; in updateOffsets()
94 mSelectedLOD, mSelectedFace.mID, a1, a2, a3, a4); in updateOffsets() local

123