Home
last modified time | relevance | path

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

1234567

/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 …]
/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.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/apps/Car/Messenger/src/com/android/car/messenger/impl/
DAppFactoryImpl.java65 final AppFactoryImpl factory = new AppFactoryImpl(); in register() local
66 AppFactory.setInstance(factory); in register()
71 factory.mApplicationContext = application.getApplicationContext(); in register()
72 factory.mDataModel = new TelephonyDataModel(); in register()
73 factory.mSharedPreferences = in register()
74 PreferenceManager.getDefaultSharedPreferences(factory.mApplicationContext); in register()
77 Intent intent = new Intent(factory.mApplicationContext, MessengerService.class); in register()
78 factory.mApplicationContext.bindService( in register()
79 intent, factory.mServiceConnection, Context.BIND_AUTO_CREATE); in register()
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp151 FakeSocketFactory<FakeSocketEcho> factory; in TEST_F() local
152 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
186 FakeSocketFactory<FakeSocketId> factory; in TEST_F() local
187 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
205 FakeSocketFactory<FakeSocketEcho> factory; in TEST_F() local
206 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
276 FakeSocketFactory<FakeSocketDelay> factory; in TEST_F() local
277 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
295 FakeSocketFactory<FakeSocketDelay> factory; in TEST_F() local
296 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F()
[all …]
/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/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()
DTranscriptionRatingService.java71 TranscriptionClientFactory factory = new TranscriptionClientFactory(this, configProvider); in onHandleWork() local
77 factory.getClient().sendTranscriptFeedbackRequest(request); in onHandleWork()
81 factory.shutdown(); in onHandleWork()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DLauncherAnimationRunner.java74 public LauncherAnimationRunner(Handler handler, RemoteAnimationFactory factory, in LauncherAnimationRunner() argument
77 mFactory = new WeakReference<>(factory); in LauncherAnimationRunner()
119 RemoteAnimationFactory factory = mFactory.get(); in getFactory() local
120 return factory != null ? factory : DEFAULT_FACTORY; in getFactory()
/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java80 public @NonNull CompletableFuture<Boolean> play(RingtoneFactory factory, Call incomingCall, in play() argument
87 args.arg1 = factory; in play()
151 RingtoneFactory factory = (RingtoneFactory) args.arg1;
185 mRingtone = factory.getRingtone(incomingCall, volumeShaperConfig);
203 boolean hasHaptics = factory.hasHapticChannels(mRingtone);
/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()
85 IDnsTlsSocketFactory* _Nonnull factory, bool revalidationEnabled, int triggerThr, in Transport()
87 : transport(server, mark, factory), in Transport()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.kt111 factory: ItemViewHolder.Factory, in withViewTypes()
116 mFactoriesByViewType.put(viewType, factory) in withViewTypes()
241 val factory = mFactoriesByViewType[viewType] in onCreateViewHolder() constant
242 if (factory != null) { in onCreateViewHolder()
243 return factory.createViewHolder(parent, viewType) as ItemViewHolder<T> in onCreateViewHolder()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java172 LiveWallpaperInfoFactory factory = in getAll() local
189 wallpaperInfos.add(factory.getLiveWallpaperInfo(wallpaperInfo)); in getAll()
209 LiveWallpaperInfoFactory factory = in getFromSpecifiedPackage() local
234 wallpaperInfos.add(factory.getLiveWallpaperInfo(wallpaperInfo, shouldShowTitle, null)); in getFromSpecifiedPackage()
398 public void showPreview(Activity srcActivity, InlinePreviewIntentFactory factory, in showPreview() argument
401 if (factory.shouldUseInternalLivePicker(srcActivity)) { in showPreview()
402 srcActivity.startActivityForResult(factory.newIntent(srcActivity, this), requestCode); in showPreview()
/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/TV/libs/
DAndroid.bp27 name: "tv-auto-factory-jar",
28 jars: ["m2/auto-factory-1.0-beta6.jar"],
34 name: "tv-auto-factory",
38 "tv-auto-factory-jar",
45 processor_class: "com.google.auto.factory.processor.AutoFactoryProcessor",
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DOemApiUtil.java77 Object factory = versionProvider.getSharedLibraryFactory( in getSharedLibraryFactory() local
79 if (factory instanceof SharedLibraryFactoryOEMV1) { in getSharedLibraryFactory()
81 (SharedLibraryFactoryOEMV1) factory, sharedLibraryContext); in getSharedLibraryFactory()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java39 final FeatureFactory factory = FeatureFactory.getFactory(context); in EnterpriseSetDefaultAppsPreferenceController() local
40 mApplicationFeatureProvider = factory.getApplicationFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController()
41 mUserFeatureProvider = factory.getUserFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController()
DEnterpriseSetDefaultAppsListPreferenceController.java67 final FeatureFactory factory = FeatureFactory.getFactory(context); in EnterpriseSetDefaultAppsListPreferenceController() local
68 mApplicationFeatureProvider = factory.getApplicationFeatureProvider(context); in EnterpriseSetDefaultAppsListPreferenceController()
69 mEnterprisePrivacyFeatureProvider = factory.getEnterprisePrivacyFeatureProvider(context); in EnterpriseSetDefaultAppsListPreferenceController()
70 mUserFeatureProvider = factory.getUserFeatureProvider(context); in EnterpriseSetDefaultAppsListPreferenceController()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPersistedItemArray.java115 public List<T> read(Context context, ItemFactory<T> factory) { in read() argument
116 return read(context, factory, UserCache.INSTANCE.get(context)::getUserForSerialNumber); in read()
124 public List<T> read(Context context, ItemFactory<T> factory, LongFunction<UserHandle> userFn) { in read() argument
148 T item = factory.createInfo(itemType, user, intent); in read()

1234567