Home
last modified time | relevance | path

Searched refs:currentState (Results 1 – 25 of 25) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DStateMachine.java163 State currentState = getCurrentState(); in start() local
165 currentState.processForward(); in start()
167 currentState.processBackward(); in start()
228 State currentState = getCurrentState(); in updateState() local
230 List<Transition> list = mTransitionMap.get(currentState); in updateState()
232 for (Transition transition : mTransitionMap.get(currentState)) { in updateState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java281 protected void onConnectionStateChanged(int currentState) { in onConnectionStateChanged() argument
282 if (mMostRecentState == currentState) { in onConnectionStateChanged()
285 if (currentState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
290 + currentState); in onConnectionStateChanged()
294 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in onConnectionStateChanged()
297 mMostRecentState = currentState; in onConnectionStateChanged()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConnection.java42 private int currentState = STATE_NEW; field in SimulatorConnection
129 stateToString(currentState), in onStateChanged()
131 int oldState = currentState; in onStateChanged()
132 currentState = newState; in onStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java371 IState currentState = getCurrentState(); in getConnectionState() local
372 if (currentState instanceof Disconnected) { in getConnectionState()
374 } else if (currentState instanceof Connecting) { in getConnectionState()
376 } else if (currentState instanceof Connected) { in getConnectionState()
378 } else if (currentState instanceof Disconnecting) { in getConnectionState()
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DRecordVoicemailGreetingActivity.java47 private int currentState; field in RecordVoicemailGreetingActivity
70 switch (currentState) { in onClick()
88 currentState = state; in setState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java775 protected void broadcastConnectionStateChanged(int currentState) { in broadcastConnectionStateChanged() argument
776 if (mMostRecentState == currentState) { in broadcastConnectionStateChanged()
779 if (currentState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionStateChanged()
783 logD("Connection state " + mDevice + ": " + mMostRecentState + "->" + currentState); in broadcastConnectionStateChanged()
786 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in broadcastConnectionStateChanged()
789 mMostRecentState = currentState; in broadcastConnectionStateChanged()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelper.java148 final int currentState = mDevicePolicyManager.getUserProvisioningState(); in isStateUnmanagedOrFinalized() local
149 return currentState == STATE_USER_UNMANAGED || currentState == STATE_USER_SETUP_FINALIZED; in isStateUnmanagedOrFinalized()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java231 IState currentState = this.getCurrentState(); in getState() local
232 if (currentState == null || currentState.getClass() == Disconnected.class) { in getState()
235 if (currentState.getClass() == Connected.class) { in getState()
238 if (currentState.getClass() == Connecting.class) { in getState()
241 if (currentState.getClass() == Disconnecting.class) { in getState()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1281 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument
1282 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation()
1485 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1487 ViewCluster cluster = new ViewCluster(views, currentState); in pushViewsToTempLocation()
1516 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1523 currentState.save(); in pushViewsToTempLocation()
1531 for (View v: currentState.sortedViews) { in pushViewsToTempLocation()
1544 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1567 currentState.restore(); in pushViewsToTempLocation()
1572 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1574 IState currentState = getCurrentState(); in updateInternalCallAudioState() local
1575 if (currentState == null) { in updateInternalCallAudioState()
1584 int currentRoute = mStateNameToRouteCode.get(currentState.getName()); in updateInternalCallAudioState()
1694 AudioState currentState = (AudioState) getCurrentState(); in isInActiveState() local
1695 if (currentState == null) { in isInActiveState()
1699 return currentState.isActive(); in isInActiveState()
1752 CallAudioState currentState = getCurrentCallAudioState(); in updateRouteForForegroundCall() local
1755 if ((mAvailableRoutes & currentState.getRoute()) == 0) { in updateRouteForForegroundCall()
DCallAudioModeStateMachine.java508 IState currentState = getCurrentState(); in getCurrentStateName() local
509 return currentState == null ? "no state" : currentState.getName(); in getCurrentStateName()
DCallsManager.java2760 for (int currentState : states) {
2763 if (foregroundCall != null && foregroundCall.getState() == currentState) {
2781 if (currentState == call.getState()) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DRequestPermissionActivity.java379 final int currentState = intent.getIntExtra( in onReceive() local
384 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
390 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java383 final int currentState = intent.getIntExtra( in onReceive() local
388 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
394 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java1735 IState currentState = getCurrentState(); in getConnectionState() local
1736 if (currentState == mConnecting) { in getConnectionState()
1740 if (currentState == mConnected || currentState == mAudioOn) { in getConnectionState()
1744 Log.e(TAG, "Bad currentState: " + currentState); in getConnectionState()
1830 IState currentState = getCurrentState(); in isConnected() local
1831 return (currentState == mConnected || currentState == mAudioOn); in isConnected()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java472 int currentState; in notifyProjectionStatusChanged() local
479 currentState = mCurrentProjectionState; in notifyProjectionStatusChanged()
484 Log.d(TAG, "Notify projection status change, state: " + currentState + ", pkg: " in notifyProjectionStatusChanged()
494 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
501 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelperTest.java178 private boolean isStateUnmanagedOrFinalizedWithCurrentState(int currentState) { in isStateUnmanagedOrFinalizedWithCurrentState() argument
179 when(mDevicePolicyManager.getUserProvisioningState()).thenReturn(currentState); in isStateUnmanagedOrFinalizedWithCurrentState()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java259 int currentState = mCarWifiManager.getWifiState(); in onReceive() local
260 switch (currentState) { in onReceive()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardSwitcher.java338 KeyboardSwitchState currentState = getKeyboardSwitchState(); in onToggleKeyboard() local
339 Log.w(TAG, "onToggleKeyboard() : Current = " + currentState + " : Toggle = " + toggleState); in onToggleKeyboard()
340 if (currentState == toggleState) { in onToggleKeyboard()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java499 String currentState = getCurrentState().getName(); in getConnectionState() local
500 switch (currentState) { in getConnectionState()
510 Log.e(TAG, "Bad currentState: " + currentState); in getConnectionState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DRequestToggleWiFiActivity.java307 final int currentState = mWiFiManager.getWifiState(); in onReceive() local
308 switch (currentState) { in onReceive()
/packages/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java307 final int currentState = mWiFiManager.getWifiState(); in onReceive() local
308 switch (currentState) { in onReceive()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java515 IState currentState = stateQueue.poll(GET_STATE_TIMEOUT, TimeUnit.MILLISECONDS); in isBluetoothAudioConnectedOrPending() local
516 if (currentState == null) { in isBluetoothAudioConnectedOrPending()
521 return currentState != mAudioOffState; in isBluetoothAudioConnectedOrPending()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java414 int currentState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, in onReceive() local
416 if (mDesiredState == currentState) { in onReceive()
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java1413 ModeListState currentState = mCurrentStateManager.getCurrentState(); in draw() local
1414 AnimationEffects currentEffects = currentState.getCurrentAnimationEffects(); in draw()
1560 ModeListState currentState = mCurrentStateManager.getCurrentState(); in setVisibility() local
1561 if (currentState != null && !currentState.shouldHandleVisibilityChange(visibility)) { in setVisibility()