/system/chre/util/tests/ |
D | optional_test.cc | 52 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/ |
D | result_test.cpp | 33 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 …]
|
D | result.h | 175 bool has_value() const { return contents_.index() == 0; } in has_value() function 194 explicit operator bool() const { return has_value(); }
|
D | action.cpp | 128 bool report_failure = !result.has_value(); in ExecuteCommand()
|
/system/linkerconfig/modules/tests/ |
D | variables_test.cc | 28 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/ |
D | wwan_request_manager.cc | 39 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()
|
D | wifi_request_manager.cc | 127 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/ |
D | expected.h | 72 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/ |
D | sensor_request_manager.h | 218 CHRE_ASSERT(!mSensor.has_value()); in setSensor() 226 return mSensor.has_value(); in isSensorSupported()
|
/system/chre/util/include/chre/util/ |
D | optional.h | 78 bool has_value() const;
|
D | optional_impl.h | 45 bool Optional<ObjectType>::has_value() const { in has_value() function
|
/system/iorap/src/inode2filename/ |
D | search_directories.h | 47 return data.has_value();
|
D | search_directories.cc | 528 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/ |
D | see_cal_helper.cc | 86 if (calIndex < ARRAY_SIZE(mCalInfo) && mCalInfo[calIndex].suid.has_value()) { in getCalSuidFromSensorType() 194 if (mCalInfo[i].suid.has_value() in getCalIndexFromSuid()
|
D | see_helper.cc | 1195 if (info->remoteProcSuid->has_value() in assignPayloadCallback() 1882 if (doResample && !mResamplerSuid.has_value()) { in registerSensor()
|
/system/linkerconfig/modules/ |
D | configwriter.cc | 89 if (resolved_value.has_value()) { in ResolveVariables()
|
/system/chre/host/hal_generic/ |
D | generic_context_hub.cc | 231 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/ |
D | basic_wifi_test.cc | 215 if (!mCurrentWifiRequest.has_value()) { in handleChreWifiAsyncEvent()
|
/system/core/adb/daemon/ |
D | usb.cpp | 545 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/ |
D | apexd.cpp | 1041 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/ |
D | event_manager.cc | 298 DCHECK(rx_lifetime_.has_value()); in MarkPendingTrace()
|
/system/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 599 DCHECK(last.has_value()); in Parent() 600 DCHECK(prev_last.has_value()); in Parent() 1098 return !owner_.has_value(); in IsBorrowed()
|