Home
last modified time | relevance | path

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

/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/service/
DRegistrationBinder.java64 private final SystemInterface mSystemInterface; field in RegistrationBinder
78 mSystemInterface = systemInterface; in RegistrationBinder()
87 Log.i(TAG, "Key requested for : " + mSystemInterface.getServiceName() + ", clientUid: " in getKeyWorker()
101 mSystemInterface.getServiceName(), mClientUid, keyId); in getKeyWorker()
116 mContext, mSystemInterface.getServiceName())) { in getKeyWorker()
151 mProvisioner.provisionKeys(metrics, mSystemInterface, response); in fetchGeekAndProvisionKeys()
167 mSystemInterface.getServiceName(), in tryToAssignKey()
179 mContext, mSystemInterface.getServiceName())) { in provisionKeysOnKeyConsumed()
180 if (!mProvisioner.isProvisioningNeeded(metrics, mSystemInterface.getServiceName())) { in provisionKeysOnKeyConsumed()
233 mSystemInterface.getServiceName()); in getKeyThreadWorker()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java142 private final HeadsetSystemInterface mSystemInterface; field in HeadsetService
197 mSystemInterface = HeadsetObjectsFactory.getInstance().makeSystemInterface(this); in HeadsetService()
257 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in stop()
258 mSystemInterface.getVoiceRecognitionWakeLock().release(); in stop()
271 mSystemInterface.stop(); in stop()
380 mSystemInterface); in messageFromNative()
421 mSystemInterface
883 mSystemInterface); in connect()
1122 if (mSystemInterface.getVoiceRecognitionWakeLock().isHeld()) { in startVoiceRecognition()
1123 mSystemInterface.getVoiceRecognitionWakeLock().release(); in startVoiceRecognition()
[all …]
DHeadsetStateMachine.java129 private final HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachine
200 mSystemInterface = requireNonNull(systemInterface); in HeadsetStateMachine()
529 if (!mSystemInterface.isHighDefCallInProgress()) { in setAptxVoice()
847 mSystemInterface.answerCall(event.device); in processMessage()
851 mSystemInterface.hangupCall(event.device); in processMessage()
1149 mSystemInterface.answerCall(event.device); in processMessage()
1152 mSystemInterface.hangupCall(event.device); in processMessage()
1161 mSystemInterface.sendDtmf(event.valueInt, event.device); in processMessage()
1262 mSystemInterface.queryPhoneState(); in enter()
1314 mSystemInterface.getAudioManager().setA2dpSuspended(true); in processMessage()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java87 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceTest
139 doNothing().when(mSystemInterface).stop(); in setUp()
140 when(mSystemInterface.getHeadsetPhoneState()).thenReturn(mPhoneState); in setUp()
141 when(mSystemInterface.getAudioManager()).thenReturn(mAudioManager); in setUp()
142 when(mSystemInterface.isCallIdle()).thenReturn(true, false, true, false); in setUp()
169 doReturn(mSystemInterface).when(mObjectsFactory).makeSystemInterface(any()); in setUp()
288 mSystemInterface); in testConnectDevice_connectDeviceBelowLimit()
334 mSystemInterface); in testMessageFromNative_deviceConnected()
382 mSystemInterface); in testMessageFromNative_deviceConnectingUnknown()
428 mSystemInterface); in testConnectDevice_connectDeviceAboveLimit()
[all …]
DHeadsetServiceAndStateMachineTest.java103 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetServiceAndStateMachineTest
153 doNothing().when(mSystemInterface).stop(); in setUp()
154 doReturn(mPhoneState).when(mSystemInterface).getHeadsetPhoneState(); in setUp()
155 doReturn(mAudioManager).when(mSystemInterface).getAudioManager(); in setUp()
156 doReturn(true).when(mSystemInterface).activateVoiceRecognition(); in setUp()
157 doReturn(true).when(mSystemInterface).deactivateVoiceRecognition(); in setUp()
158 doReturn(mVoiceRecognitionWakeLock).when(mSystemInterface).getVoiceRecognitionWakeLock(); in setUp()
159 doReturn(true).when(mSystemInterface).isCallIdle(); in setUp()
177 doReturn(mSystemInterface).when(mObjectsFactory).makeSystemInterface(any()); in setUp()
244 mSystemInterface); in testConnectFromApi()
[all …]
DHeadsetStateMachineTest.java103 @Mock private HeadsetSystemInterface mSystemInterface; field in HeadsetStateMachineTest
116 doReturn(mPhoneState).when(mSystemInterface).getHeadsetPhoneState(); in setUp()
117 doReturn(mAudioManager).when(mSystemInterface).getAudioManager(); in setUp()
166 mSystemInterface); in setUp()
1259 when(mSystemInterface.isRinging()).thenReturn(true); in testKeyPressedEventDuringRinging_answerCall()
1263 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).answerCall(mTestDevice); in testKeyPressedEventDuringRinging_answerCall()
1270 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallButAudioOff_setActiveDevice()
1281 when(mSystemInterface.isInCall()).thenReturn(true); in testKeyPressedEventInCallAndAudioOn_hangupCall()
1285 verify(mSystemInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).hangupCall(mTestDevice); in testKeyPressedEventInCallAndAudioOn_hangupCall()
1547 when(mSystemInterface.processChld(chld)).thenReturn(true); in testProcessAtChld_withProcessChldTrue()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java78 private SystemInterface mSystemInterface; field in ScreenOffHandlerUnitTest
268 verify(mSystemInterface).setDisplayState(displayId, false); in testUpdateUserActivity_noUserAssignedInModeOn_shouldTurnOffDisplay()
296 verify(mSystemInterface, never()).setDisplayState(displayId, false); in testUpdateUserActivity_userAssignedInModeOn_shouldKeepScreenOn()
318 verify(mSystemInterface, never()).setDisplayState(displayId, false); in testUserActivity_bootIncomplete()
364 verify(mSystemInterface).setDisplayState(displayId, false); in testHandleDisplayStateChange_modeOn()
386 verify(mSystemInterface, never()).setDisplayState(displayId, false); in testHandleDisplayStateChange_modeAlwaysOn()
409 verify(mSystemInterface).setDisplayState(displayId, false); in testHandleDisplayStateChange_modeOff()
420 when(mSystemInterface.isDisplayEnabled(anyInt())).thenReturn(true); in setService()
426 }).when(mSystemInterface).scheduleActionForBootCompleted(any(Runnable.class), any()); in setService()
428 mScreenOffHandler = new ScreenOffHandler(mContext, mSystemInterface, in setService()
DPowerComponentHandlerUnitTest.java64 private SystemInterface mSystemInterface; field in PowerComponentHandlerUnitTest
71 mHandler = new PowerComponentHandler(mContext, mSystemInterface, in setUp()
DCarPowerManagementServiceUnitTest.java230 private SystemInterface mSystemInterface; field in CarPowerManagementServiceUnitTest
278 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
285 mContext, mSystemInterface, handlerThread.getLooper()); in setUp()
1106 .setPowerHalService(mPowerHal).setSystemInterface(mSystemInterface) in testInitializePowerPolicy_invalidPowerState_powerPolicyRefactorFlagEnabled()
1940 .setPowerHalService(mPowerHal).setSystemInterface(mSystemInterface) in testDisableWifiAndTethering()
2398 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in testOnInitComplete()
2438 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in testOnInitComplete_flagDisabled_doNothing()
2462 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in testOnInitComplete_bootupReasonNotSupported()
2495 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in testOnInitComplete_bootUpReasonNotGarageMode()
2535 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in testOnInitComplete_vehicleInUse()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DRemoteAccessStorageUnitTest.java51 private SystemInterface mSystemInterface; field in RemoteAccessStorageUnitTest
61 when(mSystemInterface.getSystemCarDir()).thenReturn(mDatabaseFile.getParentFile()); in setUp()
62 mRemoteAccessStorage = new RemoteAccessStorage(mContext, mSystemInterface, in setUp()
DCarRemoteAccessServiceUnitTest.java212 @Mock private SystemInterface mSystemInterface; field in CarRemoteAccessServiceUnitTest
224 CarRemoteAccessService service = new CarRemoteAccessService(mContext, mSystemInterface, in newServiceWithSystemUpTime()
275 when(mSystemInterface.getSystemCarDir()).thenReturn(mDatabaseFile.getParentFile()); in setUp()
297 mRemoteAccessStorage = new RemoteAccessStorage(mContext, mSystemInterface, in setUp()
1109 mService = new CarRemoteAccessService(mContext, mSystemInterface, mPowerHalService); in testAllowedSystemUptimeMs()
1120 mService = new CarRemoteAccessService(mContext, mSystemInterface, mPowerHalService); in testAllowedSystemUptimeMs_lessThanMinSystemUptime()
1798 }).when(mSystemInterface) in mockPackageInfo()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java109 private final SystemInterface mSystemInterface; field in CarStorageMonitoringService
159 mSystemInterface = systemInterface; in CarStorageMonitoringService()
243 mSystemInterface); in init()
286 mSystemInterface.getUptime()); in collectNewIoMetrics()
382 long bootUptime = mSystemInterface.getUptime(); in doInitServiceIfNeededLocked()
396 mSystemInterface.getSystemStateInterface()); in doInitServiceIfNeededLocked()
399 mSystemInterface.scheduleAction(this::collectNewIoMetrics, in doInitServiceIfNeededLocked()
425 Arrays.asList(mSystemInterface.getLifetimeWriteInfoProvider().load()); in computeShutdownCostLocked()
492 mSystemInterface.getLifetimeWriteInfoProvider().load(); in logLifetimeWrites()
DICarImpl.java132 private final SystemInterface mSystemInterface; field in ICarImpl
237 mSystemInterface = builder.mSystemInterface; in ICarImpl()
238 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in ICarImpl()
245 mContext, mSystemInterface.getSystemCarDir(), mHal), allServices); in ICarImpl()
306 .setSystemInterface(mSystemInterface) in ICarImpl()
334 mSystemInterface), allServices); in ICarImpl()
380 () -> new CarStorageMonitoringService(mContext, mSystemInterface), allServices); in ICarImpl()
439 mContext, mSystemInterface, mHal.getPowerHal()), allServices); in ICarImpl()
442 mContext, mSystemInterface, mHal.getPowerHal()); in ICarImpl()
972 return new CarShellCommand(mContext, mHal, mFeatureController, mSystemInterface, in newCarShellCommand()
[all …]
DCarInputService.java219 private final SystemInterface mSystemInterface; field in CarInputService
347 mSystemInterface = systemInterface; in CarInputService()
870 boolean isOn = mSystemInterface.isDisplayEnabled(displayId); in handlePowerKey()
DCarShellCommand.java547 private final SystemInterface mSystemInterface; field in CarShellCommand
567 mSystemInterface = systemInterface; in CarShellCommand()
3051 mSystemInterface.setAllDisplayState(false);
3056 mSystemInterface.setAllDisplayState(true);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/garagemode/
DGarageModeRecorderTest.java59 private SystemInterface mSystemInterface; field in GarageModeRecorderTest
88 doReturn(mSystemInterface).when(() -> CarLocalServices.getService(SystemInterface.class)); in setup()
89 when(mSystemInterface.getSystemCarDir()).thenReturn(mTempTestDir); in setup()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java212 private final SystemInterface mSystemInterface; field in CarPowerManagementService
386 private SystemInterface mSystemInterface; field in CarPowerManagementService.Builder
419 mSystemInterface = systemInterface; in setSystemInterface()
534 mSystemInterface = Objects.requireNonNull(builder.mSystemInterface); in CarPowerManagementService()
569 new File(mSystemInterface.getSystemCarDir(), WIFI_STATE_FILENAME)); in CarPowerManagementService()
571 new File(mSystemInterface.getSystemCarDir(), TETHERING_STATE_FILENAME)); in CarPowerManagementService()
574 () -> new PowerComponentHandler(mContext, mSystemInterface)); in CarPowerManagementService()
581 new ScreenOffHandler(mContext, mSystemInterface, mHandler.getLooper())); in CarPowerManagementService()
609 mSystemInterface.init(this, mUserService); in init()
618 mSystemInterface.startDisplayStateMonitoring(); in init()
[all …]
DScreenOffHandler.java115 private final SystemInterface mSystemInterface; field in ScreenOffHandler
139 mSystemInterface = systemInterface; in ScreenOffHandler()
157 mSystemInterface.scheduleActionForBootCompleted(() -> { in init()
322 || !mSystemInterface.isDisplayEnabled(displayId)) { in updateDisplayPowerStateLocked()
338 if (on != mSystemInterface.isDisplayEnabled(displayId)) { in handleSetDisplayState()
339 mSystemInterface.setDisplayState(displayId, on); in handleSetDisplayState()
DPowerComponentHandler.java81 private final SystemInterface mSystemInterface; field in PowerComponentHandler
110 mSystemInterface = systemInterface; in PowerComponentHandler()
432 return mSystemInterface.isAnyDisplayEnabled(); in isEnabled()
437 mSystemInterface.setAllDisplayState(enabled); in setEnabled()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java89 private SystemInterface mSystemInterface; field in GarageModeTest
104 CarLocalServices.addService(SystemInterface.class, mSystemInterface); in setUp()
107 when(mSystemInterface.getSystemCarDir()).thenReturn(mTempTestDir); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputRotaryServiceTest.java94 @Mock private SystemInterface mSystemInterface; field in CarInputRotaryServiceTest
152 when(mSystemInterface.isDisplayEnabled(anyInt())).thenReturn(true); in setUp()
301 mSystemInterface, mHandler, mTelecomManager, mDefaultKeyEventMainListener, in init()
DCarInputServiceTest.java111 @Mock SystemInterface mSystemInterface; field in CarInputServiceTest
155 mSystemInterface, mHandler, mTelecomManager, mDefaultKeyEventMainListener, in setUp()
1152 when(mSystemInterface.isDisplayEnabled(eq(displayId))).thenReturn(isOn); in injectPowerKeyEventToSeat()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java126 private SystemInterface mSystemInterface; field in CarPowerManagerUnitTest
156 mSystemInterface = SystemInterface.Builder.defaultSystemInterface(mContext) in setUp()
463 mPowerComponentHandler = new PowerComponentHandler(mContext, mSystemInterface, in setService()
473 .setSystemInterface(mSystemInterface).setUserManager(mUserManager) in setService()