Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 25 of 42) 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/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/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/Browser/src/com/android/browser/
DPageDialogsHandler.java140 final LayoutInflater factory = LayoutInflater.from(mContext); in showPageInfo()
142 final View pageInfoView = factory.inflate(R.layout.page_info, null); in showPageInfo()
348 LayoutInflater factory = LayoutInflater.from(mContext); in createSslCertificateDialog() local
353 LinearLayout table = (LinearLayout)factory.inflate(R.layout.ssl_success, placeholder); in createSslCertificateDialog()
359 addError(factory, placeholder, R.string.ssl_untrusted); in createSslCertificateDialog()
362 addError(factory, placeholder, R.string.ssl_mismatch); in createSslCertificateDialog()
365 addError(factory, placeholder, R.string.ssl_expired); in createSslCertificateDialog()
368 addError(factory, placeholder, R.string.ssl_not_yet_valid); in createSslCertificateDialog()
371 addError(factory, placeholder, R.string.ssl_date_invalid); in createSslCertificateDialog()
374 addError(factory, placeholder, R.string.ssl_invalid); in createSslCertificateDialog()
[all …]
DAddNewBookmark.java41 LayoutInflater factory = LayoutInflater.from(context); in AddNewBookmark() local
42 factory.inflate(R.layout.add_new_bookmark, this); in AddNewBookmark()
DHttpAuthenticationDialog.java111 LayoutInflater factory = LayoutInflater.from(mContext); in createDialog() local
112 View v = factory.inflate(R.layout.http_authentication, null); in createDialog()
DBookmarkItem.java54 LayoutInflater factory = LayoutInflater.from(context); in BookmarkItem() local
55 factory.inflate(R.layout.history_item, this); in BookmarkItem()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DIntentStore.java232 XmlPullParserFactory factory; in stringToAccount() local
235 factory = XmlPullParserFactory.newInstance(); in stringToAccount()
237 parser = factory.newPullParser(); in stringToAccount()
285 XmlPullParserFactory factory; in stringToPersistableBundle() local
288 factory = XmlPullParserFactory.newInstance(); in stringToPersistableBundle()
290 parser = factory.newPullParser(); in stringToPersistableBundle()
/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/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/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/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTree.java137 public void setConverterFactory(ConverterFactory factory) { in setConverterFactory() argument
138 if (factory == null) { in setConverterFactory()
141 converterFactory = factory; in setConverterFactory()
/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/src/com/android/settings/vpn2/
DVpnProfileParser.java233 SAXParserFactory factory = SAXParserFactory.newInstance(); in parse() local
234 SAXParser saxParser = factory.newSAXParser(); in parse()

12