Home
last modified time | relevance | path

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

1234567

/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
DRecordVoicemailGreetingActivity.java63 setState(RECORD_GREETING_INIT); in onCreate()
72 setState(RECORD_GREETING_RECORDING); in onClick()
75 setState(RECORD_GREETING_PLAYING_BACK); in onClick()
79 setState(RECORD_GREETING_RECORDED); in onClick()
87 private void setState(@ButtonState int state) { in setState() method in RecordVoicemailGreetingActivity
92 recordButton.setState(state); in setState()
98 recordButton.setState(state); in setState()
103 recordButton.setState(state); in setState()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallTest.java118 call.setState(CallState.ACTIVE, ""); in testSetHasGoneActive()
120 call.setState(CallState.AUDIO_PROCESSING, ""); in testSetHasGoneActive()
143 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessing()
168 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessingAfterActive()
169 call.setState(CallState.ACTIVE, ""); in testDisconnectCauseWhenAudioProcessingAfterActive()
170 call.setState(CallState.AUDIO_PROCESSING, ""); in testDisconnectCauseWhenAudioProcessingAfterActive()
195 call.setState(CallState.SIMULATED_RINGING, ""); in testDisconnectCauseWhenSimulatedRingingAndDisconnect()
220 call.setState(CallState.SIMULATED_RINGING, ""); in testDisconnectCauseWhenSimulatedRingingAndReject()
255 call.setState(CallState.ACTIVE, ""); in testCanPullCallRemovedDuringEmergencyCall()
296 call.setState(CallState.ACTIVE, ""); in testCanNotPullCallDuringEmergencyCall()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivityTest.java124 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDisableIntent_noDialog()
135 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDisableIntent_startsDialog()
147 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestDiscoverableIntent_startsDialog()
159 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestDiscoverableIntent_startsDialog()
171 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onCreate_bluetoothOff_requestEnableIntent_startsDialog()
183 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onCreate_bluetoothOn_requestEnableIntent_noDialog()
194 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onPositiveClick_disableDialog_disables()
209 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onPositiveClick_discoverableDialog_scanModeSet()
225 getShadowLocalBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in onPositiveClick_enableDialog_enables()
DBluetoothPreferenceControllerTest.java120 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_OFF); in getAvailabilityStatus_adapterDisabled_conditionallyUnavailable()
130 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in getAvailabilityStatus_available()
141 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onStart_registersEventListener()
152 getShadowBluetoothAdapter().setState(BluetoothAdapter.STATE_ON); in onStop_unregistersEventListener()
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/toolbar/
DToolbarTest.java68 mToolbar.setState(Toolbar.State.SUBPAGE); in setState_subpage_shouldCauseGetStateToReturnSubpage()
79 mToolbar.setState(Toolbar.State.SUBPAGE); in setters_and_getters_test()
93 mToolbar.setState(Toolbar.State.HOME); in showLogo_whenSet_andStateIsHome()
109 toolbar.setState(Toolbar.State.HOME); in hideLogo_andTitleLogo_whenSet_andStateIsHome_andLogoIsDisabled()
120 mToolbar.setState(Toolbar.State.SUBPAGE); in showTitleLogo_whenSet_andStateIsNotHome()
133 mToolbar.setState(Toolbar.State.HOME); in hideLogo_andTitleLogo_whenNotSet_andStateIsHome()
143 mToolbar.setState(Toolbar.State.SUBPAGE); in hideLogo_andTitleLogo_whenNotSet_andStateIsNotHome()
154 mToolbar.setState(Toolbar.State.SUBPAGE); in registerOnBackListener_whenBackIsPressed_shouldCallListener()
273 mToolbar.setState(Toolbar.State.SUBPAGE); in registerOnBackListener_whenListenerRegisteredTwice_shouldntCallListenerTwice()
290 mToolbar.setState(Toolbar.State.SUBPAGE); in unregisterOnBackListener_previouslyRegisteredListener_shouldUnregister()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java87 setState(0); in MultiToggleImageButton()
94 setState(0); in MultiToggleImageButton()
132 public void setState(int state) { in setState() method in MultiToggleImageButton
133 setState(state, true); in setState()
142 public void setState(final int state, final boolean callListener) { in setState() method in MultiToggleImageButton
248 setState(state); in nextState()
386 newDrawable.setState(enabledState); in combine()
390 oldDrawable.setState(enabledState); in combine()
DButtonManager.java226 button.setState(Math.max(index, 0), false); in onSettingChanged()
674 button.setState(index >= 0 ? index : 0, false); in initializeFlashButton()
703 button.setState(index >= 0 ? index : 0, false); in initializeTorchButton()
732 button.setState(index >= 0 ? index : 0, false); in initializeHdrPlusFlashButton()
760 button.setState(index >= 0 ? index : 0, false); in initializeCameraButton()
794 button.setState(index >= 0 ? index : 0, false); in initializeHdrPlusButton()
827 button.setState(index >= 0 ? index : 0, false); in initializeHdrButton()
861 button.setState(index >= 0 ? index : 0, false); in initializeCountdownButton()
915 button.setState(index >= 0 ? index : 0, true); in initializeGridLinesButton()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DAction.java165 ActionMonitor.setState(this, ActionMonitor.STATE_CREATED, in markStart()
173 ActionMonitor.setState(this, ActionMonitor.STATE_QUEUED, in markBeginExecute()
195 ActionMonitor.setState(this, in markBackgroundWorkStarting()
205 ActionMonitor.setState(this, in markBackgroundCompletionQueued()
214 ActionMonitor.setState(this, in markBackgroundWorkQueued()
224 ActionMonitor.setState(this, in processBackgroundWorkResponse()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DToolbarControllerImpl.java108 setState(getState());
199 setState(getState()); in setTitle()
209 setState(getState()); in setTitle()
229 setState(getState()); in addTab()
235 setState(getState()); in clearAllTabs()
260 setState(getState()); in setShowTabsInSubpage()
295 setState(mState); in setLogo()
346 setState(mState); in setNavButtonMode()
430 setState(mState); in setMenuItemsInternal()
551 setState(mState); in setShowMenuItemsWhileSearching()
[all …]
DToolbar.java162 setState(State.HOME); in Toolbar()
165 setState(State.SUBPAGE); in Toolbar()
168 setState(State.SEARCH); in Toolbar()
468 public void setState(State state) { in setState() method in Toolbar
469 mController.setState(state); in setState()
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java68 setState(State.DENIED); in reset()
75 public void setState(State state) { in setState() method in P2pPermissionManager
93 setState(State.ALLOWED); in applyPermissionChange()
96 setState(permanent ? State.DISABLED : State.TEMPORARILY_DISABLED); in applyPermissionChange()
250 setState(state); in getState()
253 setState(state); in getState()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DDragListener.java34 private void setState(DragEvent event) { in setState() method in DragListener
57 setState(event); in onDrag()
88 setState(event); in onDrag()
100 setState(event); in onDrag()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBaseSwipeDetector.java113 setState(ScrollState.IDLE); in finishedScrolling()
139 setState(ScrollState.DRAGGING); in onTouchEvent()
168 setState(ScrollState.DRAGGING); in onTouchEvent()
179 setState(ScrollState.SETTLING); in onTouchEvent()
197 private void setState(ScrollState newState) { in setState() method in BaseSwipeDetector
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java304 setState(BluetoothSap.STATE_DISCONNECTED); in stopSapServerSession()
492 setState(msg.arg1);
505 private void setState(int state) { in setState() method in SapService
506 setState(state, BluetoothSap.RESULT_SUCCESS); in setState()
509 private synchronized void setState(int state, int result) { in setState() method in SapService
546 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in disconnect()
687 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in stop()
694 setState(BluetoothSap.STATE_DISCONNECTED, BluetoothSap.RESULT_CANCELED); in cleanup()
895 setState(BluetoothSap.STATE_DISCONNECTED); in onReceive()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDownUpDetector.java34 private void setState(boolean down, MotionEvent e) { in setState() method in DownUpDetector
47 setState(true, ev); in onTouchEvent()
53 setState(false, ev); in onTouchEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginEnablerImpl.java38 setState(component, true); in setEnabled()
43 setState(component, reason == ENABLED); in setDisabled()
46 private void setState(ComponentName component, boolean enabled) { in setState() method in PluginEnablerImpl
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/
DDomainAppPreference.java47 setState(); in DomainAppPreference()
51 setState(); in reuse()
59 private void setState() { in setState() method in DomainAppPreference
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java109 state.setState(ServiceState.STATE_IN_SERVICE); in testPhoneChangeState_OkToCallTrue()
133 state.setState(ServiceState.STATE_OUT_OF_SERVICE); in testPhoneChangeState_NoOkToCall_Timeout()
158 state.setState(ServiceState.STATE_POWER_OFF); in testTimeout_RetryFailure()
179 state.setState(ServiceState.STATE_POWER_OFF); in testTimeout_RetryFailure_ForEmergency()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/
DDomainAppPreference.java47 setState(); in DomainAppPreference()
51 setState(); in reuse()
59 private void setState() { in setState() method in DomainAppPreference
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/
DToolbarActivity.java62 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
68 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
76 .setOnClickListener(i -> toolbar.setState(Toolbar.State.SEARCH)) in onCreate()
245 toolbar.setState(Toolbar.State.HOME); in onCreate()
247 toolbar.setState(Toolbar.State.EDIT); in onCreate()
249 toolbar.setState(Toolbar.State.SUBPAGE); in onCreate()
/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java129 builder.setState(cursor.getString(index++)); in fromCursor()
239 public abstract Builder setState(RecordedProgramState state); in setState() method in RecordedProgram.Builder
241 public Builder setState(@Nullable String state) { in setState() method in RecordedProgram.Builder
245 return setState(RecordedProgramState.valueOf(state)); in setState()
250 return setState(RecordedProgramState.NOT_SET); in setState()
349 .setState(RecordedProgramState.NOT_SET) in builder()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaPlayer.java99 .setState(event.mState.mValue, mCurrentPositionMs, mPlaybackSpeed) in setPlaybackState()
179 .setState(PlaybackStateCompat.STATE_PAUSED, mCurrentPositionMs, mPlaybackSpeed) in prepareMediaItem()
308 .setState(STATE_ERROR, mCurrentPositionMs, mPlaybackSpeed) in startPlayBack()
326 .setState(PlaybackStateCompat.STATE_PAUSED, mCurrentPositionMs, mPlaybackSpeed) in pausePlayback()
342 .setState(PlaybackStateCompat.STATE_STOPPED, mCurrentPositionMs, mPlaybackSpeed) in sendStopPlaybackState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java98 .setState(PlaybackState.STATE_PAUSED, 0, 1.0f); in setUp()
414 mTestState.setState(PlaybackState.STATE_PLAYING, 1000, 1.0f); in testPlaybackStateUpdateSpam()
432 mTestState.setState(PlaybackState.STATE_PLAYING, 1020, 1.0f); in testPlaybackStateUpdateSpam()
437 mTestState.setState(PlaybackState.STATE_PLAYING, 1040, 1.0f); in testPlaybackStateUpdateSpam()
442 mTestState.setState(PlaybackState.STATE_PLAYING, 3000, 1.0f); in testPlaybackStateUpdateSpam()
488 mTestState.setState(PlaybackState.STATE_NONE, 0, 1.0f); in testIgnorePlaystateNone()
629 s.setState(PlaybackState.STATE_PAUSED, 0, 1.0f); in testMetadataSyncFuzz()
/packages/apps/Calendar/src/com/android/calendar/
DMultiStateButton.java103 public boolean setState(int state){ in setState() method in MultiStateButton
149 d.setState(getDrawableState()); in setButtonDrawable()
152 mButtonDrawable.setState(null); in setButtonDrawable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java192 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in startWithBluetoothOff_switchIsOff()
200 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in startWithBluetoothOn_switchIsOn()
212 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_ON); in bluetoothTurnsOff_switchTurnsOff()
236 mShadowBluetoothAdapter.setState(BluetoothAdapter.STATE_OFF); in bluetoothTurnsOn_switchTurnsOn()

1234567