Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 175) sorted by relevance

1234567

/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
H A DSingleKvStoreEnumJsTest.js16 import factory from '@ohos.data.distributedData';
127 var string = factory.ValueType.STRING;
139 var integer = factory.ValueType.INTEGER;
151 var float = factory.ValueType.FLOAT;
175 var boolean = factory.ValueType.BOOLEAN;
187 var double = factory.ValueType.DOUBLE;
319 var s0 = factory.SecurityLevel.S0;
331 var s1 = factory.SecurityLevel.S1;
343 var s2 = factory.SecurityLevel.S2;
355 var s3 = factory.SecurityLevel.S3;
[all …]
H A DKvManagerDataPromiseJsTest.js16 import factory from '@ohos.data.distributedData';
34 userType: factory.UserType.SAME_USER_ID
43 kvStoreType: factory.KVStoreType.SINGLE_VERSION,
45 securityLevel: factory.SecurityLevel.S2,
171 securityLevel: factory.SecurityLevel.S1,
197 securityLevel: factory.SecurityLevel.S2,
225 securityLevel: factory.SecurityLevel.S3,
253 securityLevel: factory.SecurityLevel.S4,
309 securityLevel: factory.SecurityLevel.S0,
337 securityLevel: factory.SecurityLevel.S1,
[all …]
H A DKvManagerDataCallbackJsTest.js16 import factory from '@ohos.data.distributedData';
30 userType : factory.UserType.SAME_USER_ID
39 kvStoreType : factory.KVStoreType.SINGLE_VERSION,
41 securityLevel : factory.SecurityLevel.S2,
167 securityLevel : factory.SecurityLevel.S0,
200 securityLevel : factory.SecurityLevel.S1,
231 securityLevel : factory.SecurityLevel.S2,
262 securityLevel : factory.SecurityLevel.S3,
293 securityLevel : factory.SecurityLevel.S4,
355 securityLevel : factory.SecurityLevel.S0,
[all …]
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Dclient_factory.c44 if (factory == NULL) { in SAMGR_CreateIClient()
62 if (factory == NULL) { in SAMGR_ReleaseIClient()
84 if (factory != NULL) { in SAMGR_RegisterFactory()
90 if (factory == NULL) { in SAMGR_RegisterFactory()
94 factory->key.service = service; in SAMGR_RegisterFactory()
95 factory->key.feature = feature; in SAMGR_RegisterFactory()
96 factory->creator = creator; in SAMGR_RegisterFactory()
97 factory->destroyer = destroyer; in SAMGR_RegisterFactory()
101 SAMGR_Free(factory); in SAMGR_RegisterFactory()
110 Factory *factory = NULL; in GetFactory() local
[all …]
/ohos5.0/base/useriam/user_auth_framework/test/unittest/services/src/
H A Dcontext_factory_test.cpp56 auto factory = ContextFactory::GetInstance(); variable
57 ASSERT_NE(factory, nullptr);
71 auto factory = ContextFactory::GetInstance(); variable
72 ASSERT_NE(factory, nullptr);
85 ASSERT_NE(factory, nullptr);
100 ASSERT_NE(factory, nullptr);
113 ASSERT_NE(factory, nullptr);
128 ASSERT_NE(factory, nullptr);
141 ASSERT_NE(factory, nullptr);
151 ASSERT_NE(factory, nullptr);
[all …]
/ohos5.0/drivers/hdf_core/framework/model/camera/core/src/
H A Dcamera_core.c72 if (factory->release != NULL) { in HdfCameraReleaseInterface()
73 factory->release(deviceDriver); in HdfCameraReleaseInterface()
87 deviceDriver = factory->build(deviceName); in HdfCameraInitInterfaces()
109 if (factory->release != NULL) { in HdfCameraInitInterfaces()
110 factory->release(deviceDriver); in HdfCameraInitInterfaces()
134 struct CameraDeviceDriverFactory *factory = NULL; in HdfCameraDeinitDevice() local
140 factory = HdfCameraGetDriverFactory(deviceName); in HdfCameraDeinitDevice()
141 if (factory == NULL) { in HdfCameraDeinitDevice()
156 struct CameraDeviceDriverFactory *factory = NULL; in HdfCameraInitDevice() local
158 factory = HdfCameraGetDriverFactory(deviceName); in HdfCameraInitDevice()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/
H A DSingleKvStoreEnumJsTest.js17 import factory from '@ohos.data.distributedKVStore';
29 var maxKeyLength = factory.Constants.MAX_KEY_LENGTH;
45 var maxValueLength = factory.Constants.MAX_VALUE_LENGTH;
62 factory.Constants.MAX_VALUE_LENGTH = 123;
95 var maxStoreIdLength = factory.Constants.MAX_STORE_ID_LENGTH;
112 var maxQueryLength = factory.Constants.MAX_QUERY_LENGTH;
129 var maxBatchSize = factory.Constants.MAX_BATCH_SIZE;
145 var s1 = factory.SecurityLevel.S1;
161 var s2 = factory.SecurityLevel.S2;
177 var s3 = factory.SecurityLevel.S3;
[all …]
H A DKvManagerKVCallbackJsTest.js16 import factory from '@ohos.data.distributedKVStore'
38 kvStoreType: factory.KVStoreType.SINGLE_VERSION,
40 securityLevel: factory.SecurityLevel.S2,
45 kvManager = factory.createKVManager(config);
166 securityLevel: factory.SecurityLevel.S1,
196 securityLevel: factory.SecurityLevel.S2,
226 securityLevel: factory.SecurityLevel.S3,
257 securityLevel: factory.SecurityLevel.S4,
287 securityLevel: factory.SecurityLevel.S1,
317 securityLevel: factory.SecurityLevel.S2,
[all …]
H A DKvManagerKVPromiseJsTest.js16 import factory from '@ohos.data.distributedKVStore'
40 kvStoreType: factory.KVStoreType.SINGLE_VERSION,
42 securityLevel: factory.SecurityLevel.S2,
47 kvManager = factory.createKVManager(config);
206 securityLevel: factory.SecurityLevel.S1,
237 securityLevel: factory.SecurityLevel.S2,
268 securityLevel: factory.SecurityLevel.S3,
299 securityLevel: factory.SecurityLevel.S4,
330 securityLevel: factory.SecurityLevel.S1,
361 securityLevel: factory.SecurityLevel.S2,
[all …]
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/
H A DBUILD.gn51 "src/factory/api_dumper_factory.cpp",
52 "src/factory/cmd_dumper_factory.cpp",
54 "src/factory/cpu_dumper_factory.cpp",
55 "src/factory/dumper_group_factory.cpp",
57 "src/factory/fd_output_factory.cpp",
58 "src/factory/file_dumper_factory.cpp",
62 "src/factory/list_dumper_factory.cpp",
63 "src/factory/memory_dumper_factory.cpp",
65 "src/factory/sa_dumper_factory.cpp",
66 "src/factory/traffic_dumper_factory.cpp",
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/
H A Drs_command_factory_test.cpp44 RSCommandFactory& factory = RSCommandFactory::Instance(); variable
46 factory.Register(0, 0, func);
51 func = factory.GetUnmarshallingFunc(type, subtype);
52 factory.Register(type, subtype, func);
64 RSCommandFactory& factory = RSCommandFactory::Instance(); variable
65 UnmarshallingFunc func = factory.GetUnmarshallingFunc(0, 0);
68 factory.unmarshallingFuncLUT_.clear();
71 func = factory.GetUnmarshallingFunc(type, subtype);
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/plugin/
H A Dintf_class_factory.h38 auto CreateInstance(IClassFactory& factory, const BASE_NS::Uid& uid) in CreateInstance() argument
41 if (auto res = factory.CreateInstance(uid)) { in CreateInstance()
55 if (auto factory = GetInstance<IClassFactory>(factory_id)) { in CreateInstance() local
56 return CreateInstance<T>(*factory, class_id); in CreateInstance()
68 auto factory = GetPluginRegister().GetClassRegister().GetInterface<IClassFactory>(); in CreateInstance() local
69 if (factory) { in CreateInstance()
70 return CreateInstance<T>(*factory, class_id); in CreateInstance()
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dclass_registry.cpp90 const auto& factory = v.second; in GetAllTypes() local
91 … if (excludeDeprecated && (factory->GetClassInfo().category & ObjectCategoryBits::DEPRECATED)) { in GetAllTypes()
95 if (CheckCategoryBits(factory->GetClassInfo().category, category, strict)) { in GetAllTypes()
96 infos.emplace_back(factory); in GetAllTypes()
108 const auto& factory = v.second; in GetAllTypes() local
109 if (factory->GetClassInfo().category & ObjectCategoryBits::INTERNAL) { in GetAllTypes()
113 … if (excludeDeprecated && (factory->GetClassInfo().category & ObjectCategoryBits::DEPRECATED)) { in GetAllTypes()
117 if (CheckInterfaces(factory->GetClassInterfaces(), interfaceUids, strict)) { in GetAllTypes()
118 infos.push_back(factory); in GetAllTypes()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Dadd_os_account_plugin_test.cpp137 auto factory = std::make_shared<ExternalManagerFactoryMock>(); variable
139 plugin.externalManagerFactory_ = factory;
143 EXPECT_CALL(*factory, CreateOsAccountManager).Times(1).WillOnce(Return(osAccountMgrMock));
157 auto factory = std::make_shared<ExternalManagerFactoryMock>(); variable
159 plugin.externalManagerFactory_ = factory;
163 EXPECT_CALL(*factory, CreateOsAccountManager).Times(1).WillOnce(Return(osAccountMgrMock));
177 auto factory = std::make_shared<ExternalManagerFactoryMock>(); variable
179 plugin.externalManagerFactory_ = factory;
183 EXPECT_CALL(*factory, CreateOsAccountManager).Times(1).WillOnce(Return(osAccountMgrMock));
197 auto factory = std::make_shared<ExternalManagerFactoryMock>(); variable
[all …]
/ohos5.0/base/update/updater/services/script/script_instruction/
H A Dscript_instructionhelper.cpp107 …criptInstructionHelper::RegisterAddInstruction(const Uscript::UScriptInstructionFactoryPtr factory, in RegisterAddInstruction() argument
113 int32_t ret = factory->CreateInstructionInstance(instr, instrName); in RegisterAddInstruction()
152 Uscript::UScriptInstructionFactoryPtr factory = nullptr; in RegisterUserInstruction() local
170 factory = pGetInstructionFactory(); in RegisterUserInstruction()
171 if (factory == nullptr) { in RegisterUserInstruction()
177 pReleaseInstructionFactory(factory); in RegisterUserInstruction()
180 return RegisterAddInstruction(factory, instrName); in RegisterUserInstruction()
184 Uscript::UScriptInstructionFactory *factory) in RegisterUserInstruction() argument
186 if (factory == nullptr) { in RegisterUserInstruction()
193 int32_t ret = factory->CreateInstructionInstance(instr, instrName); in RegisterUserInstruction()
/ohos5.0/base/hiviewdfx/hiview/base/event_report/test/unittest/common/
H A Devent_report_unit_test.cpp86 PluginFaultEventFactory factory; variable
87 auto ret = factory.Create();
99 PluginLoadEventFactory factory; variable
100 auto ret = factory.Create();
112 PluginStatsEventFactory factory; variable
113 auto ret = factory.Create();
/ohos5.0/base/hiviewdfx/hiview/base/event_report/
H A Dhiview_event_report.cpp31 auto factory = std::make_unique<PluginLoadEventFactory>(); in ReportPluginLoad() local
32 auto event = factory->Create(); in ReportPluginLoad()
42 auto factory = std::make_unique<PluginUnloadEventFactory>(); in ReportPluginUnload() local
43 auto event = factory->Create(); in ReportPluginUnload()
52 auto factory = std::make_unique<PluginFaultEventFactory>(); in ReportPluginFault() local
53 auto event = factory->Create(); in ReportPluginFault()
H A DBUILD.gn23 "factory/include",
36 "factory/plugin_fault_event_factory.cpp",
37 "factory/plugin_load_event_factory.cpp",
38 "factory/plugin_stats_event_factory.cpp",
39 "factory/plugin_unload_event_factory.cpp",
/ohos5.0/base/sensors/miscdevice/utils/haptic_decoder/interface/
H A Dvibrator_decoder_creator.cpp38 DefaultVibratorDecoderFactory factory; in CreateDecoder() local
39 return factory.CreateDecoder(); in CreateDecoder()
42 HEVibratorDecoderFactory factory; in CreateDecoder() local
43 return factory.CreateDecoder(); in CreateDecoder()
/ohos5.0/foundation/multimedia/player_framework/services/services/factory/
H A Dengine_factory_repo.cpp81 std::shared_ptr<IEngineFactory> factory = std::shared_ptr<IEngineFactory>(entry()); in LoadLib() local
82 if (factory == nullptr) { in LoadLib()
89 factorys_.push_back(factory); in LoadLib()
135 for (auto &factory : factorys_) { in GetEngineFactory() local
136 int32_t score = factory->Score(scene, appUid, uri); in GetEngineFactory()
139 target = factory; in GetEngineFactory()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/engine_adapter/
H A Dstatic_factory_test.cpp55 auto factory = StaticFactory::MakeFromRSXform(text, 10, xform, font, TextEncoding::UTF8); variable
56 ASSERT_TRUE(factory != nullptr);
70 auto factory = StaticFactory::MakeFromStream(std::move(stream), 0); variable
71 ASSERT_TRUE(factory == nullptr);
83 auto factory = StaticFactory::MakeFromName(familyName, Drawing::FontStyle()); variable
84 ASSERT_TRUE(factory != nullptr);
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/
H A Dconfig_factory.cpp30 static ConfigFactory factory; in GetInstance() local
31 if (!factory.isInited) { in GetInstance()
32 factory.Initialize(); in GetInstance()
34 return factory; in GetInstance()
/ohos5.0/foundation/multimedia/player_framework/
H A DREADME.md42 │ │ ├── factory # Engine factory
43 │ │ ├── engine_intf # Engine factory API
49 │ │ │ ├── factory # Engine factory implementation
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_rd_register_observer_test.cpp111 IKvDBFactory *factory = new (std::nothrow) DefaultFactory(); in SetUpTestCase() local
112 ASSERT_NE(factory, nullptr); in SetUpTestCase()
113 if (factory == nullptr) { in SetUpTestCase()
117 IKvDBFactory::Register(factory); in SetUpTestCase()
147 IKvDBFactory *factory = IKvDBFactory::GetCurrent(); in SetUp() local
148 ASSERT_NE(factory, nullptr); in SetUp()
149 if (factory == nullptr) { in SetUp()
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/
H A Dhdf_wifi_core.c183 struct HdfChipDriverFactory *factory) in HdfWlanDeinitInterface() argument
215 if (factory->Release != NULL) { in HdfWlanDeinitInterface()
216 factory->Release(chipDriver); in HdfWlanDeinitInterface()
223 …lanInitInterface(struct HdfWlanDevice *device, struct HdfChipDriverFactory *factory, uint8_t index) in HdfWlanInitInterface() argument
231 chipDriver = factory->Build(device, index); in HdfWlanInitInterface()
233 HDF_LOGE("%s:chip driver %s build fail!", __func__, factory->driverName); in HdfWlanInitInterface()
239 HDF_LOGI("%s: chip driver %s not 'init' api", __func__, factory->driverName); in HdfWlanInitInterface()
260 HDF_LOGE("%s:init chip %s failed! ret=%d", __func__, factory->driverName, ret); in HdfWlanInitInterface()
269 if (chipDriver != NULL && factory->Release != NULL) { in HdfWlanInitInterface()
270 factory->Release(chipDriver); in HdfWlanInitInterface()

1234567