Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/remoteauth/enrolling/
DRemoteAuthEnrollEnrollingViewModel.kt33 _uiState.update { currentState -> in <lambda>() method
34 currentState.copy( in <lambda>()
52 _uiState.update { currentState -> in <lambda>() method
53 currentState.copy(enrollmentUiState = EnrollmentUiState.FINDING_DEVICES) in <lambda>()
60 _uiState.update { currentState -> in <lambda>() method
61 currentState.copy( in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/domain/
DStateMachine.kt35 protected abstract var currentState: STATE variable in com.android.car.customization.tool.domain.StateMachine
48 observer.render(currentState) in register()
62 if (!allowDuplicates && currentState != newState) { in updateState()
63 currentState = newState in updateState()
72 updateState(reducer(currentState, action)) in handleAction()
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DReorderAlgorithm.java191 ItemConfiguration currentState) { in addViewToTempLocation() argument
192 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation()
210 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
212 ViewCluster cluster = new ViewCluster(mCellLayout, views, currentState); in pushViewsToTempLocation()
241 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
248 currentState.save(); in pushViewsToTempLocation()
256 for (View v : currentState.sortedViews) { in pushViewsToTempLocation()
269 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
292 currentState.restore(); in pushViewsToTempLocation()
297 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
[all …]
/packages/apps/Settings/src/com/android/settings/remoteauth/settings/
DRemoteAuthSettingsViewModel.kt32 _uiState.update { currentState -> in <lambda>() method
33 currentState.copy( in <lambda>()
43 _uiState.update { currentState -> in <lambda>() method
44 currentState.copy( in <lambda>()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelper.java161 final int currentState = mDevicePolicyManager.getUserProvisioningState(); in isStateUnmanagedOrFinalized() local
162 return currentState == STATE_USER_UNMANAGED in isStateUnmanagedOrFinalized()
163 || currentState == STATE_USER_SETUP_FINALIZED in isStateUnmanagedOrFinalized()
164 || currentState == STATE_USER_PROFILE_FINALIZED; in isStateUnmanagedOrFinalized()
176 final int currentState = mDevicePolicyManager.getUserProvisioningState(); in isUserProvisioningStateProfileFinalized() local
177 return currentState == STATE_USER_PROFILE_FINALIZED; in isUserProvisioningStateProfileFinalized()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java322 protected void onConnectionStateChanged(int currentState) { in onConnectionStateChanged() argument
323 if (mMostRecentState == currentState) { in onConnectionStateChanged()
326 if (currentState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChanged()
329 Log.d(TAG, "[" + mDevice + "] Connection state: " + mMostRecentState + "->" + currentState); in onConnectionStateChanged()
332 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in onConnectionStateChanged()
335 mService.connectionStateChanged(mDevice, mMostRecentState, currentState); in onConnectionStateChanged()
336 mMostRecentState = currentState; in onConnectionStateChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DStateMachine.java194 State currentState = getCurrentState(); in start() local
196 currentState.processForward(); in start()
198 currentState.processBackward(); in start()
259 State currentState = getCurrentState(); in updateState() local
261 List<Transition> list = mTransitionMap.get(currentState); in updateState()
263 for (Transition transition : mTransitionMap.get(currentState)) { in updateState()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/embedded/
DEmbeddedLifecycle.kt61 currentState = Lifecycle.State.INITIALIZED in <lambda>()
95 lifecycleRegistry.currentState = Lifecycle.State.CREATED in onCreate()
100 lifecycleRegistry.currentState = Lifecycle.State.DESTROYED in onDestroy()
/packages/services/Mms/src/com/android/mms/service/
DMmsRequest.java129 protected MmsRequestState currentState = MmsRequestState.Unknown; field in MmsRequest
164 currentState = MmsRequestState.Created; in MmsRequest()
192 currentState = MmsRequestState.PrepareForHttpRequest; in execute()
205 currentState = MmsRequestState.AcquiringNetwork; in execute()
207 currentState = MmsRequestState.LoadingApn; in execute()
248 currentState = MmsRequestState.DoingHttp; in execute()
324 currentState = result == Activity.RESULT_OK ? MmsRequestState.Success in processResult()
492 + " currentState: \"" + currentState.name() + "\"" in toString()
/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java387 IState currentState = getCurrentState(); in getConnectionState() local
388 if (currentState instanceof Disconnected) { in getConnectionState()
390 } else if (currentState instanceof Connecting) { in getConnectionState()
392 } else if (currentState instanceof Connected) { in getConnectionState()
394 } else if (currentState instanceof Disconnecting) { in getConnectionState()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DPreviewTabs.kt143 if (motionLayout.currentState != R.id.primary_tab_selected) { in transitionToTab()
148 if (motionLayout.currentState != R.id.secondary_tab_selected) { in transitionToTab()
164 if (motionLayout.currentState != R.id.primary_tab_selected) { in setTab()
170 if (motionLayout.currentState != R.id.secondary_tab_selected) { in setTab()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImpl.java188 public void onSuccess(@ProvisionState Integer currentState) { in notifyTimeChanged() argument
189 correctStoredTime(currentState); in notifyTimeChanged()
207 void correctStoredTime(@ProvisionState Integer currentState) { in correctStoredTime() argument
213 if (currentState == UNPROVISIONED) { in correctStoredTime()
223 } else if (currentState == PROVISION_PAUSED) { in correctStoredTime()
229 } else if (currentState == PROVISION_FAILED) { in correctStoredTime()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/
DProvisionStateControllerImpl.java131 currentState -> { in setNextStateForEvent()
132 int newState = getNextState(currentState, event); in setNextStateForEvent()
333 public StateTransitionException(@ProvisionState int currentState,
336 + " in state: " + stateToString(currentState));
/packages/apps/Settings/src/com/android/settings/network/
DActiveSubscriptionsListener.java323 final int currentState = mCacheState.getAndSet(STATE_STOPPING);
324 if (currentState <= STATE_STOPPING) {
325 mCacheState.compareAndSet(STATE_STOPPING, currentState);
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DAbstractSessionStateMachine.java239 final IState currentState = getCurrentState(); in getMetricsIkeStateCode() local
240 return currentState instanceof ExceptionHandlerBase in getMetricsIkeStateCode()
241 ? ((ExceptionHandlerBase) currentState).getMetricsStateCode() in getMetricsIkeStateCode()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPhotoPickerComponentTestUtils.java53 final int currentState = packageManager.getComponentEnabledSetting(componentName); in getCurrentStateAndEnable() local
57 return currentState; in getCurrentStateAndEnable()
/packages/apps/Settings/src/com/android/settings/development/
DPageAgnosticNotificationService.java113 final int currentState = in disableAutomaticUpdates() local
119 if (currentState == 0) { in disableAutomaticUpdates()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/rotary/
DRotaryFragment.java226 int currentState = pm.getApplicationEnabledSetting(packageName); in enableApplication() local
230 boolean isEnabled = currentState == PackageManager.COMPONENT_ENABLED_STATE_ENABLED; in enableApplication()
232 || currentState == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT) { in enableApplication()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DRequestPermissionActivity.java400 final int currentState = intent.getIntExtra( in onReceive() local
405 if (currentState == BluetoothAdapter.STATE_ON) { in onReceive()
411 if (currentState == BluetoothAdapter.STATE_OFF) { in onReceive()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DUserProvisioningStateHelperTest.java200 private boolean isStateUnmanagedOrFinalizedWithCurrentState(int currentState) { in isStateUnmanagedOrFinalizedWithCurrentState() argument
201 when(mDevicePolicyManager.getUserProvisioningState()).thenReturn(currentState); in isStateUnmanagedOrFinalizedWithCurrentState()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java1373 protected void broadcastConnectionStateChanged(int currentState) { in broadcastConnectionStateChanged() argument
1374 if (mMostRecentState == currentState) { in broadcastConnectionStateChanged()
1377 if (currentState == BluetoothProfile.STATE_CONNECTED) { in broadcastConnectionStateChanged()
1384 mDevice, BluetoothProfile.AVRCP_CONTROLLER, currentState, mMostRecentState); in broadcastConnectionStateChanged()
1387 debug("Connection state : " + mMostRecentState + "->" + currentState); in broadcastConnectionStateChanged()
1390 intent.putExtra(BluetoothProfile.EXTRA_STATE, currentState); in broadcastConnectionStateChanged()
1393 mMostRecentState = currentState; in broadcastConnectionStateChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiRequestToggleActivity.java250 int currentState = mCarWifiManager.getWifiState(); in onReceive() local
251 switch (currentState) { in onReceive()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DExerciseRoutesPermissionDialogFragment.kt139 private fun getId(currentState: PermissionUiState): Int { in <lambda>()
140 return when (currentState) { in <lambda>()

123