/system/core/libutils/include/utils/ |
D | String8.h | 75 void setTo(const String8& other); 76 status_t setTo(const char* other); 77 status_t setTo(const char* other, size_t numChars); 78 status_t setTo(const char16_t* other, size_t numChars); 79 status_t setTo(const char32_t* other, 82 status_t append(const String8& other); 83 status_t append(const char* other); 84 status_t append(const char* other, size_t numChars); 90 inline String8& operator=(const String8& other); 91 inline String8& operator=(const char* other); [all …]
|
D | String16.h | 61 void setTo(const String16& other); 62 status_t setTo(const char16_t* other); 63 status_t setTo(const char16_t* other, size_t len); 64 status_t setTo(const String16& other, 68 status_t append(const String16& other); 69 status_t append(const char16_t* other, size_t len); 71 inline String16& operator=(const String16& other); 73 inline String16& operator+=(const String16& other); 74 inline String16 operator+(const String16& other) const; 91 inline int compare(const String16& other) const; [all …]
|
D | StrongPointer.h | 57 static inline sp<T> fromExisting(T* other); 64 sp(T* other); // NOLINT(implicit) 66 sp(U* other); // NOLINT(implicit) 67 sp& operator=(T* other); 69 sp& operator=(U* other); 72 sp(const sp<T>& other); 73 sp(sp<T>&& other) noexcept; 75 template<typename U> sp(const sp<U>& other); // NOLINT(implicit) 76 template<typename U> sp(sp<U>&& other); // NOLINT(implicit) 82 static inline sp<T> cast(const sp<U>& other); [all …]
|
D | RefBase.h | 412 static inline wp<T> fromExisting(T* other); 418 wp(T* other); // NOLINT(implicit) 420 wp(U* other); // NOLINT(implicit) 421 wp& operator=(T* other); 423 wp& operator=(U* other); 426 wp(const wp<T>& other); 427 explicit wp(const sp<T>& other); 429 template<typename U> wp(const sp<U>& other); // NOLINT(implicit) 430 template<typename U> wp(const wp<U>& other); // NOLINT(implicit) 436 wp& operator = (const wp<T>& other); [all …]
|
/system/libvintf/include/vintf/ |
D | Version.h | 38 inline bool operator==(const Version &other) const { 39 return majorVer == other.majorVer && minorVer == other.minorVer; 41 inline bool operator!=(const Version &other) const { 42 return !((*this) == other); 44 inline bool operator<(const Version &other) const { 45 if (majorVer < other.majorVer) 47 if (majorVer > other.majorVer) 49 return minorVer < other.minorVer; 51 inline bool operator>(const Version &other) const { 52 return other < (*this); [all …]
|
D | VersionRange.h | 41 inline bool operator==(const VersionRange &other) const { 42 return majorVer == other.majorVer 43 && minMinor == other.minMinor 44 && maxMinor == other.maxMinor; 47 inline bool operator!=(const VersionRange& other) const { return !(*this == other); } 66 inline bool overlaps(const VersionRange& other) const { in overlaps() 67 return majorVer == other.majorVer && minMinor <= other.maxMinor && in overlaps() 68 other.minMinor <= maxMinor; in overlaps()
|
/system/bt/service/common/bluetooth/ |
D | service.cc | 20 Service::Service(const Service& other) { in Service() argument 21 handle_ = other.handle_; in Service() 22 primary_ = other.primary_; in Service() 23 uuid_ = other.uuid_; in Service() 24 characteristics_ = other.characteristics_; in Service() 25 included_services_ = other.included_services_; in Service() 28 Service& Service::operator=(const Service& other) { in operator =() argument 29 if (*this == other) return *this; in operator =() 31 handle_ = other.handle_; in operator =() 32 primary_ = other.primary_; in operator =() [all …]
|
D | characteristic.cc | 20 Characteristic::Characteristic(const Characteristic& other) { in Characteristic() argument 21 handle_ = other.handle_; in Characteristic() 22 uuid_ = other.uuid_; in Characteristic() 23 properties_ = other.properties_; in Characteristic() 24 permissions_ = other.permissions_; in Characteristic() 25 descriptors_ = other.descriptors_; in Characteristic() 28 Characteristic& Characteristic::operator=(const Characteristic& other) { in operator =() argument 29 if (*this == other) return *this; in operator =() 31 handle_ = other.handle_; in operator =() 32 uuid_ = other.uuid_; in operator =() [all …]
|
D | descriptor.cc | 20 Descriptor::Descriptor(const Descriptor& other) { in Descriptor() argument 21 handle_ = other.handle_; in Descriptor() 22 uuid_ = other.uuid_; in Descriptor() 23 permissions_ = other.permissions_; in Descriptor() 26 Descriptor& Descriptor::operator=(const Descriptor& other) { in operator =() argument 27 if (*this == other) return *this; in operator =() 29 handle_ = other.handle_; in operator =() 30 uuid_ = other.uuid_; in operator =() 31 permissions_ = other.permissions_; in operator =() 36 bool Descriptor::Equals(const Descriptor& other) const { in Equals() [all …]
|
D | scan_filter.cc | 23 ScanFilter::ScanFilter(const ScanFilter& other) { in ScanFilter() argument 24 device_name_ = other.device_name_; in ScanFilter() 25 device_address_ = other.device_address_; in ScanFilter() 27 if (other.service_uuid_) service_uuid_.reset(new Uuid(*other.service_uuid_)); in ScanFilter() 29 if (other.service_uuid_mask_) in ScanFilter() 30 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in ScanFilter() 33 ScanFilter& ScanFilter::operator=(const ScanFilter& other) { in operator =() argument 34 device_name_ = other.device_name_; in operator =() 35 device_address_ = other.device_address_; in operator =() 37 if (other.service_uuid_) in operator =() [all …]
|
/system/libvintf/ |
D | XmlFile.cpp | 22 bool MatrixXmlFile::operator==(const MatrixXmlFile& other) const { in operator ==() 23 return name() == other.name() && overriddenPath() == other.overriddenPath() && in operator ==() 24 optional() == other.optional() && format() == other.format() && in operator ==() 25 versionRange() == other.versionRange(); in operator ==() 28 bool ManifestXmlFile::operator==(const ManifestXmlFile& other) const { in operator ==() 29 return name() == other.name() && overriddenPath() == other.overriddenPath() && in operator ==() 30 version() == other.version(); in operator ==()
|
D | SystemSdk.cpp | 24 SystemSdk SystemSdk::removeVersions(const SystemSdk& other) const { in removeVersions() 26 std::set_difference(versions().begin(), versions().end(), other.versions().begin(), in removeVersions() 27 other.versions().end(), std::inserter(ret.mVersions, ret.mVersions.end())); in removeVersions() 31 bool SystemSdk::operator==(const SystemSdk& other) const { in operator ==() 32 return versions() == other.versions(); in operator ==() 35 void SystemSdk::addAll(SystemSdk* other) { in addAll() argument 36 mVersions.insert(other->mVersions.begin(), other->mVersions.end()); in addAll() 37 other->mVersions.clear(); in addAll()
|
/system/bt/gd/storage/ |
D | adapter_config.h | 33 AdapterConfig(AdapterConfig&& other) noexcept = default; 34 AdapterConfig& operator=(AdapterConfig&& other) noexcept = default; 37 AdapterConfig(const AdapterConfig& other) noexcept = default; 38 AdapterConfig& operator=(const AdapterConfig& other) noexcept = default; 41 bool operator==(const AdapterConfig& other) const { 42 …return config_ == other.config_ && memory_only_config_ == other.memory_only_config_ && section_ ==… 44 bool operator!=(const AdapterConfig& other) const { 45 return !(*this == other); 47 bool operator<(const AdapterConfig& other) const { 48 …return config_ < other.config_ && memory_only_config_ < other.memory_only_config_ && section_ < ot…
|
D | le_device.h | 36 LeDevice(LeDevice&& other) noexcept = default; 37 LeDevice& operator=(LeDevice&& other) noexcept = default; 40 LeDevice(const LeDevice& other) noexcept = default; 41 LeDevice& operator=(const LeDevice& other) noexcept = default; 44 bool operator==(const LeDevice& other) const { 45 …return config_ == other.config_ && memory_only_config_ == other.memory_only_config_ && section_ ==… 47 bool operator!=(const LeDevice& other) const { 48 return !(*this == other); 50 bool operator<(const LeDevice& other) const { 51 …return config_ < other.config_ && memory_only_config_ < other.memory_only_config_ && section_ < ot…
|
D | classic_device.h | 37 ClassicDevice(ClassicDevice&& other) noexcept = default; 38 ClassicDevice& operator=(ClassicDevice&& other) noexcept = default; 41 ClassicDevice(const ClassicDevice& other) noexcept = default; 42 ClassicDevice& operator=(const ClassicDevice& other) noexcept = default; 45 bool operator==(const ClassicDevice& other) const { 46 …return config_ == other.config_ && memory_only_config_ == other.memory_only_config_ && section_ ==… 48 bool operator!=(const ClassicDevice& other) const { 49 return !(*this == other); 51 bool operator<(const ClassicDevice& other) const { 52 …return config_ < other.config_ && memory_only_config_ < other.memory_only_config_ && section_ < ot…
|
/system/core/libutils/ |
D | FileMap.cpp | 65 FileMap::FileMap(FileMap&& other) noexcept in FileMap() argument 66 : mFileName(other.mFileName), in FileMap() 67 mBasePtr(other.mBasePtr), in FileMap() 68 mBaseLength(other.mBaseLength), in FileMap() 69 mDataOffset(other.mDataOffset), in FileMap() 70 mDataPtr(other.mDataPtr), in FileMap() 71 mDataLength(other.mDataLength) in FileMap() 74 mFileHandle(other.mFileHandle), in FileMap() 75 mFileMapping(other.mFileMapping) in FileMap() 78 other.mFileName = nullptr; in FileMap() [all …]
|
/system/libhidl/base/ |
D | HidlSupport.cpp | 52 hidl_handle::hidl_handle(const hidl_handle& other) : hidl_handle() { in hidl_handle() argument 54 *this = other; in hidl_handle() 58 hidl_handle::hidl_handle(hidl_handle&& other) noexcept : hidl_handle() { in hidl_handle() argument 60 *this = std::move(other); in hidl_handle() 64 hidl_handle &hidl_handle::operator=(const hidl_handle &other) { in operator =() argument 65 if (this == &other) { in operator =() 69 if (other.mHandle != nullptr) { in operator =() 70 mHandle = native_handle_clone(other.mHandle); in operator =() 89 hidl_handle& hidl_handle::operator=(hidl_handle&& other) noexcept { in operator =() argument 90 if (this != &other) { in operator =() [all …]
|
/system/iorap/src/common/ |
D | expected.h | 114 expected_data(expected_data&& other) 116 noexcept(T(std::move(other.right_))) && 117 noexcept(E(std::move(other.error_))) 119 DCHECK_UB_NOT_NULL(&other) << __PRETTY_FUNCTION__; 120 DCHECK_EQ(other.moved_from_, false) << __PRETTY_FUNCTION__; 121 if (other.is_right_) { 122 new (&right_) T(std::move(other.right_)); 124 new (&error_) E(std::move(other.error_)); 126 other.moved_from_ = true; 127 is_right_ = other.is_right_; [all …]
|
/system/chre/core/ |
D | sensor.cc | 25 Sensor::Sensor(Sensor &&other) in Sensor() argument 26 : PlatformSensor(std::move(other)), mFlushRequestPending(false) { in Sensor() 27 *this = std::move(other); in Sensor() 30 Sensor &Sensor::operator=(Sensor &&other) { in operator =() argument 31 PlatformSensor::operator=(std::move(other)); in operator =() 33 mSensorRequests = std::move(other.mSensorRequests); in operator =() 35 mFlushRequestTimerHandle = other.mFlushRequestTimerHandle; in operator =() 36 other.mFlushRequestTimerHandle = CHRE_TIMER_INVALID; in operator =() 38 mFlushRequestPending = other.mFlushRequestPending.load(); in operator =() 39 other.mFlushRequestPending = false; in operator =() [all …]
|
/system/chre/util/include/chre/util/ |
D | optional_impl.h | 68 Optional<ObjectType> &Optional<ObjectType>::operator=(ObjectType &&other) { 70 object() = std::move(other); 72 new (objectAddr()) ObjectType(std::move(other)); 81 Optional<ObjectType> &&other) { 83 if (other.mHasValue) { 84 object() = std::move(other.object()); 88 } else if (other.mHasValue) { 89 new (objectAddr()) ObjectType(std::move(other.object())); 92 mHasValue = other.mHasValue; 97 Optional<ObjectType> &Optional<ObjectType>::operator=(const ObjectType &other) { [all …]
|
/system/incremental_delivery/incfs/util/include/util/ |
D | map_ptr.h | 164 bool operator==(const const_iterator& other) const { return safe_ptr_ == other.safe_ptr_; } 165 bool operator!=(const const_iterator& other) const { return safe_ptr_ != other.safe_ptr_; } 166 std::ptrdiff_t operator-(const const_iterator& other) const { 167 return safe_ptr_ - other.safe_ptr_; 171 const_iterator other = *this; 172 other += n; 173 return other; 206 map_ptr(const map_ptr& other) = default; 210 map_ptr(const map_ptr<T, V2>& other) : map_ptr(other.map_, other.ptr_, other.verified_block_) {} 213 map_ptr(map_ptr&& other) noexcept = default; [all …]
|
/system/chre/apps/wifi_offload/ |
D | scan_stats.cc | 30 bool ScanStats::operator==(const ScanStats &other) const { in operator ==() 31 if (this == &other) { in operator ==() 35 other.num_scans_requested_by_nanoapp_ && in operator ==() 37 other.num_scans_serviced_by_hardware_ && in operator ==() 38 num_scans_serviced_by_cache_ == other.num_scans_serviced_by_cache_ && in operator ==() 39 updated_at_chre_ms_ == other.updated_at_chre_ms_ && in operator ==() 40 sent_at_chre_ms_ == other.sent_at_chre_ms_ && in operator ==() 42 other.last_subscription_duration_ms_ && in operator ==() 43 channel_histogram_ == other.channel_histogram_ && in operator ==() 44 scan_records_ == other.scan_records_ && in operator ==() [all …]
|
D | scan_result.cc | 50 ScanResult::ScanResult(const ScanResult &other) in ScanResult() argument 51 : ssid_(other.ssid_), in ScanResult() 52 security_modes_(other.security_modes_), in ScanResult() 53 capability_(other.capability_), in ScanResult() 54 frequency_scanned_mhz_(other.frequency_scanned_mhz_), in ScanResult() 55 rssi_dbm_(other.rssi_dbm_), in ScanResult() 56 tsf_(other.tsf_) { in ScanResult() 57 std::memcpy(bssid_, other.bssid_, sizeof(bssid_)); in ScanResult() 64 bool ScanResult::operator==(const ScanResult &other) const { in operator ==() 65 if (this == &other) { in operator ==() [all …]
|
/system/iorap/include/binder/ |
D | job_scheduled_event.h | 44 constexpr bool operator==(const JobScheduledEvent& other) const { 45 return type == other.type 46 && job_id == other.job_id 47 && sort == other.sort 48 && package_name == other.package_name 49 && should_update_versions == other.should_update_versions; 52 constexpr bool operator!=(const JobScheduledEvent& other) const { 53 return !(*this == other);
|
/system/core/fs_mgr/libdm/ |
D | test_util.h | 43 TempDevice(TempDevice&& other) noexcept in TempDevice() argument 44 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice() 45 other.valid_ = false; in TempDevice() 66 TempDevice& operator=(TempDevice&& other) noexcept { 67 name_ = other.name_; 68 valid_ = other.valid_; 69 other.valid_ = false;
|