Home
last modified time | relevance | path

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

123456789

/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()
166 public void initializeAsync(final Factory factory) { in initializeAsync() argument
169 maybeHandleSharedPrefsUpgrade(factory); in initializeAsync()
230 private void maybeHandleSharedPrefsUpgrade(final Factory factory) { in maybeHandleSharedPrefsUpgrade() argument
231 final int existingVersion = factory.getApplicationPrefs().getInt( in maybeHandleSharedPrefsUpgrade()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionViewFactory.kt33 protected fun addFactory(factory: SuggestionViewFactory?) { in addFactory()
34 mFactories.addFirst(factory) in addFactory()
43 for (factory in mFactories) { constant
44 mViewTypes?.addAll(factory.suggestionViewTypes)
57 for (factory in mFactories) { in getView() method
58 if (factory.canCreateView(suggestion)) { in getView()
59 return factory.getView(suggestion, userQuery, convertView, parent) in getView()
67 for (factory in mFactories) { in getViewType() method
68 if (factory.canCreateView(suggestion)) { in getViewType()
69 return factory.getViewType(suggestion)!! in getViewType()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java75 final FakeFactory factory = new FakeFactory(); in registerWithFakeContext() local
76 Factory.setInstance(factory); in registerWithFakeContext()
80 factory.mContext = context; in registerWithFakeContext()
81 factory.mFakeContext = fake; in registerWithFakeContext()
82 factory.mMediaResourceManager = Mockito.mock(MediaResourceManager.class); in registerWithFakeContext()
83 factory.mBugleGservices = new FakeBugleGservices(); in registerWithFakeContext()
84 factory.mBuglePrefs = new FakeBuglePrefs(); in registerWithFakeContext()
85 factory.mPhoneUtils = Mockito.mock(PhoneUtils.class); in registerWithFakeContext()
89 Mockito.when(factory.mPhoneUtils.getCanonicalBySystemLocale(Matchers.anyString())) in registerWithFakeContext()
98 Mockito.when(factory.mPhoneUtils.getCanonicalBySimLocale(Matchers.anyString())).thenAnswer( in registerWithFakeContext()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dphy_layer.cc76 std::stringstream factory; in ToString() local
79 factory << "LOW_ENERGY: "; in ToString()
82 factory << "BR_EDR: "; in ToString()
85 factory << "Unknown: "; in ToString()
88 factory << device->id; in ToString()
89 factory << ","; in ToString()
92 return factory.str(); in ToString()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp128 FakeSocketFactory<FakeSocketEcho> factory; in TEST_F() local
129 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
163 FakeSocketFactory<FakeSocketId> factory; in TEST_F() local
164 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
182 FakeSocketFactory<FakeSocketEcho> factory; in TEST_F() local
183 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
253 FakeSocketFactory<FakeSocketDelay> factory; in TEST_F() local
254 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
272 FakeSocketFactory<FakeSocketDelay> factory; in TEST_F() local
273 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/notification/
DMigrationNotificationFactoryTest.java41 MigrationNotificationFactory factory = new MigrationNotificationFactory(mContext); in testAllNotificationStringsExist() local
44 String fetched = factory.getStringResource(s); in testAllNotificationStringsExist()
52 MigrationNotificationFactory factory = new MigrationNotificationFactory(mContext); in testAppIconDrawableExists() local
53 Icon fetched = factory.getAppIcon(); in testAppIconDrawableExists()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DChooserActionFactoryTest.kt80 val factory = createFactory() in testCreateCustomActions() constant
82 val customActions = factory.createCustomActions() in testCreateCustomActions()
98 val factory = createFactory(includeModifyShare = false) in testNoModifyShareAction() constant
100 assertThat(factory.modifyShareAction).isNull() in testNoModifyShareAction()
105 val factory = createFactory(includeModifyShare = true) in testModifyShareAction() constant
107 val action = factory.modifyShareAction ?: error("Modify share action should not be null") in testModifyShareAction()
DTargetPresentationGetterTest.kt38 val factory = TargetPresentationGetter.Factory(testPackageInfo.ctx, 100) in makeResolveInfoPresentationGetter() constant
39 return factory.makePresentationGetter(testPackageInfo.resolveInfo) in makeResolveInfoPresentationGetter()
48 val factory = TargetPresentationGetter.Factory(testPackageInfo.ctx, 100) in makeActivityInfoPresentationGetter() constant
49 return factory.makePresentationGetter(testPackageInfo.activityInfo) in makeActivityInfoPresentationGetter()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DMultiPropertyFactoryTest.kt43 private val factory = in <lambda>() constant
46 private val p1 = factory.get(0) in <lambda>()
47 private val p2 = factory.get(1) in <lambda>()
48 private val p3 = factory.get(2) in <lambda>()
DMultiScalePropertyTest.kt33 private val factory = constant
40 private val p1 = factory.get(1)
41 private val p2 = factory.get(2)
42 private val p3 = factory.get(3)
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java141 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase() argument
143 return mFileContext.openOrCreateDatabase(name, mode, factory); in openOrCreateDatabase()
150 return mFileContext.openOrCreateDatabase(internalName, mode, factory); in openOrCreateDatabase()
155 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
157 return mFileContext.openOrCreateDatabase(name, mode, factory, errorHandler); in openOrCreateDatabase()
164 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler); in openOrCreateDatabase()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DLauncherAnimationRunner.java77 public LauncherAnimationRunner(Handler handler, RemoteAnimationFactory factory, in LauncherAnimationRunner() argument
80 mFactory = new WeakReference<>(factory); in LauncherAnimationRunner()
106 RemoteAnimationFactory factory = mFactory.get(); in getFactory() local
107 return factory != null ? factory : DEFAULT_FACTORY; in getFactory()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DGetTranscriptReceiver.java237 TranscriptionClientFactory factory = null; in pollForTranscription() local
239 factory = getTranscriptionClientFactory(context); in pollForTranscription()
240 TranscriptionClient client = factory.getClient(); in pollForTranscription()
257 if (factory != null) { in pollForTranscription()
258 factory.shutdown(); in pollForTranscription()
294 static void setTranscriptionClientFactoryForTesting(TranscriptionClientFactory factory) { in setTranscriptionClientFactoryForTesting() argument
295 transcriptionClientFactoryForTesting = factory; in setTranscriptionClientFactoryForTesting()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSessionExoV2.java36 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory;
37 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory.SessionRecordingCallback;
38 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory.SessionReleasedCallback;
40 import com.google.auto.factory.AutoFactory;
41 import com.google.auto.factory.Provided;
DTunerSession.java36 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory;
37 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory.SessionRecordingCallback;
38 import com.android.tv.tuner.tvinput.factory.TunerSessionFactory.SessionReleasedCallback;
40 import com.google.auto.factory.AutoFactory;
41 import com.google.auto.factory.Provided;
DTunerRecordingSessionExoV2.java29 import com.android.tv.tuner.tvinput.factory.TunerRecordingSessionFactory;
30 import com.android.tv.tuner.tvinput.factory.TunerRecordingSessionFactory.RecordingSessionReleasedCa…
32 import com.google.auto.factory.AutoFactory;
33 import com.google.auto.factory.Provided;
DTunerRecordingSession.java29 import com.android.tv.tuner.tvinput.factory.TunerRecordingSessionFactory;
30 import com.android.tv.tuner.tvinput.factory.TunerRecordingSessionFactory.RecordingSessionReleasedCa…
32 import com.google.auto.factory.AutoFactory;
33 import com.google.auto.factory.Provided;
/packages/modules/DnsResolver/
DDnsTlsDispatcher.h43 explicit DnsTlsDispatcher(std::unique_ptr<IDnsTlsSocketFactory> factory) in DnsTlsDispatcher() argument
44 : mFactory(std::move(factory)) {} in DnsTlsDispatcher()
86 IDnsTlsSocketFactory* _Nonnull factory, int triggerThr, int unusableThr, in Transport()
88 : transport(server, mark, factory), in Transport()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.kt110 factory: ItemViewHolder.Factory, in withViewTypes()
115 mFactoriesByViewType.put(viewType, factory) in withViewTypes()
240 val factory = mFactoriesByViewType[viewType] in onCreateViewHolder() constant
241 if (factory != null) { in onCreateViewHolder()
242 return factory.createViewHolder(parent, viewType) as ItemViewHolder<T> in onCreateViewHolder()
/packages/apps/TV/
Dbuild.gradle89 annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7'
90 implementation 'com.google.auto.factory:auto-factory:1.0-beta7'
/packages/apps/TV/tuner/
Dbuild.gradle78 annotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta7'
79 implementation 'com.google.auto.factory:auto-factory:1.0-beta7'
/packages/apps/Launcher3/src/com/android/launcher3/views/
DIconButtonView.java77 try (BaseIconFactory factory = LauncherIcons.obtain(context)) { in IconButtonView() argument
78 setIcon(new IconDrawable(factory.getWhiteShadowLayer(), tint, fg)); in IconButtonView()
92 try (BaseIconFactory factory = LauncherIcons.obtain(getContext())) { in setIconDrawable() argument
93 setIcon(new IconDrawable(factory.getWhiteShadowLayer(), tint, drawable)); in setIconDrawable()
/packages/modules/Bluetooth/system/test/headless/
Dproperty.cc61 const auto factory = property_map.find(bt_property.type); in property_factory() local
62 if (factory != property_map.end()) { in property_factory()
63 return factory->second(data, size); in property_factory()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java40 final FeatureFactory factory = FeatureFactory.getFactory(context); in EnterpriseSetDefaultAppsPreferenceController() local
41 mApplicationFeatureProvider = factory.getApplicationFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController()
42 mUserFeatureProvider = factory.getUserFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController()

123456789