/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/adb/client/ |
D | mdns_utils_test.cpp | 28 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 …]
|
D | adb_wifi.cpp | 184 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/ |
D | expected_test.cpp | 57 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 …]
|
D | result_test.cpp | 34 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/ |
D | adb_ca_list_test.cpp | 70 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/ |
D | aidl_test_client_utf8_strings.cpp | 57 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/ |
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() 52 ASSERT_FALSE(Variables::GetValue("TEST_KEY").has_value()); in TEST()
|
/system/extras/simpleperf/ |
D | tracing_test.cpp | 28 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/ |
D | environment.cc | 27 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/ |
D | wwan_request_manager.cc | 39 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()
|
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() 503 if (!mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync() 513 if (mScanRequestingNanoappInstanceId.has_value()) { in handleScanResponseSync() 622 && 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/security/keystore/tests/ |
D | verification_token_seralization_test.cpp | 41 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/ |
D | expected.h | 116 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/ |
D | aes_128_gcm_test.cpp | 51 ASSERT_TRUE(encrypted_size.has_value()); in TEST() 56 ASSERT_TRUE(decrypted_size.has_value()); in TEST()
|
/system/bt/gd/security/record/ |
D | security_record_database.h | 55 …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/ |
D | pairing_handler_le_unittest.cc | 161 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/ |
D | pairing_connection_test.cpp | 349 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/ |
D | partition_cow_creator_test.cpp | 70 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/ |
D | context.cc | 104 if (val.has_value()) { in Var() 113 if (val.has_value()) { in Var()
|
/system/security/identity/ |
D | CredentialStore.cpp | 68 if (!credentialExists.has_value()) { in createCredential() 104 if (!credentialExists.has_value()) { in getCredentialByName()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android.cc | 54 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/ |
D | classic_device.cc | 42 ASSERT(addr.has_value()); in GetAddress()
|
/system/chre/core/include/chre/core/ |
D | sensor_request_manager.h | 239 CHRE_ASSERT(!mSensor.has_value()); in setSensor() 247 return mSensor.has_value(); in isSensorSupported()
|