/cts/apps/CtsVerifier/jni/megaaudio/common/ |
D | OboeStream.cpp | 26 StreamBase::Result OboeStream::OboeErrorToMegaAudioError(oboe::Result oboeError) { in OboeErrorToMegaAudioError() 28 StreamBase::Result maErr = ERROR_UNKNOWN; in OboeErrorToMegaAudioError() 31 case oboe::Result::OK: in OboeErrorToMegaAudioError() 34 case oboe::Result::ErrorInternal: in OboeErrorToMegaAudioError() 37 case oboe::Result::ErrorClosed: in OboeErrorToMegaAudioError() 48 StreamBase::Result OboeStream::teardownStream() { in teardownStream() 55 StreamBase::Result OboeStream::teardownStream_l() { in teardownStream_l() 60 oboe::Result result = oboe::Result::OK; in teardownStream_l() 62 if (result == oboe::Result::OK) { in teardownStream_l() 70 StreamBase::Result OboeStream::startStream() { in startStream() [all …]
|
D | OboeStream.h | 27 static Result OboeErrorToMegaAudioError(oboe::Result oboeError); 29 virtual Result teardownStream() override; 31 virtual Result startStream() override; 32 virtual Result stopStream() override; 34 StreamBase::Result getTimeStamp(oboe::FrameTimestamp* timeStamp); 49 Result teardownStream_l();
|
D | StreamBase.h | 31 enum Result { enum 69 virtual Result setupStream(int32_t channelCount, int32_t sampleRate, int32_t routeDeviceId) = 0; 80 virtual Result teardownStream() = 0; 88 virtual Result startStream() = 0; 95 virtual Result stopStream() = 0;
|
/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/tests/permission/src/android/permission/cts/ |
D | NearbyDevicesPermissionTest.java | 81 private enum Result { enum in NearbyDevicesPermissionTest 117 assertScanBluetoothResult(Result.EMPTY); in testRequestBluetoothPermission30_Default() 126 assertScanBluetoothResult(Result.FULL); in testRequestBluetoothPermission30_GrantLocation() 133 assertScanBluetoothResult(Result.EXCEPTION); in testRequestBluetoothPermission31_Default() 142 assertScanBluetoothResult(Result.EMPTY); in testRequestBluetoothPermission31_GrantNearby() 151 assertScanBluetoothResult(Result.EXCEPTION); in testRequestBluetoothPermission31_GrantLocation() 162 assertScanBluetoothResult(Result.FULL); in testRequestBluetoothPermission31_GrantNearby_GrantLocation() 169 assertScanBluetoothResult(Result.EXCEPTION); in testRequestBluetoothPermissionNeverForLocation31_Default() 178 assertScanBluetoothResult(Result.FILTERED); in testRequestBluetoothPermissionNeverForLocation31_GrantNearby() 187 assertScanBluetoothResult(Result.EXCEPTION); in testRequestBluetoothPermissionNeverForLocation31_GrantLocation() [all …]
|
D | NearbyDevicesRenouncePermissionTest.java | 78 private enum Result { enum in NearbyDevicesRenouncePermissionTest 155 assertThat(performScan(Scenario.DEFAULT)).isEqualTo(Result.FULL); in scanWithoutRenouncingNotesBluetoothAndLocation() 166 assertThat(performScan(Scenario.RENOUNCE)).isEqualTo(Result.FILTERED); in scanRenouncingLocationNotesBluetoothButNotLocation() 177 assertThat(performScan(Scenario.RENOUNCE_MIDDLE)).isEqualTo(Result.FILTERED); in scanRenouncingInMiddleOfChainNotesBluetoothButNotLocation() 188 assertThat(performScan(Scenario.RENOUNCE_END)).isEqualTo(Result.FILTERED); in scanRenouncingAtEndOfChainNotesBluetoothButNotLocation() 195 private Result performScan(Scenario scenario) { in performScan() 222 case 0: return Result.EMPTY; in performScan() 223 case 1: return Result.FILTERED; in performScan() 224 case 5: return Result.FULL; in performScan() 225 default: return Result.UNKNOWN; in performScan() [all …]
|
/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/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()
|
/cts/tests/app/app/src/android/app/stubs/ |
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()
|
/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/tools/incremental-cts/testdata/ |
D | log_1.qpa | 12 <Result StatusCode="Pass">Not validated</Result> 28 <Result StatusCode="Fail">Not validated</Result> 40 <Result StatusCode="NotSupported">Not validated</Result>
|
D | log_2.qpa | 12 <Result StatusCode="Pass">Not validated</Result> 28 <Result StatusCode="Pass">Not validated</Result>
|
/cts/apps/CtsVerifier/jni/megaaudio/player/ |
D | OboePlayer.h | 34 virtual void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override; 35 virtual void onErrorBeforeClose(oboe::AudioStream * oboeStream, oboe::Result error) override; 37 …virtual Result setupStream(int32_t channelCount, int32_t sampleRate, int32_t routeDeviceId) overri… 38 virtual Result startStream() override;
|
D | OboePlayer.cpp | 59 void OboePlayer::onErrorAfterClose(AudioStream *oboeStream, oboe::Result error) { in onErrorAfterClose() 65 void OboePlayer::onErrorBeforeClose(AudioStream *, oboe::Result error) { in onErrorBeforeClose() 69 StreamBase::Result OboePlayer::setupStream(int32_t channelCount, int32_t sampleRate, int32_t routeD… in setupStream() 71 oboe::Result result = oboe::Result::ErrorInternal; in setupStream() 105 if (result != oboe::Result::OK){ in setupStream() 125 StreamBase::Result OboePlayer::startStream() { in startStream() 126 StreamBase::Result result = Player::startStream(); in startStream() 133 StreamBase::Result result = Player::getTimeStamp(&nativeStamp); in getJavaTimestamp()
|
/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/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | GetResultActivity.java | 33 private LinkedBlockingQueue<Result> mResult; 36 public static class Result { class in GetResultActivity 41 public Result(int requestCode, int resultCode, Intent data) { in Result() method in GetResultActivity.Result 70 mResult.offer(new Result(requestCode, resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult() 81 public Result getResult() { 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/tests/tests/permission3/UsePermissionApp30WithBluetooth/src/android/permission3/cts/usepermission/ |
D | AccessBluetoothOnCommand.kt | 38 private enum class Result { class in android.permission3.cts.usepermission.AccessBluetoothOnCommand 80 res.putInt(Intent.EXTRA_INDEX, Result.ERROR.ordinal) in call() 85 0 -> res.putInt(Intent.EXTRA_INDEX, Result.EMPTY.ordinal) in call() 86 1 -> res.putInt(Intent.EXTRA_INDEX, Result.FILTERED.ordinal) in call() 87 5 -> res.putInt(Intent.EXTRA_INDEX, Result.FULL.ordinal) in call() 88 else -> res.putInt(Intent.EXTRA_INDEX, Result.UNKNOWN.ordinal) in call() 92 res.putInt(Intent.EXTRA_INDEX, Result.EXCEPTION.ordinal) in call()
|
/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()
|
/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
|
/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 65 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); in onActivityResult() 76 Result result = mResult.poll(timeoutSec, TimeUnit.SECONDS); in getResult()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecBlockModelTest.java | 182 Result result = runThread(() -> runDecodeShortVideo( in testFormatChange() 189 if (result == Result.SKIP) { in testFormatChange() 207 private enum Result { enum in MediaCodecBlockModelTest 213 private Result runThread(Supplier<Result> supplier) throws InterruptedException { in runThread() 214 final AtomicReference<Result> result = new AtomicReference<>(Result.FAIL); in runThread() 230 assertTrue("timed out decoding to end-of-stream", result.get() != Result.FAIL); in runThread() 466 private Result runDecodeShortVideo( in runDecodeShortVideo() 509 private Result runDecodeShortEncryptedVideo(boolean obtainBlockForEachBuffer) { in runDecodeShortEncryptedVideo() 531 Result result = runDecodeShortVideo( in runDecodeShortEncryptedVideo() 559 private Result runDecodeShortVideo( in runDecodeShortVideo() [all …]
|