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

123

/frameworks/support/v4/api21/android/support/v4/view/
H A DLayoutInflaterCompatLollipop.java23 static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
24 inflater.setFactory2(factory != null
25 ? new LayoutInflaterCompatHC.FactoryWrapperHC(factory) : null);
/frameworks/support/v4/donut/android/support/v4/view/
H A DLayoutInflaterCompatBase.java44 static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
45 inflater.setFactory(factory != null ? new FactoryWrapper(factory) : null);
49 LayoutInflater.Factory factory = inflater.getFactory();
50 if (factory instanceof FactoryWrapper) {
51 return ((FactoryWrapper) factory).mDelegateFactory;
/frameworks/support/v4/java/android/support/v4/view/
H A DLayoutInflaterCompat.java29 public void setFactory(LayoutInflater layoutInflater, LayoutInflaterFactory factory); argument
35 public void setFactory(LayoutInflater layoutInflater, LayoutInflaterFactory factory) { argument
36 LayoutInflaterCompatBase.setFactory(layoutInflater, factory);
47 public void setFactory(LayoutInflater layoutInflater, LayoutInflaterFactory factory) { argument
48 LayoutInflaterCompatHC.setFactory(layoutInflater, factory);
54 public void setFactory(LayoutInflater layoutInflater, LayoutInflaterFactory factory) { argument
55 LayoutInflaterCompatLollipop.setFactory(layoutInflater, factory);
80 * after setting, you can not change the factory.
84 public static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
85 IMPL.setFactory(inflater, factory);
[all...]
/frameworks/support/v4/honeycomb/android/support/v4/view/
H A DLayoutInflaterCompatHC.java48 static void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
49 final LayoutInflater.Factory2 factory2 = factory != null
50 ? new FactoryWrapperHC(factory) : null;
55 // The merged factory is now set to getFactory(), but not getFactory2() (pre-v21).
56 // We will now try and force set the merged factory to mFactory2
70 static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
84 sLayoutInflaterFactory2Field.set(inflater, factory);
/frameworks/av/media/libeffects/factory/
H A DAndroid.mk3 # Effect factory library
/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.java43 public Cursor query(CursorFactory factory, String[] selectionArgs) { argument
49 if (factory == null) {
52 cursor = factory.newCursor(mDatabase, this, mEditTable, query);
H A DSQLiteOpenHelper.java71 * @param factory to use for creating cursor objects, or null for the default
76 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { argument
77 this(context, name, factory, version, null);
90 * @param factory to use for creating cursor objects, or null for the default
97 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
103 mFactory = factory;
/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.java206 IRemoteViewsFactory factory =
209 if (!factory.isCreated()) {
210 // We only call onDataSetChanged() if this is the factory was just
212 factory.onDataSetChanged();
215 Log.e(TAG, "Error notifying factory of data set changed in " +
222 Log.e(TAG, "Error notifying factory of data set changed in " +
938 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory();
943 boolean hasStableIds = factory.hasStableIds();
944 int viewTypeCount = factory.getViewTypeCount();
945 int count = factory
[all...]
/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/support/v4/api20/android/support/v4/app/
H A DRemoteInputCompatApi20.java25 RemoteInputCompatBase.RemoteInput.Factory factory) {
29 RemoteInputCompatBase.RemoteInput[] result = factory.newArray(srcArray.length);
32 result[i] = factory.build(src.getResultKey(), src.getLabel(), src.getChoices(),
24 toCompat(RemoteInput[] srcArray, RemoteInputCompatBase.RemoteInput.Factory factory) argument
/frameworks/support/v4/jellybean/android/support/v4/app/
H A DRemoteInputCompatJellybean.java38 RemoteInputCompatBase.RemoteInput.Factory factory) {
39 return factory.build(data.getString(KEY_RESULT_KEY),
57 RemoteInputCompatBase.RemoteInput.Factory factory) {
61 RemoteInputCompatBase.RemoteInput[] remoteInputs = factory.newArray(bundles.length);
63 remoteInputs[i] = fromBundle(bundles[i], factory);
37 fromBundle(Bundle data, RemoteInputCompatBase.RemoteInput.Factory factory) argument
56 fromBundleArray(Bundle[] bundles, RemoteInputCompatBase.RemoteInput.Factory factory) argument
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp42 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, argument
44 if (NULL == factory) {
45 ALOGE("Failed to register MediaPlayerFactory of type %d, factory is"
56 if (sFactoryMap.add(type, factory) < 0) {
69 status_t MediaPlayerFactory::registerFactory(IFactory* factory, argument
72 return registerFactory_l(factory, type);
134 IFactory* factory; local
140 " factory", playerType);
144 factory = sFactoryMap.valueFor(playerType);
145 CHECK(NULL != factory);
[all...]
H A DMediaPlayerFactory.h53 static status_t registerFactory(IFactory* factory,
79 static status_t registerFactory_l(IFactory* factory,
/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/java/android/view/
H A DViewStub.java253 final LayoutInflater factory;
255 factory = mInflater;
257 factory = LayoutInflater.from(mContext);
259 final View view = factory.inflate(mLayoutResource, parent,
H A DLayoutInflater.java263 * name. If the factory returns a View, add that to the hierarchy. If it
271 * Return the current {@link Factory2}. Returns null if no factory is set
272 * or the set factory does not implement the {@link Factory2} interface.
274 * name. If the factory returns a View, add that to the hierarchy. If it
284 * after setting, you can not change the factory. This is
285 * called on each element name as the xml is parsed. If the factory returns
287 * factory default {@link #onCreateView} method is called.
290 * LayoutInflater and want to add your own factory to it, use
293 * merge your own factory with whatever factory th
296 setFactory(Factory factory) argument
315 setFactory2(Factory2 factory) argument
333 setPrivateFactory(Factory2 factory) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DViewStubCompat.java194 final LayoutInflater factory;
196 factory = mInflater;
198 factory = LayoutInflater.from(getContext());
200 final View view = factory.inflate(mLayoutResource, parent,
/frameworks/base/core/java/android/security/net/config/
H A DResourceCertificateSource.java59 CertificateFactory factory = CertificateFactory.getInstance("X.509");
61 certs = factory.generateCertificates(in);
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp84 ContextFactory factory; local
86 rootNode.get(), &factory));
/frameworks/base/test-runner/src/android/test/
H A DRenamingDelegatingContext.java146 int mode, SQLiteDatabase.CursorFactory factory) {
152 return mFileContext.openOrCreateDatabase(internalName, mode, factory);
157 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) {
163 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler);
145 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory) argument
156 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) argument

Completed in 537 milliseconds

123