Searched refs:factory (Results 1 - 25 of 83) sorted by relevance

1234

/frameworks/support/compat/java/android/support/v4/view/
H A DLayoutInflaterCompat.java70 static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
84 sLayoutInflaterFactory2Field.set(inflater, factory);
94 public void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
95 final LayoutInflater.Factory2 factory2 = factory != null
96 ? new Factory2Wrapper(factory) : null;
100 public void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
101 inflater.setFactory2(factory);
105 // The merged factory is now set to getFactory(), but not getFactory2() (pre-v21).
106 // We will now try and force set the merged factory to mFactory2
110 forceSetFactory2(inflater, factory);
128 setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) argument
133 setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) argument
164 setFactory( @onNull LayoutInflater inflater, @NonNull LayoutInflaterFactory factory) argument
176 setFactory2( @onNull LayoutInflater inflater, @NonNull LayoutInflater.Factory2 factory) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteCursorDriver.java30 * @param factory The CursorFactory to use when creating the Cursors, or
34 Cursor query(CursorFactory factory, String[] bindArgs); argument
H A DSQLiteDirectCursorDriver.java45 public Cursor query(CursorFactory factory, String[] selectionArgs) { argument
51 if (factory == null) {
54 cursor = factory.newCursor(mDatabase, this, mEditTable, query);
H A DSQLiteOpenHelper.java67 * @param factory to use for creating cursor objects, or null for the default
72 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { argument
73 this(context, name, factory, version, null);
86 * @param factory to use for creating cursor objects, or null for the default
93 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
95 this(context, name, factory, version, 0, errorHandler);
107 * @param factory to use for creating cursor objects, null for default
121 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
130 mOpenParamsBuilder.setCursorFactory(factory);
/frameworks/support/lifecycle/extensions/src/main/java/android/arch/lifecycle/
H A DViewModelProvider.java58 * @param factory a {@code Factory} which will be used to instantiate
61 public ViewModelProvider(@NonNull ViewModelStoreOwner owner, @NonNull Factory factory) { argument
62 this(owner.getViewModelStore(), factory);
70 * @param factory factory a {@code Factory} which will be used to instantiate
73 public ViewModelProvider(ViewModelStore store, Factory factory) { argument
74 mFactory = factory;
135 * Simple factory, which calls empty constructor on the give class.
H A DViewModelProviders.java85 * @param factory a {@code Factory} to instantiate new ViewModels
89 public static ViewModelProvider of(@NonNull Fragment fragment, @NonNull Factory factory) { argument
90 return new ViewModelProvider(ViewModelStores.of(fragment), factory);
100 * @param factory a {@code Factory} to instantiate new ViewModels
105 @NonNull Factory factory) {
106 return new ViewModelProvider(ViewModelStores.of(activity), factory);
104 of(@onNull FragmentActivity activity, @NonNull Factory factory) argument
/frameworks/base/core/java/android/widget/
H A DRemoteViewsService.java55 * Called when your factory is first constructed. The same factory may be shared across
72 * Called when the last RemoteViewsAdapter that is associated with this factory is
108 * @return The number of types of Views that will be returned by this factory.
133 public RemoteViewsFactoryAdapter(RemoteViewsFactory factory, boolean isCreated) { argument
134 mFactory = factory;
218 RemoteViewsFactory factory = RemoteViewsService.sRemoteViewFactories.get(fc);
220 factory.onDestroy();
238 RemoteViewsFactory factory = null;
241 factory
[all...]
H A DViewSwitcher.java25 * {@link ViewAnimator} that switches between two views, and has a factory
26 * from which these views are created. You can either use the factory to
32 * The factory used to create the two children.
95 * Sets the factory used to create the two views between which the
96 * ViewSwitcher will flip. Instead of using a factory, you can call
100 * @param factory the view factory used to generate the switcher's content
102 public void setFactory(ViewFactory factory) { argument
103 mFactory = factory;
H A DRemoteViewsAdapter.java224 IRemoteViewsFactory factory =
227 if (!factory.isCreated()) {
228 // We only call onDataSetChanged() if this is the factory was just
230 factory.onDataSetChanged();
233 Log.e(TAG, "Error notifying factory of data set changed in " +
240 Log.e(TAG, "Error notifying factory of data set changed in " +
936 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory();
941 boolean hasStableIds = factory.hasStableIds();
942 int viewTypeCount = factory.getViewTypeCount();
943 int count = factory
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp41 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, argument
43 if (NULL == factory) {
44 ALOGE("Failed to register MediaPlayerFactory of type %d, factory is"
55 if (sFactoryMap.add(type, factory) < 0) {
68 status_t MediaPlayerFactory::registerFactory(IFactory* factory, argument
71 return registerFactory_l(factory, type);
133 IFactory* factory; local
139 " factory", playerType);
143 factory = sFactoryMap.valueFor(playerType);
144 CHECK(NULL != factory);
[all...]
H A DMediaPlayerFactory.h53 static status_t registerFactory(IFactory* factory,
79 static status_t registerFactory_l(IFactory* factory,
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DCertificateVerifier.java46 CertificateFactory factory = CertificateFactory.getInstance("X.509");
49 CertPath path = factory.generateCertPath(
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DRequestKey.java123 * @param factory The FileDescriptorFactory to decode from. Pass null to cancel decode.
125 void fileDescriptorFactoryCreated(RequestKey key, FileDescriptorFactory factory); argument
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DSingleFilterEffect.java59 FilterFactory factory = FilterFactory.sharedFactory();
60 Filter filter = factory.createFilterByClass(filterClass, filterName);
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java99 final InputStreamFactory factory = createInputStreamFactory(resolver, uri);
101 final Point bounds = getImageBounds(factory);
109 result.bitmap = decodeStream(factory, null, opts);
130 * @param factory Used to create input streams that holds the raw data to be decoded into a
142 public static Bitmap decodeStream(final InputStreamFactory factory, final Rect outPadding, argument
147 is = factory.createInputStream();
154 is = factory.createInputStream();
192 * @param factory Used to create the InputStream.
196 private static Point getImageBounds(final InputStreamFactory factory) argument
200 decodeStream(factory, nul
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteActionProvider.java196 * Gets the media route dialog factory to use when showing the route chooser
199 * @return The dialog factory, never null.
207 * Sets the media route dialog factory to use when showing the route chooser
210 * @param factory The dialog factory, must not be null.
212 public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { argument
213 if (factory == null) {
214 throw new IllegalArgumentException("factory must not be null");
217 if (mDialogFactory != factory) {
218 mDialogFactory = factory;
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java264 final MyThreadFactory factory = new MyThreadFactory();
267 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) {
268 assertNotSame(Thread.State.TERMINATED, factory.thread.getState());
274 factory.thread.join(3000);
275 assertEquals(Thread.State.TERMINATED, factory.thread.getState());
279 ParcelFileDescriptor.MODE_WRITE_ONLY, callback, null, factory)) {
280 assertNotSame(Thread.State.TERMINATED, factory.thread.getState());
/frameworks/base/core/java/android/view/
H A DViewStub.java263 final LayoutInflater factory;
265 factory = mInflater;
267 factory = LayoutInflater.from(mContext);
269 final View view = factory.inflate(mLayoutResource, parent, false);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DViewStubCompat.java200 final LayoutInflater factory;
202 factory = mInflater;
204 factory = LayoutInflater.from(getContext());
206 final View view = factory.inflate(mLayoutResource, parent,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DExtensionControllerImpl.java67 public ExtensionController.ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { argument
68 mExtension.addTunerFactory(factory, factory.keys());
192 public void addTunerFactory(TunerFactory<T> factory, String[] keys) { argument
193 mProducers.add(new TunerItem(factory, keys));
252 public TunerItem(TunerFactory<T> factory, String... setting) { argument
253 mFactory = factory;
H A DExtensionController.java51 ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory); argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DExtensionControllerImplTest.java89 TunerFactory<Object> factory = new ExtensionController.TunerFactory() {
101 .withTunerFactory(factory)
151 TunerFactory<Object> factory = mock(TunerFactory.class);
155 .withTunerFactory(factory)
173 when(factory.create(any())).thenReturn(tuner);
/frameworks/base/core/java/android/security/net/config/
H A DResourceCertificateSource.java59 CertificateFactory factory = CertificateFactory.getInstance("X.509");
61 certs = factory.generateCertificates(in);
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/test/
H A DCustomDatabaseTest.java78 final FrameworkSQLiteOpenHelperFactory factory = new FrameworkSQLiteOpenHelperFactory();
79 final SupportSQLiteOpenHelper helper = factory.create(configuration);
/frameworks/base/test-runner/src/android/test/
H A DRenamingDelegatingContext.java150 int mode, SQLiteDatabase.CursorFactory factory) {
156 return mFileContext.openOrCreateDatabase(internalName, mode, factory);
161 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) {
167 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler);
149 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory) argument
160 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) argument

Completed in 1437 milliseconds

1234