Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java111 private HeadsetSystemInterface mSystemInterface; field in HeadsetService
157 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start()
214 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
215 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop()
227 mSystemInterface.stop(); in stop()
317 mNativeInterface, mSystemInterface); in messageFromNative()
350 mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel);
781 mAdapterService, mNativeInterface, mSystemInterface); in connect()
996 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition()
997 mSystemInterface.getVoiceRecognitionWakeLock().release(); in startVoiceRecognition()
[all …]
DHeadsetStateMachine.java139 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine
184 mSystemInterface = in HeadsetStateMachine()
669 mSystemInterface.answerCall(event.device); in processMessage()
673 mSystemInterface.hangupCall(event.device); in processMessage()
948 mSystemInterface.answerCall(event.device); in processMessage()
951 mSystemInterface.hangupCall(event.device); in processMessage()
960 mSystemInterface.sendDtmf(event.valueInt, event.device); in processMessage()
1058 mSystemInterface.queryPhoneState(); in enter()
1098 mSystemInterface.getAudioManager().setParameters("A2dpSuspended=true"); in processMessage()
1100 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
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, false, true, false); 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()
354 mAdapterService, mNativeInterface, mSystemInterface); in testConnectDevice_connectDeviceAboveLimit()
[all …]
DHeadsetServiceAndStateMachineTest.java152 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceAndStateMachineTest
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()
288 mNativeInterface, mSystemInterface); in testConnectFromApi()
[all …]
DHeadsetStateMachineTest.java81 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachineTest
96 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
97 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
132 mAdapterService, mNativeInterface, mSystemInterface); in setUp()
938 when(mSystemInterface.isRinging()).thenReturn(true); in testKeyPressedEventDuringRinging_answerCall()
941 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).answerCall(mTestDevice); in testKeyPressedEventDuringRinging_answerCall()
950 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallButAudioOff_setActiveDevice()
962 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallAndAudioOn_hangupCall()
965 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).hangupCall(mTestDevice); in testKeyPressedEventInCallAndAudioOn_hangupCall()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java100 private final SystemInterface mSystemInterface; field in CarStorageMonitoringService
150 mSystemInterface = systemInterface; in CarStorageMonitoringService()
231 mSystemInterface); in init()
274 mSystemInterface.getUptime()); in collectNewIoMetrics()
370 long bootUptime = mSystemInterface.getUptime(); in doInitServiceIfNeededLocked()
384 mSystemInterface.getSystemStateInterface()); in doInitServiceIfNeededLocked()
387 mSystemInterface.scheduleAction(this::collectNewIoMetrics, in doInitServiceIfNeededLocked()
411 Arrays.asList(mSystemInterface.getLifetimeWriteInfoProvider().load()); in computeShutdownCostLocked()
478 mSystemInterface.getLifetimeWriteInfoProvider().load(); in logLifetimeWrites()
DICarImpl.java103 private final SystemInterface mSystemInterface; field in ICarImpl
180 mSystemInterface = systemInterface; in ICarImpl()
181 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl()
208 disabledFromVhal, mSystemInterface.getSystemCarDir())); in ICarImpl()
463 mSystemInterface.setCarServiceHelper(carServiceHelper); in setSystemServerConnections()
846 mFeatureController, mCarInputService, mCarNightService, mSystemInterface, in newCarShellCommand()
DCarShellCommand.java360 private final SystemInterface mSystemInterface; field in CarShellCommand
394 mSystemInterface = systemInterface; in CarShellCommand()
1847 mSystemInterface.setDisplayState(false);
1852 mSystemInterface.setDisplayState(true);
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java141 private final SystemInterface mSystemInterface; field in CarPowerManagementService
277 mSystemInterface = systemInterface; in CarPowerManagementService()
298 new File(mSystemInterface.getSystemCarDir(), WIFI_STATE_FILENAME)); in CarPowerManagementService()
339 mSystemInterface.startDisplayStateMonitoring(this); in init()
355 mSystemInterface.stopDisplayStateMonitoring(); in release()
358 mSystemInterface.releaseAllWakeLocks(); in release()
622 || !mSystemInterface.isSystemSupportingDeepSleep() in handleShutdownPrepare()
690 mSystemInterface.shutdown(); in handleFinish()
881 mSystemInterface.switchToPartialWakeLock(); in doHandleDeepSleep()
905 mSystemInterface.refreshDisplayBrightness(); in doHandleDeepSleep()
[all …]
DPowerComponentHandler.java74 private final SystemInterface mSystemInterface; field in PowerComponentHandler
102 mSystemInterface = systemInterface; in PowerComponentHandler()
357 return mSystemInterface.isDisplayEnabled(); in isEnabled()
362 mSystemInterface.setDisplayState(enabled); in setEnabled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java114 private SystemInterface mSystemInterface; field in CarPowerManagementServiceUnitTest
146 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
151 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp()
181 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
183 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()
198 mSystemInterface.setDisplayState(false); in testDisplayOn()
DPowerComponentHandlerUnitTest.java62 private SystemInterface mSystemInterface; field in PowerComponentHandlerUnitTest
71 mHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java108 private SystemInterface mSystemInterface; field in CarPowerManagerUnitTest
132 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
406 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
408 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()