Home
last modified time | relevance | path

Searched refs:HeadsetObjectsFactory (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetObjectsFactory.java28 public class HeadsetObjectsFactory { class
29 private static final String TAG = HeadsetObjectsFactory.class.getSimpleName();
30 private static HeadsetObjectsFactory sInstance;
33 private HeadsetObjectsFactory() {} in HeadsetObjectsFactory() method in HeadsetObjectsFactory
40 public static HeadsetObjectsFactory getInstance() { in getInstance()
43 sInstance = new HeadsetObjectsFactory(); in getInstance()
54 private static void setInstanceForTesting(HeadsetObjectsFactory objectsFactory) { in setInstanceForTesting()
DHeadsetService.java148 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start()
152 mNativeInterface = HeadsetObjectsFactory.getInstance().getNativeInterface(); in start()
211 HeadsetObjectsFactory.getInstance().destroyStateMachine(stateMachine); in stop()
304 stateMachine = HeadsetObjectsFactory.getInstance() in messageFromNative()
697 stateMachine = HeadsetObjectsFactory.getInstance() in connect()
1796 HeadsetObjectsFactory.getInstance().destroyStateMachine(stateMachine); in removeStateMachine()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java82 @Spy private HeadsetObjectsFactory mObjectsFactory = HeadsetObjectsFactory.getInstance();
99 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in setUp()
100 HeadsetObjectsFactory.class); in setUp()
167 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in tearDown()
168 HeadsetObjectsFactory.class); in tearDown()
170 method.invoke(null, (HeadsetObjectsFactory) null); in tearDown()
DHeadsetServiceAndStateMachineTest.java149 @Spy private HeadsetObjectsFactory mObjectsFactory = HeadsetObjectsFactory.getInstance();
174 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in setUp()
175 HeadsetObjectsFactory.class); in setUp()
249 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in tearDown()
250 HeadsetObjectsFactory.class); in tearDown()
252 method.invoke(null, (HeadsetObjectsFactory) null); in tearDown()
DHeadsetStateMachineTest.java125 mHeadsetStateMachine = HeadsetObjectsFactory.getInstance() in setUp()
135 HeadsetObjectsFactory.getInstance().destroyStateMachine(mHeadsetStateMachine); in tearDown()