/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 25 import android.graphics.Interpolator.Result; 82 verifyValue(1.5f, Result.NORMAL, interpolator); in testTimeToValues1() 89 verifyValue(2.0f, Result.FREEZE_START, interpolator); in testTimeToValues1() 96 verifyValue(3.0f, Result.FREEZE_END, interpolator); in testTimeToValues1() 116 verifyValue(1000, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2() 117 verifyValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2() 118 verifyValue(6000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2() 121 verifyValue(-1000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2() 127 verifyValue(0, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2() 128 verifyValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2() [all …]
|
D | Interpolator_ResultTest.java | 21 import android.graphics.Interpolator.Result; 35 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); in testValueOf() 36 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); in testValueOf() 37 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); in testValueOf() 42 Result[] result = Result.values(); in testValues() 44 assertEquals(Result.NORMAL, result[0]); in testValues() 45 assertEquals(Result.FREEZE_START, result[1]); in testValues() 46 assertEquals(Result.FREEZE_END, result[2]); in testValues()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | GetResultActivity.java | 28 private static LinkedBlockingQueue<Result> sResult; 30 public static class Result { class in GetResultActivity 35 public Result(int requestCode, int resultCode, Intent data) { in Result() method in GetResultActivity.Result 54 sResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult() 64 public Result getResult() { in getResult() 65 final Result result; in getResult() 77 public Result getResult(long timeout, TimeUnit unit) { in getResult()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | MyActivity.java | 28 private final SynchronousQueue<Result> mResult = new SynchronousQueue<>(); 30 public static class Result { class in MyActivity 35 public Result(int requestCode, int resultCode, Intent data) { in Result() method in MyActivity.Result 54 mResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult() 60 public Result getResult() { in getResult() 61 final Result result; in getResult()
|
D | DocumentsClientTest.java | 40 import com.android.cts.documentclient.MyActivity.Result; 154 final Result result = mActivity.getResult(); in testOpenSimple() 181 final Result result = mActivity.getResult(); in testOpenVirtual() 221 final Result result = mActivity.getResult(); in testCreateNew() 255 final Result result = mActivity.getResult(); in testCreateExisting() 275 final Result result = mActivity.getResult(); in testTree() 351 final Result result = mActivity.getResult(); in testGetContent() 375 final Result result = mActivity.getResult(); in testTransferDocument() 482 final Result result = mActivity.getResult(); in testFindDocumentPathInScopedAccess() 580 final Result result = mActivity.getResult(); in testCreateWebLink() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | BasePermissionActivity.java | 30 private final SynchronousQueue<Result> mResult = new SynchronousQueue<>(); 33 public static class Result { class in BasePermissionActivity 38 public Result(int requestCode, String[] permissions, int[] grantResults) { in Result() method in BasePermissionActivity.Result 60 mResult.offer(new Result(requestCode, permissions, grantResults), 5, TimeUnit.SECONDS); in onRequestPermissionsResult() 74 public Result getResult() { in getResult()
|
D | UsePermissionTest23.java | 104 BasePermissionActivity.Result result = requestPermissions(new String[] { in testInteractiveGrant() 148 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantSpecificity() 182 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantExpansion() 212 BasePermissionActivity.Result result = requestPermissions(permissions, in testCancelledPermissionRequest() 238 BasePermissionActivity.Result firstResult = requestPermissions(permissions, in testRequestGrantedPermission() 254 BasePermissionActivity.Result secondResult = requestPermissions(new String[] { in testRequestGrantedPermission() 272 BasePermissionActivity.Result firstResult = requestPermissions( in testDenialWithPrejudice() 288 BasePermissionActivity.Result secondResult = requestPermissions(new String[] { in testDenialWithPrejudice() 304 BasePermissionActivity.Result thirdResult = requestPermissions(new String[] { in testDenialWithPrejudice() 348 BasePermissionActivity.Result firstResult = requestPermissions( in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | NavigationBarColorVerifier.java | 62 static final class Result { class in NavigationBarColorVerifier 68 Result(@NonNull ResultType result, @NonNull String assertionMessage) { in Result() method in NavigationBarColorVerifier.Result 91 static Result verify(@NonNull ScreenshotSupplier screenshotSupplier) throws Exception { in verify() 108 final Result result = verify(screenshotSupplier); in expectNavigationBarColorSupported() 120 final Result result = verify(screenshotSupplier); in expectNavigationBarColorNotSupported() 124 private static Result verifyInternal(@NonNull ArrayList<ScreenShot> screenShots) { in verifyInternal() 167 return new Result(ResultType.SUPPORTED, assertionMessage); in verifyInternal() 170 return new Result(ResultType.NOT_SUPPORTED, assertionMessage); in verifyInternal()
|
D | LightNavigationBarVerifier.java | 65 static final class Result { class in LightNavigationBarVerifier 71 Result(@NonNull ResultType result, in Result() method in LightNavigationBarVerifier.Result 96 final Result result = verify(screenshotSupplier); in expectLightNavigationBarSupported() 108 final Result result = verify(screenshotSupplier); in expectLightNavigationBarNotSupported() 139 static Result verify( in verify() 163 return new Result(ResultType.NOT_SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 175 return new Result(ResultType.SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 186 return new Result(ResultType.NOT_SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 189 return new Result(ResultType.UNKNOWN, () -> dumpDiffStreams(channelDiffs)); in verify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | TagVerifier.java | 28 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
|
D | MifareUltralightTagTester.java | 66 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/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 211 Callable<Result> reader = () -> { in testSetSoTimeout_readTimeout() 214 return Result.noException("Did not block"); in testSetSoTimeout_readTimeout() 216 return Result.exception(e); in testSetSoTimeout_readTimeout() 221 Result result = runInSeparateThread(allowedTime, reader); in testSetSoTimeout_readTimeout() 245 Callable<Result> writer = () -> { in testSetSoTimeout_writeTimeout() 249 return Result.noException("Did not block"); in testSetSoTimeout_writeTimeout() 251 return Result.exception(e); in testSetSoTimeout_writeTimeout() 257 Result result = runInSeparateThread(allowedTime, writer); in testSetSoTimeout_writeTimeout() 411 private static class Result { class in LocalSocketTest 415 private Result(String type, Exception e) { in Result() method in LocalSocketTest.Result [all …]
|
/cts/libs/vogar-expect/src/vogar/ |
D | Outcome.java | 34 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()
|
D | Expectation.java | 43 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()
|
D | Result.java | 22 public enum Result { enum
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | IntentSenderActivity.java | 37 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/core/runner/src/com/android/cts/core/runner/support/ |
D | SingleTestNgTestExecutor.java | 40 public static Result execute(Class<?> klass, String methodName) { in execute() 69 return new Result(testng.hasFailure(), listener.getFailures()); in execute() 114 public static class Result { class in SingleTestNgTestExecutor 119 Result(boolean hasFailure, Map<String, Throwable> failures) { in Result() method in SingleTestNgTestExecutor.Result
|
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/ |
D | SyncManagerCtsSyncAdapter.java | 27 import android.content.syncmanager.cts.SyncManagerCtsProto.Payload.Request.SetResult.Result; 87 if ((sResult == null) || sResult.getResult() == Result.OK) { in onPerformSync() 90 } else if (sResult.getResult() == Result.SOFT_ERROR) { in onPerformSync() 93 } else if (sResult.getResult() == Result.HARD_ERROR) { in onPerformSync()
|
/cts/tools/junit/src/com/android/cts/junit/ |
D | SingleJUnitTestRunner.java | 21 import org.junit.runner.Result; 43 Result result = jUnitCore.run(request); in main()
|
D | SingleJUnitTestRunListener.java | 20 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/ |
D | CrossProfileWidgetPrimaryUserTest.java | 59 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/tests/tests/media/src/android/media/cts/ |
D | StubMediaBrowserService.java | 55 private Result<List<MediaItem>> mPendingLoadChildrenResult; 56 private Result<MediaItem> mPendingLoadItemResult; 88 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren() 109 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | Result.java | 22 public interface Result { interface
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CursorJoinerTest.java | 23 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/ |
D | VogarUtils.java | 20 import vogar.Result; 56 if (expectation.getResult() == Result.SUCCESS) { in isVogarKnownFailure() 63 return expectation.getResult() != Result.SUCCESS && !foundAbi; in isVogarKnownFailure()
|