/packages/apps/Messaging/src/com/android/messaging/ |
D | FactoryImpl.java | 83 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 …]
|
D | BugleApplication.java | 101 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/ |
D | DefaultSuggestionViewFactory.kt | 33 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/ |
D | FakeFactory.java | 75 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/ |
D | phy_layer.cc | 76 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/ |
D | resolv_tls_unit_test.cpp | 128 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/ |
D | MigrationNotificationFactoryTest.java | 41 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/ |
D | ChooserActionFactoryTest.kt | 80 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()
|
D | TargetPresentationGetterTest.kt | 38 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/ |
D | MultiPropertyFactoryTest.kt | 43 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>()
|
D | MultiScalePropertyTest.kt | 33 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/ |
D | RenamingDelegatingContext.java | 141 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/ |
D | LauncherAnimationRunner.java | 77 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/ |
D | GetTranscriptReceiver.java | 237 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/ |
D | TunerSessionExoV2.java | 36 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;
|
D | TunerSession.java | 36 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;
|
D | TunerRecordingSessionExoV2.java | 29 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;
|
D | TunerRecordingSession.java | 29 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/ |
D | DnsTlsDispatcher.h | 43 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/ |
D | ItemAdapter.kt | 110 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/ |
D | build.gradle | 89 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/ |
D | build.gradle | 78 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/ |
D | IconButtonView.java | 77 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/ |
D | property.cc | 61 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/ |
D | EnterpriseSetDefaultAppsPreferenceController.java | 40 final FeatureFactory factory = FeatureFactory.getFactory(context); in EnterpriseSetDefaultAppsPreferenceController() local 41 mApplicationFeatureProvider = factory.getApplicationFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController() 42 mUserFeatureProvider = factory.getUserFeatureProvider(context); in EnterpriseSetDefaultAppsPreferenceController()
|