Home
last modified time | relevance | path

Searched refs:mSystemInterface (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java109 private HeadsetSystemInterface mSystemInterface; field in HeadsetService
155 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start()
156 mSystemInterface.init(); in start()
213 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
214 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop()
226 mSystemInterface.stop(); in stop()
316 mNativeInterface, mSystemInterface); in messageFromNative()
349 mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel);
731 mAdapterService, mNativeInterface, mSystemInterface); in connect()
941 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition()
[all …]
DHeadsetStateMachine.java134 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine
179 mSystemInterface = in HeadsetStateMachine()
660 mSystemInterface.answerCall(event.device); in processMessage()
664 mSystemInterface.hangupCall(event.device); in processMessage()
927 mSystemInterface.answerCall(event.device); in processMessage()
930 mSystemInterface.hangupCall(event.device); in processMessage()
939 mSystemInterface.sendDtmf(event.valueInt, event.device); in processMessage()
1037 mSystemInterface.queryPhoneState(); in enter()
1073 mSystemInterface.getAudioManager().setParameters("A2dpSuspended=true"); in processMessage()
1075 mSystemInterface.getAudioManager().setParameters("A2dpSuspended=false"); in processMessage()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java85 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceTest
119 doNothing().when(mSystemInterface).init(); in setUp()
120 doNothing().when(mSystemInterface).stop(); in setUp()
121 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
122 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
123 when(mSystemInterface.isCallIdle()).thenReturn(true); in setUp()
143 doReturn(mSystemInterface).when(mObjectsFactory).makeSystemInterface(any()); in setUp()
241 mNativeInterface, mSystemInterface); in testConnectDevice_connectDeviceBelowLimit()
278 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnected()
315 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnectingUnknown()
[all …]
DHeadsetServiceAndStateMachineTest.java152 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceAndStateMachineTest
188 doNothing().when(mSystemInterface).init(); in setUp()
189 doNothing().when(mSystemInterface).stop(); in setUp()
190 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
191 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
192 when(mSystemInterface.activateVoiceRecognition()).thenReturn(true); in setUp()
193 when(mSystemInterface.deactivateVoiceRecognition()).thenReturn(true); in setUp()
194 when(mSystemInterface.getVoiceRecognitionWakeLock()).thenReturn(mVoiceRecognitionWakeLock); in setUp()
195 when(mSystemInterface.isCallIdle()).thenReturn(true); in setUp()
214 doReturn(mSystemInterface).when(mObjectsFactory).makeSystemInterface(any()); in setUp()
[all …]
DHeadsetStateMachineTest.java80 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachineTest
95 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
96 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
131 mAdapterService, mNativeInterface, mSystemInterface); in setUp()
907 when(mSystemInterface.isRinging()).thenReturn(true); in testKeyPressedEventDuringRinging_answerCall()
910 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).answerCall(mTestDevice); in testKeyPressedEventDuringRinging_answerCall()
919 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallButAudioOff_setActiveDevice()
931 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallAndAudioOn_hangupCall()
934 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).hangupCall(mTestDevice); in testKeyPressedEventInCallAndAudioOn_hangupCall()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java75 private final SystemInterface mSystemInterface; field in CarPowerManagementService
159 mSystemInterface = systemInterface; in CarPowerManagementService()
209 mSystemInterface.startDisplayStateMonitoring(this); in init()
228 mSystemInterface.stopDisplayStateMonitoring(); in release()
230 mSystemInterface.releaseAllWakeLocks(); in release()
398 mSystemInterface.setDisplayState(true); in handleOn()
505 mSystemInterface.setDisplayState(false); in handleShutdownPrepare()
510 || !mSystemInterface.isSystemSupportingDeepSleep() in handleShutdownPrepare()
527 mSystemInterface.shutdown(); in handleShutdownPrepare()
533 mSystemInterface.setDisplayState(false); in simulateShutdownPrepare()
[all …]
DCarStorageMonitoringService.java94 private final SystemInterface mSystemInterface; field in CarStorageMonitoringService
127 mSystemInterface = systemInterface; in CarStorageMonitoringService()
205 mSystemInterface); in init()
247 mSystemInterface.getUptime()); in collectNewIoMetrics()
342 long bootUptime = mSystemInterface.getUptime(); in doInitServiceIfNeeded()
356 mSystemInterface.getSystemStateInterface()); in doInitServiceIfNeeded()
359 mSystemInterface.scheduleAction(this::collectNewIoMetrics, in doInitServiceIfNeeded()
383 Arrays.asList(mSystemInterface.getLifetimeWriteInfoProvider().load()); in computeShutdownCost()
450 mSystemInterface.getLifetimeWriteInfoProvider().load(); in logLifetimeWrites()
DICarImpl.java79 private final SystemInterface mSystemInterface; field in ICarImpl
133 mSystemInterface = systemInterface; in ICarImpl()
192 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl()
242 mSystemInterface.reconfigureSecondaryDisplays(); in init()
265 mSystemInterface.setCarServiceHelper(mICarServiceHelper); in setCarServiceHelper()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java108 private SystemInterface mSystemInterface; field in CarPowerManagementServiceTest
150 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
181 mSystemInterface, mCarUserManagerHelper, mUserManager, NEW_GUEST_NAME); in initTest()
200 mSystemInterface.setDisplayState(false); in testDisplayOn()