Home
last modified time | relevance | path

Searched refs:testName (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/
DProcessLifeguardRule.java48 String testName, in ignoreUncaughtBackgroundException() argument
54 testName, thread, allTests, lastTests, uncaughtThrowable); in ignoreUncaughtBackgroundException()
56 testName, thread, allTests, lastTests, /* testFailure= */ null, uncaughtThrowable); in ignoreUncaughtBackgroundException()
61 String testName, in newUncaughtBackgroundException() argument
67 testName, thread, allTests, lastTests, /* testFailure= */ null, uncaughtThrowable); in newUncaughtBackgroundException()
69 testName, thread, allTests, lastTests, uncaughtThrowable); in newUncaughtBackgroundException()
74 String testName, in newUncaughtBackgroundException() argument
80 writeToTestStorage(testName, thread, allTests, lastTests, testFailure, uncaughtThrowable); in newUncaughtBackgroundException()
82 testName, thread, allTests, lastTests, testFailure, uncaughtThrowable); in newUncaughtBackgroundException()
86 String testName, in writeToTestStorage() argument
[all …]
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/
DAbstractProcessLifeguardRule.java62 String testName, in ignoreUncaughtBackgroundException() argument
76 String testName, in newUncaughtBackgroundException() argument
84 + testName in newUncaughtBackgroundException()
98 String testName, in newUncaughtBackgroundException() argument
108 testName, in newUncaughtBackgroundException()
150 String testName = getTestName(); in evaluate() local
151 sAllTestsSoFar.add(testName); in evaluate()
152 sTestsSinceLastUncaughtFailure.add(testName); in evaluate()
171 testName, in evaluate()
178 testName, thread, sAllTestsSoFar, lastTests, uncaughtThrowable); in evaluate()
[all …]
DAbstractRethrowerRule.java40 String testName = description.getDisplayName(); in evaluate() local
56 throwIfNecessary(testName, testError, cleanUpErrors); in evaluate()
60 String testName, @Nullable Throwable testError, List<Throwable> cleanUpErrors) in throwIfNecessary() argument
63 mLog.v("Good News, Everyone! %s passed.", testName); in throwIfNecessary()
67 mLog.i("%s is being ignored: %s", testName, testError); in throwIfNecessary()
72 failTest(testName, testError, dumpDescription, dump); in throwIfNecessary()
118 String testName, Throwable testError, String dumpDescription, StringBuilder dump) in failTest() argument
120 mLog.e("%s failed with %s. %s: \n%s", testName, testError, dumpDescription, dump); in failTest()
DTestHelper.java75 StringBuilder testName = new StringBuilder(test.getTestClass().getSimpleName()); in getTestName() local
78 testName.append('#').append(methodName).append("()"); in getTestName()
80 return testName.toString(); in getTestName()
DAbstractFlagsSetterRule.java166 String testName = TestHelper.getTestName(description); in preTest() local
179 runInitialCommands(testName); in preTest()
199 String testName = TestHelper.getTestName(description); in postTest() local
200 runSafely(cleanUpErrors, () -> resetFlags(testName)); in postTest()
201 runSafely(cleanUpErrors, () -> resetSystemProperties(testName)); in postTest()
555 private void resetFlags(String testName) { in resetFlags() argument
556 mLog.d("Resetting flags after %s", testName); in resetFlags()
589 private void resetSystemProperties(String testName) { in resetSystemProperties() argument
590 mLog.d("Resetting SystemProperties after %s", testName); in resetSystemProperties()
619 protected final void runInitialCommands(String testName) { in runInitialCommands() argument
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/nonquickstep/
DDeviceProfileDumpTest.kt69 val testName = in dumpLandscapeGesture() constant
75 assertDump(dp, instance.filename(testName)) in dumpLandscapeGesture()
84 val testName = in dumpLandscape3Button() constant
90 assertDump(dp, instance.filename(testName)) in dumpLandscape3Button()
150 fun filename(testName: String = ""): String { in filename()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/measurement/
DAbstractMeasurementLatencyTest.java89 protected void runRegisterSource(String testClassName, String testName) throws Exception { in runRegisterSource() argument
110 Log.i(TAG, generateLogLabel(testClassName, testName, timer.elapsed(TimeUnit.MILLISECONDS))); in runRegisterSource()
113 protected void runGetMeasurementApiStatus(String testClassName, String testName) { in runGetMeasurementApiStatus() argument
131 Log.i(TAG, generateLogLabel(testClassName, testName, timer.elapsed(TimeUnit.MILLISECONDS))); in runGetMeasurementApiStatus()
134 private String generateLogLabel(String className, String testName, long elapsedMs) { in generateLogLabel() argument
139 + testName in generateLogLabel()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/common/
DApplicationContextSingletonRule.java94 String testName = in apply()
101 previousContext, mContext, testName); in apply()
111 previousContext, testName); in apply()
119 previousContext, testName); in apply()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DRequiredPropertiesRule.java41 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
DConnOnActivityStartTest.java116 private void assertLaunchedActivityHasNetworkAccess(String testName, in assertLaunchedActivityHasNetworkAccess() argument
122 Log.i(TAG, testName + " start #" + i); in assertLaunchedActivityHasNetworkAccess()
126 Log.i(TAG, testName + " end #" + i); in assertLaunchedActivityHasNetworkAccess()
DDumpOnFailureRule.java50 final String testName = description.getClassName() + "_" + description.getMethodName(); in onTestFailure() local
51 Log.d(TAG, "Skipping test " + testName + ": " + throwable); in onTestFailure()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/logging/
DHealthConnectDailyLogsStatsTests.java286 private List<StatsLog.EventMetricData> getEventMetricDataList(String testName, int retryCount) in getEventMetricDataList() argument
293 triggerTestInTestApp(DAILY_LOG_TESTS_ACTIVITY, testName); in getEventMetricDataList()
299 return getEventMetricDataList(testName, retryCount - 1); in getEventMetricDataList()
311 private ExtensionRegistry triggerTestInTestApp(String className, String testName) in triggerTestInTestApp() argument
314 if (testName != null) { in triggerTestInTestApp()
315 DeviceUtils.runDeviceTests(getDevice(), TEST_APP_PKG_NAME, className, testName); in triggerTestInTestApp() local
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/meta_testing/
DTestNamerRuleTester.java80 String testName = nameRef.get(); in assertInsideTest() local
81 mExpect.withMessage("getTestName()").that(testName).contains("TestNamerRuleTester"); in assertInsideTest()
82 mExpect.withMessage("getTestName()").that(testName).contains("aTestHasNoName()"); in assertInsideTest()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnectionTest.java213 String testName = "Connection"; in verifyNotUpdatingRequestPropertyForIgnorableProperty() local
215 mHttpsServiceConnection.setRequestProperty(testName, testValue); in verifyNotUpdatingRequestPropertyForIgnorableProperty()
227 String testName = "Content-Type"; in verifyCallingSetRequestPropertyForProperty() local
229 mHttpsServiceConnection.setRequestProperty(testName, testValue); in verifyCallingSetRequestPropertyForProperty()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/mockito/
DExtendedMockitoInlineCleanerRule.java74 String testName = getTestName(description);
78 Log.v(TAG, "getMode(" + testName + "): returning mode from annotation (" + mode + ")");
80 Log.v(TAG, "getMode(" + testName + "): returning default mode (" + mode + ")");
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java202 private boolean runTestCaseMap(Map<Point, ReorderTestCase> testCaseMap, String testName) { in runTestCaseMap() argument
204 Log.d(TAG, "Running test " + testName + " for grid " + iconGridDimensions); in runTestCaseMap()
206 Log.d(TAG, "The test " + testName + " doesn't support " + iconGridDimensions in runTestCaseMap()
216 String testName) { in runTestCaseMapForAllGrids() argument
221 runAtLeastOnce |= runTestCaseMap(testCaseMap, testName); in runTestCaseMapForAllGrids()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/util/
DHostSideTestUtil.java58 public static void triggerTestInTestApp(ITestDevice device, String className, String testName) in triggerTestInTestApp() argument
61 if (testName != null) { in triggerTestInTestApp()
62 DeviceUtils.runDeviceTests(device, TEST_APP_PKG_NAME, className, testName); in triggerTestInTestApp()
/packages/modules/NetworkStack/tests/unit/src/android/net/networkstack/
DModuleNetworkStackClientTest.kt128 val testName = "NetworkMonitorName" in testNetworkMonitorAvailableImmediately() constant
129 ModuleNetworkStackClient.getInstance(mContext).makeNetworkMonitor(TEST_NETWORK, testName, in testNetworkMonitorAvailableImmediately()
131 verify(mConnector).makeNetworkMonitor(TEST_NETWORK, testName, mNetworkMonitorCb) in testNetworkMonitorAvailableImmediately()
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/testutils/
DAbstractSdkSandboxDeviceSupportedRule.java54 String testName = description.getDisplayName(); in apply()
56 mLog.d("apply(): testName=%s, isDeviceSupported=%b", testName, isDeviceSupported); in apply()
/packages/modules/Permission/SafetyCenter/Persistence/tests/java/com/android/safetycenter/persistence/
DSafetyCenterIssuesPersistenceInvalidTest.kt31 private val testName: String, constant in com.android.safetycenter.persistence.SafetyCenterIssuesPersistenceInvalidTest.Params
36 override fun toString() = testName in toString()
DSafetyCenterIssuesPersistenceWriteTest.kt29 private val testName: String, constant in com.android.safetycenter.persistence.SafetyCenterIssuesPersistenceWriteTest.Params
33 override fun toString() = testName in toString()
DSafetyCenterIssuesPersistenceValidTest.kt30 private val testName: String, constant in com.android.safetycenter.persistence.SafetyCenterIssuesPersistenceValidTest.Params
34 override fun toString() = testName in toString()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DAbstractSelectAdsLatencyTest.java129 String testName) in runSelectAds() argument
144 Log.i(TAG, generateLogLabel(testClassName, testName, timer.elapsed(TimeUnit.MILLISECONDS))); in runSelectAds()
270 private String generateLogLabel(String classSimpleName, String testName, long elapsedMs) { in generateLogLabel() argument
275 + testName in generateLogLabel()
/packages/modules/Bluetooth/framework/tests/metrics/host/android/bluetooth/
DMetricsTest.kt77 testName: String, in uploadAtomConfigAndTriggerTest()
82 DeviceUtils.runDeviceTests(device, TEST_APP_PKG_NAME, TEST_APP_CLASS_NAME, testName) in uploadAtomConfigAndTriggerTest()
/packages/apps/Launcher3/tests/src_deviceless/com/android/launcher3/util/
DRobolectricDeviceRunner.kt37 override fun testName(method: FrameworkMethod) = super.testName(method) + nameSuffix in getName() method

12