/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | VolumeShaperTest.java | 246 private static void checkEqual(String testName, in checkEqual() argument 248 assertEquals(testName + " configuration should be equal", in checkEqual() 250 assertEquals(testName + " configuration.hashCode() should be equal", in checkEqual() 252 assertEquals(testName + " configuration.toString() should be equal", in checkEqual() 256 private static void checkNotEqual(String testName, in checkNotEqual() argument 258 assertTrue(testName + " configuration should not be equal", in checkNotEqual() 260 assertTrue(testName + " configuration.hashCode() should not be equal", in checkNotEqual() 262 assertTrue(testName + " configuration.toString() should not be equal", in checkNotEqual() 633 final String testName = TEST_NAME + " " + player.name(); in testMaximumShapers() local 640 fail(testName + " should not be able to create " in testMaximumShapers() [all …]
|
D | AudioTrackLatencyTest.java | 54 private void log(String testName, String message) { in log() argument 55 Log.i(TAG, "[" + testName + "] " + message); in log() 58 private void logw(String testName, String message) { in logw() argument 59 Log.w(TAG, "[" + testName + "] " + message); in logw() 62 private void loge(String testName, String message) { in loge() argument 63 Log.e(TAG, "[" + testName + "] " + message); in loge() 138 private void testSetBufferSizeOnTrack(AudioTrack track, String testName) { in testSetBufferSizeOnTrack() argument 142 assertTrue(testName, bufferCapacity > 0); in testSetBufferSizeOnTrack() 143 assertTrue(testName, initialBufferSize > 0); in testSetBufferSizeOnTrack() 144 assertTrue(testName, initialBufferSize <= bufferCapacity); in testSetBufferSizeOnTrack() [all …]
|
/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 …]
|
D | BitmapAsserter.java | 50 String testName, String debugMessage) { in assertBitmapsAreSimilar() argument 66 BitmapDumper.dumpBitmaps(bitmap1, bitmap2, testName, mClassName, mDifferenceVisualizer); in assertBitmapsAreSimilar() 77 String testName, String debugMessage) { in assertBitmapIsVerified() argument 83 BitmapDumper.dumpBitmap(croppedBitmap, testName, mClassName); in assertBitmapIsVerified() 84 BitmapDumper.dumpBitmap(bitmapVerifier.getDifferenceBitmap(), testName + "_verifier", in assertBitmapIsVerified() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 115 public String testName; field in TestListAdapter.TestListItem 153 String testName, in newTest() argument 160 testName, in newTest() 174 String testName, in newTest() argument 180 testName, in newTest() 194 String testName, in newTest() argument 199 testName, in newTest() 212 String testName, in newTest() argument 224 testName, in newTest() 242 String testName, in newTest() argument [all …]
|
D | TestResultsReport.java | 151 String testName = item.testName; in getCaseResult() local 153 createTestResult(caseResult, testName, testName); in getCaseResult() 154 if (mAdapter.getTestResult(testName) == TestResult.TEST_RESULT_NOT_EXECUTED) { in getCaseResult() 172 for (String testName : mAdapter.getTestResultNames()) { in getHostCaseResult() 173 if (!testName.startsWith(module)) { in getHostCaseResult() 177 String[] parts = testName.split(HostTestsActivity.TEST_ID_SEPARATOR, 2); in getHostCaseResult() 181 createTestResult(caseResult, testName, parts[1]); in getHostCaseResult() 186 private void createTestResult(ICaseResult caseResult, String testName, String resultName) { in createTestResult() argument 188 TestStatus resultStatus = getTestResultStatus(mAdapter.getTestResult(testName)); in createTestResult() 192 String details = mAdapter.getTestDetails(testName); in createTestResult() [all …]
|
/cts/tests/translation/src/android/translation/cts/ |
D | TranslationTestWatcher.java | 35 final String testName = description.getDisplayName(); in starting() local 36 Log.i(TAG, "Starting " + testName); in starting() 37 TestNameUtils.setCurrentTestName(testName); in starting() 42 final String testName = description.getDisplayName(); in finished() local 43 Log.i(TAG, "Finished " + testName); in finished()
|
/cts/hostsidetests/ctsverifier/src/com/android/cts/verifier/ |
D | CtsVerifierTest.java | 178 void runTest(String testName, String... configRequirements) throws Exception { in runTest() argument 179 runTest(testName, mFoldMode, configRequirements); in runTest() 182 void runTest(String testName, boolean foldedMode, String... configRequirements) in runTest() argument 184 String testNameToRun = foldedMode ? setFoldedTestNameSuffix(testName) : testName; in runTest() 210 + testName; in runTest() 246 private void removeTestResult(String testName) throws Exception { in removeTestResult() argument 253 + testName in removeTestResult() 259 private TestResult getTestResult(String testName) { in getTestResult() argument 268 + testName in getTestResult() 334 private static String setFoldedTestNameSuffix(String testName) { in setFoldedTestNameSuffix() argument [all …]
|
/cts/common/device-side/interactive/src/main/java/com/android/interactive/testrules/ |
D | TestNameSaver.java | 63 String testName = mPackageClass + "#" + description.getMethodName(); in apply() 65 boolean testNameUpdated = setTestName(sharedPref, testName); in apply() 77 "Cleard test name: " + testName + ", result: " + testNameCleared); in apply() 79 Log.i(LOG_TAG, "Skip clearing the test name: " + testName); in apply() 93 private static boolean setTestName(SharedPreferences sharedPref, String testName) { 94 return sharedPref.edit().putString(INTERACTIVE_TEST_NAME, testName).commit();
|
/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/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/ |
D | TestLifecycleListener.java | 30 default void testStarted(String testName) {} in testStarted() argument 32 default void testFinished(String testName) {} in testFinished() argument 34 default void testRestarted(String testName, String reason) {} in testRestarted() argument
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDeviceOwnerTest.java | 95 protected final void executeDeviceOwnerTestMethod(String className, String testName) in executeDeviceOwnerTestMethod() argument 97 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod() 100 protected final void executeDeviceTestMethod(String className, String testName) in executeDeviceTestMethod() argument 102 executeDeviceOwnerPackageTestMethod(className, testName, mPrimaryUserId); in executeDeviceTestMethod() 120 private void executeDeviceOwnerPackageTestMethod(String className, String testName, in executeDeviceOwnerPackageTestMethod() argument 122 runDeviceTestsAsUser(DEVICE_OWNER_PKG, className, testName, userId); in executeDeviceOwnerPackageTestMethod()
|
D | ProfileOwnerTest.java | 92 protected void executeProfileOwnerTestMethod(String className, String testName) in executeProfileOwnerTestMethod() argument 94 CLog.d("executeProfileOwnerTestMethod(): running %s.%s on user %d", className, testName, in executeProfileOwnerTestMethod() 96 runDeviceTestsAsUser(PROFILE_OWNER_PKG, className, testName, mUserId); in executeProfileOwnerTestMethod() 99 private void executeDevicePolicySafetyCheckerIntegrationTest(String testName) throws Exception { in executeDevicePolicySafetyCheckerIntegrationTest() argument 101 PROFILE_OWNER_PKG + "." + "DevicePolicySafetyCheckerIntegrationTest", testName); in executeDevicePolicySafetyCheckerIntegrationTest()
|
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() 91 CLog.i("Skipping device admin check for %s", testName); in apply() 112 CLog.v("Required features for test %s: %s", testName, requiredFeatures); in apply() 128 + "because of %s annotation", missingFeatures, testName, bypass); in apply()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | ContentCaptureLoggingTestRule.java | 55 final String testName = description.getDisplayName(); in apply() 59 dump(testName, t); in apply() 67 public void dump(@NonNull String testName, @NonNull Throwable t) { 69 Log.e(TAG, "dump(" + testName + "): already dumped"); 80 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() 111 report.putString(KEY_PREFIX + TYPE_SINGULAR + testName, bypassContentProvider(capture)); in dumpBitmap()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | Helper.java | 46 public static void takeScreenshotAndSave(Context context, String testName, in takeScreenshotAndSave() argument 50 file = createTestFile(testName, "sreenshot.png", targetFolder); in takeScreenshotAndSave() 64 public static void dumpsysAndSave(String dumpsysString, String testName, in dumpsysAndSave() argument 68 file = createTestFile(testName, "dumpsys.txt", targetFolder); in dumpsysAndSave() 93 private static File createTestFile(String testName, String name, String targetFolder) in createTestFile() argument 97 final String prefix = testName.replaceAll("\\.|\\(|\\/", "_").replaceAll("\\)", ""); in createTestFile()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | OnPropertiesChangedListenerForTests.java | 53 OnPropertiesChangedListenerForTests(TestName testName) { in OnPropertiesChangedListenerForTests() argument 54 mTest = testName.getMethodName(); in OnPropertiesChangedListenerForTests() 81 static void unregisterAfter(Class<?> clazz, TestName testName) { in unregisterAfter() argument 85 + clazz.getSimpleName() + "#" + testName.getMethodName()); in unregisterAfter()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
D | BaseSensorTestActivity.java | 210 String testName = getTestClassName(); in run() local 215 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in run() 217 testDetails = new SensorTestDetails(testName, "DeactivateSensorFeatures", e); in run() 226 testDetails = executeActivityTests(testName); in run() 234 testDetails = new SensorTestDetails(testName, "RestoreSensorFeatures", e); in run() 508 private SensorTestDetails executeActivityTests(String testName) { in executeActivityTests() argument 512 testDetails = new SensorTestDetails(testName, SensorTestDetails.ResultCode.PASS); in executeActivityTests() 514 testDetails = new SensorTestDetails(testName, "ActivitySetUp", e); in executeActivityTests() 526 testDetails = new SensorTestDetails(testName, "TestExecution", e); in executeActivityTests() 535 testDetails = new SensorTestDetails(testName, "ActivityCleanUp", e); in executeActivityTests() [all …]
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Renderer.cpp | 567 std::string testName) { in drawFramesSync() argument 568 bool namedTest = testName.size() > 0; in drawFramesSync() 591 addResult(testName + "_durations", Utility::serializeValues(batchData_.durations)); in drawFramesSync() 592 addResult(testName + "_intervals", Utility::serializeValues(batchData_.intervals)); in drawFramesSync() 595 return getFrameStats(batchData_, testName); in drawFramesSync() 602 FrameStats Renderer::getFrameStats(FrameBatchData &batchData, std::string &testName) { in getFrameStats() argument 647 if (testName.size() > 0) { in getFrameStats() 648 addResult(testName + "_selected_deadline_durations", in getFrameStats() 650 addResult(testName + "_sum", std::to_string(sum)); in getFrameStats() 651 addResult(testName + "_num_durations", std::to_string(batchData.durations.size())); in getFrameStats() [all …]
|
/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/hostsidetests/network-policy/app/src/com/android/cts/netpolicy/hostside/ |
D | RequiredPropertiesRule.java | 41 final String testName = description.getClassName() + "#" + description.getMethodName(); in onBefore() local 42 assertTestIsValid(testName, mRequiredProperties); in onBefore() 43 Log.i(TAG, "Running test " + testName + " with required properties: " in onBefore() 73 private void assertTestIsValid(String testName, ArraySet<Property> requiredProperies) { in assertTestIsValid() argument
|
/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/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | BedsteadResult.java | 37 public BedsteadResult(int index, String testName) { in BedsteadResult() argument 39 mTestName = testName; in BedsteadResult()
|