/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 104 private HeadsetSystemInterface mSystemInterface; field in HeadsetService 148 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in start() 149 mSystemInterface.init(); in start() 205 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop() 206 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop() 218 mSystemInterface.stop(); in stop() 307 mNativeInterface, mSystemInterface); in messageFromNative() 340 mSystemInterface.getHeadsetPhoneState().setCindBatteryCharge(cindBatteryLevel); 699 mAdapterService, mNativeInterface, mSystemInterface); in connect() 871 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition() [all …]
|
D | HeadsetStateMachine.java | 131 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine 176 mSystemInterface = in HeadsetStateMachine() 654 mSystemInterface.answerCall(event.device); in processMessage() 658 mSystemInterface.hangupCall(event.device); in processMessage() 923 mSystemInterface.answerCall(event.device); in processMessage() 926 mSystemInterface.hangupCall(event.device); in processMessage() 935 mSystemInterface.sendDtmf(event.valueInt, event.device); in processMessage() 1033 mSystemInterface.queryPhoneState(); in enter() 1069 mSystemInterface.getAudioManager().setParameters("A2dpSuspended=true"); in processMessage() 1071 mSystemInterface.getAudioManager().setParameters("A2dpSuspended=false"); in processMessage() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 59 private final SystemInterface mSystemInterface; field in CarPowerManagementService 124 mSystemInterface = systemInterface; in CarPowerManagementService() 145 mSystemInterface = null; in CarPowerManagementService() 177 mSystemInterface.startDisplayStateMonitoring(this); in init() 195 mSystemInterface.stopDisplayStateMonitoring(); in release() 198 mSystemInterface.releaseAllWakeLocks(); in release() 318 mSystemInterface.setDisplayState(true); in handleOn() 324 mSystemInterface.setDisplayState(false); in handleShutdownPrepare() 327 || !mSystemInterface.isSystemSupportingDeepSleep() in handleShutdownPrepare() 343 mSystemInterface.shutdown(); in handleShutdownPrepare() [all …]
|
D | CarStorageMonitoringService.java | 94 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()
|
D | ICarImpl.java | 69 private final SystemInterface mSystemInterface; field in ICarImpl 120 mSystemInterface = systemInterface; in ICarImpl() 173 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl() 220 mSystemInterface.reconfigureSecondaryDisplays(); in init() 244 mSystemInterface.setCarServiceHelper(mICarServiceHelper); in setCarServiceHelper()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 85 @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() 251 mNativeInterface, mSystemInterface); in testConnectDevice_connectDeviceBelowLimit() 288 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnected() 325 mNativeInterface, mSystemInterface); in testMessageFromNative_deviceConnectingUnknown() [all …]
|
D | HeadsetServiceAndStateMachineTest.java | 152 @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 …]
|
D | HeadsetStateMachineTest.java | 76 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachineTest 91 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp() 92 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp() 127 mAdapterService, mNativeInterface, mSystemInterface); in setUp() 903 when(mSystemInterface.isRinging()).thenReturn(true); in testKeyPressedEventDuringRinging_answerCall() 906 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).answerCall(mTestDevice); in testKeyPressedEventDuringRinging_answerCall() 915 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallButAudioOff_setActiveDevice() 927 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallAndAudioOn_hangupCall() 930 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).hangupCall(mTestDevice); in testKeyPressedEventInCallAndAudioOn_hangupCall()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarPowerManagementServiceTest.java | 65 private SystemInterface mSystemInterface; field in CarPowerManagementServiceTest 74 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(getContext()) in setUp() 98 mService = new CarPowerManagementService(getContext(), mPowerHal, mSystemInterface, in initTest() 116 mSystemInterface.setDisplayState(false); in testDisplayOn()
|