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

123

/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.java73 * @param factory to use for creating cursor objects, or null for the default
78 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { argument
79 this(context, name, factory, version, null);
92 * @param factory to use for creating cursor objects, or null for the default
99 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
101 this(context, name, factory, version, 0, errorHandler);
113 * @param factory to use for creating cursor objects, null for default
127 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
133 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
/frameworks/av/services/mediadrm/
H A DMediaCasService.cpp75 CasFactory *factory; local
77 if (mCasLoader->findFactoryForScheme(CA_system_id, &library, &factory)) {
80 if (factory->createPlugin(CA_system_id, (uint64_t)casImpl.get(),
105 DescramblerFactory *factory; local
108 CA_system_id, &library, &factory)) {
110 if (factory->createPlugin(CA_system_id, &plugin) == OK
H A DFactoryLoader.h42 T** factory = NULL);
60 T** factory);
72 int32_t CA_system_id, sp<SharedLibrary> *library, T** factory) {
76 if (factory != NULL) {
77 *factory = NULL;
87 CA_system_id, library, factory);
104 pluginPath, CA_system_id, library, factory)) {
149 sp<SharedLibrary> *library, T** factory) {
160 if (factory != NULL) {
161 *factory
71 findFactoryForScheme( int32_t CA_system_id, sp<SharedLibrary> *library, T** factory) argument
147 loadFactoryForSchemeFromPath( const String8 &path, int32_t CA_system_id, sp<SharedLibrary> *library, T** factory) argument
[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/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeExtensionController.java48 public ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { argument
/frameworks/native/libs/vr/libpdx_uds/
H A Dclient_channel_tests.cpp112 auto factory = ClientChannelFactory::Create(std::move(client_channel)); variable
113 auto status = factory->Connect(android::pdx::Client::kInfiniteTimeout);
/frameworks/support/compat/api20/android/support/v4/app/
H A DRemoteInputCompatApi20.java37 RemoteInputCompatBase.RemoteInput.Factory factory) {
41 RemoteInputCompatBase.RemoteInput[] result = factory.newArray(srcArray.length);
44 result[i] = factory.build(src.getResultKey(), src.getLabel(), src.getChoices(),
36 toCompat(RemoteInput[] srcArray, RemoteInputCompatBase.RemoteInput.Factory factory) argument
/frameworks/support/compat/java/android/support/v4/view/
H A DLayoutInflaterCompat.java71 static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
85 sLayoutInflaterFactory2Field.set(inflater, factory);
95 public void setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) { argument
96 final LayoutInflater.Factory2 factory2 = factory != null
97 ? new Factory2Wrapper(factory) : null;
101 public void setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
102 inflater.setFactory2(factory);
106 // The merged factory is now set to getFactory(), but not getFactory2() (pre-v21).
107 // We will now try and force set the merged factory to mFactory2
111 forceSetFactory2(inflater, factory);
129 setFactory(LayoutInflater inflater, LayoutInflaterFactory factory) argument
134 setFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) argument
165 setFactory( @onNull LayoutInflater inflater, @NonNull LayoutInflaterFactory factory) argument
177 setFactory2( @onNull LayoutInflater inflater, @NonNull LayoutInflater.Factory2 factory) argument
[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...]
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp135 ContextFactory factory; local
137 rootNode.get(), &factory));
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp80 ContextFactory factory; local
84 &factory));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DExtensionController.java40 ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory); argument
/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/compat/jellybean/android/support/v4/app/
H A DRemoteInputCompatJellybean.java52 RemoteInputCompatBase.RemoteInput.Factory factory) {
60 return factory.build(data.getString(KEY_RESULT_KEY),
88 RemoteInputCompatBase.RemoteInput.Factory factory) {
92 RemoteInputCompatBase.RemoteInput[] remoteInputs = factory.newArray(bundles.length);
94 remoteInputs[i] = fromBundle(bundles[i], factory);
51 fromBundle(Bundle data, RemoteInputCompatBase.RemoteInput.Factory factory) argument
87 fromBundleArray(Bundle[] bundles, RemoteInputCompatBase.RemoteInput.Factory factory) argument
/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/av/services/radio/
H A DRadioHalHidl.cpp119 sp<IBroadcastRadioFactory> factory = IBroadcastRadioFactory::getService(); local
120 if (factory != 0) {
121 factory->connectModule(static_cast<Class>(mClassId),
/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/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DA2dpProfile.java110 void setWrapperFactory(BluetoothA2dpWrapper.Factory factory) { argument
111 mWrapperFactory = factory;
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
H A DPluginManagerImpl.java81 PluginManagerImpl(Context context, PluginInstanceManagerFactory factory, boolean debuggable, argument
84 mFactory = factory;

Completed in 572 milliseconds

123