Home
last modified time | relevance | path

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

123456789

/frameworks/ml/nn/runtime/test/
DTestNeuralNetworksWrapper.h44 using wrapper::Result;
80 Result setPreference(ExecutePreference preference) { in setPreference()
81 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
85 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching()
87 return Result::BAD_DATA; in setCaching()
89 return static_cast<Result>(ANeuralNetworksCompilation_setCaching( in setCaching()
93 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
133 Result setInput(uint32_t index, const void* buffer, size_t length,
135 return static_cast<Result>(
139 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
[all …]
DTestTrivialModel.cpp122 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
123 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
124 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
125 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F()
139 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
140 ASSERT_EQ(execution2.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
141 ASSERT_EQ(execution2.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
142 ASSERT_EQ(execution2.compute(), Result::NO_ERROR); in TEST_F()
150 ASSERT_EQ(execution3.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
151 ASSERT_EQ(execution3.setInput(1, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F()
[all …]
DTestUnspecifiedDimensions.cpp249 Result setInOut(Execution* execution, uint32_t index, uint32_t opIndex, in setInOut()
271 return Result::NO_ERROR; in setInOut()
316 Result result = model.finish(); in TestOne()
318 ASSERT_EQ(result, Result::NO_ERROR); in TestOne()
322 ASSERT_NE(result, Result::NO_ERROR); in TestOne()
328 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TestOne()
344 Result result; in TestOne()
351 if (result != Result::NO_ERROR) continue; in TestOne()
358 if (result != Result::NO_ERROR) continue; in TestOne()
368 if (result != Result::NO_ERROR) continue; in TestOne()
[all …]
DTestExecution.cpp42 using Result = nn::test_wrapper::Result; typedef
371 : public ::testing::TestWithParam<std::tuple<ErrorStatus, Result, bool>> {
410 const Result kExpectResult;
421 ASSERT_EQ(execution->setInput(0, &mInputBuffer, sizeof(mInputBuffer)), Result::NO_ERROR); in setInputOutput()
422 ASSERT_EQ(execution->setOutput(0, &mOutputBuffer, sizeof(mOutputBuffer)), Result::NO_ERROR); in setInputOutput()
441 assert(model.finish() == Result::NO_ERROR); in makeModel()
454 ASSERT_EQ(mCompilation.finish(), Result::NO_ERROR); in TestWait()
461 ASSERT_EQ(execution.startCompute(&event), Result::NO_ERROR); in TestWait()
463 if (kExpectResult == Result::NO_ERROR) { in TestWait()
467 if (kExpectResult == Result::OUTPUT_INSUFFICIENT_SIZE) { in TestWait()
[all …]
/frameworks/base/cmds/idmap2/include/idmap2/
DResult.h50 class Result {
52 Result(const T& value); // NOLINT(runtime/explicit)
53 Result(T&& value) noexcept; // NOLINT(runtime/explicit)
55 Result(const Error& error); // NOLINT(runtime/explicit)
56 Result(Error&& error) noexcept; // NOLINT(runtime/explicit)
58 Result(const Result& error) = default;
60 Result& operator=(const Result& rhs) = default;
61 Result& operator=(Result&& rhs) noexcept = default;
81 Result<T>::Result(const T& value) : data_(std::in_place_type<T>, value) { in Result() function
85 Result<T>::Result(T&& value) noexcept : data_(std::in_place_type<T>, std::forward<T>(value)) { in Result() function
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp479 using Result = std::tuple<Dataspace, ColorMode, RenderIntent>; in TEST_F() typedef
480 std::array<Result, 15> expectedResults = { in TEST_F()
482 /* 0 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
483 /* 1 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
484 /* 2 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
486 /* 3 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
487 /* 4 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
488 /* 5 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
490 /* 6 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
491 /* 7 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F()
[all …]
/frameworks/base/cmds/idmap2/tests/
DResultTests.cpp63 Result<uint32_t> r1(42U); in TEST()
65 Result<uint32_t> r2(r1); in TEST()
69 Result<uint32_t> r3 = r2; in TEST()
77 Result<uint32_t> r1(v); in TEST()
82 Result<uint32_t> r2(e); in TEST()
89 Result<uint32_t> r1(42U); in TEST()
93 Result<uint32_t> r2(Error("foo")); in TEST()
101 Result<uint32_t> r1(42U); in TEST()
102 Result<uint32_t> r2(0U); in TEST()
107 Result<uint32_t> r3(Error("foo")); in TEST()
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.cpp48 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors()
50 [&](Result r, const hidl_vec<EffectDescriptor>& result) { in queryAllDescriptors()
52 if (retval == Result::OK) { in queryAllDescriptors()
57 return retval == Result::OK ? OK : NO_INIT; in queryAllDescriptors()
91 Result retval = Result::NOT_INITIALIZED; in getDescriptor()
93 [&](Result r, const EffectDescriptor& result) { in getDescriptor()
95 if (retval == Result::OK) { in getDescriptor()
100 if (retval == Result::OK) return OK; in getDescriptor()
101 else if (retval == Result::INVALID_ARGUMENTS) return NAME_NOT_FOUND; in getDescriptor()
113 Result retval = Result::NOT_INITIALIZED; in createEffect()
[all …]
DDeviceHalHidl.cpp131 Result retval; in getMasterVolume()
133 [&](Result r, float v) { in getMasterVolume()
135 if (retval == Result::OK) { in getMasterVolume()
155 Result retval; in getMicMute()
157 [&](Result r, bool mute) { in getMicMute()
159 if (retval == Result::OK) { in getMicMute()
173 Result retval; in getMasterMute()
175 [&](Result r, bool mute) { in getMasterMute()
177 if (retval == Result::OK) { in getMasterMute()
200 Result retval; in getParameters()
[all …]
DEffectHalHidl.cpp112 status_t EffectHalHidl::analyzeResult(const Result& result) { in analyzeResult()
114 case Result::OK: return OK; in analyzeResult()
115 case Result::INVALID_ARGUMENTS: return BAD_VALUE; in analyzeResult()
116 case Result::INVALID_STATE: return NOT_ENOUGH_DATA; in analyzeResult()
117 case Result::NOT_INITIALIZED: return NO_INIT; in analyzeResult()
118 case Result::NOT_SUPPORTED: return INVALID_OPERATION; in analyzeResult()
119 case Result::RESULT_TOO_BIG: return NO_MEMORY; in analyzeResult()
158 Result retval; in prepareForProcessing()
160 [&](Result r, const MQDescriptorSync<Result>& statusMQ) { in prepareForProcessing()
162 if (retval == Result::OK) { in prepareForProcessing()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DDirectStatementRetriever.java51 public static class Result implements AbstractStatementRetriever.Result { class in DirectStatementRetriever
66 private Result(List<Statement> statements, Long expireMillis) { in Result() method in DirectStatementRetriever.Result
71 public static Result create(List<Statement> statements, Long expireMillis) { in create()
72 return new Result(statements, expireMillis); in create()
94 Result result = (Result) o; in equals()
121 public Result retrieveStatements(AbstractAsset source) throws AssociationServiceException { in retrieveStatements()
141 private Result retrieveStatementFromUrl(String urlString, int maxIncludeLevel, in retrieveStatementFromUrl()
146 return Result.create(statements, DO_NOT_CACHE_RESULT); in retrieveStatementFromUrl()
154 return Result.create(statements, DO_NOT_CACHE_RESULT); in retrieveStatementFromUrl()
160 return Result.create(statements, DO_NOT_CACHE_RESULT); in retrieveStatementFromUrl()
[all …]
/frameworks/base/tests/FlickerTests/lib/test/src/com/android/server/wm/flicker/
DAssertionsCheckerTest.java21 import com.android.server.wm.flicker.Assertions.Result;
51 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckAllEntries()
62 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckFirstEntry()
74 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in canCheckLastEntry()
86 List<Result> failures = checker.test(getTestEntries(1, 42, 42, 1, 1)); in canCheckRangeOfEntries()
97 List<Result> failures = checker.test(getTestEntries(1, 1, 1, 1, 1)); in emptyRangePasses()
109 List<Result> failures = checker.test(getTestEntries(42, 0, 0, 0, 0)); in canCheckChangingAssertions()
119 List<Result> failures = checker.test(getTestEntries(42, 0, 0, 0, 0)); in canCheckChangingAssertions_withNoAssertions()
130 List<Result> failures = checker.test(getTestEntries(42, 42, 42, 42, 42)); in canCheckChangingAssertions_withSingleAssertion()
142 List<Result> failures = checker.test(getTestEntries(0, 0, 0, 0, 0)); in canFailCheckChangingAssertions_ifStartingAssertionFails()
[all …]
DAssertionsTest.java21 import com.android.server.wm.flicker.Assertions.Result;
45 Result result = new Result(true, 0, "TestAssert", reason); in resultCanBeNegated()
46 Result negatedResult = result.negate(); in resultCanBeNegated()
55 return new Result(true, "Num equals 42"); in getIntegerTraceEntryAssertion()
57 return new Result(false, "Num doesn't equal 42, actual:" + num); in getIntegerTraceEntryAssertion()
DWindowManagerTraceTest.java23 import com.android.server.wm.flicker.Assertions.Result;
58 Result result = entry.isAboveAppWindowVisible("NavigationBar"); in canDetectAboveAppWindowVisibility()
65 Result result = entry.isBelowAppWindowVisible("wallpaper"); in canDetectBelowAppWindowVisibility()
72 Result result = entry.isAppWindowVisible("com.google.android.apps.nexuslauncher"); in canDetectAppWindowVisibility()
79 Result result = entry.isAboveAppWindowVisible("ImaginaryWindow"); in canFailWithReasonForVisibilityChecks_windowNotFound()
87 Result result = entry.isAboveAppWindowVisible("AssistPreviewPanel"); in canFailWithReasonForVisibilityChecks_windowNotVisible()
95 Result result = entry.isVisibleAppWindowOnTop("com.google.android.apps.chrome"); in canDetectAppZOrder()
102 Result result = entry.isVisibleAppWindowOnTop("com.google.android.apps.nexuslauncher"); in canFailWithReasonForZOrderChecks_windowNotOnTop()
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DWindowManagerTrace.java21 import com.android.server.wm.flicker.Assertions.Result;
108 private static Result isWindowVisible(String windowTitle, in isWindowVisible()
116 return new Result(true /* success */, in isWindowVisible()
129 return new Result(false /* success */, reason); in isWindowVisible()
165 Result isAboveAppWindowVisible(String windowTitle) { in isAboveAppWindowVisible()
169 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isAboveAppWindowVisible()
170 return new Result(result.success, getTimestamp(), "showsAboveAppWindow", result.reason); in isAboveAppWindowVisible()
176 Result isBelowAppWindowVisible(String windowTitle) { in isBelowAppWindowVisible()
180 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isBelowAppWindowVisible()
181 return new Result(result.success, getTimestamp(), "isBelowAppWindowVisible", in isBelowAppWindowVisible()
[all …]
DAssertionsChecker.java20 import com.android.server.wm.flicker.Assertions.Result;
78 List<Result> test(List<T> entries) { in test()
80 List<Result> failures; in test()
110 private List<Result> assertChanges(List<T> entries) { in assertChanges()
111 List<Result> failures = new ArrayList<>(); in assertChanges()
122 Result result = currentAssertion.apply(entries.get(entryIndex)); in assertChanges()
150 Result result = new Result(false /* success */, 0 /* timestamp */, in assertChanges()
158 private List<Result> assertEntry(T entry) { in assertEntry()
159 List<Result> failures = new ArrayList<>(); in assertEntry()
161 Result result = assertion.assertion.apply(entry); in assertEntry()
[all …]
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h56 enum class Result { enum
217 Result finish() { in finish()
219 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish()
220 if (result != Result::NO_ERROR) { in finish()
225 return Result::BAD_STATE; in finish()
320 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait()
362 Result setPreference(ExecutePreference preference) { in setPreference()
363 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
367 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching()
369 return Result::BAD_DATA; in setCaching()
[all …]
/frameworks/native/services/sensorservice/
DSensorsWrapper.h35 using ::android::hardware::sensors::V1_0::Result;
62 virtual Return<Result> setOperationMode(OperationMode mode) = 0;
64 virtual Return<Result> activate(int32_t sensorHandle, bool enabled) = 0;
66 virtual Return<Result> batch(int32_t sensorHandle, int64_t samplingPeriodNs,
69 virtual Return<Result> flush(int32_t sensorHandle) = 0;
71 virtual Return<Result> injectSensorData(const Event& event) = 0;
76 virtual Return<Result> unregisterDirectChannel(int32_t channelHandle) = 0;
90 virtual Return<Result> initialize(const MQDescriptorSync<Event>& eventQueueDesc, in initialize()
98 return Result::INVALID_OPERATION; in initialize()
112 Return<Result> setOperationMode(OperationMode mode) override { in setOperationMode()
[all …]
/frameworks/base/core/java/android/os/
DAsyncTask.java192 public abstract class AsyncTask<Params, Progress, Result> {
268 private final WorkerRunnable<Params, Result> mWorker;
270 private final FutureTask<Result> mFuture;
371 mWorker = new WorkerRunnable<Params, Result>() { in AsyncTask()
372 public Result call() throws Exception { in AsyncTask()
374 Result result = null; in AsyncTask()
390 mFuture = new FutureTask<Result>(mWorker) { in AsyncTask()
407 private void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked()
414 private Result postResult(Result result) { in postResult()
417 new AsyncTaskResult<Result>(this, result)); in postResult()
[all …]
/frameworks/base/core/java/android/database/
DCursorJoiner.java46 implements Iterator<CursorJoiner.Result>, Iterable<CursorJoiner.Result> {
50 private Result mCompareResult;
58 public enum Result { enum in CursorJoiner
98 public Iterator<Result> iterator() { in iterator()
156 public Result next() { in next()
171 mCompareResult = Result.LEFT; in next()
174 mCompareResult = Result.BOTH; in next()
177 mCompareResult = Result.RIGHT; in next()
181 mCompareResult = Result.LEFT; in next()
184 mCompareResult = Result.RIGHT; in next()
/frameworks/native/services/sensorservice/hidl/
Dutils.cpp56 Result convertResult(status_t status) { in convertResult()
59 return Result::OK; in convertResult()
61 return Result::NOT_EXIST; in convertResult()
63 return Result::NO_MEMORY; in convertResult()
65 return Result::NO_INIT; in convertResult()
67 return Result::PERMISSION_DENIED; in convertResult()
69 return Result::BAD_VALUE; in convertResult()
71 return Result::INVALID_OPERATION; in convertResult()
73 return Result::UNKNOWN_ERROR; in convertResult()
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp34 using ::android::frameworks::sensorservice::V1_0::Result;
56 inline ::testing::AssertionResult isOk(const Return<Result> &ret) { in isOk()
57 return ((ret.isOk() && ret == Result::OK) in isOk()
61 << (ret.isOk() ? toString(static_cast<Result>(ret)) : ""); in isOk()
64 static inline ::testing::AssertionResult isOk(Result result) { in isOk()
66 return (result == Result::OK in isOk()
153 testOne(16, 16, [](const auto &chan, Result result) { in TEST_F()
154 EXPECT_EQ(result, Result::BAD_VALUE) << "unexpected result when memory size is too small"; in TEST_F()
158 testOne(1024, 1024, [](const auto &chan, Result result) { in TEST_F()
163 testOne(1024, 2048, [](const auto &chan, Result result) { in TEST_F()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DLineBreaker_Delegate.java57 private static final DelegateManager<Result> sResultManager =
58 new DelegateManager<>(Result.class);
140 Result result = new Result(builder.mLineBreaker.computeBreaks()); in nComputeLineBreaks()
146 Result result = sResultManager.getDelegate(ptr); in nGetLineCount()
152 Result result = sResultManager.getDelegate(ptr); in nGetLineBreakOffset()
158 Result result = sResultManager.getDelegate(ptr); in nGetLineWidth()
164 Result result = sResultManager.getDelegate(ptr); in nGetLineAscent()
170 Result result = sResultManager.getDelegate(ptr); in nGetLineDescent()
176 Result result = sResultManager.getDelegate(ptr); in nGetLineFlag()
257 public static class Result { class in LineBreaker_Delegate
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DCommands.h25 android::idmap2::Result<android::idmap2::Unit> Create(const std::vector<std::string>& args);
26 android::idmap2::Result<android::idmap2::Unit> Dump(const std::vector<std::string>& args);
27 android::idmap2::Result<android::idmap2::Unit> Lookup(const std::vector<std::string>& args);
28 android::idmap2::Result<android::idmap2::Unit> Scan(const std::vector<std::string>& args);
29 android::idmap2::Result<android::idmap2::Unit> Verify(const std::vector<std::string>& args);
/frameworks/layoutlib/legacy/src/com/android/layoutlib/bridge/
DBridge.java18 import com.android.ide.common.rendering.api.Result;
19 import com.android.ide.common.rendering.api.Result.Status;
30 private static final Result NOT_SUPPORTED_RESULT =
50 public Result render(long timeout, boolean forceMeasure) { in render()
55 public Result measure(long timeout) { in measure()
60 public Result getResult() { in getResult()

123456789