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

12

/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;
/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/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java102 final InputStreamFactory factory = createInputStreamFactory(resolver, uri);
104 final Point bounds = getImageBounds(factory);
112 result.bitmap = decodeStream(factory, null, opts);
133 * @param factory Used to create input streams that holds the raw data to be decoded into a
145 public static Bitmap decodeStream(final InputStreamFactory factory, final Rect outPadding, argument
150 is = factory.createInputStream();
155 is = factory.createInputStream();
193 * @param factory Used to create the InputStream.
197 private static Point getImageBounds(final InputStreamFactory factory) argument
201 decodeStream(factory, nul
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteActionProvider.java193 * Gets the media route dialog factory to use when showing the route chooser
196 * @return The dialog factory, never null.
203 * Sets the media route dialog factory to use when showing the route chooser
206 * @param factory The dialog factory, must not be null.
208 public void setDialogFactory(MediaRouteDialogFactory factory) { argument
209 if (factory == null) {
210 throw new IllegalArgumentException("factory must not be null");
213 if (mDialogFactory != factory) {
214 mDialogFactory = factory;
[all...]
H A DMediaRouteButton.java177 * Gets the media route dialog factory to use when showing the route chooser
180 * @return The dialog factory, never null.
187 * Sets the media route dialog factory to use when showing the route chooser
190 * @param factory The dialog factory, must not be null.
192 public void setDialogFactory(MediaRouteDialogFactory factory) { argument
193 if (factory == null) {
194 throw new IllegalArgumentException("factory must not be null");
197 mDialogFactory = factory;
210 * to provide a customized dialog factory
[all...]
/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.cpp105 JNIEnv* env, EmojiFactory* factory, jstring name) {
107 static_cast<jint>(reinterpret_cast<uintptr_t>(factory)), name);
127 EmojiFactory *factory = gCaller->TryCallGetImplementation(nameUtf.c_str()); local
128 // EmojiFactory *factory = EmojiFactory::GetImplementation(str.string());
129 if (NULL == factory) {
133 return create_java_EmojiFactory(env, factory, name);
143 EmojiFactory *factory = gCaller->TryCallGetAvailableImplementation(); local
144 // EmojiFactory *factory = EmojiFactory::GetAvailableImplementation();
145 if (NULL == factory) {
149 jstring jname = env->NewStringUTF(factory
104 create_java_EmojiFactory( JNIEnv* env, EmojiFactory* factory, jstring name) argument
159 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
188 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
194 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
200 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
206 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
212 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
218 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
224 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
230 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); local
[all...]
/frameworks/base/core/java/android/view/
H A DLayoutInflater.java243 * name. If the factory returns a View, add that to the hierarchy. If it
251 * Return the current {@link Factory2}. Returns null if no factory is set
252 * or the set factory does not implement the {@link Factory2} interface.
254 * name. If the factory returns a View, add that to the hierarchy. If it
264 * after setting, you can not change the factory. This is
265 * called on each element name as the xml is parsed. If the factory returns
267 * factory default {@link #onCreateView} method is called.
270 * LayoutInflater and want to add your own factory to it, use
273 * merge your own factory with whatever factory th
276 setFactory(Factory factory) argument
295 setFactory2(Factory2 factory) argument
313 setPrivateFactory(Factory2 factory) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContextWrapper.java249 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory) { argument
250 return mBase.openOrCreateDatabase(name, mode, factory);
254 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory, argument
256 return mBase.openOrCreateDatabase(name, mode, factory, errorHandler);
H A DContext.java922 * @param factory An optional factory class that is called to instantiate a
935 int mode, CursorFactory factory);
949 * @param factory An optional factory class that is called to instantiate a
963 int mode, CursorFactory factory, DatabaseErrorHandler errorHandler);
934 openOrCreateDatabase(String name, int mode, CursorFactory factory) argument
962 openOrCreateDatabase(String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) argument
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java204 SQLiteDatabase.CursorFactory factory) {
210 SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) {
203 openOrCreateDatabase(String file, int mode, SQLiteDatabase.CursorFactory factory) argument
209 openOrCreateDatabase(String file, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) argument
/frameworks/native/libs/input/
H A DInputTransport.cpp392 status_t InputConsumer::consume(InputEventFactoryInterface* factory, argument
415 result = consumeBatch(factory, frameTime, outSeq, outEvent);
430 KeyEvent* keyEvent = factory->createKeyEvent();
458 status_t result = consumeSamples(factory,
486 MotionEvent* motionEvent = factory->createMotionEvent();
509 status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, argument
515 result = consumeSamples(factory, batch, batch.samples.size(),
530 result = consumeSamples(factory, batch, split + 1, outSeq, outEvent);
547 status_t InputConsumer::consumeSamples(InputEventFactoryInterface* factory, argument
549 MotionEvent* motionEvent = factory
[all...]
/frameworks/base/core/java/android/app/
H A DContextImpl.java940 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory) { argument
941 return openOrCreateDatabase(name, mode, factory, null);
945 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory, argument
952 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;
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewChromium.java147 public WebViewChromium(WebViewChromiumFactoryProvider factory, WebView webView, argument
153 mFactory = factory;

Completed in 661 milliseconds

12