/frameworks/base/cmds/idmap2/include/idmap2/ |
D | Result.h | 50 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/ |
D | DisplayColorProfileTest.cpp | 450 using Result = std::tuple<Dataspace, ColorMode, RenderIntent>; in TEST_F() typedef 451 std::array<Result, 15> expectedResults = { in TEST_F() 453 /* 0 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 454 /* 1 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 455 /* 2 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 457 /* 3 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 458 /* 4 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 459 /* 5 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 461 /* 6 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() 462 /* 7 */ Result{Dataspace::UNKNOWN, ColorMode::NATIVE, RenderIntent::COLORIMETRIC}, in TEST_F() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 47 using wrapper::Result; 132 Result finish() { in finish() 134 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish() 135 if (result != Result::NO_ERROR) { in finish() 141 return Result::BAD_STATE; in finish() 248 static std::pair<Result, Compilation> createForDevice(const Model* model, in createForDevice() 252 static std::pair<Result, Compilation> createForDevices( in createForDevices() 255 const Result result = static_cast<Result>(ANeuralNetworksCompilation_createForDevices( in createForDevices() 291 Result setPreference(ExecutePreference preference) { in setPreference() 292 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference() [all …]
|
D | TestTrivialModel.cpp | 118 ASSERT_EQ(execution.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 119 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 120 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 121 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F() 148 Result::NO_ERROR); in TEST_F() 149 ASSERT_EQ(execution.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 150 ASSERT_EQ(execution.setOutput(0, actual, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 174 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F() 191 ASSERT_EQ(execution2.setInput(0, matrix1, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() 192 ASSERT_EQ(execution2.setInput(1, matrix2, sizeof(Matrix3x4)), Result::NO_ERROR); in TEST_F() [all …]
|
D | TestFailingDriver.cpp | 33 using Result = test_wrapper::Result; typedef 115 ASSERT_EQ(conditionModel.finish(), Result::NO_ERROR); in TEST_F() 126 ASSERT_EQ(bodyModel.finish(), Result::NO_ERROR); in TEST_F() 142 ASSERT_EQ(model.finish(), Result::NO_ERROR); in TEST_F() 146 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TEST_F() 167 ASSERT_EQ(execution.setInput(0, &fInput), Result::NO_ERROR); in TEST_F() 168 ASSERT_EQ(execution.setInput(1, &bInput), Result::NO_ERROR); in TEST_F() 169 ASSERT_EQ(execution.setOutput(0, &fSqrt), Result::NO_ERROR); in TEST_F() 170 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F() 192 ASSERT_EQ(model.finish(), Result::NO_ERROR); in TEST_F() [all …]
|
D | TestUnspecifiedDimensions.cpp | 249 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 …]
|
D | TestControlFlow.cpp | 55 ASSERT_EQ(conditionModel.finish(), Result::NO_ERROR); in TEST_F() 68 ASSERT_EQ(bodyModel.finish(), Result::NO_ERROR); in TEST_F() 82 ASSERT_EQ(model.finish(), Result::NO_ERROR); in TEST_F() 87 ASSERT_EQ(compilation.finish(), Result::NO_ERROR); in TEST_F() 92 ASSERT_EQ(execution.setInput(0, &input), Result::NO_ERROR); in TEST_F() 93 ASSERT_EQ(execution.setOutput(0, &output), Result::NO_ERROR); in TEST_F() 94 ASSERT_EQ(execution.setLoopTimeout(1 * kMillisecondsInNanosecond), Result::NO_ERROR); in TEST_F() 95 Result result = execution.compute(); in TEST_F() 96 ASSERT_TRUE(result == Result::MISSED_DEADLINE_TRANSIENT || in TEST_F() 97 result == Result::MISSED_DEADLINE_PERSISTENT) in TEST_F()
|
/frameworks/base/cmds/idmap2/tests/ |
D | ResultTests.cpp | 63 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/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/ |
D | PackageManagerComponentLabelIconOverrideTest.kt | 79 sealed class Result { in <lambda>() class 81 object Changed : Result() in <lambda>() 84 object ChangedWithoutNotify : Result() in <lambda>() 87 object NotChanged : Result() in <lambda>() 90 data class Exception(val type: Class<out java.lang.Exception>) : Result() in <lambda>() 97 Params(VALID_PKG, AppType.SYSTEM_APP, Result.Changed), in <lambda>() 98 Params(SHARED_PKG, AppType.SYSTEM_APP, Result.Changed), in <lambda>() 103 if (param.result is Result.Changed) { in <lambda>() 106 this += param.copy(result = Result.ChangedWithoutNotify) in <lambda>() 109 this += param.copy(result = Result.NotChanged) in <lambda>() [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | EffectsFactoryHalHidl.cpp | 46 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors() 48 [&](Result r, const hidl_vec<EffectDescriptor>& result) { in queryAllDescriptors() 50 if (retval == Result::OK) { in queryAllDescriptors() 55 return retval == Result::OK ? OK : NO_INIT; in queryAllDescriptors() 89 Result retval = Result::NOT_INITIALIZED; in getDescriptor() 91 [&](Result r, const EffectDescriptor& result) { in getDescriptor() 93 if (retval == Result::OK) { in getDescriptor() 98 if (retval == Result::OK) return OK; in getDescriptor() 99 else if (retval == Result::INVALID_ARGUMENTS) return NAME_NOT_FOUND; in getDescriptor() 111 Result retval = Result::NOT_INITIALIZED; in createEffect() [all …]
|
D | DeviceHalHidl.cpp | 129 Result retval; in getMasterVolume() 131 [&](Result r, float v) { in getMasterVolume() 133 if (retval == Result::OK) { in getMasterVolume() 153 Result retval; in getMicMute() 155 [&](Result r, bool mute) { in getMicMute() 157 if (retval == Result::OK) { in getMicMute() 171 Result retval; in getMasterMute() 173 [&](Result r, bool mute) { in getMasterMute() 175 if (retval == Result::OK) { in getMasterMute() 198 Result retval; in getParameters() [all …]
|
D | EffectHalHidl.cpp | 112 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/ml/nn/runtime/include/ |
D | NeuralNetworksWrapper.h | 66 enum class Result { enum 230 Result finish() { in finish() 232 auto result = static_cast<Result>(ANeuralNetworksModel_finish(mModel)); in finish() 233 if (result != Result::NO_ERROR) { in finish() 238 return Result::BAD_STATE; in finish() 333 Result wait() { return static_cast<Result>(ANeuralNetworksEvent_wait(mEvent)); } in wait() 378 Result setPreference(ExecutePreference preference) { in setPreference() 379 return static_cast<Result>(ANeuralNetworksCompilation_setPreference( in setPreference() 383 Result setPriority(ExecutePriority priority) { in setPriority() 384 return static_cast<Result>(ANeuralNetworksCompilation_setPriority( in setPriority() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | DirectStatementRetriever.java | 51 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/ |
D | AsyncTask.java | 199 public abstract class AsyncTask<Params, Progress, Result> { 284 private final WorkerRunnable<Params, Result> mWorker; 286 private final FutureTask<Result> mFuture; 387 mWorker = new WorkerRunnable<Params, Result>() { in AsyncTask() 388 public Result call() throws Exception { in AsyncTask() 390 Result result = null; in AsyncTask() 406 mFuture = new FutureTask<Result>(mWorker) { in AsyncTask() 423 private void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked() 430 private Result postResult(Result result) { in postResult() 433 new AsyncTaskResult<Result>(this, result)); in postResult() [all …]
|
/frameworks/base/core/java/android/database/ |
D | CursorJoiner.java | 46 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/ |
D | utils.cpp | 56 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()
|
D | SensorManager.cpp | 71 _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/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | BackupStreamEncrypterTest.java | 78 BackupEncrypter.Result result = runBackup(BACKUP_SIZE); in testBackup_producesChunksOfTheGivenAverageSize() 93 BackupEncrypter.Result result = runBackup(BACKUP_SIZE); in testBackup_producesNoChunksSmallerThanMinSize() 105 BackupEncrypter.Result result = runBackup(BACKUP_SIZE); in testBackup_producesNoChunksLargerThanMaxSize() 116 BackupEncrypter.Result result = runBackup(BACKUP_SIZE); in testBackup_producesAFileOfTheExpectedSize() 131 BackupEncrypter.Result result = runBackup(backupData, ImmutableList.of()); in testBackup_forSameFile_producesNoNewChunks() 133 BackupEncrypter.Result incrementalResult = runBackup(backupData, result.getAllChunks()); in testBackup_forSameFile_producesNoNewChunks() 141 BackupEncrypter.Result result = runBackup(backupData, ImmutableList.of()); in testBackup_onlyUpdatesChangedChunks() 146 BackupEncrypter.Result incrementalResult = runBackup(backupData, result.getAllChunks()); in testBackup_onlyUpdatesChangedChunks() 154 BackupEncrypter.Result result = runBackup(backupData, ImmutableList.of()); in testBackup_doesNotIncludeUpdatedChunksInNewListing() 159 BackupEncrypter.Result incrementalResult = runBackup(backupData, result.getAllChunks()); in testBackup_doesNotIncludeUpdatedChunksInNewListing() [all …]
|
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/ |
D | VtsHalSensorManagerV1_0TargetTest.cpp | 39 using ::android::frameworks::sensorservice::V1_0::Result; 63 inline ::testing::AssertionResult isOk(const Return<Result> &ret) { in isOk() 64 return ((ret.isOk() && ret == Result::OK) in isOk() 68 << (ret.isOk() ? toString(static_cast<Result>(ret)) : ""); in isOk() 71 static inline ::testing::AssertionResult isOk(Result result) { in isOk() 73 return (result == Result::OK in isOk() 109 android::base::Result<std::vector<SensorInfo>> GetSensorList( in GetSensorList() 111 Result out_result = Result::INVALID_OPERATION; in GetSensorList() 116 if (result == Result::OK) { in GetSensorList() 127 if (out_result != Result::OK) { in GetSensorList() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/text/ |
D | LineBreaker_Delegate.java | 57 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/ml/nn/common/operations/ |
D | QuantizedLSTMTest.cpp | 97 Result::NO_ERROR); in invoke() 100 Result::NO_ERROR); in invoke() 103 Result::NO_ERROR); in invoke() 106 Result::NO_ERROR); in invoke() 109 Result::NO_ERROR); in invoke() 112 Result::NO_ERROR); in invoke() 115 Result::NO_ERROR); in invoke() 118 Result::NO_ERROR); in invoke() 121 Result::NO_ERROR); in invoke() 124 Result::NO_ERROR); in invoke() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | ContextHubTransactionManager.java | 20 import android.hardware.contexthub.V1_0.Result; 117 return Result.UNKNOWN_FAILURE; in createLoadTransaction() 122 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { in createLoadTransaction() 163 return Result.UNKNOWN_FAILURE; 168 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { 204 return Result.UNKNOWN_FAILURE; 209 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { 239 return Result.UNKNOWN_FAILURE; 244 /* package */ void onTransactionComplete(@ContextHubTransaction.Result int result) { 271 return Result.UNKNOWN_FAILURE; [all …]
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Commands.h | 25 android::idmap2::Result<android::idmap2::Unit> Create(const std::vector<std::string>& args); 26 android::idmap2::Result<android::idmap2::Unit> CreateMultiple(const std::vector<std::string>& args); 27 android::idmap2::Result<android::idmap2::Unit> Dump(const std::vector<std::string>& args); 28 android::idmap2::Result<android::idmap2::Unit> Lookup(const std::vector<std::string>& args); 29 android::idmap2::Result<android::idmap2::Unit> Scan(const std::vector<std::string>& args);
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontCustomizationParser.java | 41 public static class Result { class in FontCustomizationParser 51 public static Result parse(@NonNull InputStream in, @NonNull String fontDir) in parse() 59 private static void validate(Result result) { in validate() 74 private static Result readFamilies(XmlPullParser parser, String fontDir) in readFamilies() 76 Result out = new Result(); in readFamilies() 93 private static void readFamily(XmlPullParser parser, String fontDir, Result out) in readFamily()
|