Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDefaultFocusHighlightTest.java91 d.setState(FOCUSED_STATE); in testStateListDrawable()
98 d.setState(FOCUSED_STATE); in testStateListDrawable()
105 d.setState(FOCUSED_STATE); in testStateListDrawable()
112 d.setState(FOCUSED_STATE); in testStateListDrawable()
120 d.setState(FOCUSED_STATE); in testStateListDrawable()
128 d.setState(FOCUSED_STATE); in testStateListDrawable()
135 d.setState(FOCUSED_STATE); in testStateListDrawable()
143 d.setState(FOCUSED_STATE); in testRippleDrawable()
151 d.setState(FOCUSED_STATE); in testPictureDrawable()
155 d.setState(FOCUSED_STATE); in testPictureDrawable()
[all …]
DColorStateListDrawableTest.java78 mDrawable.setState(STATE_RED); in testDraw()
82 mDrawable.setState(STATE_BLUE); in testDraw()
161 mDrawable.setState(STATE_BLUE); in testSetState()
163 mDrawable.setState(STATE_RED); in testSetState()
DStateListDrawableTest.java127 mMockDrawable.setState(mMockDrawable.getState()); in testOnStateChange()
132 mMockDrawable.setState( in testOnStateChange()
137 mMockDrawable.setState(null); in testOnStateChange()
278 mMockDrawable.setState( in testInflate()
281 mMockDrawable.setState(StateSet.WILD_CARD); in testInflate()
301 mMockDrawable.setState( in testInflate()
304 mMockDrawable.setState(StateSet.WILD_CARD); in testInflate()
DAnimatedStateListDrawableTest.java151 asld.setState(STATE_EMPTY); in testOnStateChange()
154 asld.setState(STATE_FOCUSED); in testOnStateChange()
157 asld.setState(STATE_FOCUSED); in testOnStateChange()
DLayerDrawableTest.java652 assertFalse(layerDrawable.setState(StateSet.WILD_CARD)); in testSetState()
663 assertTrue(layerDrawable.setState(null)); in testSetState()
674 assertTrue(layerDrawable.setState(new int[]{ in testSetState()
1614 public boolean setState(final int[] stateSet) { in setState() method in LayerDrawableTest.MockDrawable
1616 return super.setState(stateSet); in setState()
DVectorDrawableTest.java260 vectorDrawable.setState(stateSet); in verifyVectorDrawables()
DDrawableTest.java589 assertFalse(mockDrawable.setState(states)); in testAccessState()
592 mockDrawable.setState(null); in testAccessState()
/cts/tests/app/app/src/android/app/stubs/
DToggleableTestTileService.java61 tile.setState(Tile.STATE_INACTIVE); in toggleState()
64 tile.setState(Tile.STATE_ACTIVE); in toggleState()
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccProfileInfoTest.java51 .setState(EuiccProfileInfo.PROFILE_STATE_ENABLED) in testWriteToParcel()
80 .setState(EuiccProfileInfo.PROFILE_STATE_ENABLED) in testWriteToParcelNullCarrierId()
109 .setState(EuiccProfileInfo.PROFILE_STATE_ENABLED) in testBuilderAndGetters()
146 .setState(EuiccProfileInfo.PROFILE_STATE_ENABLED) in testBuilder_BasedOnAnotherProfile()
171 .setState(EuiccProfileInfo.PROFILE_STATE_ENABLED) in testEqualsHashCode()
204 .setState(EuiccProfileInfo.PROFILE_STATE_DISABLED).build(); in testEqualsHashCode()
/cts/tests/tests/systemui/PipTestApp/src/android/systemui/cts/tv/pip/
DPipTestActivity.kt65 .setState(STATE_STOPPED) in <lambda>()
80 mediaSession.setPlaybackState(playbackBuilder.setState(STATE_PLAYING).build()) in <lambda>()
83 mediaSession.setPlaybackState(playbackBuilder.setState(STATE_PAUSED).build()) in <lambda>()
202 private fun PlaybackState.Builder.setState(state: Int) = apply { in <lambda>() method in android.systemui.cts.tv.pip.PipTestActivity
203 setState(state, 0, 0f) in <lambda>()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DServiceStateTest.java135 oldSS.setState(ServiceState.STATE_OUT_OF_SERVICE); in testGetVoiceRegState_noChangeObserved()
139 copyOfOldSS.setState(ServiceState.STATE_OUT_OF_SERVICE); in testGetVoiceRegState_noChangeObserved()
155 oldSS.setState(ServiceState.STATE_OUT_OF_SERVICE); in testGetVoiceRegState_changeObserved()
159 newSS.setState(ServiceState.STATE_POWER_OFF); in testGetVoiceRegState_changeObserved()
296 oldSS.setState(ServiceState.STATE_OUT_OF_SERVICE); in testGetDataRegState_noChangeObserved()
300 copyOfOldSS.setState(ServiceState.STATE_OUT_OF_SERVICE); in testGetDataRegState_noChangeObserved()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothChatService.java118 private synchronized void setState(int state) { in setState() method in BluetoothChatService
144 setState(STATE_LISTEN); in start()
211 setState(STATE_CONNECTING); in connect()
250 setState(STATE_CONNECTED); in connected()
278 setState(STATE_NONE); in stop()
/cts/tests/tests/media/src/android/media/cts/
DPlaybackStateTest.java93 .setState(PlaybackState.STATE_PLAYING, TEST_POSITION, TEST_PLAYBACK_SPEED) in testBuilder_setterMethods()
114 PlaybackState state = new PlaybackState.Builder().setState( in testBuilder_setStateWithUpdateTime()
186 new PlaybackState.Builder().setState(PlaybackState.STATE_CONNECTING, TEST_POSITION, in testWriteToParcel()
317 .setState(activeStates[i], 0, 1.0f) in testIsActive()
323 .setState(nonActiveStates[i], 0, 1.0f) in testIsActive()
DMediaSessionManagerTest.java124 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testOnMediaKeyEventSessionChangedListener()
160 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testOnMediaKeyEventDispatchedListener()
276 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testSetOnMediaKeyListener()
343 .setState(PlaybackState.STATE_PLAYING, 0, 1.0f).build(); in testRemoteUserInfo()
DAudioTrackTest.java1505 track.setState(AudioTrack.STATE_NO_STATIC_DATA); in testAudioTrackProperties()
1507 track.setState(AudioTrack.STATE_UNINITIALIZED); in testAudioTrackProperties()
3517 public void setState(int state) { in setState() method in AudioTrackTest.MockAudioTrack
3518 super.setState(state); in setState()
DMediaControllerTest.java102 .setState(testState, testPosition, testSpeed) in testGetPlaybackState()
/cts/tests/tests/print/src/android/print/cts/
DPrintJobStateTransitionsTest.java152 private static boolean setState(PrintJob job, int state) {
326 boolean success = setState(printJob, mState1);
338 success = setState(printJob, mState2);
349 success = setState(printJob, mState3);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java216 item.setState(ITEM_STATE_PASS); in handleMessage()
223 item.setState(ITEM_STATE_FAIL); in handleMessage()
427 void setState(int state) {
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java79 super.getQsTile().setState(Tile.STATE_ACTIVE); in onStartListening()
/cts/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/
DMediaMetricsAtomHostSideTests.java107 .setState(PlaybackStateEvent.STATE_JOINING_FOREGROUND) in testPlaybackStateEvent()
342 .setState(PlaybackStateEvent.STATE_JOINING_FOREGROUND) in testAppBlocklist()
404 .setState(PlaybackStateEvent.STATE_JOINING_FOREGROUND) in testAppAllowlist()
/cts/tests/location/location_none/src/android/location/cts/none/
DGnssMeasurementTest.java142 measurement.setState(14); in setTestValues()
/cts/tests/tests/widget/src/android/widget/cts/
DToggleButtonTest.java138 drawable.setState(null); in testDrawableStateChanged()
DCompoundButtonTest.java204 drawable.setState(null); in testDrawableStateChanged()
/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerServiceHostTest.java186 atoms.add(protoBuilder.setState(tuneStates[i]).build()); in createAtomsFromStateList()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DServiceStateTest.java92 serviceState.setState(ServiceState.STATE_IN_SERVICE); in testSetState()

12