Home
last modified time | relevance | path

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

/system/chre/util/include/chre/util/
Doptional_impl.h28 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 …]
Doptional.h29 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/
Doptional_test.cc23 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/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/apex/tests/src/com/android/tests/apex/
DTimezoneDataHostTest.java37 import java.util.Optional;
97 Optional<DebugEntryProto> matchingEntry = in assertEntryValue()
/system/chre/core/include/chre/core/
Dwwan_request_manager.h85 Optional<uint32_t> mCellInfoRequestingNanoappInstanceId;
Dwifi_request_manager.h202 Optional<uint32_t> mScanRequestingNanoappInstanceId;
Dsensor_request_manager.h361 Optional<Sensor> mSensor;
/system/extras/cppreopts/
Dcppreopts.rc29 # Optional script to copy additional preloaded content to data directory
37 # Optional script to copy additional preloaded content to data directory
/system/chre/apps/chqts/src/general_test/
Dbasic_wifi_test.h136 chre::Optional<chreAsyncRequest> mCurrentWifiRequest;
/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/chre/platform/slpi/include/chre/platform/slpi/see/
Dsee_cal_helper.h136 Optional<sns_std_suid> suid;
Dsee_helper.h382 Optional<sns_std_suid> mRemoteProcSuid;
385 Optional<sns_std_suid> mResamplerSuid;
/system/extras/app-launcher/
DREADME24 -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
/system/bt/
DREADME.md94 until "Optional: Building inside Eclipse" section (don't do that section, we
/system/extras/partition_tools/
DREADME.md17 Optional arguments:
/system/update_engine/
Dupdate_metadata.proto206 // Optional SHA 256 hash of the blob associated with this operation.
/system/update_engine/update_engine/
Dupdate_metadata.proto206 // Optional SHA 256 hash of the blob associated with this operation.
/system/chre/platform/slpi/see/
Dsee_helper.cc118 Optional<sns_std_suid> *remoteProcSuid;
/system/core/rootdir/
Dinit.rc318 # Mount fstab in init.{$device}.rc by mount_all command. Optional parameter