Lines Matching refs:factory
41 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, in registerFactory_l() argument
43 if (NULL == factory) { in registerFactory_l()
55 if (sFactoryMap.add(type, factory) < 0) { in registerFactory_l()
68 status_t MediaPlayerFactory::registerFactory(IFactory* factory, in registerFactory() argument
71 return registerFactory_l(factory, type); in registerFactory()
132 IFactory* factory; in createPlayer() local
142 factory = sFactoryMap.valueFor(playerType); in createPlayer()
143 CHECK(NULL != factory); in createPlayer()
144 p = factory->createPlayer(pid); in createPlayer()
247 IFactory* factory = new NuPlayerFactory(); in registerBuiltinFactories() local
248 if (registerFactory_l(factory, NU_PLAYER) != OK) in registerBuiltinFactories()
249 delete factory; in registerBuiltinFactories()
250 factory = new TestPlayerFactory(); in registerBuiltinFactories()
251 if (registerFactory_l(factory, TEST_PLAYER) != OK) in registerBuiltinFactories()
252 delete factory; in registerBuiltinFactories()