Home
last modified time | relevance | path

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

12

/cts/tests/app/src/android/app/cts/
DAppTaskTests.java105 final Activity a1 = mActivityRule.launchActivity(null); in testSingleAppTask() local
108 assertTrue(appTasks.get(0).getTaskInfo().topActivity.equals(a1.getComponentName())); in testSingleAppTask()
133 final Activity a1 = mActivityRule.launchActivity(null); in testFinishAndRemoveTask() local
135 getAppTask(a1).finishAndRemoveTask(); in testFinishAndRemoveTask()
144 final Activity a1 = mActivityRule.launchActivity(null); in testMoveToFront() local
158 if (activity == a1 && stage == Stage.RESUMED) { in testMoveToFront()
164 getAppTask(a1).moveToFront(); in testMoveToFront()
174 final Activity a1 = mActivityRule.launchActivity(null); in testStartActivityInTask_NoNewTask() local
175 final ActivityManager.AppTask task = getAppTask(a1); in testStartActivityInTask_NoNewTask()
180 () -> getAppTask(a1) != null && getAppTask(a1).getTaskInfo().numActivities == 2, in testStartActivityInTask_NoNewTask()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java244 ValueAnimator a1 = ValueAnimator.ofFloat(0, 1f); in testPauseListener() local
245 a1.addPauseListener(l1); in testPauseListener()
246 a1.addPauseListener(l2); in testPauseListener()
248 a1.start(); in testPauseListener()
249 a1.pause(); in testPauseListener()
250 verify(l1, times(1)).onAnimationPause(a1); in testPauseListener()
251 verify(l2, times(1)).onAnimationPause(a1); in testPauseListener()
252 a1.removePauseListener(l2); in testPauseListener()
253 a1.resume(); in testPauseListener()
257 verify(l1, times(1)).onAnimationResume(a1); in testPauseListener()
[all …]
DAnimatorSetTest.java297 ValueAnimator a1 = ValueAnimator.ofFloat(0f, 100f); in testPauseAndResume() local
298 a1.setDuration(50); in testPauseAndResume()
301 a1.addListener(new AnimatorListenerAdapter() { in testPauseAndResume()
308 set.playTogether(a1, a2); in testPauseAndResume()
357 ValueAnimator a1 = ValueAnimator.ofFloat(0f, 100f); in testPauseBeforeStart() local
358 a1.setDuration(50); in testPauseBeforeStart()
362 set.playSequentially(a1, a2); in testPauseBeforeStart()
384 ValueAnimator a1 = ValueAnimator.ofFloat(0f, 50f); in testSeekAfterPause() local
385 a1.setDuration(50); in testSeekAfterPause()
388 set.playSequentially(a1, a2); in testSeekAfterPause()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DVLoadTest.java110 private void verify(byte[] a1, byte[] a2, String s) { in verify() argument
113 if (a1[i] != a2[i]) { in verify()
114 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
121 private void verify(short[] a1, short[] a2, String s) { in verify() argument
124 if (a1[i] != a2[i]) { in verify()
125 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
132 private void verify(int[] a1, int[] a2, String s) { in verify() argument
135 if (a1[i] != a2[i]) { in verify()
136 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
143 private void verify(long[] a1, long[] a2, String s) { in verify() argument
[all …]
DImageProcessingTest.java70 private Allocation a1, a2; field in ImageProcessingTest
80 a1 = Allocation.createTyped(mRS, t); in setUp()
86 a1.destroy(); in tearDown()
96 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testBlur()
101 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testBlur()
725 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testColorMatrix()
736 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
747 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
762 a1_copy = Allocation.createTyped(mRS, a1.getType()); in testConvolve3x3()
765 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testConvolve3x3()
[all …]
DGetSetTest.java144 private void verify(byte[] a1, byte[] a2, Allocation alloc, String s, int vsize) { in verify() argument
147 if (a1[i] != a2[i]) { in verify()
151 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
158 private void verify(short[] a1, short[] a2, Allocation alloc, String s, int vsize) { in verify() argument
161 if (a1[i] != a2[i]) { in verify()
165 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
172 private void verify(int[] a1, int[] a2, Allocation alloc, String s, int vsize) { in verify() argument
175 if (a1[i] != a2[i]) { in verify()
179 throw new RSRuntimeException(s + a1[i] + ", " + a2[i] + ", at " + i); in verify()
186 private void verify(long[] a1, long[] a2, Allocation alloc, String s, int vsize) { in verify() argument
[all …]
DLaunchClip.java45 int a0, int a1, int a2, int a3) { in setup() argument
53 mDimA1 = a1; in setup()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gamemanager/
DGameManagerStatsTests.java107 GameModeChanged a1 = data.get(1).getAtom().getGameModeChanged(); in testGameModeChangedIsPushed() local
108 assertThat(a1.getCallerUid()).isEqualTo(mStatsdAtomTestUid); in testGameModeChangedIsPushed()
109 assertThat(a1.getGameUid()).isEqualTo(mStatsdAtomTestUid); in testGameModeChangedIsPushed()
110 assertThat(a1.getGameModeTo()).isEqualTo(GameMode.GAME_MODE_BATTERY); in testGameModeChangedIsPushed()
130 GameModeConfigurationChanged a1 = data.get( in testGameModeConfigurationChangedIsPushed() local
132 assertThat(a1.getGameMode()).isEqualTo(GameMode.GAME_MODE_CUSTOM); in testGameModeConfigurationChangedIsPushed()
133 assertThat(a1.getCallerUid()).isEqualTo(mStatsdAtomTestUid); in testGameModeConfigurationChangedIsPushed()
134 assertThat(a1.getGameUid()).isEqualTo(mStatsdAtomTestUid); in testGameModeConfigurationChangedIsPushed()
135 assertThat(a1.getScalingFactorFrom()).isEqualTo(0.5f); in testGameModeConfigurationChangedIsPushed()
136 assertThat(a1.getFpsOverrideFrom()).isEqualTo(30); in testGameModeConfigurationChangedIsPushed()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DBluetoothStatsTests.java117 AtomsProto.BleScanStateChanged a1 = data.get(1).getAtom().getBleScanStateChanged(); in testBleUnoptimizedScan() local
118 assertThat(a1.getState().getNumber()).isEqualTo( in testBleUnoptimizedScan()
120 assertThat(a1.getIsFiltered()).isFalse(); in testBleUnoptimizedScan()
121 assertThat(a1.getIsFirstMatch()).isFalse(); in testBleUnoptimizedScan()
122 assertThat(a1.getIsOpportunistic()).isFalse(); in testBleUnoptimizedScan()
152 AtomsProto.BleScanStateChanged a1 = data.get(1).getAtom().getBleScanStateChanged(); in testBleOpportunisticScan() local
153 assertThat(a1.getState().getNumber()).isEqualTo( in testBleOpportunisticScan()
155 assertThat(a1.getIsFiltered()).isFalse(); in testBleOpportunisticScan()
156 assertThat(a1.getIsFirstMatch()).isFalse(); in testBleOpportunisticScan()
157 assertThat(a1.getIsOpportunistic()).isTrue(); in testBleOpportunisticScan()
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/d/
DT_a1_1.dfh1 // Processing 'out/classes_dasm/dot/junit/verify/a1/d/T_a1_1.dex'...
2 // Opened 'out/classes_dasm/dot/junit/verify/a1/d/T_a1_1.dex', DEX version '035'
55 // parsed: offset 116, len 4: [1] string_data_off: 268 (0x00010c) "Ldot/junit/verify/a1/d/T_a1_1;"
67 // parsed: offset 136, len 4: [0] descriptor_idx: 1 (0x000001) "Ldot/junit/verify/a1/d/T_a1_1;"
93 // class_idx: 0 "Ldot/junit/verify/a1/d/T_a1_1;"
103 // CODE_ITEM for "dot.junit.verify.a1.d.T_a1_1.<init>"
123 // CODE_ITEM for "dot.junit.verify.a1.d.T_a1_1.run"
146 // parsed: offset 268, len 32: TYPE_STRING_DATA_ITEM [1] "Ldot/junit/verify/a1/d/T_a1_1;"
156 // CLASS_DATA_ITEM for class [0] "Ldot/junit/verify/a1/d/T_a1_1;"
DT_a1_2.java17 package dot.junit.verify.a1.d;
DT_a1_1.smali16 .class public Ldot/junit/verify/a1/d/T_a1_1;
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java108 TestApp a1 = new TestApp(TestApp.A1.toString(), TestApp.A1.getPackageName(), in testNativeFilePathTestApp() local
116 assertSameResource(TestApp.A1, a1); in testNativeFilePathTestApp()
119 assertThat(a1.toString()).isEqualTo(TestApp.A1.toString()); in testNativeFilePathTestApp()
120 assertThat(a1.getPackageName()).isEqualTo(TestApp.A1.getPackageName()); in testNativeFilePathTestApp()
121 assertThat(a1.getVersionCode()).isEqualTo(TestApp.A1.getVersionCode()); in testNativeFilePathTestApp()
126 Install.multi(a1, b2).addInstallFlags(PackageManager.INSTALL_REPLACE_EXISTING).commit(); in testNativeFilePathTestApp()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java293 AtomsProto.WifiConnectionResultReported a1 = in testWifiReconnect() local
297 assertThat(a1).isNotNull(); in testWifiReconnect()
304 assertThat(a1.getConnectionResult()).isTrue(); in testWifiReconnect()
305 assertThat(a1.getRssi()).isIn(Range.closed(-127, 0)); in testWifiReconnect()
306 assertThat(a1.getConnectionAttemptDurationMillis()).isIn( in testWifiReconnect()
308 assertThat(a1.getTrigger()).isEqualTo( in testWifiReconnect()
310 assertThat(a1.getNetworkUsed()).isTrue(); in testWifiReconnect()
369 AtomsProto.WifiScanStateChanged a1 = data.get(1).getAtom().getWifiScanStateChanged(); in testWifiScanLogsStateChangedAtoms() local
371 assertThat(a1.getState().getNumber()).isEqualTo(stateOff); in testWifiScanLogsStateChangedAtoms()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DNativeDecoderTest.java99 private void compareArrays(String message, int[] a1, int[] a2) { in compareArrays() argument
100 if (a1 == a2) { in compareArrays()
104 assertNotNull(message + ": array 1 is null", a1); in compareArrays()
107 assertEquals(message + ": arraylengths differ", a1.length, a2.length); in compareArrays()
108 int length = a1.length; in compareArrays()
111 if (a1[i] != a2[i]) { in compareArrays()
112 Log.i("@@@@", Arrays.toString(a1)); in compareArrays()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/
DMediaProjectionAtomsTests.java134 MediaProjectionStateChanged a1 = in testMediaProjectionStateChanged_stoppedCapture() local
136 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_stoppedCapture()
206 MediaProjectionStateChanged a1 = in testMediaProjectionStateChanged_setupCancelled() local
208 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_setupCancelled()
235 MediaProjectionStateChanged a1 = in testMediaProjectionStateChanged_appSelectorShown() local
237 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_appSelectorShown()
/cts/tools/vm-tests-tf/src/dot/junit/verify/a1/
DTest_a1.java17 package dot.junit.verify.a1;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBitmapUtils.java218 final int a1 = Color.alpha(actual); in distance() local
220 final int r = multiplyAlpha(Color.red(actual), a1) - in distance()
222 final int g = multiplyAlpha(Color.green(actual), a1) - in distance()
224 final int b = multiplyAlpha(Color.blue(actual), a1) - in distance()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java248 final int a1 = Color.alpha(actual); in distance() local
250 final int r = multiplyAlpha(Color.red(actual), a1) - in distance()
252 final int g = multiplyAlpha(Color.green(actual), a1) - in distance()
254 final int b = multiplyAlpha(Color.blue(actual), a1) - in distance()
/cts/tools/vm-tests-tf/src/dot/junit/verify/
DAllTests.java35 suite.addTestSuite(dot.junit.verify.a1.Test_a1.class); in suite()
/cts/tests/sensor/src/android/hardware/cts/
DSensorManagerStaticTest.java474 int a1, a2; // AXIS_X/Y/Z in testRemapCoordinateSystem() local
488 a1 = j/3 + 1; in testRemapCoordinateSystem()
492 if (a1 == a2) continue; in testRemapCoordinateSystem()
496 b1 = a1 | (((k & 2) != 0) ? 0x80 : 0); in testRemapCoordinateSystem()
499 b3 = (6 - a1 -a2) | in testRemapCoordinateSystem()
500 ( (((a2 + 3 - a1) % 3 == 2) ? 0x80 : 0) ^ (b1 & 0x80) ^ (b2 & 0x80)); in testRemapCoordinateSystem()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/
DVirtualCameraUtils.java148 float a1 = ((colorA >> 24) & 0xff) / 255f; in areColorsAlmostIdentical() local
158 float mse = ((a1 - a2) * (a1 - a2) in areColorsAlmostIdentical()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/
DAppCompatStateStatsTests.java195 try (AutoCloseable a1 = DeviceUtils.withActivity(getDevice(), in testAppCompatFlow() argument
220 a1.close(); in testAppCompatFlow()
/cts/tests/tests/widget/src/android/widget/cts/
DGridLayoutTest.java265 int a1 = a.getValue(v1); in verifyCellAlignment() local
268 a0, a1); in verifyCellAlignment()
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem50 7f:dd:5f:7b:eb:7c:a1:39:a2:8b:43:2e:f4:f2:71:

12