Searched defs:factory (Results 1 - 25 of 53) 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.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);
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/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 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/native/libs/vr/libpdx_uds/
H A Dclient_channel_tests.cpp113 auto factory = ClientChannelFactory::Create(std::move(client_channel)); variable
114 auto status = factory->Connect(android::pdx::Client::kInfiniteTimeout);
/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/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.java51 ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory); argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
H A DFakeExtensionController.java49 public ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { argument
/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
/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/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.java85 PluginManagerImpl(Context context, PluginInstanceManagerFactory factory, boolean debuggable, argument
88 mFactory = factory;
/frameworks/base/services/core/jni/BroadcastRadio/
H A DBroadcastRadioService.cpp136 auto factory = V1_0::IBroadcastRadioFactory::getService(serviceName); local
137 if (factory == nullptr) {
146 factory->connectModule(clazz, [&](Result res, const sp<V1_0::IBroadcastRadio>& module) {
/frameworks/native/libs/vr/libpdx/
H A Dclient_tests.cpp106 auto factory = local
108 ON_CALL(*factory, Connect(kTimeout))
110 client_ = SimpleClient::Create(std::move(factory), kTimeout);
341 auto factory = local
343 EXPECT_CALL(*factory, Connect(kTimeout))
346 client_ = SimpleClient::Create(std::move(factory), kTimeout);

Completed in 737 milliseconds

123