Home
last modified time | relevance | path

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

1234

/frameworks/support/compat/java/android/support/v4/view/
DLayoutInflaterCompat.java70 static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { in forceSetFactory2() argument
84 sLayoutInflaterFactory2Field.set(inflater, factory); in forceSetFactory2()
94 public void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { in setFactory() argument
95 final LayoutInflater.Factory2 factory2 = factory != null in setFactory()
96 ? new Factory2Wrapper(factory) : null; in setFactory()
100 public void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { in setFactory2() argument
101 inflater.setFactory2(factory); in setFactory2()
110 forceSetFactory2(inflater, factory); in setFactory2()
116 LayoutInflater.Factory factory = inflater.getFactory(); in getFactory() local
117 if (factory instanceof Factory2Wrapper) { in getFactory()
[all …]
/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/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()
DRemoteViewsAdapter.java224 IRemoteViewsFactory factory = in onServiceConnected()
227 if (!factory.isCreated()) { in onServiceConnected()
230 factory.onDataSetChanged(); in onServiceConnected()
936 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory(); in updateTemporaryMetaData() local
941 boolean hasStableIds = factory.hasStableIds(); in updateTemporaryMetaData()
942 int viewTypeCount = factory.getViewTypeCount(); in updateTemporaryMetaData()
943 int count = factory.getCount(); in updateTemporaryMetaData()
945 new LoadingViewTemplate(factory.getLoadingView(), mContext); in updateTemporaryMetaData()
947 RemoteViews firstView = factory.getViewAt(0); in updateTemporaryMetaData()
969 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory(); in updateRemoteViews() local
[all …]
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/support/lifecycle/extensions/src/main/java/android/arch/lifecycle/
DViewModelProvider.java61 public ViewModelProvider(@NonNull ViewModelStoreOwner owner, @NonNull Factory factory) { in ViewModelProvider() argument
62 this(owner.getViewModelStore(), factory); in ViewModelProvider()
73 public ViewModelProvider(ViewModelStore store, Factory factory) { in ViewModelProvider() argument
74 mFactory = factory; in ViewModelProvider()
DViewModelProviders.java89 public static ViewModelProvider of(@NonNull Fragment fragment, @NonNull Factory factory) { in of() argument
90 return new ViewModelProvider(ViewModelStores.of(fragment), factory); in of()
105 @NonNull Factory factory) { in of() argument
106 return new ViewModelProvider(ViewModelStores.of(activity), factory); in of()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteActionProvider.java212 public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { in setDialogFactory() argument
213 if (factory == null) { in setDialogFactory()
217 if (mDialogFactory != factory) { in setDialogFactory()
218 mDialogFactory = factory; in setDialogFactory()
221 mButton.setDialogFactory(factory); in setDialogFactory()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java72 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { in SQLiteOpenHelper() argument
73 this(context, name, factory, version, null); in SQLiteOpenHelper()
93 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, in SQLiteOpenHelper() argument
95 this(context, name, factory, version, 0, errorHandler); in SQLiteOpenHelper()
121 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, in SQLiteOpenHelper() argument
130 mOpenParamsBuilder.setCursorFactory(factory); in SQLiteOpenHelper()
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()
DSQLiteDatabase.java697 public static SQLiteDatabase openDatabase(@NonNull String path, @Nullable CursorFactory factory, in openDatabase() argument
699 return openDatabase(path, factory, flags, null); in openDatabase()
747 public static SQLiteDatabase openDatabase(@NonNull String path, @Nullable CursorFactory factory, in openDatabase() argument
749 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler, -1, -1, -1); in openDatabase()
758 @Nullable CursorFactory factory) { in openOrCreateDatabase() argument
759 return openOrCreateDatabase(file.getPath(), factory); in openOrCreateDatabase()
766 @Nullable CursorFactory factory) { in openOrCreateDatabase() argument
767 return openDatabase(path, factory, CREATE_IF_NECESSARY, null); in openOrCreateDatabase()
774 @Nullable CursorFactory factory, @Nullable DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
775 return openDatabase(path, factory, CREATE_IF_NECESSARY, errorHandler); in openOrCreateDatabase()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerIntegrationTest.java264 final MyThreadFactory factory = new MyThreadFactory(); in testOpenProxyFileDescriptor() local
267 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor() argument
268 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
274 factory.thread.join(3000); in testOpenProxyFileDescriptor()
275 assertEquals(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
279 ParcelFileDescriptor.MODE_WRITE_ONLY, callback, null, factory)) { in testOpenProxyFileDescriptor() argument
280 assertNotSame(Thread.State.TERMINATED, factory.thread.getState()); in testOpenProxyFileDescriptor()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DViewStubCompat.java200 final LayoutInflater factory; in inflate() local
202 factory = mInflater; in inflate()
204 factory = LayoutInflater.from(getContext()); in inflate()
206 final View view = factory.inflate(mLayoutResource, parent, in inflate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DExtensionControllerImpl.java67 public ExtensionController.ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { in withTunerFactory() argument
68 mExtension.addTunerFactory(factory, factory.keys()); in withTunerFactory()
192 public void addTunerFactory(TunerFactory<T> factory, String[] keys) { in addTunerFactory() argument
193 mProducers.add(new TunerItem(factory, keys)); in addTunerFactory()
252 public TunerItem(TunerFactory<T> factory, String... setting) { in TunerItem() argument
253 mFactory = factory; in TunerItem()
/frameworks/base/core/java/android/view/
DLayoutInflater.java293 public void setFactory(Factory factory) { in setFactory() argument
297 if (factory == null) { in setFactory()
302 mFactory = factory; in setFactory()
304 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2); in setFactory()
312 public void setFactory2(Factory2 factory) { in setFactory2() argument
316 if (factory == null) { in setFactory2()
321 mFactory = mFactory2 = factory; in setFactory2()
323 mFactory = mFactory2 = new FactoryMerger(factory, factory, mFactory, mFactory2); in setFactory2()
330 public void setPrivateFactory(Factory2 factory) { in setPrivateFactory() argument
332 mPrivateFactory = factory; in setPrivateFactory()
[all …]
DViewStub.java263 final LayoutInflater factory; in inflateViewNoAdd() local
265 factory = mInflater; in inflateViewNoAdd()
267 factory = LayoutInflater.from(mContext); in inflateViewNoAdd()
269 final View view = factory.inflate(mLayoutResource, parent, false); in inflateViewNoAdd()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DExtensionControllerImplTest.java89 TunerFactory<Object> factory = new ExtensionController.TunerFactory() { in testTuner() local
101 .withTunerFactory(factory) in testTuner()
151 TunerFactory<Object> factory = mock(TunerFactory.class); in testSortOrder() local
155 .withTunerFactory(factory) in testSortOrder()
173 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/test-runner/src/android/test/
DRenamingDelegatingContext.java150 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase() argument
156 return mFileContext.openOrCreateDatabase(internalName, mode, factory); in openOrCreateDatabase()
161 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
167 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler); in openOrCreateDatabase()
/frameworks/av/drm/libmediadrm/
DCryptoHal.cpp123 auto factory = ICryptoFactory::getService(instance); in makeCryptoFactories() local
124 if (factory != NULL) { in makeCryptoFactories()
125 factories.push_back(factory); in makeCryptoFactories()
128 factory->isRemote() ? "Remote" : "Not Remote"); in makeCryptoFactories()
148 sp<ICryptoPlugin> CryptoHal::makeCryptoPlugin(const sp<ICryptoFactory>& factory, in makeCryptoPlugin() argument
152 Return<void> hResult = factory->createPlugin(toHidlArray16(uuid), in makeCryptoPlugin()
/frameworks/base/media/mca/effect/java/android/media/effect/
DSingleFilterEffect.java59 FilterFactory factory = FilterFactory.sharedFactory(); in SingleFilterEffect() local
60 Filter filter = factory.createFilterByClass(filterClass, filterName); in SingleFilterEffect()
/frameworks/base/core/java/android/preference/
DGenericInflater.java192 public void setFactory(Factory<T> factory) { in setFactory() argument
197 if (factory == null) { in setFactory()
202 mFactory = factory; in setFactory()
204 mFactory = new FactoryMerger<T>(factory, mFactory); in setFactory()
/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()

1234