/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | InterpolatorTest.java | 25 import android.graphics.Interpolator.Result; 83 verifyValue(1.5f, Result.NORMAL, interpolator); in testTimeToValues1() 90 verifyValue(2.0f, Result.FREEZE_START, interpolator); in testTimeToValues1() 97 verifyValue(3.0f, Result.FREEZE_END, interpolator); in testTimeToValues1() 117 verifyValue(1000, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2() 118 verifyValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2() 119 verifyValue(6000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2() 122 verifyValue(-1000, 2.0f, Result.FREEZE_END, interpolator); in testTimeToValues2() 128 verifyValue(0, 1.0f, Result.FREEZE_START, interpolator); in testTimeToValues2() 129 verifyValue(3000, 1.5f, Result.NORMAL, interpolator); in testTimeToValues2() [all …]
|
D | Interpolator_ResultTest.java | 21 import android.graphics.Interpolator.Result; 34 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); in testValueOf() 35 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); in testValueOf() 36 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); in testValueOf() 41 Result[] result = Result.values(); in testValues() 43 assertEquals(Result.NORMAL, result[0]); in testValues() 44 assertEquals(Result.FREEZE_START, result[1]); in testValues() 45 assertEquals(Result.FREEZE_END, result[2]); in testValues()
|
/cts/tests/providerui/src/android/providerui/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/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
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() 66 public Result getResult() { in getResult() 67 final Result result; in getResult() 79 public Result getResult(long timeout, TimeUnit unit) { in getResult()
|
/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/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 | 38 import com.android.cts.documentclient.MyActivity.Result; 169 final Result result = mActivity.getResult(); in testOpenSimple() 196 final Result result = mActivity.getResult(); in testOpenVirtual() 236 final Result result = mActivity.getResult(); in testCreateNew() 270 final Result result = mActivity.getResult(); in testCreateExisting() 292 final Result result = mActivity.getResult(); in testTree() 370 Result result = mActivity.getResult(); in testGetContent_rootsShowing() 409 final Result result = mActivity.getResult(); in testGetContent_returnsResultToCallingActivity() 439 final Result result = mActivity.getResult(); in testTransferDocument() 548 final Result result = mActivity.getResult(); in testFindDocumentPathInScopedAccess() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | NavigationBarColorVerifier.java | 63 static final class Result { class in NavigationBarColorVerifier 69 Result(@NonNull ResultType result, @NonNull String assertionMessage) { in Result() method in NavigationBarColorVerifier.Result 92 static Result verify(@NonNull ScreenshotSupplier screenshotSupplier) throws Exception { in verify() 109 final Result result = verify(screenshotSupplier); in expectNavigationBarColorSupported() 121 final Result result = verify(screenshotSupplier); in expectNavigationBarColorNotSupported() 125 private static Result verifyInternal(@NonNull ArrayList<ScreenShot> screenShots) { in verifyInternal() 168 return new Result(ResultType.SUPPORTED, assertionMessage); in verifyInternal() 171 return new Result(ResultType.NOT_SUPPORTED, assertionMessage); in verifyInternal()
|
D | LightNavigationBarVerifier.java | 66 static final class Result { class in LightNavigationBarVerifier 72 Result(@NonNull ResultType result, in Result() method in LightNavigationBarVerifier.Result 97 final Result result = verify(screenshotSupplier); in expectLightNavigationBarSupported() 109 final Result result = verify(screenshotSupplier); in expectLightNavigationBarNotSupported() 140 static Result verify( in verify() 164 return new Result(ResultType.NOT_SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 176 return new Result(ResultType.SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 187 return new Result(ResultType.NOT_SUPPORTED, () -> dumpDiffStreams(channelDiffs)); in verify() 190 return new Result(ResultType.UNKNOWN, () -> dumpDiffStreams(channelDiffs)); in verify()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | DirectShellCommand.java | 50 Result get(long mills); in get() 56 public static final class Result { class in DirectShellCommand 62 private Result(int code, Bundle data, String string, Exception exception) { in Result() method in DirectShellCommand.Result 102 private Result mResult; 135 mResult = new Result(resultCode, resultData, joiner.toString(), resultException); in onReceiveResult() 141 Result getResult(long millis) { in getResult() 190 static Result runSync(String serviceName, String[] args, long millis) { in runSync() 194 return new Result(-1, null, null, e); in runSync()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/ |
D | UsePermissionTest29.java | 49 private BasePermissionActivity.Result requestPermissions(String[] permissions, in requestPermissions() 66 private static void assertPermissionRequestResult(BasePermissionActivity.Result result, 82 BasePermissionActivity.Result result = requestPermissions(permissions, 94 BasePermissionActivity.Result result = requestPermissions(permissions); 105 BasePermissionActivity.Result result = requestPermissions(permissions, 118 BasePermissionActivity.Result result = requestPermissions(permissions, 146 BasePermissionActivity.Result result = requestPermissions(permissions, 173 BasePermissionActivity.Result result = requestPermissions(permissions,
|
/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 | 108 BasePermissionActivity.Result result = requestPermissions(new String[] { in testInteractiveGrant() 150 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantSpecificity() 184 BasePermissionActivity.Result result = requestPermissions(permissions, in testRuntimeGroupGrantExpansion() 214 BasePermissionActivity.Result result = requestPermissions(permissions, in testCancelledPermissionRequest() 240 BasePermissionActivity.Result firstResult = requestPermissions(permissions, in testRequestGrantedPermission() 256 BasePermissionActivity.Result secondResult = requestPermissions(new String[] { in testRequestGrantedPermission() 274 BasePermissionActivity.Result firstResult = requestPermissions( in testDenialWithPrejudice() 290 BasePermissionActivity.Result secondResult = requestPermissions(new String[] { in testDenialWithPrejudice() 306 BasePermissionActivity.Result thirdResult = requestPermissions(new String[] { in testDenialWithPrejudice() 350 BasePermissionActivity.Result firstResult = requestPermissions( in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1() [all …]
|
/cts/libs/vogar-expect/src/vogar/expect/ |
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()
|
/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/hostsidetests/theme/app/src/android/theme/app/ |
D | AssetBucketVerifier.java | 47 static class Result { class in AssetBucketVerifier 52 static Result verifyAssetBucket(Context context) { in verifyAssetBucket() 77 Result result = new Result(); in verifyAssetBucket()
|
/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/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/core/runner-axt/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/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/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/graphics/src/android/graphics/text/cts/ |
D | LineBreakerTest.java | 28 import static android.graphics.text.LineBreaker.Result; 147 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple() 170 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple2() 202 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple3() 247 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_NotRectangle() 280 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_Hyphenation() 327 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_Styled() 368 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_Styled2() 402 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_indents() 435 final Result r = lb.computeLineBreaks(new MeasuredText.Builder(text.toCharArray()) in testLineBreak_Simple_indents2() [all …]
|