/system/chre/util/include/chre/util/ |
D | optional_impl.h | 28 Optional<ObjectType>::Optional(const ObjectType& object) { in Optional() function 34 Optional<ObjectType>::Optional(ObjectType&& object) { in Optional() function 40 Optional<ObjectType>::~Optional() { in ~Optional() 45 bool Optional<ObjectType>::has_value() const { in has_value() 50 void Optional<ObjectType>::reset() { in reset() 58 ObjectType& Optional<ObjectType>::value() { in value() 63 const ObjectType& Optional<ObjectType>::value() const { in value() 68 Optional<ObjectType>& Optional<ObjectType>::operator=(ObjectType&& other) { 80 Optional<ObjectType>& Optional<ObjectType>::operator=( 81 Optional<ObjectType>&& other) { [all …]
|
D | optional.h | 29 class Optional { 39 Optional() = default; 46 Optional(const Optional<ObjectType>& object) = default; 53 Optional(Optional<ObjectType>& object) = default; 60 Optional(const ObjectType& object); 67 Optional(ObjectType&& object); 73 ~Optional(); 101 Optional<ObjectType>& operator=(ObjectType&& other); 111 Optional<ObjectType>& operator=(Optional<ObjectType>&& other); 120 Optional<ObjectType>& operator=(const ObjectType& other); [all …]
|
/system/chre/util/tests/ |
D | optional_test.cc | 23 using chre::Optional; 41 TEST(Optional, ShouldDestructContainedObject) { in TEST() argument 44 Optional<DestructorTestingObject> object(DestructorTestingObject{}); in TEST() 50 TEST(Optional, NoValueByDefault) { in TEST() argument 51 Optional<int> myInt; in TEST() 55 TEST(Optional, NonDefaultValueByDefault) { in TEST() argument 56 Optional<int> myInt(0x1337); in TEST() 61 TEST(Optional, NonDefaultMovedValueByDefault) { in TEST() argument 62 Optional<int> myInt(std::move(0x1337)); in TEST() 67 TEST(Optional, CopyConstruct) { in TEST() argument [all …]
|
/system/bt/gd/storage/ |
D | config_cache_helper_test.cc | 37 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("true"))); in TEST() 38 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsTrue())); in TEST() 41 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("false"))); in TEST() 42 ASSERT_THAT(ConfigCacheHelper(config).GetBool("A", "B"), Optional(IsFalse())); in TEST() 49 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("123"))); in TEST() 50 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(uint64_t(123)))); in TEST() 55 …ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq(std::to_string(std::numeric_limits<int>::… in TEST() 56 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(num))); in TEST() 59 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("0"))); in TEST() 60 ASSERT_THAT(ConfigCacheHelper(config).GetUint64("A", "B"), Optional(Eq(0))); in TEST() [all …]
|
D | legacy_config_file_test.cc | 54 EXPECT_THAT(config_read->GetProperty("A", "B"), Optional(StrEq("C"))); in TEST() 55 …EXPECT_THAT(config_read->GetProperty("CC:DD:EE:FF:00:11", "LinkKey"), Optional(StrEq("AABBAABBCCDD… in TEST() 89 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST() 90 EXPECT_THAT(config_read->GetProperty("Info", "FileSource"), Optional(StrEq("Empty"))); in TEST() 92 …config_read->GetProperty("01:02:03:ab:cd:ea", "LinkKey"), Optional(StrEq("fedcba0987654321fedcba09… in TEST() 122 EXPECT_THAT(ReadSmallFile(temp_config.string()), Optional(StrEq(kWriteTestConfig))); in TEST() 178 …EXPECT_THAT(config_read->GetProperty(ConfigCache::kDefaultSectionName, "first_key"), Optional(StrE… in TEST() 180 EXPECT_THAT(config_read->GetProperty("DID", "primaryRecord"), Optional(StrEq("true"))); in TEST() 182 EXPECT_THAT(config_read->GetProperty("DID", "version"), Optional(StrEq("0x1436"))); in TEST()
|
D | device_test.cc | 50 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST() 57 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST() 75 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST() 82 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST() 104 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST() 118 ASSERT_THAT(device.GetName(), Optional(StrEq("hello world!"))); in TEST() 133 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 139 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::DUAL))); in TEST() 157 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::BR_EDR))); in TEST() 173 ASSERT_THAT(device.GetDeviceType(), Optional(Eq(DeviceType::LE))); in TEST() [all …]
|
D | storage_module_test.cc | 151 …operty(StorageModule::kInfoSection, StorageModule::kFileSourceProperty), Optional(StrEq("Empty"))); in TEST_F() 222 Optional(StrEq("01:02:03:ab:cd:ef"))); in TEST_F() 250 …storage->GetConfigCachePublic()->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(StrEq("hello w… in TEST_F() 252 …ASSERT_THAT(storage->GetConfigCachePublic()->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(St… in TEST_F() 256 ASSERT_THAT(config->GetProperty("01:02:03:ab:cd:ea", "name"), Optional(StrEq("foo"))); in TEST_F() 315 ASSERT_THAT(storage->GetAdapterConfig().GetAddress(), Optional(Eq(address))); in TEST_F()
|
D | config_cache_test.cc | 153 ASSERT_THAT(value, Optional(StrEq("E"))); in TEST() 232 …ASSERT_THAT(config.GetProperty(GetTestAddress(i), "Name"), Optional(StrEq("Hello" + std::to_string… in TEST() 235 …ASSERT_THAT(config.GetProperty(GetTestAddress(i), "Name"), Optional(StrEq("Hello" + std::to_string… in TEST() 286 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 293 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::BR_EDR)))); in TEST() 298 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::DUAL)))); in TEST() 303 Optional(StrEq(std::to_string(bluetooth::hci::DeviceType::LE)))); in TEST()
|
D | mutation_test.cc | 119 ASSERT_THAT(config.GetProperty("A", "B"), Optional(StrEq("C"))); in TEST() 122 ASSERT_THAT(memory_only_config.GetProperty("A", "D"), Optional(StrEq("Hello"))); in TEST()
|
D | adapter_config_test.cc | 49 ASSERT_THAT(adapter_config.GetAddress(), Optional(Eq(address))); in TEST()
|
/system/bt/gd/common/ |
D | strings_test.cc | 87 …ASSERT_THAT(FromHexString("aabbccdd1122"), Optional(ElementsAre(0xaa, 0xbb, 0xcc, 0xdd, 0x11, 0x22… in TEST() 89 ASSERT_THAT(FromHexString(""), Optional(IsEmpty())); in TEST() 91 ASSERT_THAT(FromHexString("aa"), Optional(ElementsAre(0xaa))); in TEST() 93 ASSERT_THAT(FromHexString("0605560b"), Optional(ElementsAre(0x6, 0x5, 0x56, 0xb))); in TEST() 95 ASSERT_THAT(FromHexString("AABBCC"), Optional(ElementsAre(0xaa, 0xbb, 0xcc))); in TEST() 97 ASSERT_THAT(FromHexString("aAbbCC"), Optional(ElementsAre(0xaa, 0xbb, 0xcc))); in TEST() 105 ASSERT_THAT(Int64FromString("42"), Optional(Eq(int64_t(42)))); in TEST() 106 ASSERT_THAT(Int64FromString("-42"), Optional(Eq(int64_t(-42)))); in TEST() 107 ASSERT_THAT(Int64FromString("0"), Optional(Eq(int64_t(0)))); in TEST() 118 ASSERT_THAT(Int64FromString("2147483648"), Optional(Eq(int64_t(2147483648)))); in TEST() [all …]
|
/system/bt/btif/test/ |
D | btif_config_cache_test.cc | 174 Optional(StrEq("Headset_1"))); in TEST() 179 Optional(Eq(65536))); in TEST() 184 Optional(Eq(uint64_t(4294967296)))); in TEST() 189 Optional(IsTrue())); in TEST() 195 Optional(StrEq(""))); in TEST() 207 Optional(StrEq("Headset_1"))); in TEST() 212 Optional(Eq(65536))); in TEST() 217 Optional(Eq(uint64_t(4294967296)))); in TEST() 222 Optional(IsTrue())); in TEST() 235 Optional(StrEq(""))); in TEST() [all …]
|
/system/bt/gd/os/linux_generic/ |
D | files_test.cc | 46 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST() 50 EXPECT_THAT(ReadSmallFile(to_file.string()), Optional(StrEq(text))); in TEST() 60 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST() 69 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST() 72 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST() 81 EXPECT_THAT(ReadSmallFile(temp_file.string()), Optional(StrEq(text))); in TEST()
|
/system/nvram/messages/include/nvram/messages/ |
D | optional.h | 24 template <typename ValueType> class Optional { 26 Optional() = default; 27 explicit Optional(ValueType value) : value_(value), valid_(true) {} in Optional() function
|
D | proto.hpp | 226 struct Codec<Optional<ValueType>> { 230 static bool Encode(const Optional<ValueType>& value, ProtoWriter* writer) { in Encode() 234 static bool Decode(Optional<ValueType>& value, ProtoReader* reader) { in Decode()
|
/system/apex/tests/src/com/android/tests/apex/ |
D | TimezoneDataHostTest.java | 35 import java.util.Optional; 87 Optional<DebugEntryProto> matchingEntry = in assertEntryValue()
|
/system/bt/common/ |
D | lru_unittest.cc | 49 EXPECT_THAT(cache.Put(4, 40), Optional(Pair(1, 10))); in TEST() 59 EXPECT_THAT(cache.Put(5, 50), Optional(Pair(4, 40))); in TEST() 82 EXPECT_THAT(cache.Put(3, 30), Optional(Pair(1, 10))); in TEST() 93 EXPECT_THAT(cache.Put(4, 40), Optional(Pair(2, 200))); in TEST()
|
/system/chre/core/include/chre/core/ |
D | wwan_request_manager.h | 85 Optional<uint32_t> mCellInfoRequestingNanoappInstanceId;
|
/system/bt/gd/l2cap/classic/ |
D | facade.proto | 10 // Testing Android Bluetooth stack only. Optional for other stack. 13 // Testing Android Bluetooth stack only. Optional for other stack.
|
/system/extras/cppreopts/ |
D | cppreopts.rc | 29 # Optional script to copy additional preloaded content to data directory 37 # Optional script to copy additional preloaded content to data directory
|
/system/chre/pal/tests/include/ |
D | wifi_pal_impl_test.h | 83 chre::Optional<chreWifiScanParams> scanParams_;
|
/system/chre/apps/chqts/src/general_test/ |
D | basic_wifi_test.h | 136 chre::Optional<chreAsyncRequest> mCurrentWifiRequest;
|
/system/nvram/core/ |
D | nvram_manager.cpp | 282 if ((result = WriteHeader(Optional<uint32_t>(index))) != NV_RESULT_SUCCESS || in CreateSpace() 349 result = WriteHeader(Optional<uint32_t>(index)); in DeleteSpace() 386 nvram_result_t result = WriteHeader(Optional<uint32_t>()); in DisableCreate() 571 return WriteHeader(Optional<uint32_t>()); in WipeStorage() 677 const Optional<uint32_t>& provisional_index = header.provisional_index; in Initialize() 769 WriteHeader(Optional<uint32_t>()); in Initialize() 818 nvram_result_t NvramManager::WriteHeader(Optional<uint32_t> provisional_index) { in WriteHeader()
|
/system/nvram/core/include/nvram/core/ |
D | persistence.h | 86 Optional<uint32_t> provisional_index;
|
/system/extras/app-launcher/ |
D | README | 24 -v:Optional, Verbose mode, prints stats on a lot of metrics. 25 -s <serial number>:Optional, specify serial number if multiple devices are 53 (b) (Optional) Add code to get the /system block device pathname. This is
|