Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolator_ResultTest.java20 import android.graphics.Interpolator.Result;
27 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); in testValueOf()
28 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); in testValueOf()
29 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); in testValueOf()
33 Result[] result = Result.values(); in testValues()
35 assertEquals(Result.NORMAL, result[0]); in testValues()
36 assertEquals(Result.FREEZE_START, result[1]); in testValues()
37 assertEquals(Result.FREEZE_END, result[2]); in testValues()
DInterpolatorTest.java21 import android.graphics.Interpolator.Result;
68 assertValue(1.5f, Result.NORMAL, interpolator); in testTimeToValues1()
75 assertValue(2.0f, Result.FREEZE_START, interpolator); in testTimeToValues1()
82 assertValue(3.0f, Result.FREEZE_END, interpolator); in testTimeToValues1()
101 assertValue(1000, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2()
102 assertValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2()
103 assertValue(6000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2()
106 assertValue(-1000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2()
112 assertValue(0, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2()
113 assertValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2()
[all …]
/cts/common/util/src/com/android/compatibility/common/util/
DReportLog.java34 private Result mSummary;
35 private final List<Result> mDetails = new ArrayList<Result>();
37 static class Result implements Serializable { class in ReportLog
46 private Result(String location, String message, double[] values, in Result() method in ReportLog.Result
63 private Result(String location, String message, double[] values, in Result() method in ReportLog.Result
120 static Result fromEncodedString(String encodedString) { in fromEncodedString()
131 return new Result( in fromEncodedString()
145 mDetails.add(new Result(Stacktrace.getTestCallerClassMethodNameLineNumber(), in addValues()
154 mDetails.add(new Result(location, message, values, type, unit)); in addValues()
161 mDetails.add(new Result(Stacktrace.getTestCallerClassMethodNameLineNumber(), message, in addValue()
[all …]
DMetricsXmlSerializer.java39 ReportLog.Result summary = reportLog.getSummary(); in serialize()
40 List<ReportLog.Result> detailedMetrics = reportLog.getDetailedMetrics(); in serialize()
53 for (ReportLog.Result result : detailedMetrics) { in serialize()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/
DMyActivity.java27 private final SynchronousQueue<Result> mResult = new SynchronousQueue<>();
29 public static class Result { class in MyActivity
34 public Result(int requestCode, String[] permissions, int[] grantResults) { in Result() method in MyActivity.Result
54 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS); in onRequestPermissionsResult()
60 public Result getResult() { in getResult()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DMyActivity.java28 private final SynchronousQueue<Result> mResult = new SynchronousQueue<>();
30 public static class Result { class in MyActivity
34 public Result(int resultCode, Intent data) { in Result() method in MyActivity.Result
52 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
58 public Result getResult() { in getResult()
DDocumentsClientTest.java38 import com.android.cts.documentclient.MyActivity.Result;
144 final Result result = mActivity.getResult(); in testOpenSimple()
173 final Result result = mActivity.getResult(); in testCreateNew()
204 final Result result = mActivity.getResult(); in testCreateExisting()
224 final Result result = mActivity.getResult(); in testTree()
300 final Result result = mActivity.getResult(); in testGetContent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DTagVerifier.java28 Result verifyTag(Tag tag) throws FormatException, IOException; in verifyTag()
31 public static class Result { class
39 public Result(CharSequence expectedContent, CharSequence actualContent, boolean isMatch) { in Result() method in TagVerifier.Result
DMifareUltralightTagTester.java66 public Result verifyTag(Tag tag) throws IOException { in writeTag()
72 return new Result(expectedContent, actualContent, in writeTag()
75 return new Result(expectedContent, null, false); in writeTag()
/cts/libs/vogar-expect/src/vogar/
DOutcome.java34 private final Result result;
38 public Outcome(String outcomeName, Result result, List<String> outputLines) { in Outcome()
45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { in Outcome()
52 public Outcome(String outcomeName, Result result, String outputLine) { in Outcome()
59 public Outcome(String outcomeName, Result result, Throwable throwable) { in Outcome()
86 public Result getResult() { in getResult()
133 return result != Result.UNSUPPORTED; in matters()
DExpectation.java43 private final Result result;
57 …public Expectation(Result result, Pattern pattern, Set<String> tags, String description, long bug)… in Expectation()
78 public Result getResult() { in getResult()
DResult.java22 public enum Result { enum
DExpectationStore.java60 private static final Expectation SUCCESS = new Expectation(Result.SUCCESS, MATCH_ALL_PATTERN,
155 Result result = Result.EXEC_FAILED; in readExpectation()
167 result = Result.valueOf(reader.nextString()); in readExpectation()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java37 private final SynchronousQueue<Result> mResult = new SynchronousQueue<>();
41 public static class Result { class in IntentSenderActivity
45 public Result(int resultCode, Intent data) { in Result() method in IntentSenderActivity.Result
61 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult()
71 final Result result = mResult.poll(30, TimeUnit.SECONDS); in getResult()
/cts/tests/tests/media/src/android/media/cts/
DStubMediaBrowserService.java49 private Result<List<MediaItem>> mPendingLoadChildrenResult;
50 private Result<MediaItem> mPendingLoadItemResult;
68 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
84 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem()
/cts/tools/junit/src/com/android/cts/junit/
DSingleJUnitTestRunner.java21 import org.junit.runner.Result;
43 Result result = jUnitCore.run(request); in main()
DSingleJUnitTestRunListener.java20 import org.junit.runner.Result;
40 public void testRunFinished(Result result) throws Exception { in testRunFinished()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileWidgetPrimaryUserTest.java59 private Result mResult;
70 mResult = new Result(Looper.getMainLooper()); in setUp()
111 private static class Result extends Handler { class in CrossProfileWidgetPrimaryUserTest
116 public Result(Looper looper) { in Result() method in CrossProfileWidgetPrimaryUserTest.Result
/cts/common/util/tests/src/com/android/compatibility/common/util/
DReportLogTest.java51 ReportLog.Result summary = reportLog.getSummary(); in testEncodeDecode()
59 ReportLog.Result detail = decodedReportLog.getDetailedMetrics().get(0); in testEncodeDecode()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DResult.java22 public interface Result { interface
/cts/tests/tests/database/src/android/database/cts/
DCursorJoinerTest.java23 import android.database.CursorJoiner.Result;
92 for (CursorJoiner.Result joinResult : cursorJoiner) { in testCursorJoinerAndIterator()
148 assertEquals(Result.LEFT, cursorJoiner.next()); in testNext()
157 assertEquals(Result.RIGHT, cursorJoiner.next()); in testNext()
165 assertEquals(Result.BOTH, cursorJoiner.next()); in testNext()
/cts/tools/utils/
DVogarUtils.java22 import vogar.Result;
56 if (expectation.getResult() == Result.SUCCESS) { in isVogarKnownFailure()
63 return expectation.getResult() != Result.SUCCESS && !foundAbi; in isVogarKnownFailure()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/reporting/
DSensorTestDetails.java22 import org.junit.runner.Result;
70 public SensorTestDetails(Context context, String name, Result result) { in SensorTestDetails()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java75 private Result mResult;
96 mResult = new Result(Looper.getMainLooper()); in setUp()
220 private static class Result extends Handler { class in LauncherAppsTests
225 public Result(Looper looper) { in Result() method in LauncherAppsTests.Result
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestActivity.java33 import org.junit.runner.Result;
133 Result result = testRunner.run(request); in executeTests()
181 public void testRunFinished(Result result) throws Exception { in testRunFinished()

12