Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 25 of 462) sorted by relevance

12345678910>>...19

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken102 } while (state.getState() != ServiceState.STATE_IN_SERVICE);
144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState());
151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState());
163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState());
180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState());
182 mGSMPhone.getForegroundCall().getState());
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaCallTrackerTest.java101 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
102 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial()
103 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial()
104 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial()
114 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial()
115 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial()
132 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp()
133 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp()
144 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup()
145 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup()
[all …]
DGsmCdmaCallTest.java53 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach()
61 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach()
68 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach()
75 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty()
114 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected()
117 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected()
119 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected()
121 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected()
123 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
125 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingMessage.java60 getState().setMessage(message); in setMessage()
65 return getState().getMessage(); in getMessage()
104 getState().setGroup(group); in setMessagingGroup()
108 getState().setIsHistoric(isHistoric); in setIsHistoric()
112 return getState().getGroup(); in getGroup()
116 getState().setIsHidingAnimated(isHiding); in setIsHidingAnimated()
121 return getState().isHidingAnimated(); in isHidingAnimated()
135 getState().recycle(); in recycle()
144 MessagingMessageState getState(); in getState() method
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTest.java78 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
85 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach()
92 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
103 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
105 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected()
107 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
108 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected()
110 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected()
112 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected()
137 assertEquals(Call.State.ALERTING, mImsCallUT.getState()); in testUpdateRingBackTone()
[all …]
DImsPhoneCallTrackerTest.java360 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall()
366 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall()
390 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept()
391 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept()
476 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject()
483 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
484 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp()
491 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp()
492 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp()
500 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold()
[all …]
DImsPhoneTest.java140 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in setUp()
141 doReturn(Call.State.IDLE).when(mBackgroundCall).getState(); in setUp()
142 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in setUp()
184 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
194 doReturn(Call.State.IDLE).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallDeflection()
195 doReturn(Call.State.ACTIVE).when(mBackgroundCall).getState(); in testHandleInCallMmiCommandCallDeflection()
203 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting()
221 doReturn(Call.State.IDLE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallWaiting()
222 doReturn(Call.State.INCOMING).when(mRingingCall).getState(); in testHandleInCallMmiCommandCallWaiting()
230 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState(); in testHandleInCallMmiCommandCallHold()
[all …]
/frameworks/base/core/java/android/print/
DPrintJob.java84 final int state = getInfo().getState(); in cancel()
115 return getInfo().getState() == PrintJobInfo.STATE_QUEUED; in isQueued()
128 return getInfo().getState() == PrintJobInfo.STATE_STARTED; in isStarted()
141 return getInfo().getState() == PrintJobInfo.STATE_BLOCKED; in isBlocked()
152 return getInfo().getState() == PrintJobInfo.STATE_COMPLETED; in isCompleted()
166 return getInfo().getState() == PrintJobInfo.STATE_FAILED; in isFailed()
177 return getInfo().getState() == PrintJobInfo.STATE_CANCELED; in isCancelled()
181 final int state = mCachedInfo.getState(); in isInImmutableState()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DFlattenerTest.cpp130 EXPECT_CALL(testLayer->outputLayer, getState) in SetUp()
177 EXPECT_EQ(nullptr, layer->getOutputLayer()->getState().overrideInfo.buffer); in expectAllLayersFlattened()
186 const auto buffer = layers[0]->getOutputLayer()->getState().overrideInfo.buffer; in expectAllLayersFlattened()
189 EXPECT_EQ(buffer, layer->getOutputLayer()->getState().overrideInfo.buffer); in expectAllLayersFlattened()
242 const auto& overrideBuffer1 = layerState1->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
245 const auto& overrideBuffer2 = layerState2->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
248 const auto& overrideBuffer3 = layerState3->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
275 layerState1->getOutputLayer()->getState().overrideInfo.displaySpace; in TEST_F()
296 layerState1->getOutputLayer()->getState().overrideInfo.damageRegion; in TEST_F()
322 layerState1->getOutputLayer()->getState().overrideInfo.visibleRegion; in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DScreenRecordTileTest.java109 assertEquals(Tile.STATE_INACTIVE, mTile.getState().state); in testNotActive()
110 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testNotActive()
127 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsStarting()
128 assertTrue(mTile.getState().secondaryLabel.toString().endsWith("...")); in testIsStarting()
151 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsRecording()
152 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testIsRecording()
172 assertTrue(mTile.getState().contentDescription.toString().contains(mTile.getState().label)); in testContentDescriptionHasTileName()
183 assertTrue(mTile.getState().forceExpandIcon); in testForceExpandIcon_notRecordingNotStarting()
194 assertFalse(mTile.getState().forceExpandIcon); in testForceExpandIcon_recordingNotStarting()
205 assertFalse(mTile.getState().forceExpandIcon); in testForceExpandIcon_startingNotRecording()
DCastTileTest.java150 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiDisabled()
164 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiNotConnected()
187 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting()
193 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_wifiEnabledNotCasting()
204 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_hotspotDisabled()
212 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_hotspotEnabledNotConnected()
225 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_hotspotEnabledAndConnectedAndCasting()
232 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_hotspotEnabledAndConnectedAndNotCasting()
279 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_projectionOnly()
280 assertTrue(mCastTile.getState().secondaryLabel.toString().startsWith(device.name)); in testUpdateState_projectionOnly()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DVoiceCallSessionStatsTest.java219 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moRejected()
220 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moRejected()
226 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moRejected()
227 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moRejected()
265 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moFailed()
266 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moFailed()
310 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moAccepted()
311 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moAccepted()
317 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moAccepted()
318 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moAccepted()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp82 const Rect& viewport = getOutput().getState().layerStackSpace.content; in calculateInitialCrop()
106 const auto& outputState = getOutput().getState(); in calculateOutputSourceCrop()
184 const auto& outputState = getOutput().getState(); in calculateOutputDisplayFrame()
242 const auto& outputState = getOutput().getState(); in calculateOutputRelativeBufferTransform()
289 const auto& outputState = getOutput().getState(); in updateCompositionState()
330 const auto& state = getState(); in writeStateToHWC()
377 const auto& outputDependentState = getState(); in writeOutputDependentGeometryStateToHWC()
415 getState().overrideInfo.buffer == nullptr) in writeOutputDependentGeometryStateToHWC()
431 const auto& overrideInfo = getState().overrideInfo; in writeOutputIndependentGeometryStateToHWC()
442 : (getState().overrideInfo.buffer ? 1.0f : outputIndependentState.alpha); in writeOutputIndependentGeometryStateToHWC()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DVibratorPerfTest.java47 final BenchmarkState state = mBenchmarkRule.getState(); in testEffectClick()
55 final BenchmarkState state = mBenchmarkRule.getState(); in testOneShot()
64 final BenchmarkState state = mBenchmarkRule.getState(); in testWaveform()
73 final BenchmarkState state = mBenchmarkRule.getState(); in testCompose()
85 final BenchmarkState state = mBenchmarkRule.getState(); in testAreEffectsSupported()
94 final BenchmarkState state = mBenchmarkRule.getState(); in testArePrimitivesSupported()
/frameworks/av/media/libaaudio/src/core/
DAudioStream.cpp61 LOG_ALWAYS_FATAL_IF(!(getState() == AAUDIO_STREAM_STATE_CLOSED in ~AudioStream()
62 || getState() == AAUDIO_STREAM_STATE_UNINITIALIZED in ~AudioStream()
63 || getState() == AAUDIO_STREAM_STATE_DISCONNECTED), in ~AudioStream()
65 AudioGlobal_convertStreamStateToText(getState())); in ~AudioStream()
152 switch (getState()) { in systemStart()
167 AudioGlobal_convertStreamStateToText(getState())); in systemStart()
176 AudioGlobal_convertStreamStateToText(getState())); in systemStart()
200 switch (getState()) { in systemPause()
226 __func__, AudioGlobal_convertStreamStateToText(getState())); in systemPause()
250 aaudio_result_t result = AAudio_isFlushAllowed(getState()); in safeFlush()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DDeviceSelectActionTest.java175 private int getState() { in getState() method in DeviceSelectActionTest.TestActionTimer
219 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
237 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
244 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
264 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
266 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
268 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
270 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
272 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
291 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyAfterTimeoutForReportPowerStatus_Cec14b()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java110 if (mRingingCall.getState().isAlive()) { in takeIncomingCall()
117 if (mForegroundCall.getState().isAlive() in takeIncomingCall()
118 && mBackgroundCall.getState().isAlive()) { in takeIncomingCall()
131 boolean makeCallWait = mForegroundCall.getState().isAlive(); in takeIncomingCall()
134 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) { in takeIncomingCall()
157 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall()
158 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall()
176 if (mRingingCall.getState().isRinging()) { in rejectCall()
212 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal()
215 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java108 assertEquals(DOZE, mMachine.getState()); in testInitialize_goesToDoze()
118 assertEquals(DOZE_AOD, mMachine.getState()); in testInitialize_goesToAod()
128 assertEquals(DOZE_AOD_DOCKED, mMachine.getState()); in testInitialize_afterDocked_goesToDockedAod()
140 assertEquals(DOZE, mMachine.getState()); in testInitialize_afterDockPaused_goesToDoze()
151 assertEquals(DOZE, mMachine.getState()); in testInitialize_dozeSuppressed_alwaysOnDisabled_goesToDoze()
162 assertEquals(DOZE, mMachine.getState()); in testInitialize_dozeSuppressed_alwaysOnEnabled_goesToDoze()
173 assertEquals(DOZE, mMachine.getState()); in testInitialize_dozeSuppressed_afterDocked_goesToDoze()
186 assertEquals(DOZE, mMachine.getState()); in testInitialize_dozeSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
199 assertEquals(DOZE, mMachine.getState()); in testInitialize_dozeSuppressed_alwaysOnEnabled_afterDockPaused_goesToDoze()
212 assertEquals(DOZE, mMachine.getState()); in testPulseDone_goesToDoze()
[all …]
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp113 return mCompositionDisplay->getState().displaySpace.bounds.getWidth(); in getWidth()
117 return mCompositionDisplay->getState().displaySpace.bounds.getHeight(); in getHeight()
216 return mCompositionDisplay->getState().dataspace; in getCompositionDataSpace()
239 orientedDisplaySpaceRect = getCompositionDisplay()->getState().displaySpace.bounds; in setProjection()
245 layerStackSpaceRect = getCompositionDisplay()->getState().framebufferSpace.bounds; in setProjection()
310 return mCompositionDisplay->getState().displaySpace.bounds; in getBounds()
314 return mCompositionDisplay->getState().undefinedRegion; in getUndefinedRegion()
318 return mCompositionDisplay->getState().needsFiltering; in needsFiltering()
322 return mCompositionDisplay->getState().layerStackId; in getLayerStack()
330 return mCompositionDisplay->getState().transform; in getTransform()
[all …]
/frameworks/base/core/java/android/printservice/
DPrintJob.java126 return getInfo().getState() == PrintJobInfo.STATE_QUEUED; in isQueued()
142 return getInfo().getState() == PrintJobInfo.STATE_STARTED; in isStarted()
158 return getInfo().getState() == PrintJobInfo.STATE_BLOCKED; in isBlocked()
172 return getInfo().getState() == PrintJobInfo.STATE_COMPLETED; in isCompleted()
186 return getInfo().getState() == PrintJobInfo.STATE_FAILED; in isFailed()
200 return getInfo().getState() == PrintJobInfo.STATE_CANCELED; in isCancelled()
219 final int state = getInfo().getState(); in start()
243 final int state = info.getState(); in block()
460 final int state = mCachedInfo.getState(); in isInImmutableState()
/frameworks/base/core/java/android/os/
DSystemService.java82 public static State getState(String service) { in getState() method in SystemService
96 return State.STOPPED.equals(getState(service)); in isStopped()
103 return State.RUNNING.equals(getState(service)); in isRunning()
114 final State currentState = getState(service); in waitForState()
139 if (State.STOPPED.equals(getState(service))) { in waitForAnyStopped()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayTest.cpp102 const OutputCompositionState& getState() const override { return mState; } in getState() function
269 EXPECT_EQ(DEFAULT_LAYER_STACK, mDisplay->getState().layerStackId); in TEST_F()
270 EXPECT_TRUE(mDisplay->getState().layerStackInternal); in TEST_F()
288 EXPECT_EQ(DEFAULT_LAYER_STACK, mDisplay->getState().layerStackId); in TEST_F()
289 EXPECT_FALSE(mDisplay->getState().layerStackInternal); in TEST_F()
306 EXPECT_EQ(DEFAULT_LAYER_STACK, mDisplay->getState().layerStackId); in TEST_F()
307 EXPECT_FALSE(mDisplay->getState().layerStackInternal); in TEST_F()
324 EXPECT_EQ(DEFAULT_LAYER_STACK, mDisplay->getState().layerStackId); in TEST_F()
325 EXPECT_FALSE(mDisplay->getState().layerStackInternal); in TEST_F()
394 ASSERT_EQ(ui::ColorMode::NATIVE, mDisplay->getState().colorMode); in TEST_F()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java103 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
279 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
315 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit()
338 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease()
366 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush()
397 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
433 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
548 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRate()
571 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateZero()
597 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateTwiceOutputSR()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsControllerTest.java122 return new InsetsSourceConsumer(type, controller.getState(), in setup()
145 return new InsetsSourceConsumer(type, controller.getState(), Transaction::new, in setup()
150 mController.getState().getSource(ITYPE_STATUS_BAR).setFrame(new Rect(0, 0, 100, 10)); in setup()
151 mController.getState().getSource(ITYPE_NAVIGATION_BAR).setFrame( in setup()
153 mController.getState().getSource(ITYPE_IME).setFrame(new Rect(0, 50, 100, 100)); in setup()
154 mController.getState().setDisplayFrame(new Rect(0, 0, 100, 100)); in setup()
155 mController.getState().setDisplayCutout(new DisplayCutout( in setup()
214 mController.getState().setDisplayFrame(new Rect(0, 0, 200, 200)); in testFrameDoesntMatchDisplay()
430 assertFalse(mController.getState().getSource(ITYPE_STATUS_BAR).isVisible()); in testRestoreStartsAnimation()
433 InsetsState state = new InsetsState(mController.getState()); in testRestoreStartsAnimation()
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStateMachineTest.java229 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
234 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
331 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
336 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
430 assertEquals(smQuitNowAfterStartTest.mS1, lr.getState()); in testStateMachineQuitNowAfterStart()
571 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
575 assertEquals(smEnterExitTranstionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
579 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
583 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
589 assertEquals(smEnterExitTranstionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
[all …]

12345678910>>...19