Home
last modified time | relevance | path

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

123

/frameworks/base/core/jni/
Dandroid_emoji_EmojiFactory.cpp105 JNIEnv* env, EmojiFactory* factory, jstring name) { in create_java_EmojiFactory() argument
107 reinterpret_cast<jlong>(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.java206 IRemoteViewsFactory factory = in onServiceConnected()
209 if (!factory.isCreated()) { in onServiceConnected()
212 factory.onDataSetChanged(); in onServiceConnected()
978 IRemoteViewsFactory factory = mServiceConnection.getRemoteViewsFactory(); in updateTemporaryMetaData() local
983 boolean hasStableIds = factory.hasStableIds(); in updateTemporaryMetaData()
984 int viewTypeCount = factory.getViewTypeCount(); in updateTemporaryMetaData()
985 int count = factory.getCount(); in updateTemporaryMetaData()
986 RemoteViews loadingView = factory.getLoadingView(); in updateTemporaryMetaData()
989 firstView = factory.getViewAt(0); in updateTemporaryMetaData()
1007 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.cpp43 status_t MediaPlayerFactory::registerFactory_l(IFactory* factory, in registerFactory_l() argument
45 if (NULL == factory) { in registerFactory_l()
57 if (sFactoryMap.add(type, factory) < 0) { in registerFactory_l()
82 status_t MediaPlayerFactory::registerFactory(IFactory* factory, in registerFactory() argument
85 return registerFactory_l(factory, type); in registerFactory()
141 IFactory* factory; in createPlayer() local
151 factory = sFactoryMap.valueFor(playerType); in createPlayer()
152 CHECK(NULL != factory); in createPlayer()
153 p = factory->createPlayer(); in createPlayer()
DMediaPlayerFactory.h49 static status_t registerFactory(IFactory* factory,
72 static status_t registerFactory_l(IFactory* factory,
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java99 final InputStreamFactory factory = createInputStreamFactory(resolver, uri); in createLocalBitmap() local
101 final Point bounds = getImageBounds(factory); in createLocalBitmap()
109 result.bitmap = decodeStream(factory, null, opts); in createLocalBitmap()
142 public static Bitmap decodeStream(final InputStreamFactory factory, final Rect outPadding, in decodeStream() argument
147 is = factory.createInputStream(); in decodeStream()
154 is = factory.createInputStream(); in decodeStream()
196 private static Point getImageBounds(final InputStreamFactory factory) in getImageBounds() argument
200 decodeStream(factory, null, opts); in getImageBounds()
/frameworks/support/v4/jellybean/android/support/v4/app/
DRemoteInputCompatJellybean.java38 RemoteInputCompatBase.RemoteInput.Factory factory) { in fromBundle() argument
39 return factory.build(data.getString(KEY_RESULT_KEY), in fromBundle()
57 RemoteInputCompatBase.RemoteInput.Factory factory) { in fromBundleArray() argument
61 RemoteInputCompatBase.RemoteInput[] remoteInputs = factory.newArray(bundles.length); in fromBundleArray()
63 remoteInputs[i] = fromBundle(bundles[i], factory); in fromBundleArray()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteActionProvider.java212 public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { in setDialogFactory() argument
213 if (factory == null) { in setDialogFactory()
217 if (mDialogFactory != factory) { in setDialogFactory()
218 mDialogFactory = factory; in setDialogFactory()
221 mButton.setDialogFactory(factory); in setDialogFactory()
/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.java76 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version) { in SQLiteOpenHelper() argument
77 this(context, name, factory, version, null); in SQLiteOpenHelper()
97 public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int version, in SQLiteOpenHelper() argument
103 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/support/v4/api20/android/support/v4/app/
DRemoteInputCompatApi20.java25 RemoteInputCompatBase.RemoteInput.Factory factory) { in toCompat() argument
29 RemoteInputCompatBase.RemoteInput[] result = factory.newArray(srcArray.length); in toCompat()
32 result[i] = factory.build(src.getResultKey(), src.getLabel(), src.getChoices(), in toCompat()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DViewStubCompat.java195 final LayoutInflater factory; in inflate() local
197 factory = mInflater; in inflate()
199 factory = LayoutInflater.from(getContext()); in inflate()
201 final View view = factory.inflate(mLayoutResource, parent, in inflate()
/frameworks/base/core/java/android/view/
DViewStub.java258 final LayoutInflater factory; in inflate() local
260 factory = mInflater; in inflate()
262 factory = LayoutInflater.from(mContext); in inflate()
264 final View view = factory.inflate(mLayoutResource, parent, in inflate()
DLayoutInflater.java284 public void setFactory(Factory factory) { in setFactory() argument
288 if (factory == null) { in setFactory()
293 mFactory = factory; in setFactory()
295 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2); in setFactory()
303 public void setFactory2(Factory2 factory) { in setFactory2() argument
307 if (factory == null) { in setFactory2()
312 mFactory = mFactory2 = factory; in setFactory2()
314 mFactory = mFactory2 = new FactoryMerger(factory, factory, mFactory, mFactory2); in setFactory2()
321 public void setPrivateFactory(Factory2 factory) { in setPrivateFactory() argument
323 mPrivateFactory = factory; in setPrivateFactory()
[all …]
/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.java59 FilterFactory factory = FilterFactory.sharedFactory(); in SingleFilterEffect() local
60 Filter filter = factory.createFilterByClass(filterClass, filterName); in SingleFilterEffect()
/frameworks/support/v4/api21/android/support/v4/app/
DNotificationCompatApi21.java156 Bundle b, NotificationCompatBase.UnreadConversation.Factory factory, in getUnreadConversationFromBundle() argument
195 return factory.build( in getUnreadConversationFromBundle()
215 RemoteInputCompatBase.RemoteInput.Factory factory) { in toCompatRemoteInput() argument
216 return factory.build(remoteInput.getResultKey(), in toCompatRemoteInput()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java258 final FileDescriptorFactory factory) { in fileDescriptorFactoryCreated() argument
266 decode(factory); in fileDescriptorFactoryCreated()
273 protected void decode(final FileDescriptorFactory factory) { in decode() argument
293 mTask = new DecodeTask(mCurrKey, opts, factory, this, mCache); in decode()
/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/core/java/com/android/server/firewall/
DIntentFirewall.java106 FilterFactory factory = factories[i];
107 factoryMap.put(factory.getTagName(), factory); in factory.getTagName()
387 FilterFactory factory = factoryMap.get(elementName); in parseFilter() local
389 if (factory == null) { in parseFilter()
392 return factory.newFilter(parser); in parseFilter()
/frameworks/native/libs/input/
DInputTransport.cpp393 status_t InputConsumer::consume(InputEventFactoryInterface* factory, in consume() argument
416 result = consumeBatch(factory, frameTime, outSeq, outEvent); in consume()
431 KeyEvent* keyEvent = factory->createKeyEvent(); in consume()
459 status_t result = consumeSamples(factory, in consume()
487 MotionEvent* motionEvent = factory->createMotionEvent(); in consume()
510 status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, in consumeBatch() argument
516 result = consumeSamples(factory, batch, batch.samples.size(), in consumeBatch()
531 result = consumeSamples(factory, batch, split + 1, outSeq, outEvent); in consumeBatch()
548 status_t InputConsumer::consumeSamples(InputEventFactoryInterface* factory, in consumeSamples() argument
550 MotionEvent* motionEvent = factory->createMotionEvent(); in consumeSamples()

123