/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/btm/ |
D | btm_wl.c | 46 BtmWhiteListEntity *entity = MEM_MALLOC.alloc(sizeof(BtmWhiteListEntity)); in BtmAllocWhiteListEntity() local 47 if (entity != NULL) { in BtmAllocWhiteListEntity() 48 entity->addressType = addressType; in BtmAllocWhiteListEntity() 49 entity->address = *address; in BtmAllocWhiteListEntity() 51 return entity; in BtmAllocWhiteListEntity() 54 static void BtmFreeWhiteListEntity(void *entity) in BtmFreeWhiteListEntity() argument 56 MEM_MALLOC.free(entity); in BtmFreeWhiteListEntity() 61 BtmWhiteListEntity *entity = NULL; in BtmFindWhiteListEntityByType() local 65 entity = ListGetNodeData(node); in BtmFindWhiteListEntityByType() 66 if (entity->addressType == addressType) { in BtmFindWhiteListEntityByType() [all …]
|
D | btm_inq_db.c | 34 BtmInquiryDBEntity *entity = MEM_MALLOC.alloc(sizeof(BtmInquiryDBEntity)); in BtmAllocInquiryDBEntity() local 35 if (entity != NULL) { in BtmAllocInquiryDBEntity() 36 entity->addr = *addr; in BtmAllocInquiryDBEntity() 37 entity->inquiryInfo = *info; in BtmAllocInquiryDBEntity() 39 return entity; in BtmAllocInquiryDBEntity() 42 static void BtmFreeInquiryDBEntiry(void *entity) in BtmFreeInquiryDBEntiry() argument 44 MEM_MALLOC.free(entity); in BtmFreeInquiryDBEntiry() 63 BtmInquiryDBEntity *entity = NULL; in BtmFindInquiryEntiryByAddress() local 66 entity = ListGetNodeData(node); in BtmFindInquiryEntiryByAddress() 67 if (entity != NULL) { in BtmFindInquiryEntiryByAddress() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/hci/acl/ |
D | hci_acl.c | 137 HciTxPackets *entity = MEM_CALLOC.alloc(sizeof(HciTxPackets)); in AllocTxPacketsEntity() local 138 if (entity != NULL) { in AllocTxPacketsEntity() 139 entity->connectionHandle = connectionHandle; in AllocTxPacketsEntity() 141 return entity; in AllocTxPacketsEntity() 237 HciTxPackets *entity = NULL; in FindTxPacketsEntityByConnectionHandle() local 240 entity = (HciTxPackets *)ListGetNodeData(node); in FindTxPacketsEntityByConnectionHandle() 241 if (entity->connectionHandle == connectionHandle) { in FindTxPacketsEntityByConnectionHandle() 244 entity = NULL; in FindTxPacketsEntityByConnectionHandle() 248 return entity; in FindTxPacketsEntityByConnectionHandle() 253 HciTxPackets *entity = NULL; in FindLeTxPacketsEntityByConnectionHandle() local [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/wantConstant/ |
D | want_constant.cpp | 38 napi_value entity = nullptr; in WantConstantInit() local 41 napi_create_object(env, &entity); in WantConstantInit() 71 SetNamedProperty(env, entity, "entity.system.default", "ENTITY_DEFAULT"); in WantConstantInit() 72 SetNamedProperty(env, entity, "entity.system.home", "ENTITY_HOME"); in WantConstantInit() 73 SetNamedProperty(env, entity, "entity.system.voice", "ENTITY_VOICE"); in WantConstantInit() 74 SetNamedProperty(env, entity, "entity.system.browsable", "ENTITY_BROWSABLE"); in WantConstantInit() 75 SetNamedProperty(env, entity, "entity.system.video", "ENTITY_VIDEO"); in WantConstantInit() 96 DECLARE_NAPI_PROPERTY("Entity", entity), in WantConstantInit()
|
/foundation/graphic/standard/interfaces/kits/napi/graphic/webgl/src/common/napi/ |
D | n_class.h | 59 …template<class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument 64 entity.get(), in SetEntityFor() 66 auto entity = static_cast<T *>(data); in SetEntityFor() 67 delete entity; in SetEntityFor() 71 entity.release(); in SetEntityFor()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
D | n_class.h | 59 …emplate <class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument 64 entity.get(), in SetEntityFor() 66 auto entity = static_cast<T *>(data); in SetEntityFor() 67 delete entity; in SetEntityFor() 71 entity.release(); in SetEntityFor()
|
/foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn/include/ |
D | n_class.h | 59 …emplate <class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument 62 env, obj, entity.get(), in SetEntityFor() 64 auto entity = static_cast<T *>(data); in SetEntityFor() 65 delete entity; in SetEntityFor() 68 entity.release(); in SetEntityFor()
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/napi/common/napi/ |
D | n_class.h | 57 …template<class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument 62 entity.get(), in SetEntityFor() 64 auto entity = static_cast<T *>(data); in SetEntityFor() 65 delete entity; in SetEntityFor() 69 entity.release(); in SetEntityFor()
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/common/napi/ |
D | n_class.h | 55 …emplate <class T> static bool SetEntityFor(napi_env env, napi_value obj, std::unique_ptr<T> entity) in SetEntityFor() argument 60 entity.get(), in SetEntityFor() 62 auto entity = static_cast<T *>(data); in SetEntityFor() 63 delete entity; in SetEntityFor() 67 entity.release(); in SetEntityFor()
|
/foundation/aafwk/aafwk_lite/frameworks/want_lite/src/ |
D | want.cpp | 95 void *entity = nullptr; in EncapTlv() local 99 entity = calloc(1, totalLen); in EncapTlv() 100 if (entity == nullptr) { in EncapTlv() 104 if (memcpy_s((unsigned char *)entity, 1, &type, 1) != 0 || in EncapTlv() 105 memcpy_s((unsigned char *)entity + 1, 1, &length, 1) != 0 || in EncapTlv() 106 memcpy_s((unsigned char *)entity + 2, valueLen, value, valueLen) != 0) { in EncapTlv() 107 AdapterFree(entity); in EncapTlv() 113 newTlv->entity = entity; in EncapTlv() 120 AdapterFree(tlv->entity); in FreeTlvStruct() 131 …if (memcpy_s((unsigned char *)newTlvValue, keyTlv->totalLen, keyTlv->entity, keyTlv->totalLen) != … in CombineKeyValueTlv() [all …]
|
/foundation/aafwk/standard/frameworks/kits/content/cpp/src/ohos/aafwk/content/ |
D | operation.cpp | 101 void Operation::AddEntity(const std::string &entity) in AddEntity() argument 103 if (!HasEntity(entity)) { in AddEntity() 104 entities_.emplace_back(entity); in AddEntity() 113 void Operation::RemoveEntity(const std::string &entity) in RemoveEntity() argument 116 auto it = std::find(entities_.begin(), entities_.end(), entity); in RemoveEntity() 128 bool Operation::HasEntity(const std::string &entity) const in HasEntity() 130 return std::find(entities_.begin(), entities_.end(), entity) != entities_.end(); in HasEntity()
|
D | intent_filter.cpp | 32 void IntentFilter::SetEntity(const std::string &entity) in SetEntity() argument 34 entity_ = entity; in SetEntity() 122 bool IntentFilter::MatchEntity(const std::string &entity) const in MatchEntity() 124 return entity_ == entity; in MatchEntity()
|
D | skills.cpp | 93 void Skills::AddEntity(const std::string &entity) in AddEntity() argument 95 auto it = std::find(entities_.begin(), entities_.end(), entity); in AddEntity() 97 entities_.emplace_back(entity); in AddEntity() 106 bool Skills::HasEntity(const std::string &entity) in HasEntity() argument 108 return std::find(entities_.begin(), entities_.end(), entity) != entities_.end(); in HasEntity() 116 void Skills::RemoveEntity(const std::string &entity) in RemoveEntity() argument 119 auto it = std::find(entities_.begin(), entities_.end(), entity); in RemoveEntity()
|
/foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content/ |
D | operation.h | 112 void AddEntity(const std::string &entity); 119 void RemoveEntity(const std::string &entity); 126 bool HasEntity(const std::string &entity) const;
|
D | skills.h | 66 void AddEntity(const std::string &entity); 73 bool HasEntity(const std::string &entity); 80 void RemoveEntity(const std::string &entity);
|
/foundation/aafwk/standard/interfaces/innerkits/intent/include/ohos/aafwk/content/ |
D | intent_filter.h | 36 void SetEntity(const std::string &entity); 57 bool MatchEntity(const std::string &entity) const;
|
/foundation/aafwk/standard/services/test/moduletest/common/ams/specified_ability_service_test/ |
D | specified_ability_service_test.cpp | 65 Want CreateWant(const std::string &entity); 77 Want SpecifiedAbilityServiceTest::CreateWant(const std::string &entity) in CreateWant() argument 80 if (!entity.empty()) { in CreateWant() 81 want.AddEntity(entity); in CreateWant()
|
/foundation/aafwk/aafwk_lite/frameworks/want_lite/include/ |
D | want_utils.h | 23 void *entity = nullptr; member
|
/foundation/aafwk/standard/frameworks/kits/content/cpp/test/unittest/common/ |
D | skills_test.cpp | 297 std::string entity = "12345667"; variable 298 base_->AddEntity(entity); 303 EXPECT_EQ(entity, base_->GetEntities().at(0)); 377 std::string entity = "entity.system.test"; variable 381 base_->AddEntity(entity); 385 EXPECT_EQ(true, base_->HasEntity(entity)); 386 EXPECT_EQ(entity, base_->GetEntity(0)); 388 base_->RemoveEntity(entity); 390 EXPECT_EQ(false, base_->HasEntity(entity));
|
/foundation/aafwk/standard/services/test/mock/src/ |
D | mock_bundle_mgr.cpp | 161 for (const auto &entity : entityVector) { in CheckWantEntity() local 162 if (entity == Want::FLAG_HOME_INTENT_FROM_SYSTEM && element.GetAbilityName().empty() && in CheckWantEntity()
|
/foundation/graphic/utils/ |
D | LICENSE | 13 "Licensor" shall mean the copyright owner or entity authorized by 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 22 outstanding shares, or (iii) beneficial ownership of such entity. 83 institute patent litigation against any entity (including a
|
/foundation/communication/wifi/ |
D | LICENSE | 13 "Licensor" shall mean the copyright owner or entity authorized by 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 22 outstanding shares, or (iii) beneficial ownership of such entity. 83 institute patent litigation against any entity (including a
|
/foundation/communication/bluetooth/ |
D | LICENSE | 13 "Licensor" shall mean the copyright owner or entity authorized by 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 22 outstanding shares, or (iii) beneficial ownership of such entity. 83 institute patent litigation against any entity (including a
|
/foundation/distributedschedule/safwk/ |
D | LICENSE | 13 "Licensor" shall mean the copyright owner or entity authorized by 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 22 outstanding shares, or (iii) beneficial ownership of such entity. 83 institute patent litigation against any entity (including a
|
/foundation/resourceschedule/background_task_mgr/ |
D | LICENSE | 13 "Licensor" shall mean the copyright owner or entity authorized by 16 "Legal Entity" shall mean the union of the acting entity and all 18 control with that entity. For the purposes of this definition, 20 direction or management of such entity, whether by contract or 22 outstanding shares, or (iii) beneficial ownership of such entity. 83 institute patent litigation against any entity (including a
|