Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libaudiohal/
DEffectsFactoryHalHidl.cpp29 using ::android::hardware::audio::effect::V2_0::Result;
57 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors()
59 [&](Result r, const hidl_vec<EffectDescriptor>& result) { in queryAllDescriptors()
61 if (retval == Result::OK) { in queryAllDescriptors()
66 return retval == Result::OK ? OK : NO_INIT; in queryAllDescriptors()
100 Result retval = Result::NOT_INITIALIZED; in getDescriptor()
102 [&](Result r, const EffectDescriptor& result) { in getDescriptor()
104 if (retval == Result::OK) { in getDescriptor()
109 if (retval == Result::OK) return OK; in getDescriptor()
110 else if (retval == Result::INVALID_ARGUMENTS) return NAME_NOT_FOUND; in getDescriptor()
[all …]
DDeviceHalHidl.cpp43 using ::android::hardware::audio::V2_0::Result;
137 Result retval; in getMasterVolume()
139 [&](Result r, float v) { in getMasterVolume()
141 if (retval == Result::OK) { in getMasterVolume()
161 Result retval; in getMicMute()
163 [&](Result r, bool mute) { in getMicMute()
165 if (retval == Result::OK) { in getMicMute()
179 Result retval; in getMasterMute()
181 [&](Result r, bool mute) { in getMasterMute()
183 if (retval == Result::OK) { in getMasterMute()
[all …]
DEffectHalHidl.cpp33 using ::android::hardware::audio::effect::V2_0::Result;
111 status_t EffectHalHidl::analyzeResult(const Result& result) { in analyzeResult()
113 case Result::OK: return OK; in analyzeResult()
114 case Result::INVALID_ARGUMENTS: return BAD_VALUE; in analyzeResult()
115 case Result::INVALID_STATE: return NOT_ENOUGH_DATA; in analyzeResult()
116 case Result::NOT_INITIALIZED: return NO_INIT; in analyzeResult()
117 case Result::NOT_SUPPORTED: return INVALID_OPERATION; in analyzeResult()
118 case Result::RESULT_TOO_BIG: return NO_MEMORY; in analyzeResult()
149 Result retval; in prepareForProcessing()
151 [&](Result r, const MQDescriptorSync<Result>& statusMQ) { in prepareForProcessing()
[all …]
DDevicesFactoryHalHidl.cpp31 using ::android::hardware::audio::V2_0::Result;
78 Result retval = Result::NOT_INITIALIZED; in openDevice()
81 [&](Result r, const sp<IDevice>& result) { in openDevice()
83 if (retval == Result::OK) { in openDevice()
88 if (retval == Result::OK) return OK; in openDevice()
89 else if (retval == Result::INVALID_ARGUMENTS) return BAD_VALUE; in openDevice()
DStreamHalHidl.cpp38 using ::android::hardware::audio::V2_0::Result;
120 Result retval; in getParameters()
123 [&](Result r, const hidl_vec<ParameterValue>& parameters) { in getParameters()
125 if (retval == Result::OK) { in getParameters()
171 Result retval; in createMmapBuffer()
174 [&](Result r, const MmapBufferInfo& hidlInfo) { in createMmapBuffer()
176 if (retval == Result::OK) { in createMmapBuffer()
185 retval = Result::NOT_INITIALIZED; in createMmapBuffer()
193 Result retval; in getMmapPosition()
195 [&](Result r, const MmapPosition& hidlPosition) { in getMmapPosition()
[all …]
DConversionHelperHidl.cpp25 using ::android::hardware::audio::V2_0::Result;
88 status_t ConversionHelperHidl::analyzeResult(const Result& result) { in analyzeResult()
90 case Result::OK: return OK; in analyzeResult()
91 case Result::INVALID_ARGUMENTS: return BAD_VALUE; in analyzeResult()
92 case Result::INVALID_STATE: return NOT_ENOUGH_DATA; in analyzeResult()
93 case Result::NOT_INITIALIZED: return NO_INIT; in analyzeResult()
94 case Result::NOT_SUPPORTED: return INVALID_OPERATION; in analyzeResult()
/frameworks/support/core-utils/java/android/support/v4/content/
DModernAsyncTask.java52 abstract class ModernAsyncTask<Params, Progress, Result> {
84 private final WorkerRunnable<Params, Result> mWorker;
85 private final FutureTask<Result> mFuture;
130 mWorker = new WorkerRunnable<Params, Result>() { in ModernAsyncTask()
132 public Result call() throws Exception { in ModernAsyncTask()
134 Result result = null; in ModernAsyncTask()
150 mFuture = new FutureTask<Result>(mWorker) { in ModernAsyncTask()
154 final Result result = get(); in ModernAsyncTask()
172 void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked()
179 Result postResult(Result result) { in postResult()
[all …]
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h46 enum class Result { enum
138 Result finish() { return static_cast<Result>(ANeuralNetworksModel_finish(mModel)); } in finish()
213 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait()
248 Result setPreference(ExecutePreference preference) { in setPreference()
249 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference()
253 Result finish() { return static_cast<Result>(ANeuralNetworksCompilation_finish(mCompilation)); } in finish()
290 Result setInput(uint32_t index, const void* buffer, size_t length,
292 return static_cast<Result>(
296 Result setInputFromMemory(uint32_t index, const Memory* memory, uint32_t offset,
298 return static_cast<Result>(ANeuralNetworksExecution_setInputFromMemory(
[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/core/java/android/os/
DAsyncTask.java180 public abstract class AsyncTask<Params, Progress, Result> {
227 private final WorkerRunnable<Params, Result> mWorker;
228 private final FutureTask<Result> mFuture;
326 mWorker = new WorkerRunnable<Params, Result>() { in AsyncTask()
327 public Result call() throws Exception { in AsyncTask()
329 Result result = null; in AsyncTask()
345 mFuture = new FutureTask<Result>(mWorker) { in AsyncTask()
362 private void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked()
369 private Result postResult(Result result) { in postResult()
372 new AsyncTaskResult<Result>(this, result)); in postResult()
[all …]
DSynchronousResultReceiver.java35 public static class Result { class in SynchronousResultReceiver
39 public Result(int resultCode, @Nullable Bundle bundle) { in Result() method in SynchronousResultReceiver.Result
45 private final CompletableFuture<Result> mFuture = new CompletableFuture<>();
64 mFuture.complete(new Result(resultCode, resultData)); in onReceiveResult()
77 public @NonNull Result awaitResult(long timeoutMillis) throws TimeoutException { in awaitResult()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/src/
DarmCOMM.c517 OMX_S32 Result; in armSatAdd_S32() local
519 Result = Value1 + Value2; in armSatAdd_S32()
524 if( (Result^Value1) >= 0) in armSatAdd_S32()
527 return Result; in armSatAdd_S32()
547 return Result; in armSatAdd_S32()
570 OMX_S64 Result; in armSatAdd_S64() local
572 Result = Value1 + Value2; in armSatAdd_S64()
577 if( (Result^Value1) >= 0) in armSatAdd_S64()
580 return Result; in armSatAdd_S64()
587 Result = OMX_MAX_S64; in armSatAdd_S64()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/src/
DarmCOMM.c517 OMX_S32 Result; in armSatAdd_S32() local
519 Result = Value1 + Value2; in armSatAdd_S32()
524 if( (Result^Value1) >= 0) in armSatAdd_S32()
527 return Result; in armSatAdd_S32()
547 return Result; in armSatAdd_S32()
570 OMX_S64 Result; in armSatAdd_S64() local
572 Result = Value1 + Value2; in armSatAdd_S64()
577 if( (Result^Value1) >= 0) in armSatAdd_S64()
580 return Result; in armSatAdd_S64()
587 Result = OMX_MAX_S64; in armSatAdd_S64()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/src/
DarmCOMM.c517 OMX_S32 Result; in armSatAdd_S32() local
519 Result = Value1 + Value2; in armSatAdd_S32()
524 if( (Result^Value1) >= 0) in armSatAdd_S32()
527 return Result; in armSatAdd_S32()
547 return Result; in armSatAdd_S32()
570 OMX_S64 Result; in armSatAdd_S64() local
572 Result = Value1 + Value2; in armSatAdd_S64()
577 if( (Result^Value1) >= 0) in armSatAdd_S64()
580 return Result; in armSatAdd_S64()
587 Result = OMX_MAX_S64; in armSatAdd_S64()
[all …]
/frameworks/ml/nn/runtime/test/
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 …]
/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()
DSensorManager.cpp71 _hidl_cb({}, Result::UNKNOWN_ERROR); in getSensorList()
79 _hidl_cb(ret, Result::OK); in getSensorList()
86 _hidl_cb({}, Result::NOT_EXIST); in getDefaultSensor()
89 _hidl_cb(convertSensor(*sensor), Result::OK); in getDefaultSensor()
104 _hidl_cb(nullptr, Result::UNKNOWN_ERROR); in createDirectChannel()
109 Result::OK); in createDirectChannel()
116 _hidl_cb(nullptr, Result::BAD_VALUE); in createAshmemDirectChannel()
207 _hidl_cb(nullptr, Result::BAD_VALUE); in createEventQueue()
214 _hidl_cb(nullptr, Result::UNKNOWN_ERROR); in createEventQueue()
223 _hidl_cb(nullptr, Result::UNKNOWN_ERROR); in createEventQueue()
[all …]
/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/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()
/frameworks/base/graphics/java/android/graphics/
DInterpolator.java111 public enum Result { enum in Interpolator
121 public Result timeToValues(float[] values) { in timeToValues()
136 public Result timeToValues(int msec, float[] values) { in timeToValues()
141 case 0: return Result.NORMAL; in timeToValues()
142 case 1: return Result.FREEZE_START; in timeToValues()
143 default: return Result.FREEZE_END; in timeToValues()
/frameworks/base/services/core/jni/BroadcastRadio/
DBroadcastRadioService.cpp49 using V1_0::Result;
146 factory->connectModule(clazz, [&](Result res, const sp<V1_0::IBroadcastRadio>& module) { in nativeLoadModules()
147 if (res == Result::OK) { in nativeLoadModules()
150 } else if (res != Result::INVALID_ARGUMENTS) { in nativeLoadModules()
163 Result halResult = Result::OK; in nativeLoadModules()
170 hidlResult = module10->getProperties([&](Result result, in nativeLoadModules()
173 if (result != Result::OK) return; in nativeLoadModules()
223 Result halResult; in nativeOpenTuner()
227 [&](Result result, const sp<ITuner>& tuner) { in nativeOpenTuner()
231 if (!hidlResult.isOk() || halResult != Result::OK || halTuner == nullptr) { in nativeOpenTuner()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java20 import com.android.ide.common.rendering.api.Result;
46 private Result mLastResult;
49 public Result getResult() { in getResult()
80 public Result measure(long timeout) { in measure()
99 public Result render(long timeout, boolean forceMeasure) { in render()
143 /*package*/ BridgeRenderSession(@Nullable RenderSessionImpl scene, @NonNull Result lastResult) { in BridgeRenderSession()
/frameworks/support/media-compat/tests/src/android/support/v4/media/
DStubMediaBrowserServiceCompat.java60 private Result<List<MediaItem>> mPendingLoadChildrenResult;
61 private Result<MediaItem> mPendingLoadItemResult;
65 /* package private */ Result<Bundle> mCustomActionResult;
83 public void onLoadChildren(final String parentMediaId, final Result<List<MediaItem>> result) { in onLoadChildren()
102 public void onLoadItem(String itemId, Result<MediaItem> result) { in onLoadItem()
127 public void onSearch(String query, Bundle extras, Result<List<MediaItem>> result) { in onSearch()
145 Result<Bundle> result) { in onCustomAction()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBlasBenchmark.java92 class Result { class in BlasBenchmark.Processor
101 Result r = getBenchmark(); in getInstrumentationResult()
107 private Result runBenchmarkLoop(float minTime) { in runBenchmarkLoop()
108 Result r = new Result(); in runBenchmarkLoop()
132 private Result getBenchmark() { in getBenchmark()
146 Result r = runBenchmarkLoop(runtime); in getBenchmark()
194 Result r = getBenchmark(); in run()

1234567