Home
last modified time | relevance | path

Searched refs:mFactory (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPersisterQueueTests.java58 private TestWriteQueueItemFactory mFactory; field in PersisterQueueTests
66 mFactory = new TestWriteQueueItemFactory(); in setUp()
90 mFactory.setExpectedProcessedItemNumber(1); in testProcessOneItem()
94 mTarget.addItem(mFactory.createItem(), false); in testProcessOneItem()
96 mFactory.waitForAllExpectedItemsProcessed(PRE_TASK_DELAY_MS + TIMEOUT_ALLOWANCE)); in testProcessOneItem()
97 assertEquals("Target didn't process item.", 1, mFactory.getTotalProcessedItemCount()); in testProcessOneItem()
113 mFactory.setExpectedProcessedItemNumber(1); in testProcessOneItem_Flush()
117 mTarget.addItem(mFactory.createItem(), true); in testProcessOneItem_Flush()
119 mFactory.waitForAllExpectedItemsProcessed(TIMEOUT_ALLOWANCE)); in testProcessOneItem_Flush()
120 assertEquals("Target didn't process item.", 1, mFactory.getTotalProcessedItemCount()); in testProcessOneItem_Flush()
[all …]
DActivityStartControllerTests.java51 private Factory mFactory; field in ActivityStartControllerTests
58 mFactory = mock(Factory.class); in setUp()
59 mController = new ActivityStartController(mAtm, mAtm.mTaskSupervisor, mFactory); in setUp()
62 doReturn(mStarter).when(mFactory).obtain(); in setUp()
99 verify(mFactory, times(1)).recycle(eq(optionStarter)); in testRecycling()
/frameworks/av/media/codec2/components/tests/
DC2SoftCodecTest.cpp32 mFactory = CreateCodec2Factory(); in SetUp()
36 if (mFactory) { in TearDown()
37 DestroyCodec2Factory(mFactory); in TearDown()
43 if (!mFactory) { in createComponent()
46 return mFactory->createComponent( in createComponent()
52 if (!mFactory) { in createInterface()
55 return mFactory->createInterface( in createInterface()
59 ::C2ComponentFactory *getFactory() { return mFactory; } in getFactory()
64 ::C2ComponentFactory *mFactory;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DComplicationViewModelTransformerTest.java44 ComplicationViewModelComponent.Factory mFactory; field in ComplicationViewModelTransformerTest
58 when(mFactory.create(Mockito.any(), Mockito.any())).thenReturn(mComponent); in setup()
70 new ComplicationViewModelTransformer(mFactory); in testStableIds()
77 verify(mFactory).create(Mockito.any(), idCaptor.capture()); in testStableIds()
80 Mockito.clearInvocations(mFactory); in testStableIds()
83 verify(mFactory).create(Mockito.any(), idCaptor.capture()); in testStableIds()
95 new ComplicationViewModelTransformer(mFactory); in testUniqueIds()
103 verify(mFactory).create(Mockito.any(), idCaptor.capture()); in testUniqueIds()
106 Mockito.clearInvocations(mFactory); in testUniqueIds()
109 verify(mFactory).create(Mockito.any(), idCaptor.capture()); in testUniqueIds()
/frameworks/base/services/core/java/com/android/server/power/stats/
DMultiStateStats.java291 private final Factory mFactory; field in MultiStateStats
297 this.mFactory = factory; in MultiStateStats()
302 return mFactory.mDimensionCount; in getDimensionCount()
306 return mFactory.mStates; in getStates()
330 mCompositeState = mFactory.setStateInComposite(mCompositeState, stateIndex, state); in setState()
331 mCounter.setState(mFactory.mCompositeToSerialState[mCompositeState], timestampMs); in setState()
347 mCounter.getCounts(outValues, mFactory.getSerialState(states)); in getStats()
354 mCounter.setValues(mFactory.getSerialState(states), values); in setStats()
372 States.forEachTrackedStateCombination(mFactory.mStates, in writeXml()
391 mCounter.getCounts(values, mFactory.getSerialState(states)); in writeXmlForStates()
[all …]
/frameworks/base/core/java/android/widget/
DRemoteViewsService.java172 mFactory = factory; in RemoteViewsFactoryAdapter()
180 mFactory.onDataSetChanged(); in onDataSetChanged()
192 count = mFactory.getCount(); in getCount()
202 rv = mFactory.getViewAt(position); in getViewAt()
215 rv = mFactory.getLoadingView(); in getLoadingView()
225 count = mFactory.getViewTypeCount(); in getViewTypeCount()
235 id = mFactory.getItemId(position); in getItemId()
245 hasStableIds = mFactory.hasStableIds(); in hasStableIds()
273 items = mFactory.getRemoteCollectionItems(capSize); in getRemoteCollectionItems()
281 private RemoteViewsFactory mFactory; field in RemoteViewsService.RemoteViewsFactoryAdapter
DViewSwitcher.java34 ViewFactory mFactory; field in ViewSwitcher
85 View child = mFactory.makeView(); in obtainView()
103 mFactory = factory; in setFactory()
/frameworks/base/core/java/android/preference/
DGenericInflater.java59 private Factory<T> mFactory; field in GenericInflater
130 mFactory = original.mFactory; in GenericInflater()
182 return mFactory; in getFactory()
208 if (mFactory == null) { in setFactory()
209 mFactory = factory; in setFactory()
211 mFactory = new FactoryMerger<T>(factory, mFactory); in setFactory()
433 T item = (mFactory == null) ? null : mFactory.onCreateItem(name, mContext, attrs); in createItemFromTag()
/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalAidl.cpp56 : mFactory(effectsFactory), in EffectsFactoryHalAidl()
61 return (mFactory && mFactory->getInterfaceVersion(&majorVersion).isOk()) in EffectsFactoryHalAidl()
67 if (mFactory) { in __anonb7f55f2a0202()
68 mFactory->queryEffects(std::nullopt, std::nullopt, std::nullopt, &list).isOk(); in __anonb7f55f2a0202()
108 if (!mFactory || !mFactory->queryProcessing(std::nullopt, &processings).isOk()) { in __anonb7f55f2a0702()
113 ALOG_ASSERT(mFactory != nullptr, "Provided IEffectsFactory service is NULL");
190 mFactory); in createEffect()
193 statusTFromBinderStatus(mFactory->createEffect(aidlUuid, &aidlEffect))); in createEffect()
202 *effect = sp<EffectHalAidl>::make(mFactory, aidlEffect, sessionId, ioId, desc, isProxy); in createEffect()
208 RETURN_STATUS_IF_ERROR(mFactory->dump(fd, nullptr, 0)); in dumpEffects()
DEffectHalAidl.cpp74 : mFactory(factory), in EffectHalAidl()
79 assert(mFactory != nullptr); in EffectHalAidl()
88 } else if (mFactory) { in ~EffectHalAidl()
89 mFactory->destroyEffect(mEffect); in ~EffectHalAidl()
198 return mFactory->getInterfaceVersion(&version).isOk() ? version : 0; in process()
DDevicesFactoryHalHidl.cpp45 : mFactory(factory) {} in ServiceNotificationListener()
51 sp<DevicesFactoryHalHidl> factory = mFactory.promote(); in onRegistration()
61 wp<DevicesFactoryHalHidl> mFactory; member in android::ServiceNotificationListener
/frameworks/base/media/mca/effect/java/android/media/effect/
DEffectContext.java44 private EffectFactory mFactory; field in EffectContext
71 return mFactory; in getFactory()
92 mFactory = new EffectFactory(this); in EffectContext()
/frameworks/base/core/java/android/view/
DLayoutInflater.java100 private Factory mFactory; field in LayoutInflater
256 mFactory = original.mFactory; in LayoutInflater()
302 return mFactory; in getFactory()
339 if (mFactory == null) { in setFactory()
340 mFactory = factory; in setFactory()
342 mFactory = new FactoryMerger(factory, null, mFactory, mFactory2); in setFactory()
358 if (mFactory == null) { in setFactory2()
359 mFactory = mFactory2 = factory; in setFactory2()
361 mFactory = mFactory2 = new FactoryMerger(factory, factory, mFactory, mFactory2); in setFactory2()
950 } else if (mFactory != null) { in tryCreateView()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMultiStateStatsTest.java204 subject.mFactory = factory; in assertThatCpuPerformanceStatsFactory()
209 private MultiStateStats.Factory mFactory; field in MultiStateStatsTest.FactorySubject
212 assertThat(mFactory.getSerialStateCount()).isEqualTo(stateCount); in hasSerialStateCount()
235 serialStates[i] = mFactory.getSerialState( in getSerialStates()
/frameworks/opt/net/ims/src/java/com/android/ims/
DFeatureConnector.java206 private final ManagerFactory<U> mFactory; field in FeatureConnector
230 mFactory = factory; in FeatureConnector()
255 mManager = mFactory.createManager(mContext, mPhoneId); in connect()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java53 private final FileDescriptorFactory mFactory; field in DecodeTask
102 mFactory = factory; in DecodeTask()
125 if (mFactory != null) { in decode()
127 fd = mFactory.createFileDescriptor(); in decode()
168 final ParcelFileDescriptor orientationFd = mFactory.createFileDescriptor(); in decode()
/frameworks/av/media/libaudiohal/tests/
DEffectProxy_test.cpp59 mFactory = IFactory::fromBinder( in SetUp()
61 ASSERT_NE(nullptr, mFactory); in SetUp()
62 mFactory->queryEffects(std::nullopt, std::nullopt, std::nullopt, &mDescs); in SetUp()
110 ndk::SharedRefBase::make<EffectProxy>(itor.first, itor.second, mFactory); in createAllProxies()
116 std::shared_ptr<IFactory> mFactory; member in android::EffectProxyTest
DEffectsFactoryHalInterface_test.cpp332 mFactory(EffectsFactoryHalInterface::create()), in libAudioHalEffectParamTest()
338 if (mFactory && mTypeUuid && OK == mFactory->getDescriptors(mTypeUuid, &descs)) { in libAudioHalEffectParamTest()
373 OK == mFactory->createEffect(&desc.uuid, 1 /* sessionId */, 1 /* ioId */, in createEffectHal()
426 const sp<EffectsFactoryHalInterface> mFactory; member in android::libAudioHalEffectParamTest
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DTextGraphReader.java46 private FilterFactory mFactory; field in TextGraphReader
62 reader.mFactory.addPackage(mPackageName); in execute()
78 reader.mFactory.addFilterLibrary(mLibraryName); in execute()
95 filter = reader.mFactory.createFilterByClassName(mClassName, mFilterName); in execute()
166 mFactory = new FilterFactory(); in reset()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartController.java92 private final Factory mFactory; field in ActivityStartController
119 mFactory = factory; in ActivityStartController()
120 mFactory.setController(this); in ActivityStartController()
131 return mFactory.obtain().setIntent(intent).setReason(reason); in obtainStarter()
144 mLastStarter = mFactory.obtain(); in onExecutionComplete()
148 mFactory.recycle(starter); in onExecutionComplete()
519 mFactory.recycle(starters[j]); in startActivities()
/frameworks/native/services/inputflinger/
DPointerChoreographer.h38 constexpr ConstructorDelegate(Factory&& factory) : mFactory(std::move(factory)) {} in ConstructorDelegate()
41 constexpr operator ConstructedType() const { return mFactory(); } in ConstructedType()
43 Factory mFactory; member
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/
DAndroidKeystoreAttestationVerificationAttributesTest.java56 private CertificateFactory mFactory; field in AndroidKeystoreAttestationVerificationAttributesTest
63 mFactory = CertificateFactory.getInstance("X.509"); in setUp()
287 Collection<? extends Certificate> certificates = mFactory.generateCertificates( in generateCertificates()
/frameworks/base/core/java/android/content/res/
DGradientColor.java91 private GradientColorFactory mFactory; field in GradientColor
502 if (mFactory == null) { in getConstantState()
503 mFactory = new GradientColorFactory(this); in getConstantState()
505 return mFactory; in getConstantState()
DColorStateList.java152 private ColorStateListFactory mFactory; field in ColorStateList
730 if (mFactory == null) { in getConstantState()
731 mFactory = new ColorStateListFactory(this); in getConstantState()
733 return mFactory; in getConstantState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DExtensionControllerImpl.java269 private final TunerFactory<T> mFactory; field in ExtensionControllerImpl.ExtensionImpl.TunerItem
274 mFactory = factory; in TunerItem()
291 mItem = mFactory.create(mSettings); in onTuningChanged()

12