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.java157 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start()
160 mNativeInterface = HeadsetObjectsFactory.getInstance().getNativeInterface(); in start()
220 HeadsetObjectsFactory.getInstance().destroyStateMachine(stateMachine); in stop()
314 stateMachine = HeadsetObjectsFactory.getInstance() in messageFromNative()
779 stateMachine = HeadsetObjectsFactory.getInstance() in connect()
1901 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()
165 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in tearDown()
166 HeadsetObjectsFactory.class); in tearDown()
168 method.invoke(null, (HeadsetObjectsFactory) null); in tearDown()
DHeadsetServiceAndStateMachineTest.java149 @Spy private HeadsetObjectsFactory mObjectsFactory = HeadsetObjectsFactory.getInstance();
175 Method method = HeadsetObjectsFactory.class.getDeclaredMethod("setInstanceForTesting", in setUp()
176 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.java130 mHeadsetStateMachine = HeadsetObjectsFactory.getInstance() in setUp()
140 HeadsetObjectsFactory.getInstance().destroyStateMachine(mHeadsetStateMachine); in tearDown()