Home
last modified time | relevance | path

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

123456

/frameworks/av/media/libmediaplayerservice/
DMediaPlayerFactory.cpp41 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
[all …]
DMediaPlayerFactory.h53 static status_t registerFactory(IFactory* factory,
78 static status_t registerFactory_l(IFactory* factory,
/frameworks/av/media/libaudiohal/impl/
DDevicesFactoryHalHidl.cpp45 explicit ServiceNotificationListener(sp<DevicesFactoryHalHidl> factory) in ServiceNotificationListener() argument
46 : mFactory(factory) {} in ServiceNotificationListener()
52 sp<DevicesFactoryHalHidl> factory = mFactory.promote(); in onRegistration() local
53 if (!factory) return Void(); in onRegistration()
56 factory->addDeviceFactory(halFactory, true /*needToNotify*/); in onRegistration()
117 for (const auto& factory : factories) { in openDevice() local
118 Return<void> ret = factory->openDevice( in openDevice()
143 for (const auto& factory : factories) { in getHalPids() local
147 auto ret = factory->getDebugInfo([&] (const auto &info) { in getHalPids()
181 void DevicesFactoryHalHidl::addDeviceFactory(sp<IDevicesFactory> factory, bool needToNotify) { in addDeviceFactory() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsAdapterTest.java92 ViewsFactory factory = new ViewsFactory(1); in onRemoteAdapterConnected_after_metadata_loaded() local
93 mContext.sendConnect(factory); in onRemoteAdapterConnected_after_metadata_loaded()
98 factory.loadingView.set(createViews("loading")); in onRemoteAdapterConnected_after_metadata_loaded()
114 ViewsFactory factory = new ViewsFactory(1); in viewReplaced_after_mainView_loaded() local
115 factory.loadingView.set(createViews("loading")); in viewReplaced_after_mainView_loaded()
116 mContext.sendConnect(factory); in viewReplaced_after_mainView_loaded()
128 factory.views[0].set(createViews("updated")); in viewReplaced_after_mainView_loaded()
148 ViewsFactory factory = new ViewsFactory(1); in notifyDataSetChanged_deferred() local
149 factory.loadingView.set(createViews("loading")); in notifyDataSetChanged_deferred()
150 mContext.sendConnect(factory); in notifyDataSetChanged_deferred()
[all …]
/frameworks/base/core/java/android/widget/
DRemoteViewsService.java133 public RemoteViewsFactoryAdapter(RemoteViewsFactory factory, boolean isCreated) { in RemoteViewsFactoryAdapter() argument
134 mFactory = factory; in RemoteViewsFactoryAdapter()
218 RemoteViewsFactory factory = RemoteViewsService.sRemoteViewFactories.get(fc); in onDestroy() local
220 factory.onDestroy(); in onDestroy()
238 RemoteViewsFactory factory = null; in onBind() local
241 factory = onGetViewFactory(intent); in onBind()
242 sRemoteViewFactories.put(fc, factory); in onBind()
243 factory.onCreate(); in onBind()
246 factory = sRemoteViewFactories.get(fc); in onBind()
249 return new RemoteViewsFactoryAdapter(factory, isCreated); in onBind()
DViewSwitcher.java102 public void setFactory(ViewFactory factory) { in setFactory() argument
103 mFactory = factory; in setFactory()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java99 final InputStreamFactory factory = createInputStreamFactory(resolver, uri); in createLocalBitmap() local
101 final Point bounds = getImageBounds(factory); in createLocalBitmap()
109 result.bitmap = decodeStream(factory, null, opts); in createLocalBitmap()
142 public static Bitmap decodeStream(final InputStreamFactory factory, final Rect outPadding, in decodeStream() argument
147 is = factory.createInputStream(); in decodeStream()
154 is = factory.createInputStream(); in decodeStream()
196 private static Point getImageBounds(final InputStreamFactory factory) in getImageBounds() argument
200 decodeStream(factory, null, opts); in getImageBounds()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java189 final MyThreadFactory factory = new MyThreadFactory(); in testOpenProxyFileDescriptor() local
192 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor() argument
193 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
199 factory.thread.join(3000); in testOpenProxyFileDescriptor()
200 assertEquals(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
204 ParcelFileDescriptor.MODE_WRITE_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor() argument
205 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDirectCursorDriver.java45 public Cursor query(CursorFactory factory, String[] selectionArgs) { in query() argument
51 if (factory == null) { in query()
54 cursor = factory.newCursor(mDatabase, this, mEditTable, query); in query()
DSQLiteOpenHelper.java82 @Nullable CursorFactory factory, int version) { in SQLiteOpenHelper() argument
83 this(context, name, factory, version, null); in SQLiteOpenHelper()
104 @Nullable CursorFactory factory, int version, in SQLiteOpenHelper() argument
106 this(context, name, factory, version, 0, errorHandler); in SQLiteOpenHelper()
153 @Nullable CursorFactory factory, int version, in SQLiteOpenHelper() argument
157 mOpenParamsBuilder.setCursorFactory(factory); in SQLiteOpenHelper()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java99 final IconDrawableFactory factory = IconDrawableFactory.newInstance(mContext); in loadIcon() local
106 return factory.getBadgedIcon(componentInfo, appInfo, userId); in loadIcon()
108 return factory.getBadgedIcon(appInfo); in loadIcon()
118 return factory.getBadgedIcon(packageItemInfo, appInfo, userId); in loadIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DExtensionControllerImpl.java87 public ExtensionController.ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { in withTunerFactory() argument
88 mExtension.addTunerFactory(factory, factory.keys()); in withTunerFactory()
212 public void addTunerFactory(TunerFactory<T> factory, String[] keys) { in addTunerFactory() argument
213 mProducers.add(new TunerItem(factory, keys)); in addTunerFactory()
272 public TunerItem(TunerFactory<T> factory, String... setting) { in TunerItem() argument
273 mFactory = factory; in TunerItem()
/frameworks/av/drm/libmediadrm/
DCryptoHal.cpp137 auto factory = drm::V1_0::ICryptoFactory::getService(instance); in makeCryptoFactories() local
138 if (factory != NULL) { in makeCryptoFactories()
140 factories.push_back(factory); in makeCryptoFactories()
148 auto factory = drm::V1_1::ICryptoFactory::getService(instance); in makeCryptoFactories() local
149 if (factory != NULL) { in makeCryptoFactories()
151 factories.push_back(factory); in makeCryptoFactories()
171 sp<ICryptoPlugin> CryptoHal::makeCryptoPlugin(const sp<ICryptoFactory>& factory, in makeCryptoPlugin() argument
175 Return<void> hResult = factory->createPlugin(toHidlArray16(uuid), in makeCryptoPlugin()
/frameworks/base/core/java/android/view/
DViewStub.java266 final LayoutInflater factory; in inflateViewNoAdd() local
268 factory = mInflater; in inflateViewNoAdd()
270 factory = LayoutInflater.from(mContext); in inflateViewNoAdd()
272 final View view = factory.inflate(mLayoutResource, parent, false); in inflateViewNoAdd()
DLayoutInflater.java345 public void setFactory(Factory factory) { in setFactory() argument
349 if (factory == null) { in setFactory()
354 mFactory = factory; in setFactory()
356 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2); in setFactory()
364 public void setFactory2(Factory2 factory) { in setFactory2() argument
368 if (factory == null) { in setFactory2()
373 mFactory = mFactory2 = factory; in setFactory2()
375 mFactory = mFactory2 = new FactoryMerger(factory, factory, mFactory, mFactory2); in setFactory2()
383 public void setPrivateFactory(Factory2 factory) { in setPrivateFactory() argument
385 mPrivateFactory = factory; in setPrivateFactory()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DExtensionControllerImplTest.java91 TunerFactory<Object> factory = new ExtensionController.TunerFactory() { in testTuner() local
103 .withTunerFactory(factory) in testTuner()
153 TunerFactory<Object> factory = mock(TunerFactory.class); in testSortOrder() local
157 .withTunerFactory(factory) in testSortOrder()
175 when(factory.create(any())).thenReturn(tuner); in testSortOrder()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DCertificateVerifier.java46 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in verifyCaCert() local
49 CertPath path = factory.generateCertPath( in verifyCaCert()
/frameworks/base/core/java/android/net/
DPrivateDnsConnectivityChecker.java46 final SocketFactory factory = SSLSocketFactory.getDefault(); in canConnectToPrivateDnsServer() local
49 try (SSLSocket socket = (SSLSocket) factory.createSocket()) { in canConnectToPrivateDnsServer()
/frameworks/base/test-runner/src/android/test/
DRenamingDelegatingContext.java151 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase() argument
157 return mFileContext.openOrCreateDatabase(internalName, mode, factory); in openOrCreateDatabase()
162 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
168 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler); in openOrCreateDatabase()
/frameworks/av/media/codec2/vndk/include/util/
DC2InterfaceHelper.h317 Factory &factory,
547 const C2Param *value, bool mayBlock, bool *changed, Factory &factory) -> C2R {
560 C2P<T> oldValue = factory.get(*typedParam);
562 C2P<T> helper = factory.get(*typedParam, proposedValue);
563 C2R result = fn(mayBlock, oldValue, helper, factory.get(deps)...);
588 const C2Param *value, bool mayBlock, bool *changed, Factory &factory) -> C2R {
602 C2P<T> helper = factory.get(*typedParam, proposedValue);
603 C2R result = fn(mayBlock, helper, factory.get(deps)...);
/frameworks/base/media/mca/effect/java/android/media/effect/
DSingleFilterEffect.java60 FilterFactory factory = FilterFactory.sharedFactory(); in SingleFilterEffect() local
61 Filter filter = factory.createFilterByClass(filterClass, filterName); in SingleFilterEffect()
/frameworks/av/media/codec2/components/vpx/
DC2SoftVp8Enc.cpp109 extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) { in DestroyCodec2Factory() argument
111 delete factory; in DestroyCodec2Factory()
DC2SoftVp9Enc.cpp139 extern "C" void DestroyCodec2Factory(::C2ComponentFactory* factory) { in DestroyCodec2Factory() argument
141 delete factory; in DestroyCodec2Factory()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java291 final FileDescriptorFactory factory) { in fileDescriptorFactoryCreated() argument
300 decode(factory); in fileDescriptorFactoryCreated()
314 protected void decode(final FileDescriptorFactory factory) { in decode() argument
334 mTask = new DecodeTask(mCurrKey, opts, factory, this, mCache); in decode()
/frameworks/base/core/java/android/preference/
DGenericInflater.java199 public void setFactory(Factory<T> factory) { in setFactory() argument
204 if (factory == null) { in setFactory()
209 mFactory = factory; in setFactory()
211 mFactory = new FactoryMerger<T>(factory, mFactory); in setFactory()

123456