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

12345

/frameworks/support/compat/src/main/java/androidx/core/view/
H A DLayoutInflaterCompat.java70 private static void forceSetFactory2(LayoutInflater inflater, LayoutInflater.Factory2 factory) { argument
84 sLayoutInflaterFactory2Field.set(inflater, factory);
101 * after setting, you can not change the factory.
106 * and {@link LayoutInflater#getFactory2()} to get the factory.
110 @NonNull LayoutInflater inflater, @NonNull LayoutInflaterFactory factory) {
112 inflater.setFactory2(factory != null ? new Factory2Wrapper(factory) : null);
114 final LayoutInflater.Factory2 factory2 = factory != null
115 ? new Factory2Wrapper(factory) : null;
120 // The merged factory i
109 setFactory( @onNull LayoutInflater inflater, @NonNull LayoutInflaterFactory factory) argument
137 setFactory2( @onNull LayoutInflater inflater, @NonNull LayoutInflater.Factory2 factory) argument
[all...]
/frameworks/support/lifecycle/extensions/src/main/java/androidx/lifecycle/
H A DViewModelProviders.java95 * @param factory a {@code Factory} to instantiate new ViewModels
100 public static ViewModelProvider of(@NonNull Fragment fragment, @Nullable Factory factory) { argument
102 if (factory == null) {
103 factory = ViewModelProvider.AndroidViewModelFactory.getInstance(application);
105 return new ViewModelProvider(fragment.getViewModelStore(), factory);
115 * @param factory a {@code Factory} to instantiate new ViewModels
121 @Nullable Factory factory) {
123 if (factory == null) {
124 factory = ViewModelProvider.AndroidViewModelFactory.getInstance(application);
126 return new ViewModelProvider(activity.getViewModelStore(), factory);
120 of(@onNull FragmentActivity activity, @Nullable Factory 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.java71 * @param factory to use for creating cursor objects, or null for the default
77 @Nullable CursorFactory factory, int version) {
78 this(context, name, factory, version, null);
91 * @param factory to use for creating cursor objects, or null for the default
99 @Nullable CursorFactory factory, int version,
101 this(context, name, factory, version, 0, errorHandler);
133 * @param factory to use for creating cursor objects, null for default
148 @Nullable CursorFactory factory, int version,
152 mOpenParamsBuilder.setCursorFactory(factory);
76 SQLiteOpenHelper(@ullable Context context, @Nullable String name, @Nullable CursorFactory factory, int version) argument
98 SQLiteOpenHelper(@ullable Context context, @Nullable String name, @Nullable CursorFactory factory, int version, @Nullable DatabaseErrorHandler errorHandler) argument
147 SQLiteOpenHelper(@ullable Context context, @Nullable String name, @Nullable CursorFactory factory, int version, int minimumSupportedVersion, @Nullable DatabaseErrorHandler errorHandler) argument
/frameworks/support/lifecycle/viewmodel/ktx/src/test/java/androidx/lifecycle/
H A DViewModelProviderTest.kt32 val factory = object : ViewModelProvider.Factory {
35 val provider = ViewModelProvider(ViewModelStore(), 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;
/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);
132 IFactory* factory; local
138 " factory", playerType);
142 factory = sFactoryMap.valueFor(playerType);
143 CHECK(NULL != factory);
[all...]
H A DMediaPlayerFactory.h53 static status_t registerFactory(IFactory* factory,
78 static status_t registerFactory_l(IFactory* factory,
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
H A DRemoteParserFactoryAdapter.java37 public static RemoteParserFactory create(@NotNull ParserFactory factory) argument
40 new RemoteParserFactoryAdapter(factory), 0);
/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/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DCustomEdgeEffectTest.java79 TestEdgeEffectFactory factory = new TestEdgeEffectFactory();
80 mRecyclerView.setEdgeEffectFactory(factory);
84 assertNull(factory.mBottom);
85 assertNotNull(factory.mTop);
86 assertTrue(factory.mTop.mPullDistance > 0);
92 assertNotNull(factory.mBottom);
93 assertTrue(factory.mBottom.mPullDistance > 0);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DRemoteViewsAdapterTest.java91 ViewsFactory factory = new ViewsFactory(1);
92 mContext.sendConnect(factory);
97 factory.loadingView.set(createViews("loading"));
113 ViewsFactory factory = new ViewsFactory(1);
114 factory.loadingView.set(createViews("loading"));
115 mContext.sendConnect(factory);
127 factory.views[0].set(createViews("updated"));
147 ViewsFactory factory = new ViewsFactory(1);
148 factory.loadingView.set(createViews("loading"));
149 mContext.sendConnect(factory);
277 sendConnect(ViewsFactory factory) argument
[all...]
/frameworks/support/lifecycle/viewmodel/src/main/java/androidx/lifecycle/
H A DViewModelProvider.java63 * @param factory a {@code Factory} which will be used to instantiate
66 public ViewModelProvider(@NonNull ViewModelStoreOwner owner, @NonNull Factory factory) { argument
67 this(owner.getViewModelStore(), factory);
75 * @param factory factory a {@code Factory} which will be used to instantiate
78 public ViewModelProvider(@NonNull ViewModelStore store, @NonNull Factory factory) { argument
79 mFactory = factory;
142 * Simple factory, which calls empty constructor on the give class.
/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/paging/rxjava2/src/androidTest/java/androidx/paging/
H A DRxPagedListBuilderTest.kt48 val factory = testDataSourceSequence(listOf(listOf("a", "b"), listOf("c", "d")))
50 val observable = RxPagedListBuilder(factory, 10)
76 val factory = testDataSourceSequence(listOf(listOf("a", "b"), listOf("c", "d")))
80 factory, 10)
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouteActionProvider.java197 * Gets the media route dialog factory to use when showing the route chooser
200 * @return The dialog factory, never null.
208 * Sets the media route dialog factory to use when showing the route chooser
211 * @param factory The dialog factory, must not be null.
213 public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { argument
214 if (factory == null) {
215 throw new IllegalArgumentException("factory must not be null");
218 if (mDialogFactory != factory) {
219 mDialogFactory = factory;
[all...]
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
H A DMediaRouteActionProvider.java199 * Gets the media route dialog factory to use when showing the route chooser
202 * @return The dialog factory, never null.
210 * Sets the media route dialog factory to use when showing the route chooser
213 * @param factory The dialog factory, must not be null.
215 public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { argument
216 if (factory == null) {
217 throw new IllegalArgumentException("factory must not be null");
220 if (mDialogFactory != factory) {
221 mDialogFactory = factory;
[all...]
/frameworks/base/core/tests/coretests/src/android/os/storage/
H A DStorageManagerIntegrationTest.java228 final MyThreadFactory factory = new MyThreadFactory();
231 ParcelFileDescriptor.MODE_READ_ONLY, callback, null, factory)) {
232 assertNotSame(Thread.State.TERMINATED, factory.thread.getState());
238 factory.thread.join(3000);
239 assertEquals(Thread.State.TERMINATED, factory.thread.getState());
243 ParcelFileDescriptor.MODE_WRITE_ONLY, callback, null, factory)) {
244 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/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DDefaultAppInfo.java101 final IconDrawableFactory factory = IconDrawableFactory.newInstance(mContext);
108 return factory.getBadgedIcon(componentInfo, appInfo, userId);
110 return factory.getBadgedIcon(appInfo);
120 return factory.getBadgedIcon(packageItemInfo, appInfo, userId);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DViewStubCompat.java201 final LayoutInflater factory;
203 factory = mInflater;
205 factory = LayoutInflater.from(getContext());
207 final View view = factory.inflate(mLayoutResource, parent,

Completed in 1256 milliseconds

12345