Searched defs:factory (Results 1 - 25 of 45) sorted by relevance

12

/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/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;
H A DSQLiteQueryBuilder.java140 * Sets the cursor factory to be used for the query. You can use
141 * one factory for all queries on a database but it is normally
142 * easier to specify the factory when doing this query.
144 * @param factory the factory to use.
146 public void setCursorFactory(SQLiteDatabase.CursorFactory factory) { argument
147 mFactory = factory;
/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
H A DDecodeTask.java93 * @param factory The factory to obtain file descriptors to decode from. If this factory is
99 FileDescriptorFactory factory, DecodeCallback callback, BitmapCache cache) {
102 mFactory = factory;
98 DecodeTask(RequestKey requestKey, DecodeOptions decodeOpts, FileDescriptorFactory factory, DecodeCallback callback, BitmapCache cache) 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/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/base/core/java/android/widget/
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 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...]
/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/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/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp84 ContextFactory factory; local
86 rootNode.get(), &factory));
/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...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp80 ContextFactory factory; local
84 &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
/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/preference/
H A DGenericInflater.java170 * Return the current factory (or null). This is called on each element
171 * name. If the factory returns an item, add that to the hierarchy. If it
181 * once; after setting, you can not change the factory. This is called on
182 * each element name as the XML is parsed. If the factory returns an item,
183 * that is added to the hierarchy. If it returns null, the next factory
187 * own factory to it, use {@link #cloneInContext} to clone the existing
189 * instance. This will merge your own factory with whatever factory the
192 public void setFactory(Factory<T> factory) { argument
195 "A factory ha
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DGenericInflater.java166 * Return the current factory (or null). This is called on each element
167 * name. If the factory returns an item, add that to the hierarchy. If it
177 * once; after setting, you can not change the factory. This is called on
178 * each element name as the XML is parsed. If the factory returns an item,
179 * that is added to the hierarchy. If it returns null, the next factory
183 * own factory to it, use {@link #cloneInContext} to clone the existing
185 * instance. This will merge your own factory with whatever factory the
188 public void setFactory(Factory<T> factory) { argument
191 "A factory ha
[all...]
/frameworks/support/v4/kitkat/android/support/v4/app/
H A DNotificationCompatKitKat.java139 int actionIndex, NotificationCompatBase.Action.Factory factory,
148 return NotificationCompatJellybean.readAction(factory, remoteInputFactory,
138 getAction(Notification notif, int actionIndex, NotificationCompatBase.Action.Factory factory, RemoteInputCompatBase.RemoteInput.Factory remoteInputFactory) argument
/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp504 ContextFactory factory; local
505 RenderProxy* proxy = new RenderProxy(false, rootNode, &factory);
/frameworks/compile/mclinker/lib/Target/AArch64/
H A DAArch64LDBackend.cpp508 StubFactory* factory = getStubFactory(); local
509 if (factory != NULL) {
510 factory->addPrototype(new AArch64LongBranchStub(config().isCodeIndep()));
512 factory->addPrototype(new AArch64CA53Erratum835769Stub());
515 factory->addPrototype(new AArch64CA53Erratum843419Stub());
516 factory->addPrototype(new AArch64CA53Erratum843419Stub2());

Completed in 609 milliseconds

12