Home
last modified time | relevance | path

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

12

/packages/apps/Messaging/src/com/android/messaging/
DFactoryImpl.java83 final FactoryImpl factory = new FactoryImpl(); in register() local
84 Factory.setInstance(factory); in register()
89 factory.mApplication = application; in register()
90 factory.mApplicationContext = applicationContext; in register()
91 factory.mMemoryCacheManager = new MemoryCacheManager(); in register()
92 factory.mMediaCacheManager = new BugleMediaCacheManager(); in register()
93 factory.mMediaResourceManager = new MediaResourceManager(); in register()
94 factory.mBugleGservices = new BugleGservicesImpl(applicationContext); in register()
95 factory.mBugleApplicationPrefs = new BugleApplicationPrefs(applicationContext); in register()
96 factory.mDataModel = new DataModelImpl(applicationContext); in register()
[all …]
DBugleApplication.java101 public void initializeSync(final Factory factory) { in initializeSync() argument
103 final Context context = factory.getApplicationContext(); in initializeSync()
104 final BugleGservices bugleGservices = factory.getBugleGservices(); in initializeSync()
105 final BuglePrefs buglePrefs = factory.getApplicationPrefs(); in initializeSync()
106 final DataModel dataModel = factory.getDataModel(); in initializeSync()
108 factory.getCarrierConfigValuesLoader(); in initializeSync()
165 public void initializeAsync(final Factory factory) { in initializeAsync() argument
168 maybeHandleSharedPrefsUpgrade(factory); in initializeAsync()
229 private void maybeHandleSharedPrefsUpgrade(final Factory factory) { in maybeHandleSharedPrefsUpgrade() argument
230 final int existingVersion = factory.getApplicationPrefs().getInt( in maybeHandleSharedPrefsUpgrade()
[all …]
DFactory.java49 protected static void setInstance(final Factory factory) { in setInstance() argument
53 sInstance = factory; in setInstance()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionViewFactory.java47 protected final void addFactory(SuggestionViewFactory factory) { in addFactory() argument
48 mFactories.addFirst(factory); in addFactory()
56 for (SuggestionViewFactory factory : mFactories) { in getSuggestionViewTypes()
57 mViewTypes.addAll(factory.getSuggestionViewTypes()); in getSuggestionViewTypes()
66 for (SuggestionViewFactory factory : mFactories) { in getView()
67 if (factory.canCreateView(suggestion)) { in getView()
68 return factory.getView(suggestion, userQuery, convertView, parent); in getView()
76 for (SuggestionViewFactory factory : mFactories) { in getViewType()
77 if (factory.canCreateView(suggestion)) { in getViewType()
78 return factory.getViewType(suggestion); in getViewType()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java74 final FakeFactory factory = new FakeFactory(); in registerWithFakeContext() local
75 Factory.setInstance(factory); in registerWithFakeContext()
79 factory.mContext = context; in registerWithFakeContext()
80 factory.mFakeContext = fake; in registerWithFakeContext()
81 factory.mMediaResourceManager = Mockito.mock(MediaResourceManager.class); in registerWithFakeContext()
82 factory.mBugleGservices = new FakeBugleGservices(); in registerWithFakeContext()
83 factory.mBuglePrefs = new FakeBuglePrefs(); in registerWithFakeContext()
84 factory.mPhoneUtils = Mockito.mock(PhoneUtils.class); in registerWithFakeContext()
88 Mockito.when(factory.mPhoneUtils.getCanonicalBySystemLocale(Matchers.anyString())) in registerWithFakeContext()
97 Mockito.when(factory.mPhoneUtils.getCanonicalBySimLocale(Matchers.anyString())).thenAnswer( in registerWithFakeContext()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java50 public void play(RingtoneFactory factory, Call incomingCall) { in play() argument
53 args.arg1 = factory; in play()
116 RingtoneFactory factory = (RingtoneFactory) args.arg1;
135 mRingtone = factory.getRingtone(incomingCall);
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DObjectCursorLoader.java56 CursorCreator<T> factory) { in ObjectCursorLoader() argument
63 if (factory == null) { in ObjectCursorLoader()
70 mFactory = factory; in ObjectCursorLoader()
DObjectCursor.java39 public ObjectCursor(Cursor cursor, CursorCreator<T> factory) { in ObjectCursor() argument
46 mFactory = factory; in ObjectCursor()
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DStringResourceMap.java54 final SAXParserFactory factory = SAXParserFactory.newInstance(); in StringResourceMap() local
55 factory.setNamespaceAware(true); in StringResourceMap()
58 final SAXParser parser = factory.newSAXParser(); in StringResourceMap()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java41 MenuRowFactory factory = Mockito.mock(MenuRowFactory.class); in setUp() local
42 Mockito.when(factory.createMenuRow(Mockito.any(Menu.class), Mockito.any(Class.class))) in setUp()
45 mMenu = new Menu(getContext(), mMenuView, factory, mVisibilityChangeListener); in setUp()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPriorityThreadFactoryTest.java41 ThreadFactory factory = new PriorityThreadFactory(priority); in priorityTest() local
43 Thread t = factory.newThread(r); in priorityTest()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastCursorAdapter.java49 LayoutInflater factory = LayoutInflater.from(context); in newView() local
50 CellBroadcastListItem listItem = (CellBroadcastListItem) factory.inflate( in newView()
/packages/apps/Dialer/src/com/android/dialer/util/
DAsyncTaskExecutors.java75 public static void setFactoryForTest(AsyncTaskExecutorFactory factory) { in setFactoryForTest() argument
77 mInjectedAsyncTaskExecutorFactory = factory; in setFactoryForTest()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAccountLoadCallbacks.java40 final CursorCreator<Account> factory = Account.FACTORY; in onCreateLoader() local
41 return new ObjectCursorLoader<Account>(mContext, mAccountUri, projection, factory); in onCreateLoader()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripContentQueries.java63 CursorToFilmstripItemFactory<I> factory) { in forCameraPath() argument
72 I item = factory.get(cursor); in forCameraPath()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DCursorFactoryListAdapter.java61 public CursorFactoryListAdapter(Context context, ViewFactory factory) { in CursorFactoryListAdapter() argument
63 mViewFactory = factory; in CursorFactoryListAdapter()
/packages/apps/Gallery2/src/com/android/photos/adapters/
DPhotoThumbnailAdapter.java43 public void setDrawableFactory(LoaderCompatShim<Cursor> factory) { in setDrawableFactory() argument
44 mDrawableFactory = factory; in setDrawableFactory()
DAlbumSetCursorAdapter.java41 public void setDrawableFactory(LoaderCompatShim<Cursor> factory) { in setDrawableFactory() argument
42 mDrawableFactory = factory; in setDrawableFactory()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberDatabaseHelper.java42 public OpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, in OpenHelper() argument
44 super(context, name, factory, version); in OpenHelper()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentComposeView.java55 LayoutInflater factory = LayoutInflater.from(getContext()); in AttachmentComposeView() local
57 factory.inflate(R.layout.attachment, this); in AttachmentComposeView()
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java138 XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); in forEachConfigXml() local
139 XmlPullParser parser = factory.newPullParser(); in forEachConfigXml()
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
DVpnProfileParser.java233 SAXParserFactory factory = SAXParserFactory.newInstance(); in parse() local
234 SAXParser saxParser = factory.newSAXParser(); in parse()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactoryWrapper.java67 SSLSocketFactoryWrapper(final SSLSocketFactory factory, final boolean secure, in SSLSocketFactoryWrapper() argument
69 mFactory = factory; in SSLSocketFactoryWrapper()
/packages/apps/Settings/src/com/android/settings/dashboard/
DSummaryLoader.java133 SummaryProviderFactory factory = (SummaryProviderFactory) field.get(null); in getSummaryProvider() local
134 return factory.createSummaryProvider(mActivity, this); in getSummaryProvider()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java50 public static Spanned htmlToSpan(String html, HtmlTree.ConverterFactory factory) { in htmlToSpan() argument
54 htmlTree.setConverterFactory(factory); in htmlToSpan()

12