Home
last modified time | relevance | path

Searched refs:Optional (Results 1 – 15 of 15) sorted by relevance

/system/chre/util/include/chre/util/
Doptional_impl.h25 Optional<ObjectType>::Optional() {} in Optional() function
28 Optional<ObjectType>::Optional(const ObjectType& object) in Optional() function
32 Optional<ObjectType>::Optional(ObjectType&& object) in Optional() function
36 bool Optional<ObjectType>::has_value() const { in has_value()
41 void Optional<ObjectType>::reset() { in reset()
47 Optional<ObjectType>& Optional<ObjectType>::operator=(ObjectType&& other) {
54 Optional<ObjectType>& Optional<ObjectType>::operator=(
55 Optional<ObjectType>&& other) {
63 Optional<ObjectType>& Optional<ObjectType>::operator=(const ObjectType& other) {
70 Optional<ObjectType>& Optional<ObjectType>::operator=(
[all …]
Doptional.h27 class Optional {
32 Optional();
39 Optional(const ObjectType& object);
46 Optional(ObjectType&& object);
67 Optional<ObjectType>& operator=(ObjectType&& other);
76 Optional<ObjectType>& operator=(Optional<ObjectType>&& other);
85 Optional<ObjectType>& operator=(const ObjectType& other);
93 Optional<ObjectType>& operator=(const Optional<ObjectType>& other);
/system/chre/util/tests/
Doptional_test.cc21 using chre::Optional;
23 TEST(Optional, NoValueByDefault) { in TEST() argument
24 Optional<int> myInt; in TEST()
28 TEST(Optional, NonDefaultValueByDefault) { in TEST() argument
29 Optional<int> myInt(0x1337); in TEST()
34 TEST(Optional, NonDefaultMovedValueByDefault) { in TEST() argument
35 Optional<int> myInt(std::move(0x1337)); in TEST()
40 TEST(Optional, CopyAssignAndRead) { in TEST() argument
41 Optional<int> myInt; in TEST()
50 TEST(Optional, MoveAssignAndRead) { in TEST() argument
[all …]
/system/nvram/messages/include/nvram/messages/
Doptional.h24 template <typename ValueType> class Optional {
26 Optional() = default;
27 explicit Optional(ValueType value) : value_(value), valid_(true) {} in Optional() function
Dproto.hpp226 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/extras/cppreopts/
Dcppreopts.rc18 # Optional script to copy additional preloaded content to data directory
26 # Optional script to copy additional preloaded content to data directory
/system/chre/core/include/chre/core/
Dsensor.h102 Optional<PlatformSensor> mPlatformSensor;
Dwifi_request_manager.h154 Optional<uint32_t> mScanRequestingNanoappInstanceId;
/system/nvram/core/
Dnvram_manager.cpp282 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/
Dpersistence.h86 Optional<uint32_t> provisional_index;
Dnvram_manager.h136 nvram_result_t WriteHeader(Optional<uint32_t> provisional_index);
/system/extras/app-launcher/
DREADME15 -v : Optional, Verbose mode, prints stats on a lot of metrics.
42 (b) (Optional) Add code to get the /system block device pathname. This is
/system/bt/
DREADME.md96 until "Optional: Building inside Eclipse" section (don't do that section, we
/system/update_engine/
Dupdate_metadata.proto189 // Optional SHA 256 hash of the blob associated with this operation.
/system/core/rootdir/
Dinit.rc262 # Mount fstab in init.{$device}.rc by mount_all command. Optional parameter