Home
last modified time | relevance | path

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

12

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelper.java159 final int currentState = mDevicePolicyManager.getUserProvisioningState(); in isStateUnmanagedOrFinalized() local
160 return currentState == STATE_USER_UNMANAGED in isStateUnmanagedOrFinalized()
161 || currentState == STATE_USER_SETUP_FINALIZED in isStateUnmanagedOrFinalized()
162 || currentState == STATE_USER_PROFILE_FINALIZED; in isStateUnmanagedOrFinalized()
174 final int currentState = mDevicePolicyManager.getUserProvisioningState(); in isUserProvisioningStateProfileFinalized() local
175 return currentState == STATE_USER_PROFILE_FINALIZED; in isUserProvisioningStateProfileFinalized()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DStateMachine.java169 State currentState = getCurrentState(); in start() local
171 currentState.processForward(); in start()
173 currentState.processBackward(); in start()
234 State currentState = getCurrentState(); in updateState() local
236 List<Transition> list = mTransitionMap.get(currentState); in updateState()
238 for (Transition transition : mTransitionMap.get(currentState)) { in updateState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java297 protected void onConnectionStateChanged(int currentState) { in onConnectionStateChanged() argument
298 if (mMostRecentState == currentState) { in onConnectionStateChanged()
301 if (currentState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
306 + currentState); in onConnectionStateChanged()
310 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in onConnectionStateChanged()
313 mMostRecentState = currentState; in onConnectionStateChanged()
/packages/modules/StatsD/statsd/tests/metrics/
DValueMetricProducer_test.cpp4032 ASSERT_EQ(1, itBase->second.currentState.getValues().size()); in TEST()
4034 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4054 ASSERT_EQ(1, itBase->second.currentState.getValues().size()); in TEST()
4056 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4087 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4127 ASSERT_EQ(1, itBase->second.currentState.getValues().size()); in TEST()
4129 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4282 ASSERT_EQ(1, itBase->second.currentState.getValues().size()); in TEST()
4284 itBase->second.currentState.getValues()[0].mValue.int_value); in TEST()
4304 ASSERT_EQ(1, itBase->second.currentState.getValues().size()); in TEST()
[all …]
/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.java373 IState currentState = getCurrentState(); in getConnectionState() local
374 if (currentState instanceof Disconnected) { in getConnectionState()
376 } else if (currentState instanceof Connecting) { in getConnectionState()
378 } else if (currentState instanceof Connected) { in getConnectionState()
380 } 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/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DRecentsViewStateController.java85 LauncherState currentState = mLauncher.getStateManager().getState(); in setStateWithAnimationInternal() local
86 if (isSplitSelectionState(toState) && !isSplitSelectionState(currentState)) { in setStateWithAnimationInternal()
88 } else if (!isSplitSelectionState(toState) && isSplitSelectionState(currentState)) { in setStateWithAnimationInternal()
/packages/apps/Settings/src/com/android/settings/network/
DActiveSubscriptionsListener.java311 final int currentState = mCacheState.getAndSet(STATE_STOPPING);
312 if (currentState <= STATE_STOPPING) {
313 mCacheState.compareAndSet(STATE_STOPPING, currentState);
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1344 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument
1345 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation()
1548 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1550 ViewCluster cluster = new ViewCluster(views, currentState); in pushViewsToTempLocation()
1579 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1586 currentState.save(); in pushViewsToTempLocation()
1594 for (View v: currentState.sortedViews) { in pushViewsToTempLocation()
1607 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1630 currentState.restore(); in pushViewsToTempLocation()
1635 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1707 IState currentState = getCurrentState(); in updateInternalCallAudioState() local
1708 if (currentState == null) { in updateInternalCallAudioState()
1717 int currentRoute = mStateNameToRouteCode.get(currentState.getName()); in updateInternalCallAudioState()
1827 AudioState currentState = (AudioState) getCurrentState(); in isInActiveState() local
1828 if (currentState == null) { in isInActiveState()
1832 return currentState.isActive(); in isInActiveState()
1885 CallAudioState currentState = getCurrentCallAudioState(); in updateRouteForForegroundCall() local
1888 if ((mAvailableRoutes & currentState.getRoute()) == 0) { in updateRouteForForegroundCall()
DCallAudioModeStateMachine.java739 IState currentState = getCurrentState(); in getCurrentStateName() local
740 return currentState == null ? "no state" : currentState.getName(); in getCurrentStateName()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java395 final int currentState = intent.getIntExtra( in onReceive() local
400 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
406 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/rotary/
DRotaryFragment.java223 int currentState = pm.getApplicationEnabledSetting(packageName); in enableApplication() local
227 boolean isEnabled = currentState == PackageManager.COMPONENT_ENABLED_STATE_ENABLED; in enableApplication()
229 || currentState == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT) { in enableApplication()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java246 IState currentState = this.getCurrentState(); in getState() local
247 if (currentState == null || currentState.getClass() == Disconnected.class) { in getState()
250 if (currentState.getClass() == Connected.class) { in getState()
253 if (currentState.getClass() == Connecting.class) { in getState()
256 if (currentState.getClass() == Disconnecting.class) { in getState()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java1240 protected void broadcastConnectionStateChanged(int currentState) { in broadcastConnectionStateChanged() argument
1241 if (mMostRecentState == currentState) { in broadcastConnectionStateChanged()
1244 if (currentState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionStateChanged()
1248 logD("Connection state " + mDevice + ": " + mMostRecentState + "->" + currentState); in broadcastConnectionStateChanged()
1251 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in broadcastConnectionStateChanged()
1254 mMostRecentState = currentState; in broadcastConnectionStateChanged()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConcreteClientModeManager.java581 IState currentState = mStateMachine.getCurrentState(); in getCurrentStateName() local
583 if (currentState != null) { in getCurrentStateName()
584 return currentState.getName(); in getCurrentStateName()
597 private void updateConnectModeState(ClientRole role, int newState, int currentState) { in updateConnectModeState() argument
614 intent.putExtra(WifiManager.EXTRA_PREVIOUS_WIFI_STATE, currentState); in updateConnectModeState()
617 + " EXTRA_PREVIOUS_WIFI_STATE=" + currentState; in updateConnectModeState()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelperTest.java195 private boolean isStateUnmanagedOrFinalizedWithCurrentState(int currentState) { in isStateUnmanagedOrFinalizedWithCurrentState() argument
196 when(mDevicePolicyManager.getUserProvisioningState()).thenReturn(currentState); in isStateUnmanagedOrFinalizedWithCurrentState()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java258 int currentState = mCarWifiManager.getWifiState(); in onReceive() local
259 switch (currentState) { in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioStateMachine.java495 String currentState = getCurrentState().getName(); in getConnectionState() local
496 switch (currentState) { in getConnectionState()
506 Log.e(TAG, "Bad currentState: " + currentState); in getConnectionState()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java486 int currentState; in notifyProjectionStatusChanged() local
493 currentState = mCurrentProjectionState; in notifyProjectionStatusChanged()
498 Slog.d(TAG, "Notify projection status change, state: " + currentState + ", pkg: " in notifyProjectionStatusChanged()
508 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
515 currentState, currentPackage, statuses); in notifyProjectionStatusChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java1789 IState currentState = getCurrentState(); in getConnectionState() local
1790 if (currentState == mConnecting) { in getConnectionState()
1794 if (currentState == mConnected || currentState == mAudioOn) { in getConnectionState()
1798 Log.e(TAG, "Bad currentState: " + currentState); in getConnectionState()
1883 IState currentState = getCurrentState(); in isConnected() local
1884 return (currentState == mConnected || currentState == mAudioOn); in isConnected()
/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/apps/Settings/src/com/android/settings/wifi/
DRequestToggleWiFiActivity.java308 final int currentState = mWiFiManager.getWifiState(); in onReceive() local
309 switch (currentState) { in onReceive()
/packages/modules/StatsD/statsd/src/metrics/
DValueMetricProducer.h233 : baseInfos(), currentState(stateKey), hasCurrentState(false) { in DimensionsInWhatInfo()
237 HashableDimensionKey currentState; member

12