/cts/tests/tests/media/src/android/media/cts/ |
D | VolumeShaperTest.java | 213 private static void checkEqual(String testName, in checkEqual() argument 215 assertEquals(testName + " configuration should be equal", in checkEqual() 217 assertEquals(testName + " configuration.hashCode() should be equal", in checkEqual() 219 assertEquals(testName + " configuration.toString() should be equal", in checkEqual() 223 private static void checkNotEqual(String testName, in checkNotEqual() argument 225 assertTrue(testName + " configuration should not be equal", in checkNotEqual() 227 assertTrue(testName + " configuration.hashCode() should not be equal", in checkNotEqual() 229 assertTrue(testName + " configuration.toString() should not be equal", in checkNotEqual() 567 final String testName = TEST_NAME + " " + player.name(); in testMaximumShapers() local 574 fail(testName + " should not be able to create " in testMaximumShapers() [all …]
|
D | DecodeAccuracyTest.java | 145 private String testName; field in DecodeAccuracyTest 171 String testName = ""; in data() local 173 testName = matcher.group(1); in data() 175 testParams.add(new Object[] { testName, file }); in data() 180 public DecodeAccuracyTest(String testName, String fileName) { in DecodeAccuracyTest() argument 182 this.testName = testName; in DecodeAccuracyTest() 272 "failed_" + methodName + "_" + testName + ".png"); in validateResult() 279 Log.d(TAG, testName + " saved " + failed.getAbsolutePath()); in validateResult()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 102 String testName; field in TestListAdapter.TestListItem 127 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument 130 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest() 134 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument 136 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest() 140 public static TestListItem newTest(Context context, int titleResId, String testName, in newTest() argument 142 return newTest(context.getString(titleResId), testName, intent, requiredFeatures, in newTest() 146 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument 149 return new TestListItem(title, testName, intent, requiredFeatures, requiredConfigs, in newTest() 153 public static TestListItem newTest(String title, String testName, Intent intent, in newTest() argument [all …]
|
D | TestResult.java | 102 public static Intent createResult(Activity activity, int testResult, String testName, in createResult() argument 109 addResultData(data, testResult, testName, testDetails, reportLog, historyCollection); in createResult() 113 public static void addResultData(Intent intent, int testResult, String testName, in addResultData() argument 115 testName = setTestNameSuffix(sCurrentDisplayMode, testName); in addResultData() 116 intent.putExtra(TEST_NAME, testName); in addResultData()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/util/ |
D | BitmapDumper.java | 44 public static void deleteFileInClassFolder(String className, String testName) { in deleteFileInClassFolder() argument 52 if (file.startsWith(testName)) { in deleteFileInClassFolder() 73 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, in dumpBitmaps() argument 88 saveFile(className, testName, IDEAL_RENDERING_FILE_NAME, idealBitmap); in dumpBitmaps() 89 saveFile(className, testName, TESTED_RENDERING_FILE_NAME, croppedBitmap); in dumpBitmaps() 90 saveFile(className, testName, VISUALIZER_RENDERING_FILE_NAME, visualizerBitmap); in dumpBitmaps() 93 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument 95 Log.d(TAG, "File not saved, bitmap was null for test : " + testName); in dumpBitmap() 98 saveFile(className, testName, SINGULAR_FILE_NAME, bitmap); in dumpBitmap() 101 … private static void saveFile(String className, String testName, String fileName, Bitmap bitmap) { in saveFile() argument [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapAsserter.java | 44 String testName, String debugMessage) { in assertBitmapsAreSimilar() argument 60 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar() 61 onFailure(testName); in assertBitmapsAreSimilar() 72 String testName, String debugMessage) { in assertBitmapIsVerified() argument 78 BitmapDumper.dumpBitmaps(croppedBitmap, bitmapVerifier.getDifferenceBitmap(), testName, in assertBitmapIsVerified() 80 onFailure(testName); in assertBitmapIsVerified() 85 private void onFailure(String testName) { in onFailure() argument 89 BitmapDumper.dumpBitmap(screenshot, testName + "_fullscreenshot", mClassName); in onFailure()
|
D | BitmapDumper.java | 84 private static File getFile(String className, String testName, String type) { in getFile() argument 87 return new File(testDirectory, testName + "_" + type + ".png"); in getFile() 106 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, in dumpBitmaps() argument 121 File idealFile = getFile(className, testName, TYPE_IDEAL_RENDERING); in dumpBitmaps() 122 File testedFile = getFile(className, testName, TYPE_TESTED_RENDERING); in dumpBitmaps() 123 File visualizerFile = getFile(className, testName, TYPE_VISUALIZER_RENDERING); in dumpBitmaps() 136 public static void dumpBitmaps(Bitmap testedBitmap, Bitmap visualizerBitmap, String testName, in dumpBitmaps() argument 139 File testedFile = getFile(className, testName, TYPE_TESTED_RENDERING); in dumpBitmaps() 140 File visualizerFile = getFile(className, testName, TYPE_VISUALIZER_RENDERING); in dumpBitmaps() 151 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | AutofillLoggingTestRule.java | 57 final String testName = description.getDisplayName(); in apply() 65 dump(testName, t); in apply() 73 Log.v(TAG, "@After " + testName); in apply() 81 public void dump(@NonNull String testName, @NonNull Throwable t) { 83 Log.e(mTag, "dump(" + testName + "): already dumped"); 92 Log.e(mTag, "Dumping after exception on " + testName, t);
|
D | AutofillTestWatcher.java | 64 final String testName = description.getDisplayName(); in starting() local 65 Log.i(TAG, "Starting " + testName); in starting() 66 TestNameUtils.setCurrentTestName(testName); in starting() 72 final String testName = description.getDisplayName(); in finished() local 74 Log.i(TAG, "Finished " + testName); in finished()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDeviceOwnerTest.java | 94 protected final void executeDeviceOwnerTestMethod(String className, String testName) in executeDeviceOwnerTestMethod() argument 96 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod() 99 protected final void executeDeviceTestMethod(String className, String testName) in executeDeviceTestMethod() argument 101 executeDeviceOwnerPackageTestMethod(className, testName, mPrimaryUserId); in executeDeviceTestMethod() 114 private void executeDeviceOwnerPackageTestMethod(String className, String testName, in executeDeviceOwnerPackageTestMethod() argument 116 runDeviceTestsAsUser(DEVICE_OWNER_PKG, className, testName, userId); in executeDeviceOwnerPackageTestMethod()
|
D | ProfileOwnerTest.java | 117 protected void executeProfileOwnerTestMethod(String className, String testName) in executeProfileOwnerTestMethod() argument 119 CLog.d("executeProfileOwnerTestMethod(): running %s.%s on user %d", className, testName, in executeProfileOwnerTestMethod() 121 runDeviceTestsAsUser(PROFILE_OWNER_PKG, className, testName, mUserId); in executeProfileOwnerTestMethod() 124 private void executeDevicePolicySafetyCheckerIntegrationTest(String testName) throws Exception { in executeDevicePolicySafetyCheckerIntegrationTest() argument 126 PROFILE_OWNER_PKG + "." + "DevicePolicySafetyCheckerIntegrationTest", testName); in executeDevicePolicySafetyCheckerIntegrationTest()
|
D | CustomManagedProfileTest.java | 55 final String testName = expected ? "testIsProvisioningAllowedTrue" in assertIsProvisioningAllowed() local 57 CLog.d("Running test %s on user %d", testName, userId); in assertIsProvisioningAllowed() 58 runDeviceTestsAsUser(MANAGED_PROFILE_PKG, ".PreManagedProfileTest", testName, userId); in assertIsProvisioningAllowed()
|
D | DeviceAndProfileOwnerTestApi30.java | 49 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument 50 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
|
D | DeviceAdminFeaturesCheckerRule.java | 68 String testName = description.getDisplayName(); in apply() local 75 "TEMPORARILY skipping " + testName + " on headless system user mode " in apply() 84 "Skipping " + testName + " on headless system user mode (reason: " in apply() 107 CLog.v("Required features for test %s: %s", testName, requiredFeatures); in apply() 123 + "because of %s annotation", missingFeatures, testName, bypass); in apply()
|
D | DeviceAndProfileOwnerTestApi25.java | 75 protected void executeDeviceTestMethod(String className, String testName) throws Exception { in executeDeviceTestMethod() argument 76 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | ContentCaptureLoggingTestRule.java | 53 final String testName = description.getDisplayName(); in apply() 57 dump(testName, t); in apply() 65 public void dump(@NonNull String testName, @NonNull Throwable t) { 67 Log.e(TAG, "dump(" + testName + "): already dumped"); 78 Log.e(TAG, "Dumping after exception on " + testName, t);
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | BitmapDumper.java | 85 private static File getFile(String className, String testName, String type) { in getFile() argument 88 return new File(testDirectory, testName + "_" + type + ".png"); in getFile() 101 public static void dumpBitmap(Bitmap bitmap, String testName, String className) { in dumpBitmap() argument 103 Log.d(TAG, "File not saved, bitmap was null for test : " + testName); in dumpBitmap() 107 File capture = getFile(className, testName, TYPE_SINGULAR); in dumpBitmap() 109 Log.d(TAG, testName + " saved " + capture.getAbsolutePath()); in dumpBitmap()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | BaseSensorTestActivity.java | 214 String testName = getTestClassName(); in run() local 219 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in run() 221 testDetails = new SensorTestDetails(testName, "DeactivateSensorFeatures", e); in run() 230 testDetails = executeActivityTests(testName); in run() 238 testDetails = new SensorTestDetails(testName, "RestoreSensorFeatures", e); in run() 529 private SensorTestDetails executeActivityTests(String testName) { in executeActivityTests() argument 533 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in executeActivityTests() 535 testDetails = new SensorTestDetails(testName, "ActivitySetUp", e); in executeActivityTests() 547 testDetails = new SensorTestDetails(testName, "TestExecution", e); in executeActivityTests() 556 testDetails = new SensorTestDetails(testName, "ActivityCleanUp", e); in executeActivityTests() [all …]
|
D | SensorCtsVerifierTestActivity.java | 124 String testName = String.format("%s#%s", getTestClassName(), testMethodName); in executeTest() local 131 new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS, testSummary); in executeTest() 134 testDetails = new SensorTestDetails(testName, "TestExecution", e.getCause()); in executeTest() 136 testDetails = new SensorTestDetails(testName, "TestInfrastructure", e); in executeTest()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | RestoreSessionHostSideTest.java | 178 private void checkRestoreSessionDeviceTestForAllApps(String testName) in checkRestoreSessionDeviceTestForAllApps() argument 181 checkRestoreSessionDeviceTest(appNumber, testName); in checkRestoreSessionDeviceTestForAllApps() 186 private void checkRestoreSessionDeviceTest(int testAppNumber, String testName) in checkRestoreSessionDeviceTest() argument 190 packageName, packageName + ".RestoreSessionAppTest", testName); in checkRestoreSessionDeviceTest() 194 String packageName, String fullClassName, String testName) in runRestoreSessionDeviceTestAndAssertSuccess() argument 196 boolean result = runDeviceTests(packageName, fullClassName, testName); in runRestoreSessionDeviceTestAndAssertSuccess() 197 assertTrue("Device test failed: " + testName, result); in runRestoreSessionDeviceTestAndAssertSuccess()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BusinessLogicTestCase.java | 75 String testName = String.format("%s#%s", this.getClass().getName(), methodName); in executeBusinessLogicForTest() local 76 if (mBusinessLogic.hasLogicFor(testName)) { in executeBusinessLogicForTest() 77 Log.i(TAG, "Finding business logic for test case: " + testName); in executeBusinessLogicForTest() 79 mBusinessLogic.applyLogicFor(testName, executor); in executeBusinessLogicForTest() 86 Log.d(TAG, "No business logic found for test: " + testName); in executeBusinessLogicForTest()
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | DeviceTestCompanion.java | 185 String testName; in runTest() local 189 testName = nextTest(is, os, isSuccess); in runTest() 191 updateStatus("Running test \"" + testName + "\""); in runTest() 193 switch (testName) { in runTest() 228 } while (!"done".equals(testName)); in runTest()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | GoWithConfigTestCase.java | 159 String testName = "Accept client connection test"; in getTestName() local 161 testName += " with " + mGroupOperatingBand + "G band"; in getTestName() 163 testName += " with " + mGroupOperatingFrequency + " MHz"; in getTestName() 165 return testName; in getTestName()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | DumpOnFailureRule.java | 46 final String testName = description.getClassName() + "_" + description.getMethodName(); in onTestFailure() local 49 Log.d(TAG, "Skipping test " + testName + ": " + throwable); in onTestFailure() 54 final File dumpFile = new File(mDumpDir, "dump-" + testName); in onTestFailure()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/ |
D | HdmiCecDeviceOsdNameTest.java | 82 final String testName = "test_name"; in cect_11_2_11_1b_UpdateAndGiveOsdNameTest() local 86 device.executeShellCommand("settings put global device_name '" + testName + "'"); in cect_11_2_11_1b_UpdateAndGiveOsdNameTest() 90 assertThat(CecMessage.getAsciiString(message)).isEqualTo(testName); in cect_11_2_11_1b_UpdateAndGiveOsdNameTest()
|