Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 22 of 22) sorted by relevance

/system/chre/util/tests/
Doptional_test.cc52 EXPECT_FALSE(myInt.has_value()); in TEST()
57 EXPECT_TRUE(myInt.has_value()); in TEST()
63 EXPECT_TRUE(myInt.has_value()); in TEST()
70 EXPECT_TRUE(myNewInt.has_value()); in TEST()
77 EXPECT_TRUE(myNewInt.has_value()); in TEST()
83 EXPECT_FALSE(myInt.has_value()); in TEST()
86 EXPECT_TRUE(myInt.has_value()); in TEST()
88 EXPECT_FALSE(myInt.has_value()); in TEST()
93 EXPECT_FALSE(myInt.has_value()); in TEST()
95 EXPECT_TRUE(myInt.has_value()); in TEST()
[all …]
/system/core/init/
Dresult_test.cpp33 ASSERT_TRUE(result.has_value()); in TEST()
43 ASSERT_TRUE(Result<std::string>("success").has_value()); in TEST()
54 ASSERT_TRUE(result.has_value()); in TEST()
66 ASSERT_TRUE(MakeRvalueSuccessResult().has_value()); in TEST()
75 ASSERT_FALSE(result.has_value()); in TEST()
84 ASSERT_FALSE(result.has_value()); in TEST()
99 ASSERT_FALSE(MakeRvalueErrorResult().has_value()); in TEST()
111 ASSERT_FALSE(result.has_value()); in TEST()
123 ASSERT_FALSE(result.has_value()); in TEST()
134 ASSERT_FALSE(result.has_value()); in TEST()
[all …]
Dresult.h175 bool has_value() const { return contents_.index() == 0; } in has_value() function
194 explicit operator bool() const { return has_value(); }
Daction.cpp128 bool report_failure = !result.has_value(); in ExecuteCommand()
/system/linkerconfig/modules/tests/
Dvariables_test.cc28 ASSERT_TRUE(value.has_value()); in TEST()
40 ASSERT_TRUE(value.has_value()); in TEST()
47 ASSERT_FALSE(value.has_value()); in TEST()
/system/chre/core/
Dwwan_request_manager.cc39 if (!mCellInfoRequestingNanoappInstanceId.has_value()) { in requestCellInfo()
66 if (mCellInfoRequestingNanoappInstanceId.has_value()) { in handleCellInfoResultSync()
80 if (mCellInfoRequestingNanoappInstanceId.has_value()) { in logStateToBuffer()
89 if (mCellInfoRequestingNanoappInstanceId.has_value()) { in handleFreeCellInfoResult()
Dwifi_request_manager.cc127 bool timedOut = (mScanRequestingNanoappInstanceId.has_value() in requestScan()
146 if (mScanRequestingNanoappInstanceId.has_value()) { in requestScan()
272 if (mScanRequestingNanoappInstanceId.has_value()) { in logStateToBuffer()
501 if (!mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync()
511 if (mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync()
619 && mScanRequestingNanoappInstanceId.has_value()) { in handleFreeWifiScanEvent()
/system/iorap/src/common/
Dexpected.h72 constexpr bool has_value() const {
219 constexpr bool has_value() const {
280 return has_value();
283 constexpr bool has_value() const {
284 return data_.has_value();
298 CHECK(has_value());
303 CHECK(has_value());
308 CHECK(has_value());
313 CHECK(has_value());
318 DCHECK(!has_value());
[all …]
/system/chre/core/include/chre/core/
Dsensor_request_manager.h218 CHRE_ASSERT(!mSensor.has_value()); in setSensor()
226 return mSensor.has_value(); in isSensorSupported()
/system/chre/util/include/chre/util/
Doptional.h78 bool has_value() const;
Doptional_impl.h45 bool Optional<ObjectType>::has_value() const { in has_value() function
/system/iorap/src/inode2filename/
Dsearch_directories.h47 return data.has_value();
Dsearch_directories.cc528 return result.has_value(); in MapOptionalOrDrop()
564 if (!node.has_value()) { in TreeTraversalPreOrderObservableImpl()
773 << state.inode_set.Empty() << ", match:" << state.match.has_value(); in SearchDirectoriesForMatchingInodes()
816 .filter([](const SearchState& search_state) { return search_state.match.has_value(); }) in SearchDirectoriesForMatchingInodes()
/system/chre/platform/slpi/see/
Dsee_cal_helper.cc86 if (calIndex < ARRAY_SIZE(mCalInfo) && mCalInfo[calIndex].suid.has_value()) { in getCalSuidFromSensorType()
194 if (mCalInfo[i].suid.has_value() in getCalIndexFromSuid()
Dsee_helper.cc1195 if (info->remoteProcSuid->has_value() in assignPayloadCallback()
1882 if (doResample && !mResamplerSuid.has_value()) { in registerSensor()
/system/linkerconfig/modules/
Dconfigwriter.cc89 if (resolved_value.has_value()) { in ResolveVariables()
/system/chre/host/hal_generic/
Dgeneric_context_hub.cc231 if (mPendingLoadTransaction.has_value()) { in loadNanoApp()
445 if (!mParent.mPendingLoadTransaction.has_value()) { in handleLoadNanoappResponse()
487 return mPendingLoadTransaction.has_value() in isExpectedLoadResponseLocked()
/system/chre/apps/chqts/src/general_test/
Dbasic_wifi_test.cc215 if (!mCurrentWifiRequest.has_value()) { in handleChreWifiAsyncEvent()
/system/core/adb/daemon/
Dusb.cpp545 if (!incoming_header_.has_value()) { in ProcessRead()
579 if (errno == EINVAL && !gFfsAioSupported.has_value()) { in SubmitRead()
715 if (gFfsAioSupported.has_value() && !gFfsAioSupported.value()) { in usb_ffs_open_thread()
/system/apex/apexd/
Dapexd.cpp1041 if (!data.has_value()) { in UnmountPackage()
1113 if (!session->has_value()) { in resumeRollbackIfNeeded()
1288 if (session_or_none->has_value()) { in abortActiveSession()
1621 if (!session->has_value()) { in rollbackStagedSessionIfAny()
1638 } else if (!session->has_value()) { in rollbackActiveSession()
/system/iorap/src/manager/
Devent_manager.cc298 DCHECK(rx_lifetime_.has_value()); in MarkPendingTrace()
/system/iorap/tests/src/inode2filename/
Dsearch_directories_test.cc599 DCHECK(last.has_value()); in Parent()
600 DCHECK(prev_last.has_value()); in Parent()
1098 return !owner_.has_value(); in IsBorrowed()