Home
last modified time | relevance | path

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

12345

/cts/tests/tests/graphics/src/android/graphics/cts/
DInterpolatorTest.java25 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 …]
DInterpolator_ResultTest.java21 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/apps/CtsVerifier/jni/megaaudio/common/
DOboeStream.cpp26 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()
53 StreamBase::Result OboeStream::teardownStream_l() { in teardownStream_l()
58 oboe::Result result = oboe::Result::OK; in teardownStream_l()
60 if (result == oboe::Result::OK) { in teardownStream_l()
68 StreamBase::Result OboeStream::startStream() { in startStream()
[all …]
DOboeStream.h27 static Result OboeErrorToMegaAudioError(oboe::Result oboeError);
29 virtual Result teardownStream() override;
31 virtual Result startStream() override;
32 virtual Result stopStream() override;
39 StreamBase::Result getTimeStamp(oboe::FrameTimestamp* timeStamp);
61 Result teardownStream_l();
DStreamBase.h31 enum Result { enum
69 virtual Result teardownStream() = 0;
77 virtual Result startStream() = 0;
84 virtual Result stopStream() = 0;
/cts/tests/tests/gameservice/src/android/service/games/testing/
DGetResultActivity.java26 public static class Result { class in GetResultActivity
31 public Result(int requestCode, int resultCode, Intent data) { in Result() method in GetResultActivity.Result
37 public LinkedBlockingQueue<Result> mResult = new LinkedBlockingQueue<>();
41 mResult.offer(new Result(requestCode, resultCode, data)); in onActivityResult()
45 public Result getResult() { in getResult()
46 final Result result; in getResult()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DGetResultActivity.java28 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/PhotoPicker/src/android/photopicker/cts/
DGetResultActivity.java28 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/tests/providerui/src/android/providerui/cts/
DGetResultActivity.java28 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/
DMyActivity.java28 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/
DGetResultActivity.java28 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/mediapc/common/src/android/mediapc/cts/common/
DRequirement.java61 Map<Integer, RequirementConstants.Result> overallPerfClassResults = new HashMap<>(); in computePerformanceClass()
64 Map<Integer, RequirementConstants.Result> perfClassResults = rm.getPerformanceClass(); in computePerformanceClass()
67 RequirementConstants.Result res = perfClassResults.get(pc); in computePerformanceClass()
71 if (res == RequirementConstants.Result.UNMET) { in computePerformanceClass()
72 overallPerfClassResults.put(pc, RequirementConstants.Result.UNMET); in computePerformanceClass()
74 res == RequirementConstants.Result.MET) { in computePerformanceClass()
75 overallPerfClassResults.put(pc, RequirementConstants.Result.MET); in computePerformanceClass()
83 if (overallPerfClassResults.get(pc) == RequirementConstants.Result.MET) { in computePerformanceClass()
94 RequirementConstants.Result res = rm.meetsPerformanceClass(devicePerfClass); in checkPerformanceClass()
95 if (res == RequirementConstants.Result.UNMET) { in checkPerformanceClass()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordDetectorKeyphraseTriggeredStatsTest.java36 import com.android.os.hotword.HotwordDetectorKeyphraseTriggered.Result;
131 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.KEYPHRASE_TRIGGER); in testLogHotwordDetectorKeyphraseTriggeredDspDetected()
133 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredDspDetected()
155 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredSoftwareDetectorDetected()
177 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.KEYPHRASE_TRIGGER); in testLogHotwordDetectorKeyphraseTriggeredDspDetectorUnexpectedDetected()
180 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredDspDetectorUnexpectedDetected()
183 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredDspDetectorUnexpectedDetected()
186 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Result.DETECT_UNEXPECTED_CALLBACK); in testLogHotwordDetectorKeyphraseTriggeredDspDetectorUnexpectedDetected()
208 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredSoftwareDetectorUnexpectedDetected()
211 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Result.DETECTED); in testLogHotwordDetectorKeyphraseTriggeredSoftwareDetectorUnexpectedDetected()
[all …]
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java117 private static final class BlockingResult implements Consumer<PixelCopy.Result> {
118 private PixelCopy.Result mResult;
120 public PixelCopy.Result getResult() { in getResult()
138 public void accept(PixelCopy.Result copyResult) { in accept()
147 public static PixelCopy.Result requestSync(PixelCopy.Request request) { in requestSync()
154 public static PixelCopy.Result copySurface(Surface source, in copySurface()
164 public static PixelCopy.Result copySurface(Surface source) { in copySurface()
169 public static PixelCopy.Result copySurface(SurfaceView source, in copySurface()
179 public static PixelCopy.Result copySurface(SurfaceView source) { in copySurface()
184 public static PixelCopy.Result copyWindow(View source, in copyWindow()
[all …]
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DNavigationBarColorVerifier.java63 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()
DLightNavigationBarVerifier.java66 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/
Dlog_1.qpa12 <Result StatusCode="Pass">Not validated</Result>
28 <Result StatusCode="Fail">Not validated</Result>
40 <Result StatusCode="NotSupported">Not validated</Result>
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DDirectShellCommand.java50 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/
DGetResultActivity.java33 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/apps/CtsVerifier/jni/megaaudio/player/
DOboePlayer.h34 virtual void onErrorAfterClose(oboe::AudioStream *oboeStream, oboe::Result error) override;
35 virtual void onErrorBeforeClose(oboe::AudioStream * oboeStream, oboe::Result error) override;
37 Result setupStream(int32_t channelCount, int32_t channelMask, int32_t sampleRate,
39 virtual Result startStream() override;
/cts/hostsidetests/theme/app/src/android/theme/app/
DAssetBucketVerifier.java47 static class Result { class in AssetBucketVerifier
52 static Result verifyAssetBucket(Context context) { in verifyAssetBucket()
77 Result result = new Result(); in verifyAssetBucket()
/cts/libs/vogar-expect/src/vogar/expect/
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()
/cts/tests/tests/nfc/src/android/nfc/tech/cts/interactive/
DTagVerifier.java29 Result verifyTag(Tag tag) throws FormatException, IOException; in verifyTag()
32 class Result { class
40 public Result(CharSequence expectedContent, CharSequence actualContent, boolean isMatch) { in Result() method in TagVerifier.Result
/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
/cts/tests/storageaccess/src/android/storageaccess/cts/
DClientActivity.kt29 private var activityResultFuture: CompletableFuture<Result>? = null
39 future: CompletableFuture<Result> in startActivityForFutureResult()
58 val result = Result(requestCode, resultCode, data) in onActivityResult()
67 data class Result(val requestCode: Int, val resultCode: Int, val data: Intent?) dataClass

12345