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

/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.java72 * @param factory to use for creating cursor objects, or null for the default
77 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { argument
78 this(context, name, factory, version, null);
91 * @param factory to use for creating cursor objects, or null for the default
98 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, argument
104 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;
H A DSQLiteDatabase.java88 // The optional factory to use when creating new Cursors. May be null.
662 * @param factory an optional factory class that is called to instantiate a
668 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags) { argument
669 return openDatabase(path, factory, flags, null);
683 * @param factory an optional factory class that is called to instantiate a
691 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags, argument
693 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler);
699 * Equivalent to openDatabase(file.getPath(), factory, CREATE_IF_NECESSAR
701 openOrCreateDatabase(File file, CursorFactory factory) argument
708 openOrCreateDatabase(String path, CursorFactory factory) argument
715 openOrCreateDatabase(String path, CursorFactory factory, DatabaseErrorHandler errorHandler) argument
824 create(CursorFactory factory) argument
[all...]
/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.java27 * {@link ViewAnimator} that switches between two views, and has a factory
28 * from which these views are created. You can either use the factory to
34 * The factory used to create the two children.
104 * Sets the factory used to create the two views between which the
105 * ViewSwitcher will flip. Instead of using a factory, you can call
109 * @param factory the view factory used to generate the switcher's content
111 public void setFactory(ViewFactory factory) { argument
112 mFactory = factory;
H A DTabHost.java711 public FactoryContentStrategy(CharSequence tag, TabContentFactory factory) { argument
713 mFactory = factory;
H A DTextView.java3503 public final void setEditableFactory(Editable.Factory factory) { argument
3504 mEditableFactory = factory;
3511 public final void setSpannableFactory(Spannable.Factory factory) { argument
3512 mSpannableFactory = factory;
/frameworks/opt/emoji/
H A DEmojiFactory.cpp98 EmojiFactory *factory = (*get_emoji_factory)(); local
99 if (NULL == factory) {
100 ALOGE("Returned factory is NULL");
105 const char *name = factory->Name();
112 delete factory;
117 g_factories->push(factory);
118 // dlclose() must not be called here, since returned factory may point to
155 EmojiFactory *factory = g_factories->itemAt(i); local
156 if (!strcmp(name, factory->Name())) {
157 return factory;
168 EmojiFactory *factory = g_factories->itemAt(i); local
[all...]
/frameworks/base/test-runner/src/android/test/
H A DRenamingDelegatingContext.java142 int mode, SQLiteDatabase.CursorFactory factory) {
148 return mFileContext.openOrCreateDatabase(internalName, mode, factory);
153 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) {
159 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler);
141 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory) argument
152 openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) argument
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp40 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, argument
42 if (NULL == factory) {
43 ALOGE("Failed to register MediaPlayerFactory of type %d, factory is"
54 if (sFactoryMap.add(type, factory) < 0) {
73 status_t MediaPlayerFactory::registerFactory(IFactory* factory, argument
76 return registerFactory_l(factory, type);
132 IFactory* factory; local
138 " factory", playerType);
142 factory = sFactoryMap.valueFor(playerType);
143 CHECK(NULL != factory);
[all...]
/frameworks/base/core/java/android/emoji/
H A DEmojiFactory.java98 * @return Bitmap object when this factory knows the Bitmap relevant to the codepoint.
130 * @return Bitmap object when this factory knows the Bitmap relevant to the code. Otherwise
143 * @return Bitmap object when this factory knows the Bitmap relevant to the code. Otherwise
242 * @param class_name Name of the factory. This must include complete package name.
275 private native void nativeDestructor(int factory); argument
/frameworks/base/core/java/android/preference/
H A DGenericInflater.java169 * Return the current factory (or null). This is called on each element
170 * name. If the factory returns an item, add that to the hierarchy. If it
180 * once; after setting, you can not change the factory. This is called on
181 * each element name as the XML is parsed. If the factory returns an item,
182 * that is added to the hierarchy. If it returns null, the next factory
186 * own factory to it, use {@link #cloneInContext} to clone the existing
188 * instance. This will merge your own factory with whatever factory the
191 public void setFactory(Factory<T> factory) { argument
194 "A factory ha
[all...]
/frameworks/base/core/jni/
H A Dandroid_emoji_EmojiFactory.cpp108 JNIEnv* env, EmojiFactory* factory, jstring name) {
110 static_cast<jint>(reinterpret_cast<uintptr_t>(factory)), name);
132 EmojiFactory *factory = gCaller->TryCallGetImplementation(str.string()); local
133 // EmojiFactory *factory = EmojiFactory::GetImplementation(str.string());
134 if (NULL == factory) {
139 return create_java_EmojiFactory(env, factory, name);
149 EmojiFactory *factory = gCaller->TryCallGetAvailableImplementation(); local
150 // EmojiFactory *factory = EmojiFactory::GetAvailableImplementation();
151 if (NULL == factory) {
154 String16 name_16(String8(factory
107 create_java_EmojiFactory( JNIEnv* env, EmojiFactory* factory, jstring name) argument
165 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
199 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
205 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
211 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
217 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
223 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
229 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
235 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
241 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
[all...]
/frameworks/base/core/java/android/view/
H A DLayoutInflater.java242 * name. If the factory returns a View, add that to the hierarchy. If it
250 * Return the current {@link Factory2}. Returns null if no factory is set
251 * or the set factory does not implement the {@link Factory2} interface.
253 * name. If the factory returns a View, add that to the hierarchy. If it
263 * after setting, you can not change the factory. This is
264 * called on each element name as the xml is parsed. If the factory returns
266 * factory default {@link #onCreateView} method is called.
269 * LayoutInflater and want to add your own factory to it, use
272 * merge your own factory with whatever factory th
275 setFactory(Factory factory) argument
294 setFactory2(Factory2 factory) argument
312 setPrivateFactory(Factory2 factory) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContextWrapper.java222 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory) { argument
223 return mBase.openOrCreateDatabase(name, mode, factory);
227 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory, argument
229 return mBase.openOrCreateDatabase(name, mode, factory, errorHandler);
H A DContext.java763 * @param factory An optional factory class that is called to instantiate a
776 int mode, CursorFactory factory);
790 * @param factory An optional factory class that is called to instantiate a
804 int mode, CursorFactory factory, DatabaseErrorHandler errorHandler);
775 openOrCreateDatabase(String name, int mode, CursorFactory factory) argument
803 openOrCreateDatabase(String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) argument
/frameworks/base/libs/androidfw/
H A DInputTransport.cpp386 status_t InputConsumer::consume(InputEventFactoryInterface* factory, argument
409 result = consumeBatch(factory, frameTime, outSeq, outEvent);
424 KeyEvent* keyEvent = factory->createKeyEvent();
452 status_t result = consumeSamples(factory,
480 MotionEvent* motionEvent = factory->createMotionEvent();
503 status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, argument
509 result = consumeSamples(factory, batch, batch.samples.size(),
521 result = consumeSamples(factory, batch, split + 1, outSeq, outEvent);
538 status_t InputConsumer::consumeSamples(InputEventFactoryInterface* factory, argument
540 MotionEvent* motionEvent = factory
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java192 SQLiteDatabase.CursorFactory factory) {
198 SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) {
191 openOrCreateDatabase(String file, int mode, SQLiteDatabase.CursorFactory factory) argument
197 openOrCreateDatabase(String file, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) argument
/frameworks/base/core/java/android/app/
H A DContextImpl.java842 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory) { argument
843 return openOrCreateDatabase(name, mode, factory, null);
847 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory, argument
854 SQLiteDatabase db = SQLiteDatabase.openDatabase(f.getPath(), factory, flags, errorHandler);
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java372 public void setEGLContextFactory(EGLContextFactory factory) { argument
374 mEGLContextFactory = factory;
386 public void setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory factory) { argument
388 mEGLWindowSurfaceFactory = factory;

Completed in 2721 milliseconds