Home
last modified time | relevance | path

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

1234

/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/adb/client/
Dmdns_utils_test.cpp28 ASSERT_TRUE(res.has_value()); in TEST()
36 ASSERT_TRUE(res.has_value()); in TEST()
44 ASSERT_TRUE(res.has_value()); in TEST()
55 EXPECT_FALSE(res.has_value()); in TEST()
60 EXPECT_FALSE(res.has_value()); in TEST()
65 EXPECT_FALSE(res.has_value()); in TEST()
70 EXPECT_FALSE(res.has_value()); in TEST()
75 EXPECT_FALSE(res.has_value()); in TEST()
80 ASSERT_TRUE(res.has_value()); in TEST()
88 ASSERT_TRUE(res.has_value()); in TEST()
[all …]
Dadb_wifi.cpp184 if (!mdns_info.has_value()) { in adb_wifi_pair_device()
227 if (!client->Start(mdns_info.has_value() in adb_wifi_pair_device()
235 waiter.cv_.wait(lock, [&]() { return waiter.is_valid_.has_value(); }); in adb_wifi_pair_device()
/system/libbase/
Dexpected_test.cpp57 EXPECT_TRUE(e.has_value()); in TEST()
61 EXPECT_TRUE(e2.has_value()); in TEST()
65 EXPECT_TRUE(e3.has_value()); in TEST()
72 EXPECT_TRUE(e.has_value()); in TEST()
73 EXPECT_TRUE(e2.has_value()); in TEST()
79 EXPECT_TRUE(e3.has_value()); in TEST()
80 EXPECT_TRUE(e4.has_value()); in TEST()
87 EXPECT_TRUE(e.has_value()); in TEST()
88 EXPECT_TRUE(e2.has_value()); in TEST()
95 EXPECT_TRUE(e3.has_value()); in TEST()
[all …]
Dresult_test.cpp34 ASSERT_TRUE(result.has_value()); in TEST()
44 ASSERT_TRUE(Result<std::string>("success").has_value()); in TEST()
80 ASSERT_FALSE(result.has_value()); in TEST()
89 ASSERT_FALSE(result.has_value()); in TEST()
104 ASSERT_FALSE(MakeRvalueErrorResult().has_value()); in TEST()
116 ASSERT_FALSE(result.has_value()); in TEST()
128 ASSERT_FALSE(result.has_value()); in TEST()
139 ASSERT_FALSE(result.has_value()); in TEST()
144 ASSERT_FALSE(result2.has_value()); in TEST()
155 ASSERT_FALSE(result.has_value()); in TEST()
[all …]
/system/core/adb/tls/tests/
Dadb_ca_list_test.cpp70 EXPECT_FALSE(res.has_value()); in TEST_F()
75 EXPECT_FALSE(res.has_value()); in TEST_F()
80 EXPECT_FALSE(res.has_value()); in TEST_F()
85 EXPECT_FALSE(res.has_value()); in TEST_F()
92 EXPECT_FALSE(res.has_value()); in TEST_F()
136 ASSERT_TRUE(out_sha.has_value()); in TEST_F()
157 ASSERT_TRUE(out_key.has_value()); in TEST_F()
/system/tools/aidl/tests/
Daidl_test_client_utf8_strings.cpp57 ASSERT_FALSE(reply.has_value()); in TEST_F()
63 ASSERT_TRUE(reply.has_value()); in TEST_F()
93 ASSERT_FALSE(reversed.has_value()); in DoTest()
94 ASSERT_FALSE(repeated.has_value()); in DoTest()
103 ASSERT_TRUE(reversed.has_value()); in DoTest()
104 ASSERT_TRUE(repeated.has_value()); in DoTest()
113 ASSERT_FALSE(repeated_str.has_value()); in DoTest()
114 ASSERT_FALSE(reversed_str.has_value()); in DoTest()
118 ASSERT_TRUE(repeated_str.has_value()); in DoTest()
119 ASSERT_TRUE(reversed_str.has_value()); in DoTest()
/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()
52 ASSERT_FALSE(Variables::GetValue("TEST_KEY").has_value()); in TEST()
/system/extras/simpleperf/
Dtracing_test.cpp28 ASSERT_TRUE(value.has_value()); in CheckAdjustFilter()
53 ASSERT_FALSE(AdjustTracepointFilter("(pid > 3", true, &used_fields).has_value()); in TEST()
54 ASSERT_FALSE(AdjustTracepointFilter("pid > 3)", true, &used_fields).has_value()); in TEST()
56 ASSERT_FALSE(AdjustTracepointFilter("pid ^ 3", true, &used_fields).has_value()); in TEST()
/system/linkerconfig/modules/
Denvironment.cc27 return !Variables::GetValue("ro.vndk.version").has_value() || in IsLegacyDevice()
36 return Variables::GetValue("VNDK_USING_CORE_VARIANT_LIBRARIES").has_value(); in IsVndkInSystemNamespace()
48 return Variables::GetValue("ro.product.vndk.version").has_value(); in IsProductVndkVersionDefined()
/system/chre/core/
Dwwan_request_manager.cc39 if (!mCellInfoRequestingNanoappInstanceId.has_value()) { in requestCellInfo()
66 if (mCellInfoRequestingNanoappInstanceId.has_value()) { in handleCellInfoResultSync()
79 if (mCellInfoRequestingNanoappInstanceId.has_value()) { in logStateToBuffer()
88 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()
503 if (!mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync()
513 if (mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync()
622 && 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/security/keystore/tests/
Dverification_token_seralization_test.cpp41 ASSERT_TRUE(serialized.has_value()); in TEST()
43 ASSERT_TRUE(deserialized.has_value()); in TEST()
58 ASSERT_TRUE(serialized.has_value()); in TEST()
60 ASSERT_TRUE(deserialized.has_value()); in TEST()
/system/libbase/include/android-base/
Dexpected.h116 if (rhs.has_value()) var_ = rhs.value(); in expected()
135 if (rhs.has_value()) var_ = rhs.value(); in expected()
155 if (rhs.has_value()) var_ = std::move(rhs.value()); in expected()
174 if (rhs.has_value()) var_ = std::move(rhs.value()); in expected()
333 constexpr explicit operator bool() const noexcept { return has_value(); }
334 constexpr bool has_value() const noexcept { return var_.index() == 0; } in has_value() function
335 constexpr bool ok() const noexcept { return has_value(); } in ok()
352 if (has_value()) return value(); in value_or()
361 if (has_value()) return std::move(value()); in value_or()
391 if (x.has_value() != y.has_value()) return false;
[all …]
/system/core/adb/pairing_auth/tests/
Daes_128_gcm_test.cpp51 ASSERT_TRUE(encrypted_size.has_value()); in TEST()
56 ASSERT_TRUE(decrypted_size.has_value()); in TEST()
/system/bt/gd/security/record/
Dsecurity_record_database.h55 …if (record->identity_address_.has_value() && record->identity_address_.value() == address) return … in Find()
57 if (record->irk.has_value() && address.IsRpaThatMatchesIrk(record->irk.value())) return it; in Find()
/system/bt/gd/security/
Dpairing_handler_le_unittest.cc161 EXPECT_TRUE(pairing_request.has_value()); in TEST_F()
172 EXPECT_TRUE(pairing_failure.has_value()); in TEST_F()
187 EXPECT_TRUE(pairing_request_pkt.has_value()); in TEST_F()
199 EXPECT_TRUE(public_key_pkt.has_value()); in TEST_F()
226 EXPECT_TRUE(random_pkt.has_value()); in TEST_F()
259 EXPECT_TRUE(dh_key_pkt.has_value()); in TEST_F()
303 EXPECT_TRUE(pairing_request_pkt.has_value()); in TEST_F()
346 EXPECT_TRUE(pairing_response_pkt.has_value()); in TEST_F()
/system/core/adb/pairing_connection/tests/
Dpairing_connection_test.cpp349 client_waiter.cv_.wait(client_lock, [&]() { return client_waiter.is_valid_.has_value(); }); in TEST_F()
362 server_waiter.cv_.wait(server_lock, [&]() { return server_waiter.is_valid_.has_value(); }); in TEST_F()
388 client_waiter.cv_.wait(client_lock, [&]() { return client_waiter.is_valid_.has_value(); }); in TEST_F()
396 ASSERT_TRUE(server_waiter.is_valid_.has_value()); in TEST_F()
425 [&]() { return client_waiter.is_valid_.has_value(); }); in TEST_F()
439 ASSERT_TRUE(server_waiter.is_valid_.has_value()); in TEST_F()
471 [&]() { return client_waiter.is_valid_.has_value(); }); in TEST_F()
491 server_waiter.cv_.wait(server_lock, [&]() { return server_waiter.is_valid_.has_value(); }); in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp70 ASSERT_TRUE(ret.has_value()); in TEST_F()
113 ASSERT_TRUE(ret.has_value()); in TEST_F()
152 if (ret.has_value()) { in TEST_F()
292 EXPECT_EQ(GetParam().expected_output.has_value(), in TEST_P()
295 << (GetParam().expected_output.has_value() ? "succeed" : "fail"); in TEST_P()
296 if (!GetParam().expected_output.has_value()) return; in TEST_P()
/system/linkerconfig/contents/context/
Dcontext.cc104 if (val.has_value()) { in Var()
113 if (val.has_value()) { in Var()
/system/security/identity/
DCredentialStore.cpp68 if (!credentialExists.has_value()) { in createCredential()
104 if (!credentialExists.has_value()) { in getCredentialByName()
/system/update_engine/payload_consumer/
Dpartition_update_generator_android.cc54 if (!ab_partitions.has_value()) { in GenerateOperationsForPartitionsNotInPayload()
69 if (!partition_update.has_value()) { in GenerateOperationsForPartitionsNotInPayload()
185 if (!raw_hash.has_value()) { in CreatePartitionUpdate()
/system/bt/gd/storage/
Dclassic_device.cc42 ASSERT(addr.has_value()); in GetAddress()
/system/chre/core/include/chre/core/
Dsensor_request_manager.h239 CHRE_ASSERT(!mSensor.has_value()); in setSensor()
247 return mSensor.has_value(); in isSensorSupported()

1234