Home
last modified time | relevance | path

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

12345678910>>...14

/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 …]
DResourceContainer.h31 WARN_UNUSED virtual Result<uint32_t> GetCrc() const = 0;
33 WARN_UNUSED virtual Result<std::string> GetResourceName(ResourceId id) const = 0;
39 static Result<std::unique_ptr<TargetResourceContainer>> FromPath(std::string path);
41 WARN_UNUSED virtual Result<bool> DefinesOverlayable() const = 0;
42 WARN_UNUSED virtual Result<const android::OverlayableInfo*> GetOverlayableInfo(
44 WARN_UNUSED virtual Result<ResourceId> GetResourceId(const std::string& name) const = 0;
96 static Result<std::unique_ptr<OverlayResourceContainer>> FromPath(std::string path);
98 WARN_UNUSED virtual Result<OverlayManifestInfo> FindOverlayInfo(
100 WARN_UNUSED virtual Result<OverlayData> GetOverlayData(const OverlayManifestInfo& info) const = 0;
DFabricatedOverlay.h44 WARN_UNUSED Result<FabricatedOverlay> Build();
60 Result<Unit> ToBinaryStream(std::ostream& stream) const;
61 static Result<FabricatedOverlay> FromBinaryStream(std::istream& stream);
70 Result<SerializedData*> InitializeData() const;
71 Result<uint32_t> GetCrc() const;
84 static Result<std::unique_ptr<FabricatedOverlayContainer>> FromPath(std::string path);
90 WARN_UNUSED Result<OverlayManifestInfo> FindOverlayInfo(const std::string& name) const override;
91 WARN_UNUSED Result<OverlayData> GetOverlayData(const OverlayManifestInfo& info) const override;
94 WARN_UNUSED Result<uint32_t> GetCrc() const override;
96 WARN_UNUSED Result<std::string> GetResourceName(ResourceId id) const override;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp450 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/av/services/tuner/
DTunerDemux.cpp31 using ::android::hardware::tv::tuner::V1_0::Result;
47 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setFrontendDataSource()
52 Result res = mDemux->setFrontendDataSource(frontendId); in setFrontendDataSource()
53 if (res != Result::SUCCESS) { in setFrontendDataSource()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openFilter()
89 Result status; in openFilter()
93 [&](Result r, const sp<IFilter>& filter) { in openFilter()
97 if (status != Result::SUCCESS) { in openFilter()
108 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in openTimeFilter()
111 Result status; in openTimeFilter()
[all …]
DTunerDvr.cpp24 using ::android::hardware::tv::tuner::V1_0::Result;
40 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getQueueDesc()
44 Result res; in getQueueDesc()
45 mDvr->getQueueDesc([&](Result r, const MQDesc& desc) { in getQueueDesc()
49 if (res != Result::SUCCESS) { in getQueueDesc()
63 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in configure()
66 Result res = mDvr->configure(getHidlDvrSettingsFromAidl(settings)); in configure()
67 if (res != Result::SUCCESS) { in configure()
76 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in attachFilter()
82 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::INVALID_ARGUMENT)); in attachFilter()
[all …]
DTunerTimeFilter.cpp21 using ::android::hardware::tv::tuner::V1_0::Result;
37 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setTimeStamp()
40 Result status = mTimeFilter->setTimeStamp(timeStamp); in setTimeStamp()
41 if (status != Result::SUCCESS) { in setTimeStamp()
50 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in clearTimeStamp()
53 Result status = mTimeFilter->clearTimeStamp(); in clearTimeStamp()
54 if (status != Result::SUCCESS) { in clearTimeStamp()
64 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in getSourceTime()
67 Result status; in getSourceTime()
69 [&](Result r, uint64_t t) { in getSourceTime()
[all …]
DTunerLnb.cpp24 using ::android::hardware::tv::tuner::V1_0::Result;
42 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setCallback()
46 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::INVALID_ARGUMENT)); in setCallback()
50 Result status = mLnb->setCallback(lnbCallback); in setCallback()
51 if (status != Result::SUCCESS) { in setCallback()
60 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setVoltage()
63 Result status = mLnb->setVoltage(static_cast<LnbVoltage>(voltage)); in setVoltage()
64 if (status != Result::SUCCESS) { in setVoltage()
73 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setTone()
76 Result status = mLnb->setTone(static_cast<LnbTone>(tone)); in setTone()
[all …]
DTunerDescrambler.cpp23 using ::android::hardware::tv::tuner::V1_0::Result;
40 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setDemuxSource()
43 Result res = mDescrambler->setDemuxSource(static_cast<TunerDemux*>(demux.get())->getId()); in setDemuxSource()
44 if (res != Result::SUCCESS) { in setDemuxSource()
53 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in setKeyToken()
56 Result res = mDescrambler->setKeyToken(keyToken); in setKeyToken()
57 if (res != Result::SUCCESS) { in setKeyToken()
67 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::UNAVAILABLE)); in addPid()
72 Result res = mDescrambler->addPid(getHidlDemuxPid(pid), halFilter); in addPid()
73 if (res != Result::SUCCESS) { in addPid()
[all …]
DTunerService.cpp49 using ::android::hardware::tv::tuner::V1_0::Result;
125 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::NOT_INITIALIZED)); in openDemux()
127 Result res; in openDemux()
131 mTuner->openDemux([&](Result r, uint32_t demuxId, const sp<IDemux>& demux) { in openDemux()
137 if (res == Result::SUCCESS) { in openDemux()
150 return Status::fromServiceSpecificError(static_cast<int32_t>(Result::NOT_INITIALIZED)); in getDemuxCaps()
152 Result res; in getDemuxCaps()
154 mTuner->getDemuxCaps([&](Result r, const DemuxCapabilities& demuxCaps) { in getDemuxCaps()
158 if (res == Result::SUCCESS) { in getDemuxCaps()
170 static_cast<int32_t>(Result::NOT_INITIALIZED)); in getFrontendIds()
[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/base/media/jni/tuner/
DTimeFilterClient.cpp25 using ::android::hardware::tv::tuner::V1_0::Result;
46 Result TimeFilterClient::setTimeStamp(long timeStamp) { in setTimeStamp()
56 return Result::INVALID_STATE; in setTimeStamp()
59 Result TimeFilterClient::clearTimeStamp() { in clearTimeStamp()
69 return Result::INVALID_STATE; in clearTimeStamp()
76 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in getTimeStamp()
83 Result res; in getTimeStamp()
86 [&](Result r, uint64_t t) { in getTimeStamp()
90 if (res != Result::SUCCESS) { in getTimeStamp()
103 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in getSourceTime()
[all …]
DDemuxClient.cpp27 using ::android::hardware::tv::tuner::V1_0::Result;
49 Result DemuxClient::setFrontendDataSource(sp<FrontendClient> frontendClient) { in setFrontendDataSource()
56 Result res = mDemux->setFrontendDataSource(frontendClient->getId()); in setFrontendDataSource()
60 return Result::INVALID_STATE; in setFrontendDataSource()
71 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in openFilter()
94 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in openTimeFilter()
116 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in getAvSyncHwId()
124 Result res; in getAvSyncHwId()
127 [&](Result r, uint32_t id) { in getAvSyncHwId()
131 if (res == Result::SUCCESS) { in getAvSyncHwId()
[all …]
DLnbClient.cpp24 using ::android::hardware::tv::tuner::V1_0::Result;
46 Result LnbClient::setCallback(sp<LnbClientCallback> cb) { in setCallback()
59 return Result::INVALID_STATE; in setCallback()
62 Result LnbClient::setVoltage(LnbVoltage voltage) { in setVoltage()
72 return Result::INVALID_STATE; in setVoltage()
75 Result LnbClient::setTone(LnbTone tone) { in setTone()
85 return Result::INVALID_STATE; in setTone()
88 Result LnbClient::setSatellitePosition(LnbPosition position) { in setSatellitePosition()
98 return Result::INVALID_STATE; in setSatellitePosition()
101 Result LnbClient::sendDiseqcMessage(vector<uint8_t> diseqcMessage) { in sendDiseqcMessage()
[all …]
DDvrClient.cpp27 using ::android::hardware::tv::tuner::V1_0::Result;
204 Result DvrClient::configure(DvrSettings settings) { in configure()
208 Result res = ClientHelper::getServiceSpecificErrorCode(s); in configure()
209 if (res != Result::SUCCESS) { in configure()
216 if (res != Result::SUCCESS) { in configure()
225 Result res = mDvr->configure(settings); in configure()
226 if (res == Result::SUCCESS) { in configure()
229 if (res == Result::SUCCESS) { in configure()
240 return Result::INVALID_STATE; in configure()
243 Result DvrClient::attachFilter(sp<FilterClient> filterClient) { in attachFilter()
[all …]
DTunerClient.cpp69 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS || v.size() == 0) { in getFrontendIds()
80 Result res; in getFrontendIds()
81 mTuner->getFrontendIds([&](Result r, const hardware::hidl_vec<FrontendId>& frontendIds) { in getFrontendIds()
85 if (res != Result::SUCCESS || ids.size() == 0) { in getFrontendIds()
101 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS in openFrontend()
107 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in openFrontend()
112 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in openFrontend()
123 Result res = getHidlFrontendInfo(id, hidlInfo); in openFrontend()
124 if (res != Result::SUCCESS) { in openFrontend()
142 if (ClientHelper::getServiceSpecificErrorCode(s) != Result::SUCCESS) { in getFrontendInfo()
[all …]
DDescramblerClient.cpp24 using ::android::hardware::tv::tuner::V1_0::Result;
44 Result DescramblerClient::setDemuxSource(sp<DemuxClient> demuxClient) { in setDemuxSource()
46 return Result::INVALID_ARGUMENT; in setDemuxSource()
58 return Result::INVALID_STATE; in setDemuxSource()
61 Result DescramblerClient::setKeyToken(vector<uint8_t> keyToken) { in setKeyToken()
71 return Result::INVALID_STATE; in setKeyToken()
74 Result DescramblerClient::addPid(DemuxPid pid, sp<FilterClient> optionalSourceFilter) { in addPid()
88 return Result::INVALID_STATE; in addPid()
91 Result DescramblerClient::removePid(DemuxPid pid, sp<FilterClient> optionalSourceFilter) { in removePid()
105 return Result::INVALID_STATE; in removePid()
[all …]
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt82 sealed class Result { in <lambda>() class
84 object Changed : Result() in <lambda>()
87 object ChangedWithoutNotify : Result() in <lambda>()
90 object NotChanged : Result() in <lambda>()
93 data class Exception(val type: Class<out java.lang.Exception>) : Result() in <lambda>()
100 Params(VALID_PKG, AppType.SYSTEM_APP, Result.Changed), in <lambda>()
101 Params(SHARED_PKG, AppType.SYSTEM_APP, Result.Changed), in <lambda>()
107 if (param.result is Result.Changed) { in <lambda>()
110 this += param.copy(result = Result.ChangedWithoutNotify) in <lambda>()
113 this += param.copy(result = Result.NotChanged) in <lambda>()
[all …]
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.cpp49 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors()
51 [&](Result r, const hidl_vec<EffectDescriptor>& result) { in queryAllDescriptors()
53 if (retval == Result::OK) { in queryAllDescriptors()
58 return retval == Result::OK ? OK : NO_INIT; in queryAllDescriptors()
92 Result retval = Result::NOT_INITIALIZED; in getDescriptor()
94 [&](Result r, const EffectDescriptor& result) { in getDescriptor()
96 if (retval == Result::OK) { in getDescriptor()
101 if (retval == Result::OK) return OK; in getDescriptor()
102 else if (retval == Result::INVALID_ARGUMENTS) return NAME_NOT_FOUND; in getDescriptor()
114 Result retval = Result::NOT_INITIALIZED; in createEffect()
[all …]
DEffectHalHidl.cpp64 status_t EffectHalHidl::analyzeResult(const Result& result) { in analyzeResult()
66 case Result::OK: return OK; in analyzeResult()
67 case Result::INVALID_ARGUMENTS: return BAD_VALUE; in analyzeResult()
68 case Result::INVALID_STATE: return NOT_ENOUGH_DATA; in analyzeResult()
69 case Result::NOT_INITIALIZED: return NO_INIT; in analyzeResult()
70 case Result::NOT_SUPPORTED: return INVALID_OPERATION; in analyzeResult()
71 case Result::RESULT_TOO_BIG: return NO_MEMORY; in analyzeResult()
110 Result retval; in prepareForProcessing()
112 [&](Result r, const MQDescriptorSync<Result>& statusMQ) { in prepareForProcessing()
114 if (retval == Result::OK) { in prepareForProcessing()
[all …]
DDeviceHalHidl.cpp90 Result retval; in getMasterVolume()
92 [&](Result r, float v) { in getMasterVolume()
94 if (retval == Result::OK) { in getMasterVolume()
114 Result retval; in getMicMute()
116 [&](Result r, bool mute) { in getMicMute()
118 if (retval == Result::OK) { in getMicMute()
132 Result retval; in getMasterMute()
134 [&](Result r, bool mute) { in getMasterMute()
136 if (retval == Result::OK) { in getMasterMute()
159 Result retval; in getParameters()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/utils/
DStatementUtils.kt81 ): Result<List<String>> { in getCertFingerprintsFromPackageManager()
89 return Result.Failure(e) in getCertFingerprintsFromPackageManager()
97 if (result is Result.Failure) { in getCertFingerprintsFromPackageManager()
100 (result as Result.Success).value in getCertFingerprintsFromPackageManager()
102 }.let { Result.Success(it) } in getCertFingerprintsFromPackageManager()
112 ?.let { Result.Success(it) } in computeNormalizedSha256Fingerprint()
113 ?: Result.Failure()
130 fun createAndroidAssetString(context: Context, packageName: String): Result<String> { in createAndroidAssetString()
132 if (result is Result.Failure) { in createAndroidAssetString()
135 return Result.Success( in createAndroidAssetString()
[all …]
/frameworks/base/core/java/android/os/
DAsyncTask.java199 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/
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/base/cmds/idmap2/libidmap2/
DResourceContainer.cpp57 Result<uint32_t> CalculateCrc(const ZipAssetsProvider* zip_assets) { in CalculateCrc()
73 Result<XmlParser> OpenXmlParser(const std::string& entry_path, const ZipAssetsProvider* zip) { in OpenXmlParser()
88 Result<XmlParser> OpenXmlParser(ResourceId id, const ZipAssetsProvider* zip, in OpenXmlParser()
114 Result<OverlayManifestInfo> ExtractOverlayManifestInfo(const ZipAssetsProvider* zip, in ExtractOverlayManifestInfo()
116 Result<XmlParser> xml = OpenXmlParser("AndroidManifest.xml", zip); in ExtractOverlayManifestInfo()
176 Result<OverlayData> CreateResourceMapping(ResourceId id, const ZipAssetsProvider* zip, in CreateResourceMapping()
207 Result<std::string> target_resource = overlay_it->GetAttributeStringValue("target"); in CreateResourceMapping()
212 Result<android::Res_value> overlay_resource = overlay_it->GetAttributeValue("value"); in CreateResourceMapping()
269 static Result<ResState> Initialize(std::unique_ptr<ZipAssetsProvider> zip) { in Initialize()
296 static Result<std::unique_ptr<ApkResourceContainer>> FromPath(const std::string& path);
[all …]

12345678910>>...14