Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/jni/
Dandroid_emoji_EmojiFactory.cpp105 JNIEnv* env, EmojiFactory* factory, jstring name) { in create_java_EmojiFactory() argument
107 static_cast<jint>(reinterpret_cast<uintptr_t>(factory)), name); in create_java_EmojiFactory()
127 EmojiFactory *factory = gCaller->TryCallGetImplementation(nameUtf.c_str()); in android_emoji_EmojiFactory_newInstance() local
129 if (NULL == factory) { in android_emoji_EmojiFactory_newInstance()
133 return create_java_EmojiFactory(env, factory, name); in android_emoji_EmojiFactory_newInstance()
143 EmojiFactory *factory = gCaller->TryCallGetAvailableImplementation(); in android_emoji_EmojiFactory_newAvailableInstance() local
145 if (NULL == factory) { in android_emoji_EmojiFactory_newAvailableInstance()
149 jstring jname = env->NewStringUTF(factory->Name()); in android_emoji_EmojiFactory_newAvailableInstance()
154 return create_java_EmojiFactory(env, factory, jname); in android_emoji_EmojiFactory_newAvailableInstance()
159 EmojiFactory *factory = reinterpret_cast<EmojiFactory *>(nativeEmojiFactory); in android_emoji_EmojiFactory_getBitmapFromAndroidPua() local
[all …]
/frameworks/opt/emoji/
DEmojiFactory.cpp98 EmojiFactory *factory = (*get_emoji_factory)(); in TryRegisterEmojiFactory() local
99 if (NULL == factory) { in TryRegisterEmojiFactory()
105 const char *name = factory->Name(); in TryRegisterEmojiFactory()
112 delete factory; in TryRegisterEmojiFactory()
117 g_factories->push(factory); in TryRegisterEmojiFactory()
155 EmojiFactory *factory = g_factories->itemAt(i); in GetImplementation() local
156 if (!strcmp(name, factory->Name())) { in GetImplementation()
157 return factory; in GetImplementation()
168 EmojiFactory *factory = g_factories->itemAt(i); in GetAvailableImplementation() local
169 return factory; in GetAvailableImplementation()
/frameworks/base/core/java/android/widget/
DRemoteViewsService.java133 public RemoteViewsFactoryAdapter(RemoteViewsFactory factory, boolean isCreated) { in RemoteViewsFactoryAdapter() argument
134 mFactory = factory; in RemoteViewsFactoryAdapter()
218 RemoteViewsFactory factory = RemoteViewsService.sRemoteViewFactories.get(fc); in onDestroy() local
220 factory.onDestroy(); in onDestroy()
238 RemoteViewsFactory factory = null; in onBind() local
241 factory = onGetViewFactory(intent); in onBind()
242 sRemoteViewFactories.put(fc, factory); in onBind()
243 factory.onCreate(); in onBind()
246 factory = sRemoteViewFactories.get(fc); in onBind()
249 return new RemoteViewsFactoryAdapter(factory, isCreated); in onBind()
DRemoteViewsAdapter.java213 IRemoteViewsFactory factory = in onServiceConnected()
216 if (!factory.isCreated()) { in onServiceConnected()
219 factory.onDataSetChanged(); in onServiceConnected()
997 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory(); in updateTemporaryMetaData() local
1002 boolean hasStableIds = factory.hasStableIds(); in updateTemporaryMetaData()
1003 int viewTypeCount = factory.getViewTypeCount(); in updateTemporaryMetaData()
1004 int count = factory.getCount(); in updateTemporaryMetaData()
1005 RemoteViews loadingView = factory.getLoadingView(); in updateTemporaryMetaData()
1008 firstView = factory.getViewAt(0); in updateTemporaryMetaData()
1026 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory(); in updateRemoteViews() local
[all …]
DViewSwitcher.java111 public void setFactory(ViewFactory factory) { in setFactory() argument
112 mFactory = factory; in setFactory()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerFactory.cpp40 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, in registerFactory_l() argument
42 if (NULL == factory) { in registerFactory_l()
54 if (sFactoryMap.add(type, factory) < 0) { in registerFactory_l()
73 status_t MediaPlayerFactory::registerFactory(IFactory* factory, in registerFactory() argument
76 return registerFactory_l(factory, type); in registerFactory()
132 IFactory* factory; in createPlayer() local
142 factory = sFactoryMap.valueFor(playerType); in createPlayer()
143 CHECK(NULL != factory); in createPlayer()
144 p = factory->createPlayer(); in createPlayer()
DMediaPlayerFactory.h49 static status_t registerFactory(IFactory* factory,
72 static status_t registerFactory_l(IFactory* factory,
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteActionProvider.java208 public void setDialogFactory(MediaRouteDialogFactory factory) { in setDialogFactory() argument
209 if (factory == null) { in setDialogFactory()
213 if (mDialogFactory != factory) { in setDialogFactory()
214 mDialogFactory = factory; in setDialogFactory()
217 mButton.setDialogFactory(factory); in setDialogFactory()
DMediaRouteButton.java192 public void setDialogFactory(MediaRouteDialogFactory factory) { in setDialogFactory() argument
193 if (factory == null) { in setDialogFactory()
197 mDialogFactory = factory; in setDialogFactory()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java102 final InputStreamFactory factory = createInputStreamFactory(resolver, uri); in createLocalBitmap() local
104 final Point bounds = getImageBounds(factory); in createLocalBitmap()
112 result.bitmap = decodeStream(factory, null, opts); in createLocalBitmap()
145 public static Bitmap decodeStream(final InputStreamFactory factory, final Rect outPadding, in decodeStream() argument
150 is = factory.createInputStream(); in decodeStream()
155 is = factory.createInputStream(); in decodeStream()
197 private static Point getImageBounds(final InputStreamFactory factory) in getImageBounds() argument
201 decodeStream(factory, null, opts); in getImageBounds()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDirectCursorDriver.java43 public Cursor query(CursorFactory factory, String[] selectionArgs) { in query() argument
49 if (factory == null) { in query()
52 cursor = factory.newCursor(mDatabase, this, mEditTable, query); in query()
DSQLiteOpenHelper.java77 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { in SQLiteOpenHelper() argument
78 this(context, name, factory, version, null); in SQLiteOpenHelper()
98 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, in SQLiteOpenHelper() argument
104 mFactory = factory; in SQLiteOpenHelper()
DSQLiteDatabase.java668 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags) { in openDatabase() argument
669 return openDatabase(path, factory, flags, null); in openDatabase()
691 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags, in openDatabase() argument
693 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler); in openDatabase()
701 public static SQLiteDatabase openOrCreateDatabase(File file, CursorFactory factory) { in openOrCreateDatabase() argument
702 return openOrCreateDatabase(file.getPath(), factory); in openOrCreateDatabase()
708 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory) { in openOrCreateDatabase() argument
709 return openDatabase(path, factory, CREATE_IF_NECESSARY, null); in openOrCreateDatabase()
715 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory, in openOrCreateDatabase() argument
717 return openDatabase(path, factory, CREATE_IF_NECESSARY, errorHandler); in openOrCreateDatabase()
[all …]
DSQLiteCursorDriver.java34 Cursor query(CursorFactory factory, String[] bindArgs); in query() argument
/frameworks/base/core/java/android/view/
DViewStub.java253 final LayoutInflater factory; in inflate() local
255 factory = mInflater; in inflate()
257 factory = LayoutInflater.from(mContext); in inflate()
259 final View view = factory.inflate(mLayoutResource, parent, in inflate()
DLayoutInflater.java276 public void setFactory(Factory factory) { in setFactory() argument
280 if (factory == null) { in setFactory()
285 mFactory = factory; in setFactory()
287 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2); in setFactory()
295 public void setFactory2(Factory2 factory) { in setFactory2() argument
299 if (factory == null) { in setFactory2()
304 mFactory = mFactory2 = factory; in setFactory2()
306 mFactory = new FactoryMerger(factory, factory, mFactory, mFactory2); in setFactory2()
313 public void setPrivateFactory(Factory2 factory) { in setPrivateFactory() argument
314 mPrivateFactory = factory; in setPrivateFactory()
/frameworks/base/test-runner/src/android/test/
DRenamingDelegatingContext.java142 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase() argument
148 return mFileContext.openOrCreateDatabase(internalName, mode, factory); in openOrCreateDatabase()
153 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
159 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler); in openOrCreateDatabase()
/frameworks/base/media/mca/effect/java/android/media/effect/
DSingleFilterEffect.java62 FilterFactory factory = FilterFactory.sharedFactory(); in SingleFilterEffect() local
63 Filter filter = factory.createFilterByClass(filterClass, filterName); in SingleFilterEffect()
/frameworks/base/core/java/android/preference/
DGenericInflater.java191 public void setFactory(Factory<T> factory) { in setFactory() argument
196 if (factory == null) { in setFactory()
201 mFactory = factory; in setFactory()
203 mFactory = new FactoryMerger<T>(factory, mFactory); in setFactory()
/frameworks/base/services/java/com/android/server/firewall/
DIntentFirewall.java104 FilterFactory factory = factories[i];
105 factoryMap.put(factory.getTagName(), factory); in factory.getTagName()
382 FilterFactory factory = factoryMap.get(elementName); in parseFilter() local
384 if (factory == null) { in parseFilter()
387 return factory.newFilter(parser); in parseFilter()
/frameworks/native/libs/input/
DInputTransport.cpp392 status_t InputConsumer::consume(InputEventFactoryInterface* factory, in consume() argument
415 result = consumeBatch(factory, frameTime, outSeq, outEvent); in consume()
430 KeyEvent* keyEvent = factory->createKeyEvent(); in consume()
458 status_t result = consumeSamples(factory, in consume()
486 MotionEvent* motionEvent = factory->createMotionEvent(); in consume()
509 status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, in consumeBatch() argument
515 result = consumeSamples(factory, batch, batch.samples.size(), in consumeBatch()
530 result = consumeSamples(factory, batch, split + 1, outSeq, outEvent); in consumeBatch()
547 status_t InputConsumer::consumeSamples(InputEventFactoryInterface* factory, in consumeSamples() argument
549 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples()
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DAlignmentTest.java88 ViewFactory factory = FACTORIES[(i + j) % FACTORIES.length]; in create() local
89 container.addView(factory.create(name, 20), layoutParams); in create()
/frameworks/av/media/libeffects/proxy/
DAndroid.mk32 frameworks/av/media/libeffects/factory
/frameworks/native/include/input/
DInputTransport.h295 status_t consume(InputEventFactoryInterface* factory, bool consumeBatches,
416 status_t consumeBatch(InputEventFactoryInterface* factory,
418 status_t consumeSamples(InputEventFactoryInterface* factory,
/frameworks/base/core/java/android/content/
DContextWrapper.java249 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory) { in openOrCreateDatabase() argument
250 return mBase.openOrCreateDatabase(name, mode, factory); in openOrCreateDatabase()
254 public SQLiteDatabase openOrCreateDatabase(String name, int mode, CursorFactory factory, in openOrCreateDatabase() argument
256 return mBase.openOrCreateDatabase(name, mode, factory, errorHandler); in openOrCreateDatabase()

123