Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DIdleTimerTest.cpp52 while (mExpiredTimerCallback.waitForCall(0us).has_value()) { in clearPendingCallbacks()
67 EXPECT_TRUE(mResetTimerCallback.waitForCall().has_value()); in TEST_F()
70 bool callbackCalled = mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
78 EXPECT_FALSE(mResetTimerCallback.waitForCall().has_value()); in TEST_F()
86 EXPECT_TRUE(mResetTimerCallback.waitForCall().has_value()); in TEST_F()
89 mExpiredTimerCallback.waitForCall(25ms).has_value(); in TEST_F()
91 EXPECT_TRUE(mResetTimerCallback.waitForCall().has_value()); in TEST_F()
97 mExpiredTimerCallback.waitForCall(waitTimeForExpected3msCallback + 30ms).has_value()); in TEST_F()
100 mExpiredTimerCallback.waitForCall(waitTimeForUnexpected3msCallback * 10).has_value()); in TEST_F()
103 EXPECT_FALSE(mExpiredTimerCallback.waitForCall(0ms).has_value()); in TEST_F()
[all …]
DEventThreadTest.cpp126 EXPECT_TRUE(!mVSyncSetCallbackCallRecorder.waitForUnexpectedCall().has_value()); in ~EventThreadTest()
150 ASSERT_TRUE(args.has_value()); in expectVSyncSetEnabledCallReceived()
156 ASSERT_TRUE(args.has_value()); in expectVSyncSetPhaseOffsetCallReceived()
162 return callbackSet.has_value() ? std::get<0>(callbackSet.value()) : nullptr; in expectVSyncSetCallbackCallReceived()
167 ASSERT_TRUE(args.has_value()); in expectInterceptCallReceived()
175 ASSERT_TRUE(args.has_value()) << name << " did not receive an event for timestamp " in expectVsyncEventReceivedByConnection()
196 ASSERT_TRUE(args.has_value()); in expectHotplugEventReceivedByConnection()
206 ASSERT_TRUE(args.has_value()); in expectConfigChangedEventReceivedByConnection()
220 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value()); in TEST_F()
221 EXPECT_FALSE(mVSyncSetCallbackCallRecorder.waitForCall(0us).has_value()); in TEST_F()
[all …]
DDispSyncSourceTest.cpp106 EXPECT_FALSE(mVSyncEventCallRecorder.waitForUnexpectedCall().has_value()); in TEST_F()
118 EXPECT_TRUE(mVSyncEventCallRecorder.waitForCall().has_value()); in TEST_F()
131 EXPECT_TRUE(mVSyncEventCallRecorder.waitForCall().has_value()); in TEST_F()
141 EXPECT_TRUE(mVSyncEventCallRecorder.waitForCall().has_value()); in TEST_F()
DEventControlThreadTest.cpp67 ASSERT_TRUE(args.has_value()); in expectVSyncEnableCallbackCalled()
89 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value()); in TEST_F()
115 EXPECT_FALSE(mVSyncSetEnabledCallRecorder.waitForUnexpectedCall().has_value()); in TEST_F()
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerProperties.cpp37 if (temp.has_value()) { in vsync_event_phase_offset_ns()
46 if (temp.has_value()) { in vsync_sf_event_phase_offset_ns()
55 if (temp.has_value()) { in use_context_priority()
64 if (temp.has_value()) { in max_frame_buffer_acquired_buffers()
73 if (temp.has_value()) { in has_wide_color_display()
82 if (temp.has_value()) { in running_without_sync_framework()
90 if (temp.has_value()) { in has_HDR_display()
98 if (temp.has_value()) { in present_time_offset_from_vsync_ns()
107 if (temp.has_value()) { in force_hwc_copy_for_virtual_displays()
116 if (temp.has_value()) { in max_virtual_display_dimension()
[all …]
DDisplayDevice.h208 bool isVirtual() const { return !displayId.has_value(); } in isVirtual()
/frameworks/native/libs/vr/libvrflinger/tests/
Dvrflinger_test.cpp114 if (!vr_flinger_active.has_value()) { in WaitForVrFlingerTimed()
168 ASSERT_TRUE(vr_flinger_active.has_value()); in TEST()
249 ASSERT_TRUE(vr_flinger_active.has_value()); in TEST()
/frameworks/base/startop/view_compiler/
Ddex_builder.cc367 CHECK(!instruction.dest().has_value()); in EncodeReturn()
380 CHECK(instruction.dest().has_value()); in EncodeMove()
432 CHECK(prototype.has_value()); in EncodeInvoke()
469 if (instruction.dest().has_value()) { in EncodeInvoke()
495 CHECK(instruction.dest().has_value()); in EncodeNew()
507 CHECK(instruction.dest().has_value()); in EncodeCast()
531 CHECK(!label.bound_address.has_value()); in BindLabel()
549 if (label.bound_address.has_value()) { in LabelValue()
Ddex_layout_compiler.cc218 if (top.layout_params.has_value()) { in PopViewStack()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_entry_lite.h207 size += has_value() ? kTagSize + ValueTypeHandler::ByteSize(value()) : 0;
233 size += has_value()
268 if (from.has_value()) {
420 bool has_value() const { return (_has_bits_[0] & 0x00000002u) != 0; }
Dtype.pb.cc3086 if (this->has_value()) { in SerializeWithCachedSizes()
3109 if (this->has_value()) { in InternalSerializeWithCachedSizesToArray()
3131 if (this->has_value()) { in ByteSize()
3169 if (from.has_value()) { in MergeFrom()
3260 bool Option::has_value() const { in has_value() function in google::protobuf::Option
Dtype.pb.h850 bool has_value() const;
1673 inline bool Option::has_value() const { in has_value() function
Ddescriptor_unittest.cc3258 EXPECT_FALSE(old_enum_opt.has_value()); in TEST()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp999 instruction_set.has_value() && in SpecializeCommon()
1003 if (use_native_bridge && !app_data_dir.has_value()) { in SpecializeCommon()
1100 const char* se_info_ptr = se_info.has_value() ? se_info.value().c_str() : nullptr; in SpecializeCommon()
1101 const char* nice_name_ptr = nice_name.has_value() ? nice_name.value().c_str() : nullptr; in SpecializeCommon()
1110 if (nice_name.has_value()) { in SpecializeCommon()
1299 if (entry_values.has_value()) { in MakeUsapPipeReadFDVector()
1670 if (entry_storage.has_value()) { in com_android_internal_os_Zygote_nativeEmptyUsapPool()
/frameworks/ml/nn/runtime/
DVersionedInterfaces.cpp230 if (!core.has_value()) { in create()
386 if (!core.has_value()) { in recoverable()
537 if (!slice11.has_value()) { in getSupportedOperations()
572 if (!slice10.has_value()) { in getSupportedOperations()
/frameworks/ml/nn/driver/sample/
DSampleDriver.cpp361 return (it != mMemoryCache.end()) && it->second.has_value(); in isCacheEntryPresent()