Home
last modified time | relevance | path

Searched refs:mDeviceState (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/device/
DSingleDeviceStateMachine.java83 private DeviceState mDeviceState; field in SingleDeviceStateMachine
111 mDeviceState = DeviceState.CLOSED; in SingleDeviceStateMachine()
191 mDeviceState = DeviceState.OPENED; in onDeviceOpened()
223 mDeviceState = DeviceState.CLOSING; in onDeviceOpenException()
240 mDeviceState = DeviceState.CLOSED; in onDeviceClosed()
270 if (mDeviceState == DeviceState.CLOSED && mTargetState == TargetState.OPENED) { in update()
272 } else if (mDeviceState == DeviceState.OPENED && mTargetState == TargetState.OPENED) { in update()
274 } else if (mDeviceState == DeviceState.OPENED && mTargetState == TargetState.CLOSED) { in update()
276 } else if (mDeviceState == DeviceState.CLOSED && mTargetState == TargetState.CLOSED) { in update()
283 mDeviceState = DeviceState.OPENING; in executeOpen()
[all …]
DCameraDeviceLifecycle.java41 private final SingleDeviceStateMachine<TDevice, CameraDeviceKey> mDeviceState; field in CameraDeviceLifecycle
52 mDeviceState = deviceState; in CameraDeviceLifecycle()
66 mDeviceState.setRequest(mDeviceRequest); in createRequest()
79 mDeviceState.requestOpen(); in open()
94 mDeviceState.requestClose(); in close()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DTelephonyConnectionServiceTest.java106 @Mock DeviceState mDeviceState; field in TelephonyConnectionServiceTest
143 doReturn(false).when(mDeviceState).shouldCheckSimStateBeforeOutgoingCall(any()); in setUp()
155 mTestConnectionService.setDeviceState(mDeviceState); in setUp()
938 doReturn(true).when(mDeviceState).isSuplDdsSwitchRequiredForEmergencyCall(any()); in testCreateOutgoingEmergencyConnection_delayDial_carrierconfig_dds()
961 when(mDeviceState.isAirplaneModeOn(any())).thenReturn(true); in testCreateOutgoingEmerge_exitingApm_disconnected()
987 when(mDeviceState.isAirplaneModeOn(any())).thenReturn(true); in testCreateOutgoingEmergencyConnection_exitingApm_placeCall()
1023 doReturn(true).when(mDeviceState).isSuplDdsSwitchRequiredForEmergencyCall(any()); in testCreateOutgoingEmergencyConnection_delayDial_nocarrierconfig()
1049 doReturn(false).when(mDeviceState).isSuplDdsSwitchRequiredForEmergencyCall(any()); in testCreateOutgoingEmergencyConnection_delayDial_supportsuplondds()
1075 doReturn(true).when(mDeviceState).isSuplDdsSwitchRequiredForEmergencyCall(any()); in testCreateOutgoingEmergencyConnection_delayDial_roaming_nocarrierconfig()
1107 doReturn(true).when(mDeviceState).isSuplDdsSwitchRequiredForEmergencyCall(any()); in testCreateOutgoingEmergencyConnection_delayDial_roamingcarrierconfig()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java173 private DeviceState mDeviceState = new DeviceState(); field in TelephonyConnectionService
434 mDeviceState = state; in setDeviceState()
523 mIsTtyEnabled = mDeviceState.isTtyModeEnabled(this); in onCreate()
785 final boolean isAirplaneModeOn = mDeviceState.isAirplaneModeOn(this); in onCreateOutgoingConnection()
918 final boolean allowed = mDeviceState.isRadioPowerDownAllowedOnBluetooth(this); in isRadioPowerDownOnBluetooth()
919 final int cellOn = mDeviceState.getCellOnStatus(this); in isRadioPowerDownOnBluetooth()
1020 if (mDeviceState.shouldCheckSimStateBeforeOutgoingCall(this)) { in getTelephonyConnection()
1124 final boolean isTtyModeEnabled = mDeviceState.isTtyModeEnabled(this); in getTelephonyConnection()
1234 connection.setTtyEnabled(mDeviceState.isTtyModeEnabled(getApplicationContext())); in onCreateIncomingConnection()
1942 mDeviceState.isSuplDdsSwitchRequiredForEmergencyCall(this); in possiblyOverrideDefaultDataForEmergencyCall()