Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/core/java/com/android/server/webkit/
H A DWebViewUpdateServiceImpl.java90 private final SystemInterface mSystemInterface; field in WebViewUpdateServiceImpl
111 mSystemInterface = systemInterface; in WebViewUpdateServiceImpl()
166 mSystemInterface.notifyZygote(isMultiProcessEnabled()); in prepareWebViewInSystemServer()
178 mSystemInterface.updateUserSetting(mContext, in prepareWebViewInSystemServer()
209 mSystemInterface.ensureZygoteStarted(); in startZygoteWhenReady()
465 return mSystemInterface.getWebViewPackages(); in getWebViewPackages()
515 && !mSystemInterface.systemIsDebuggable()) { in validityResult()
622 if (mSystemInterface.isMultiProcessDefaultEnabled()) { in isMultiProcessEnabled()
633 mSystemInterface.setMultiProcessSetting(mContext, in enableMultiProcess()
635 mSystemInterface.notifyZygote(enable); in enableMultiProcess()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetService.java111 private HeadsetSystemInterface mSystemInterface; field in HeadsetService
214 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
215 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop()
227 mSystemInterface.stop(); in stop()
1536 if (!mSystemInterface.activateVoiceRecognition()) { in startVoiceRecognitionByHeadset()
1544 if (!mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognitionByHeadset()
1580 if (!mSystemInterface.deactivateVoiceRecognition()) { in stopVoiceRecognitionByHeadset()
1624 boolean isCallIdleBefore = mSystemInterface.isCallIdle(); in phoneStateChanged()
1639 && mSystemInterface.isCallIdle() && !isAudioOn()) { in phoneStateChanged()
1744 return mSystemInterface.isInCall() || (mSystemInterface.isRinging() in shouldCallAudioBeActive()
[all …]
H A DHeadsetStateMachine.java139 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine
184 mSystemInterface = in HeadsetStateMachine()
1058 mSystemInterface.queryPhoneState(); in enter()
1667 mSystemInterface.getAudioManager() in processVolumeEvent()
1708 if (mSystemInterface.processChld(chld)) { in processAtChld()
1717 String number = mSystemInterface.getSubscriberNumber(); in processSubscriberNumberRequest()
1781 if (!mSystemInterface.listCurrentCalls()) { in processAtClcc()
1957 if (mSystemInterface.isRinging()) { in processKeyPressed()
1958 mSystemInterface.answerCall(device); in processKeyPressed()
1959 } else if (mSystemInterface.isInCall()) { in processKeyPressed()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetServiceTest.java85 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceTest
120 doNothing().when(mSystemInterface).stop(); in setUp()
122 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); 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()
384 eq(mSystemInterface)); in testConnectDevice_connectDeviceAboveLimit()
405 mNativeInterface, mSystemInterface); in testConnectAudio_withOneDevice()
675 mNativeInterface, mSystemInterface); in testConnectAudio_deviceDisconnected()
[all …]
H A DHeadsetServiceAndStateMachineTest.java152 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceAndStateMachineTest
189 doNothing().when(mSystemInterface).stop(); 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()
195 when(mSystemInterface.isCallIdle()).thenReturn(true); in setUp()
288 mNativeInterface, mSystemInterface); in testConnectFromApi()
331 mNativeInterface, mSystemInterface); in testUnbondDevice_disconnectBeforeUnbond()
374 mNativeInterface, mSystemInterface); in testUnbondDevice_disconnectAfterUnbond()
530 when(mSystemInterface.isCallIdle()).thenReturn(false); in testVirtualCall_rejectedWhenThereIsTelecomCall()
[all …]
H A 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()
/aosp12/packages/services/Car/service/src/com/android/car/
H A 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()
H A DICarImpl.java105 private final SystemInterface mSystemInterface; field in ICarImpl
183 mSystemInterface = systemInterface; in ICarImpl()
184 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl()
211 disabledFromVhal, mSystemInterface.getSystemCarDir())); in ICarImpl()
469 mSystemInterface.setCarServiceHelper(carServiceHelper); in setSystemServerConnections()
855 mFeatureController, mCarInputService, mCarNightService, mSystemInterface, in newCarShellCommand()
H A DCarShellCommand.java381 private final SystemInterface mSystemInterface; field in CarShellCommand
415 mSystemInterface = systemInterface; in CarShellCommand()
1899 mSystemInterface.setDisplayState(false);
1904 mSystemInterface.setDisplayState(true);
/aosp12/packages/services/Car/service/src/com/android/car/power/
H A DCarPowerManagementService.java141 private final SystemInterface mSystemInterface; field in CarPowerManagementService
277 mSystemInterface = systemInterface; 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()
980 mSystemInterface.setDisplayBrightness(brightness); in doHandleDisplayBrightnessChange()
[all …]
H A DPowerComponentHandler.java74 private final SystemInterface mSystemInterface; field in PowerComponentHandler
102 mSystemInterface = systemInterface; in PowerComponentHandler()
351 return mSystemInterface.isDisplayEnabled(); in isEnabled()
356 mSystemInterface.setDisplayState(enabled); in setEnabled()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
H A DPowerComponentHandlerUnitTest.java62 private SystemInterface mSystemInterface; field in PowerComponentHandlerUnitTest
71 mHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp()
H A 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()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
H A DCarPowerManagerUnitTest.java109 private SystemInterface mSystemInterface; field in CarPowerManagerUnitTest
135 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
409 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
411 mService = new CarPowerManagementService(mContext, mResources, mPowerHal, mSystemInterface, in setService()