Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java93 private final ServiceFactory mFactory; field in PhonePolicy
250 mFactory = factory; in PhonePolicy()
257 HidHostService hidService = mFactory.getHidHostService(); in processInitProfilePriorities()
258 A2dpService a2dpService = mFactory.getA2dpService(); in processInitProfilePriorities()
259 HeadsetService headsetService = mFactory.getHeadsetService(); in processInitProfilePriorities()
260 PanService panService = mFactory.getPanService(); in processInitProfilePriorities()
261 HearingAidService hearingAidService = mFactory.getHearingAidService(); in processInitProfilePriorities()
355 HeadsetService hsService = mFactory.getHeadsetService(); in handleAllProfilesDisconnected()
356 A2dpService a2dpService = mFactory.getA2dpService(); in handleAllProfilesDisconnected()
357 PanService panService = mFactory.getPanService(); in handleAllProfilesDisconnected()
[all …]
DActiveDeviceManager.java115 private final ServiceFactory mFactory; field in ActiveDeviceManager
369 mFactory = factory; in ActiveDeviceManager()
427 final A2dpService a2dpService = mFactory.getA2dpService(); in setA2dpActiveDevice()
441 final HeadsetService headsetService = mFactory.getHeadsetService(); in setHfpActiveDevice()
455 final HearingAidService hearingAidService = mFactory.getHearingAidService(); in setHearingAidActiveDevice()
DSilenceDeviceManager.java64 private final ServiceFactory mFactory; field in SilenceDeviceManager
211 mFactory = factory; in SilenceDeviceManager()
265 A2dpService a2dpService = mFactory.getA2dpService(); in handleSilenceDeviceStateChanged()
269 HeadsetService headsetService = mFactory.getHeadsetService(); in handleSilenceDeviceStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DAssistGestureSettingsPreferenceControllerTest.java45 private FakeFeatureFactory mFactory; field in AssistGestureSettingsPreferenceControllerTest
51 mFactory = FakeFeatureFactory.setupForTest(); in setUp()
59 when(mFactory.assistGestureFeatureProvider.isSensorAvailable(mContext)).thenReturn(true); in isAvailable_whenSupported_shouldReturnTrue()
65 when(mFactory.assistGestureFeatureProvider.isSupported(mContext)).thenReturn(false); in isAvailable_whenUnsupported_shouldReturnFalse()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java74 @Mock private ProvisioningControllerFactory mFactory; field in ProvisioningManagerTest
94 mManager = new ProvisioningManager(mContext, mUiHandler, mFactory, mAnalyticsTracker, in setUp()
96 when(mFactory.createProvisioningController(mContext, TEST_PARAMS, mManager)) in setUp()
107 verify(mFactory).createProvisioningController(mContext, TEST_PARAMS, mManager); in testMaybeStartProvisioning()
118 verifyNoMoreInteractions(mFactory); in testMaybeStartProvisioning()
DProvisioningControllerFactoryTest.java51 private ProvisioningControllerFactory mFactory = new ProvisioningControllerFactory(); field in ProvisioningControllerFactoryTest
63 mFactory.createProvisioningController(InstrumentationRegistry.getTargetContext(), in testProfileOwner()
74 mFactory.createProvisioningController(InstrumentationRegistry.getTargetContext(), in testDeviceOwner()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallerInfoLookupHelperTest.java62 @Mock CallerInfoAsyncQueryFactory mFactory; field in CallerInfoLookupHelperTest
85 mFactory, mContactsAsyncHelper, new TelecomSystem.SyncRoot() { }); in setUp()
86 when(mFactory.startQuery(anyInt(), eq(mContext), anyString(), in setUp()
137 verify(mFactory).startQuery(anyInt(), eq(mContext), eq(URI1.getSchemeSpecificPart()), in testSimpleLookup()
176 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), in testLookupWithTwoListeners()
216 verify(mFactory, times(1)).startQuery(anyInt(), eq(mContext), in testListenerAddedAfterCallerInfoBeforePhoto()
DInCallTonePlayerTest.java50 private InCallTonePlayer.Factory mFactory; field in InCallTonePlayerTest
113 mFactory = new InCallTonePlayer.Factory(mCallAudioRoutePeripheralAdapter, mLock, in setUp()
115 mFactory.setCallAudioManager(mCallAudioManager); in setUp()
116 mInCallTonePlayer = mFactory.createPlayer(InCallTonePlayer.TONE_CALL_ENDED); in setUp()
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java57 private XmlPullParserFactory mFactory; field in DefaultCarrierConfigService
61 mFactory = null; in DefaultCarrierConfigService()
97 if (mFactory == null) { in onLoadConfig()
98 mFactory = XmlPullParserFactory.newInstance(); in onLoadConfig()
102 XmlPullParser parser = mFactory.newPullParser(); in onLoadConfig()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java74 ServiceFactory mFactory = new ServiceFactory(); field in A2dpService
590 if (mFactory.getAvrcpTargetService() != null) { in setActiveDevice()
591 rememberedVolume = mFactory.getAvrcpTargetService() in setActiveDevice()
687 if (mFactory.getAvrcpTargetService() != null) { in setAvrcpAbsoluteVolume()
688 mFactory.getAvrcpTargetService().sendVolumeChanged(volume); in setAvrcpAbsoluteVolume()
995 if (mFactory.getAvrcpTargetService() != null) { in updateAndBroadcastActiveDevice()
996 mFactory.getAvrcpTargetService().volumeDeviceSwitched(device); in updateAndBroadcastActiveDevice()
1065 if (mFactory.getAvrcpTargetService() != null) { in bondStateChanged()
1066 mFactory.getAvrcpTargetService().removeStoredVolumeForDevice(device); in bondStateChanged()
1162 if (mFactory.getAvrcpTargetService() != null) { in connectionStateChanged()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DBuildNumberPreferenceControllerTest.java71 private FakeFeatureFactory mFactory; field in BuildNumberPreferenceControllerTest
81 mFactory = FakeFeatureFactory.setupForTest(); in setUp()
137 verify(mFactory.metricsFeatureProvider).action( in handlePrefTreeClick_deviceNotProvisioned_doNothing()
157 verify(mFactory.metricsFeatureProvider).action( in handlePrefTreeClick_userHasRestriction_doNothing()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocsSelectionHelper.java38 private final DelegateFactory mFactory; field in DocsSelectionHelper
47 mFactory = factory; in DocsSelectionHelper()
54 mDelegate = mFactory.create(selectionTracker); in reset()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManager.java47 private final ProvisioningControllerFactory mFactory; field in ProvisioningManager
81 mFactory = checkNotNull(factory); in ProvisioningManager()
153 return mFactory.createProvisioningController(mContext, params, this); in getController()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDocsSelectionHelperTest.java49 private DelegateFactory mFactory; field in DocsSelectionHelperTest
54 mFactory = new DelegateFactory() { in setup()
64 mSelectionMgr = new DocsSelectionHelper(mFactory); in setup()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
DTelecomPageTab.java60 private final Factory mFactory; field in TelecomPageTab
67 mFactory = factory; in TelecomPageTab()
77 mFragment = mFactory.createFragment(page); in initFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppInfoWithHeaderTest.java67 private FakeFeatureFactory mFactory; field in AppInfoWithHeaderTest
73 mFactory = FakeFeatureFactory.setupForTest(); in setUp()
74 when(mFactory.metricsFeatureProvider.getMetricsCategory(any(Object.class))) in setUp()
/packages/modules/DnsResolver/
DDnsTlsTransport.h46 : mMark(mark), mServer(server), mFactory(factory) {} in DnsTlsTransport()
74 IDnsTlsSocketFactory* _Nonnull const mFactory; variable
DDnsTlsDispatcher.h45 : mFactory(std::move(factory)) {} in DnsTlsDispatcher()
105 std::unique_ptr<IDnsTlsSocketFactory> mFactory; variable
DDnsTlsDispatcher.cpp41 mFactory.reset(new DnsTlsSocketFactory()); in DnsTlsDispatcher()
158 xport = new Transport(server, mark, mFactory.get()); in query()
DDnsTlsTransport.cpp72 mSocket = mFactory->createDnsTlsSocket(mServer, mMark, this, &mCache); in doConnect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java103 private FakeFeatureFactory mFactory; field in DataUsageSummaryPreferenceControllerTest
117 mFactory = FakeFeatureFactory.setupForTest(); in setUp()
118 when(mFactory.metricsFeatureProvider.getMetricsCategory(any(Object.class))) in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java64 private ServiceFactory mFactory = new ServiceFactory(); field in AvrcpTargetService
239 A2dpService service = mFactory.getA2dpService(); in getA2dpActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java83 private final ServiceFactory mFactory = new ServiceFactory(); field in HearingAidService