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.java293 protected void onConnectionStateChanged(int currentState) { in onConnectionStateChanged() argument
294 if (mMostRecentState == currentState) { in onConnectionStateChanged()
297 if (currentState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
302 + currentState); in onConnectionStateChanged()
306 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in onConnectionStateChanged()
309 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/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/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/apps/Settings/src/com/android/settings/network/
DActiveSubsciptionsListener.java291 final int currentState = mCacheState.getAndSet(STATE_STOPPING);
292 if (currentState <= STATE_STOPPING) {
293 mCacheState.compareAndSet(STATE_STOPPING, currentState);
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java1149 protected void broadcastConnectionStateChanged(int currentState) { in broadcastConnectionStateChanged() argument
1150 if (mMostRecentState == currentState) { in broadcastConnectionStateChanged()
1153 if (currentState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionStateChanged()
1157 logD("Connection state " + mDevice + ": " + mMostRecentState + "->" + currentState); in broadcastConnectionStateChanged()
1160 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in broadcastConnectionStateChanged()
1163 mMostRecentState = currentState; in broadcastConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java235 IState currentState = this.getCurrentState(); in getState() local
236 if (currentState == null || currentState.getClass() == Disconnected.class) { in getState()
239 if (currentState.getClass() == Connected.class) { in getState()
242 if (currentState.getClass() == Connecting.class) { in getState()
245 if (currentState.getClass() == Disconnecting.class) { in getState()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1679 IState currentState = getCurrentState(); in updateInternalCallAudioState() local
1680 if (currentState == null) { in updateInternalCallAudioState()
1689 int currentRoute = mStateNameToRouteCode.get(currentState.getName()); in updateInternalCallAudioState()
1799 AudioState currentState = (AudioState) getCurrentState(); in isInActiveState() local
1800 if (currentState == null) { in isInActiveState()
1804 return currentState.isActive(); in isInActiveState()
1857 CallAudioState currentState = getCurrentCallAudioState(); in updateRouteForForegroundCall() local
1860 if ((mAvailableRoutes & currentState.getRoute()) == 0) { in updateRouteForForegroundCall()
DCallAudioModeStateMachine.java727 IState currentState = getCurrentState(); in getCurrentStateName() local
728 return currentState == null ? "no state" : currentState.getName(); in getCurrentStateName()
DCallsManager.java3260 for (int currentState : states) {
3263 if (foregroundCall != null && foregroundCall.getState() == currentState) {
3281 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.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/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java1667 IState currentState = getCurrentState(); in getConnectionState() local
1668 if (currentState == mConnecting) { in getConnectionState()
1672 if (currentState == mConnected || currentState == mAudioOn) { in getConnectionState()
1676 Log.e(TAG, "Bad currentState: " + currentState); in getConnectionState()
1759 IState currentState = getCurrentState(); in isConnected() local
1760 return (currentState == mConnected || currentState == mAudioOn); in isConnected()
/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/services/Car/service/src/com/android/car/
DCarProjectionService.java487 int currentState; in notifyProjectionStatusChanged() local
494 currentState = mCurrentProjectionState; in notifyProjectionStatusChanged()
499 Log.d(TAG, "Notify projection status change, state: " + currentState + ", pkg: " in notifyProjectionStatusChanged()
509 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
516 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java260 int currentState = mCarWifiManager.getWifiState(); in onReceive() local
261 switch (currentState) { in onReceive()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardSwitcher.java342 KeyboardSwitchState currentState = getKeyboardSwitchState(); in onToggleKeyboard() local
343 Log.w(TAG, "onToggleKeyboard() : Current = " + currentState + " : Toggle = " + toggleState); in onToggleKeyboard()
344 if (currentState == toggleState) { in onToggleKeyboard()
/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.java415 int currentState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, in onReceive() local
417 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()