/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | res_config_impl_test.cpp | 70 ResConfigImpl *other = CreateResConfigImpl(nullptr, nullptr, nullptr); variable 72 EXPECT_TRUE(current->Match(other)); 74 delete other; 84 ResConfigImpl *other = CreateResConfigImpl("en", nullptr, "CA"); variable 86 EXPECT_FALSE(current->Match(other)); 88 delete other; 98 ResConfigImpl *other = CreateResConfigImpl("tl", nullptr, "PH"); variable 100 EXPECT_TRUE(current->Match(other)); 102 delete other; 112 ResConfigImpl *other = CreateResConfigImpl("qaa", nullptr, nullptr); variable [all …]
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | res_config_impl_test.cpp | 70 ResConfigImpl *other = CreateResConfigImpl(nullptr, nullptr, nullptr); variable 72 EXPECT_TRUE(current->Match(other)); 74 delete other; 84 ResConfigImpl *other = CreateResConfigImpl("en", nullptr, "CA"); variable 86 EXPECT_FALSE(current->Match(other)); 88 delete other; 98 ResConfigImpl *other = CreateResConfigImpl("tl", nullptr, "PH"); variable 100 EXPECT_TRUE(current->Match(other)); 102 delete other; 112 ResConfigImpl *other = CreateResConfigImpl("qaa", nullptr, nullptr); variable [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | res_config_impl.cpp | 117 bool ResConfigImpl::CopyLocale(ResConfig &other) in CopyLocale() argument 120 if (this->GetLocaleInfo() == nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale() 123 if (this->GetLocaleInfo() != nullptr && other.GetLocaleInfo() == nullptr) { in CopyLocale() 130 if (this->GetResLocale() != nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale() 135 other.GetLocaleInfo()->GetLanguage(), in CopyLocale() 136 other.GetLocaleInfo()->GetScript(), other.GetLocaleInfo()->GetRegion()); in CopyLocale() 146 RState rs = temp->CopyFromLocaleInfo(other.GetLocaleInfo()); in CopyLocale() 151 LocaleInfo *tempLocale = new(std::nothrow) LocaleInfo(*other.GetLocaleInfo()); in CopyLocale() 164 bool ResConfigImpl::Copy(ResConfig &other) in Copy() argument 166 bool isSuccess = this->CopyLocale(other); in Copy() [all …]
|
D | locale_matcher.cpp | 239 const ResLocale *other, in CompareRegionWhenQaag() argument 248 …if ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) … in CompareRegionWhenQaag() 266 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage() argument 271 other); in CompareLanguage() 296 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() argument 306 if ((other != nullptr) && (other->GetScript() == nullptr)) { in CompareScript() 307 otherEncodedScript = FindDefaultScriptEncode(other->GetLanguage(), in CompareScript() 308 other->GetRegion()); in CompareScript() 310 otherEncodedScript = Utils::EncodeScriptByResLocale(other); in CompareScript() 312 if (current != nullptr && other != nullptr) { in CompareScript() [all …]
|
/base/global/resource_management/frameworks/resmgr/src/ |
D | res_config_impl.cpp | 206 bool ResConfigImpl::CopyLocale(ResConfig &other) in CopyLocale() argument 210 if (this->GetLocaleInfo() == nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale() 213 if (this->GetLocaleInfo() != nullptr && other.GetLocaleInfo() == nullptr) { in CopyLocale() 220 if (this->GetResLocale() != nullptr && other.GetLocaleInfo() != nullptr) { in CopyLocale() 225 other.GetLocaleInfo()->getLanguage(), in CopyLocale() 226 other.GetLocaleInfo()->getScript(), other.GetLocaleInfo()->getCountry()); in CopyLocale() 236 RState rs = temp->CopyFromLocaleInfo(other.GetLocaleInfo()); in CopyLocale() 242 Locale tempLocale = icu::LocaleBuilder().setLocale(*other.GetLocaleInfo()).build(errCode); in CopyLocale() 258 bool ResConfigImpl::Copy(ResConfig &other) in Copy() argument 260 bool isSuccess = this->CopyLocale(other); in Copy() [all …]
|
D | locale_matcher.cpp | 239 const ResLocale *other, in CompareRegionWhenQaag() argument 248 …if ((other != nullptr) && (Utils::EncodeLocale(other->GetLanguage(), nullptr, other->GetRegion()) … in CompareRegionWhenQaag() 266 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage() argument 271 other); in CompareLanguage() 295 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() argument 305 if ((other != nullptr) && (other->GetScript() == nullptr)) { in CompareScript() 306 otherEncodedScript = FindDefaultScriptEncode(other->GetLanguage(), in CompareScript() 307 other->GetRegion()); in CompareScript() 309 otherEncodedScript = Utils::EncodeScriptByResLocale(other); in CompareScript() 311 if (current != nullptr && other != nullptr) { in CompareScript() [all …]
|
/base/update/updateservice/services/startup/model/include/ |
D | schedule_task.h | 39 bool operator<(const ScheduleTask &other) const 41 if (minDelayTime != other.minDelayTime) { 43 return minDelayTime < other.minDelayTime; 47 return maxDelayTime < other.maxDelayTime; 50 bool operator==(const ScheduleTask &other) const 52 return priority == other.priority && minDelayTime == other.minDelayTime && 53 maxDelayTime == other.maxDelayTime && netType == other.netType && 54 batteryLevel == other.batteryLevel && deviceIdle == other.deviceIdle && 55 taskExtra == other.taskExtra;
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | digest_parameter.cpp | 35 DigestParameter::DigestParameter(const DigestParameter& other) in DigestParameter() argument 37 digestOutputSizeBytes = other.digestOutputSizeBytes; in DigestParameter() 38 md = other.md; in DigestParameter() 40 EVP_MD_CTX_copy(ptrCtx, other.ptrCtx); in DigestParameter() 43 DigestParameter& DigestParameter::operator = (const DigestParameter& other) in operator =() argument 50 digestOutputSizeBytes = other.digestOutputSizeBytes; in operator =() 51 md = other.md; in operator =() 53 EVP_MD_CTX_copy(ptrCtx, other.ptrCtx); in operator =()
|
/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
D | hap_byte_buffer.cpp | 36 HapByteBuffer::HapByteBuffer(const HapByteBuffer& other) : buffer(nullptr), position(0), limit(0), … in HapByteBuffer() argument 38 Init(other.GetCapacity()); in HapByteBuffer() 40 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in HapByteBuffer() 44 position = other.GetPosition(); in HapByteBuffer() 45 limit = other.GetLimit(); in HapByteBuffer() 67 HapByteBuffer& HapByteBuffer::operator=(const HapByteBuffer& other) in operator =() argument 69 if (&other == this) { in operator =() 74 Init(other.GetCapacity()); in operator =() 75 if (buffer != nullptr && other.GetBufferPtr() != nullptr && capacity > 0) { in operator =() 76 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in operator =() [all …]
|
/base/update/packaging_tools/ |
D | blocks_manager.py | 44 def __eq__(self, other): argument 45 return self.range_data == other.range_data 47 def __ne__(self, other): argument 48 return self.range_data != other.range_data 101 def get_union_with_other(self, other): argument 105 range_a = self.get_subtract_with_other(other) 106 range_b = other.get_subtract_with_other(self) 107 range_c = self.get_intersect_with_other(other) 118 def get_intersect_with_other(self, other): argument 123 other.range_data), [] [all …]
|
/base/telephony/core_service/frameworks/native/src/ |
D | cell_information.cpp | 149 bool GsmCellInformation::operator==(const GsmCellInformation &other) const in operator ==() 151 return mcc_ == other.mcc_ && mnc_ == other.mnc_ && in operator ==() 152 arfcn_ == other.arfcn_ && cellId_ == other.cellId_ && in operator ==() 153 bsic_ == other.bsic_ && lac_ == other.lac_ && in operator ==() 154 signalLevel_ == other.signalLevel_ && in operator ==() 155 signalIntensity_ == other.signalIntensity_ && in operator ==() 156 isCamped_ == other.isCamped_; in operator ==() 334 bool LteCellInformation::operator==(const LteCellInformation &other) const in operator ==() 336 return mcc_ == other.mcc_ && mnc_ == other.mnc_ && in operator ==() 337 earfcn_ == other.earfcn_ && cellId_ == other.cellId_ && in operator ==() [all …]
|
D | network_state.cpp | 132 bool NetworkState::operator==(const NetworkState &other) const in operator ==() 134 …return isEmergency_ == other.isEmergency_ && csRoaming_ == other.csRoaming_ && psRoaming_ == other… in operator ==() 135 psRegStatus_ == other.psRegStatus_ && csRegStatus_ == other.csRegStatus_ && in operator ==() 136 psRadioTech_ == other.psRadioTech_ && csRadioTech_ == other.csRadioTech_ && in operator ==() 137 cfgTech_ == other.cfgTech_ && nrState_ == other.nrState_ && in operator ==() 138 psOperatorInfo_.operatorNumeric == other.psOperatorInfo_.operatorNumeric && in operator ==() 139 psOperatorInfo_.fullName == other.psOperatorInfo_.fullName && in operator ==() 140 psOperatorInfo_.shortName == other.psOperatorInfo_.shortName && in operator ==() 141 csOperatorInfo_.operatorNumeric == other.csOperatorInfo_.operatorNumeric && in operator ==() 142 csOperatorInfo_.fullName == other.csOperatorInfo_.fullName && in operator ==() [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | res_config_impl.h | 38 bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request) const; 89 bool Match(const ResConfigImpl *other) const; 96 bool Copy(ResConfig &other); 112 bool IsMoreSpecificThan(const ResConfigImpl *other) const; 114 bool CopyLocale(ResConfig &other);
|
/base/useriam/pin_auth/common/utils/ |
D | iam_ptr.h | 27 static inline std::shared_ptr<T> SptrToStdSharedPtr(sptr<T> &other) in SptrToStdSharedPtr() argument 29 return std::shared_ptr<T>(other.GetRefPtr(), [other](T *) mutable { other = nullptr; }); in SptrToStdSharedPtr()
|
/base/useriam/fingerprint_auth/common/utils/ |
D | iam_ptr.h | 27 static inline std::shared_ptr<T> SptrToStdSharedPtr(sptr<T> &other) in SptrToStdSharedPtr() argument 29 return std::shared_ptr<T>(other.GetRefPtr(), [other](T *) mutable { other = nullptr; }); in SptrToStdSharedPtr()
|
/base/useriam/face_auth/common/utils/ |
D | iam_ptr.h | 27 static inline std::shared_ptr<T> SptrToStdSharedPtr(sptr<T> &other) in SptrToStdSharedPtr() argument 29 return std::shared_ptr<T>(other.GetRefPtr(), [other](T *) mutable { other = nullptr; }); in SptrToStdSharedPtr()
|
/base/useriam/user_auth_framework/common/utils/ |
D | iam_ptr.h | 27 static inline std::shared_ptr<T> SptrToStdSharedPtr(sptr<T> &other) in SptrToStdSharedPtr() argument 29 return std::shared_ptr<T>(other.GetRefPtr(), [other](T *) mutable { other = nullptr; }); in SptrToStdSharedPtr()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification.cpp | 42 Notification::Notification(const Notification &other) in Notification() argument 44 enableSound_ = other.enableSound_; in Notification() 45 enableLight_ = other.enableLight_; in Notification() 46 enableVibration_ = other.enableVibration_; in Notification() 47 key_ = other.key_; in Notification() 48 ledLightColor_ = other.ledLightColor_; in Notification() 49 lockscreenVisibleness_ = other.lockscreenVisibleness_; in Notification() 50 remindType_ = other.remindType_; in Notification() 51 request_ = other.request_; in Notification() 52 postTime_ = other.postTime_; in Notification() [all …]
|
D | notification_request.cpp | 55 NotificationRequest::NotificationRequest(const NotificationRequest &other) in NotificationRequest() argument 57 CopyBase(other); in NotificationRequest() 58 CopyOther(other); in NotificationRequest() 61 NotificationRequest &NotificationRequest::operator=(const NotificationRequest &other) in operator =() argument 63 CopyBase(other); in operator =() 64 CopyOther(other); in operator =() 1477 void NotificationRequest::CopyBase(const NotificationRequest &other) in CopyBase() argument 1479 this->notificationId_ = other.notificationId_; in CopyBase() 1480 this->color_ = other.color_; in CopyBase() 1481 this->badgeNumber_ = other.badgeNumber_; in CopyBase() [all …]
|
/base/startup/init/services/modules/init_hook/ |
D | param_hook.c | 94 static const ParamCmdInfo other[] = { in GetOtherSpecial() local 100 *size = ARRAY_LENGTH(other); in GetOtherSpecial() 101 return other; in GetOtherSpecial()
|
/base/security/security_component_manager/frameworks/security_component/src/ |
D | save_button.cpp | 37 bool SaveButton::CompareComponentBasicInfo(SecCompBase *other, bool isRectCheck) const in CompareComponentBasicInfo() argument 39 if (!SecCompBase::CompareComponentBasicInfo(other, isRectCheck)) { in CompareComponentBasicInfo() 43 SaveButton* otherSaveButton = reinterpret_cast<SaveButton *>(other); in CompareComponentBasicInfo()
|
D | location_button.cpp | 37 bool LocationButton::CompareComponentBasicInfo(SecCompBase *other, bool isRectCheck) const in CompareComponentBasicInfo() argument 39 if (!SecCompBase::CompareComponentBasicInfo(other, isRectCheck)) { in CompareComponentBasicInfo() 43 LocationButton* otherLocationButton = reinterpret_cast<LocationButton *>(other); in CompareComponentBasicInfo()
|
D | paste_button.cpp | 37 bool PasteButton::CompareComponentBasicInfo(SecCompBase *other, bool isRectCheck) const in CompareComponentBasicInfo() argument 39 if (!SecCompBase::CompareComponentBasicInfo(other, isRectCheck)) { in CompareComponentBasicInfo() 43 PasteButton* otherPasteButton = reinterpret_cast<PasteButton *>(other); in CompareComponentBasicInfo()
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | res_config_impl.h | 40 …bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request, uint32_t density = 0… 113 bool Match(const ResConfigImpl *other) const; 120 bool Copy(ResConfig &other); 154 bool IsMoreSpecificThan(const ResConfigImpl *other, uint32_t density = 0) const; 156 bool CopyLocale(ResConfig &other);
|
/base/security/appverify/interfaces/innerkits/appverify/include/common/ |
D | hap_byte_buffer.h | 39 DLL_EXPORT HapByteBuffer(const HapByteBuffer& other); 41 DLL_EXPORT HapByteBuffer& operator=(const HapByteBuffer& other); 62 DLL_EXPORT bool CopyPartialBuffer(const HapByteBuffer& other, int32_t len); 64 DLL_EXPORT bool IsEqual(const HapByteBuffer& other); 65 DLL_EXPORT bool IsEqual(const std::string& other);
|