Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java131 private HeadsetSystemInterface mSystemInterface; field in HeadsetService
187 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start()
253 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
254 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop()
267 mSystemInterface.stop(); in stop()
372 mNativeInterface, mSystemInterface); in messageFromNative()
405 mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel);
989 mAdapterService, mNativeInterface, mSystemInterface); in connect()
1204 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition()
1205 mSystemInterface.getVoiceRecognitionWakeLock().release(); in startVoiceRecognition()
[all …]
DHeadsetStateMachine.java138 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine
194 mSystemInterface = in HeadsetStateMachine()
693 mSystemInterface.answerCall(event.device); in processMessage()
697 mSystemInterface.hangupCall(event.device); in processMessage()
965 mSystemInterface.answerCall(event.device); in processMessage()
968 mSystemInterface.hangupCall(event.device); in processMessage()
977 mSystemInterface.sendDtmf(event.valueInt, event.device); in processMessage()
1075 mSystemInterface.queryPhoneState(); in enter()
1115 mSystemInterface.getAudioManager().setA2dpSuspended(true); in processMessage()
1117 mSystemInterface.getAudioManager().setA2dpSuspended(false); in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java86 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceTest
123 doNothing().when(mSystemInterface).stop(); in setUp()
124 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
125 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
126 when(mSystemInterface.isCallIdle()).thenReturn(true, false, true, false); in setUp()
146 doReturn(mSystemInterface).when(mObjectsFactory).makeSystemInterface(any()); in setUp()
243 mNativeInterface, mSystemInterface); in testConnectDevice_connectDeviceBelowLimit()
280 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnected()
317 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnectingUnknown()
356 mAdapterService, mNativeInterface, mSystemInterface); in testConnectDevice_connectDeviceAboveLimit()
[all …]
DHeadsetServiceAndStateMachineTest.java153 @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()
283 mNativeInterface, mSystemInterface); in testConnectFromApi()
[all …]
DHeadsetStateMachineTest.java92 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachineTest
108 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
109 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
149 mAdapterService, mNativeInterface, mSystemInterface); in setUp()
982 when(mSystemInterface.isRinging()).thenReturn(true); in testKeyPressedEventDuringRinging_answerCall()
985 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).answerCall(mTestDevice); in testKeyPressedEventDuringRinging_answerCall()
994 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallButAudioOff_setActiveDevice()
1006 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallAndAudioOn_hangupCall()
1009 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).hangupCall(mTestDevice); in testKeyPressedEventInCallAndAudioOn_hangupCall()
1222 when(mSystemInterface.processChld(chld)).thenReturn(true); in testProcessAtChld_withProcessChldTrue()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java105 private final SystemInterface mSystemInterface; field in CarStorageMonitoringService
155 mSystemInterface = systemInterface; in CarStorageMonitoringService()
238 mSystemInterface); in init()
281 mSystemInterface.getUptime()); in collectNewIoMetrics()
377 long bootUptime = mSystemInterface.getUptime(); in doInitServiceIfNeededLocked()
391 mSystemInterface.getSystemStateInterface()); in doInitServiceIfNeededLocked()
394 mSystemInterface.scheduleAction(this::collectNewIoMetrics, in doInitServiceIfNeededLocked()
420 Arrays.asList(mSystemInterface.getLifetimeWriteInfoProvider().load()); in computeShutdownCostLocked()
487 mSystemInterface.getLifetimeWriteInfoProvider().load(); in logLifetimeWrites()
DICarImpl.java121 private final SystemInterface mSystemInterface; field in ICarImpl
223 mSystemInterface = systemInterface; in ICarImpl()
224 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl()
251 disabledFromVhal, mSystemInterface.getSystemCarDir())); in ICarImpl()
920 mFeatureController, mCarInputService, mCarNightService, mSystemInterface, in newCarShellCommand()
DCarShellCommand.java446 private final SystemInterface mSystemInterface; field in CarShellCommand
484 mSystemInterface = systemInterface; in CarShellCommand()
2233 mSystemInterface.setDisplayState(false);
2238 mSystemInterface.setDisplayState(true);
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java167 private final SystemInterface mSystemInterface; field in CarPowerManagementService
313 mSystemInterface = systemInterface; in CarPowerManagementService()
335 new File(mSystemInterface.getSystemCarDir(), WIFI_STATE_FILENAME)); in CarPowerManagementService()
337 new File(mSystemInterface.getSystemCarDir(), TETHERING_STATE_FILENAME)); in CarPowerManagementService()
378 mSystemInterface.init(this, mUserService); in init()
379 mSystemInterface.startDisplayStateMonitoring(); in init()
395 mSystemInterface.stopDisplayStateMonitoring(); in release()
398 mSystemInterface.releaseAllWakeLocks(); in release()
430 mSystemInterface.isSystemSupportingDeepSleep()); in dump()
432 mSystemInterface.isSystemSupportingHibernation()); in dump()
[all …]
DPowerComponentHandler.java76 private final SystemInterface mSystemInterface; field in PowerComponentHandler
101 mSystemInterface = systemInterface; in PowerComponentHandler()
352 return mSystemInterface.isDisplayEnabled(); in isEnabled()
357 mSystemInterface.setDisplayState(enabled); in setEnabled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/
DGarageModeRecorderTest.java57 private SystemInterface mSystemInterface; field in GarageModeRecorderTest
86 doReturn(mSystemInterface).when(() -> CarLocalServices.getService(SystemInterface.class)); in setup()
87 when(mSystemInterface.getSystemCarDir()).thenReturn(mTempTestDir); in setup()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java84 private SystemInterface mSystemInterface; field in GarageModeTest
96 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in setUp()
99 when(mSystemInterface.getSystemCarDir()).thenReturn(mTempTestDir); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java61 private SystemInterface mSystemInterface; field in PowerComponentHandlerUnitTest
69 mHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp()
DCarPowerManagementServiceUnitTest.java128 private SystemInterface mSystemInterface; field in CarPowerManagementServiceUnitTest
167 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
213 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
215 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()
876 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in testDisableWifiAndTethering()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java112 private SystemInterface mSystemInterface; field in CarPowerManagerUnitTest
139 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
443 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
445 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()