Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
DSensorPrivacyServiceMockingTest.java105 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, MICROPHONE).isEnabled()); in testMigration1()
106 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, CAMERA).isEnabled()); in testMigration1()
108 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, MICROPHONE)); in testMigration1()
109 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, CAMERA)); in testMigration1()
111 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, MICROPHONE)); in testMigration1()
112 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration1()
113 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 10, MICROPHONE)); in testMigration1()
114 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 10, CAMERA)); in testMigration1()
121 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, MICROPHONE).isEnabled()); in testMigration2()
122 assertTrue(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, CAMERA).isEnabled()); in testMigration2()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaCallTrackerTest.java105 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState(); in testMOCallDial()
106 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial()
107 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial()
108 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial()
120 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial()
121 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial()
138 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp()
139 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp()
150 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup()
151 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup()
[all …]
DGsmCdmaCallTest.java55 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach()
63 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach()
70 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach()
77 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty()
116 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected()
119 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected()
121 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected()
123 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected()
125 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
127 assertEquals(Call.State.DISCONNECTED, mCallUnderTest.getState()); in testConnectionDisconnected()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingMessage.java64 getState().setMessage(message); in setMessage()
69 return getState().getMessage(); in getMessage()
112 getState().setGroup(group); in setMessagingGroup()
116 getState().setIsHistoric(isHistoric); in setIsHistoric()
120 return getState().getGroup(); in getGroup()
124 getState().setIsHidingAnimated(isHiding); in setIsHidingAnimated()
129 return getState().isHidingAnimated(); in isHidingAnimated()
143 getState().recycle(); in recycle()
152 MessagingMessageState getState(); in getState() method
/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.cpp135 EXPECT_CALL(testLayer->outputLayer, getState) in SetUp()
183 EXPECT_EQ(nullptr, layer->getOutputLayer()->getState().overrideInfo.buffer); in expectAllLayersFlattened()
192 const auto buffer = layers[0]->getOutputLayer()->getState().overrideInfo.buffer; in expectAllLayersFlattened()
195 EXPECT_EQ(buffer, layer->getOutputLayer()->getState().overrideInfo.buffer); in expectAllLayersFlattened()
289 const auto& overrideBuffer1 = layerState1->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
292 const auto& overrideBuffer2 = layerState2->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
295 const auto& overrideBuffer3 = layerState3->getOutputLayer()->getState().overrideInfo.buffer; in TEST_F()
322 layerState1->getOutputLayer()->getState().overrideInfo.displaySpace; in TEST_F()
343 layerState1->getOutputLayer()->getState().overrideInfo.damageRegion; in TEST_F()
369 layerState1->getOutputLayer()->getState().overrideInfo.visibleRegion; in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java145 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiDisabled()
159 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in testStateUnavailable_wifiNotConnected()
182 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting()
189 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in testStateInactive_wifiEnabledNotCasting()
202 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in stateUnavailable_noDefaultNetworks_newPipeline()
211 assertEquals(Tile.STATE_UNAVAILABLE, mCastTile.getState().state); in stateUnavailable_mobileConnected_newPipeline()
220 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in stateInactive_wifiConnected_newPipeline()
229 assertEquals(Tile.STATE_INACTIVE, mCastTile.getState().state); in stateInactive_ethernetConnected_newPipeline()
245 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in stateActive_wifiConnectedAndCasting_newPipeline()
261 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in stateActive_ethernetConnectedAndCasting_newPipeline()
[all …]
DInternetTileTest.java112 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkNotExists_updateTile()
124 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
126 assertThat(String.valueOf(mTile.getState().secondaryLabel)) in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
136 assertThat(mTile.getState().state).isEqualTo(Tile.STATE_INACTIVE); in setIsAirplaneMode_APM_enabled_wifi_disabled()
137 assertThat(mTile.getState().secondaryLabel) in setIsAirplaneMode_APM_enabled_wifi_disabled()
146 assertThat(mTile.getState().state).isEqualTo(Tile.STATE_ACTIVE); in setIsAirplaneMode_APM_enabled_wifi_enabled()
147 assertThat(mTile.getState().secondaryLabel) in setIsAirplaneMode_APM_enabled_wifi_enabled()
167 assertThat(mTile.getState().icon).isEqualTo( in setIsAirplaneMode_APM_enabled_after_wifi_disconnected()
DScreenRecordTileTest.java155 assertEquals(Tile.STATE_INACTIVE, mTile.getState().state); in testNotActive()
156 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testNotActive()
183 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsStarting()
184 assertTrue(mTile.getState().secondaryLabel.toString().endsWith("...")); in testIsStarting()
207 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsRecording()
208 assertTrue(mTile.getState().secondaryLabel.toString().equals( in testIsRecording()
228 assertTrue(mTile.getState().contentDescription.toString().contains(mTile.getState().label)); in testContentDescriptionHasTileName()
239 assertTrue(mTile.getState().forceExpandIcon); in testForceExpandIcon_notRecordingNotStarting()
250 assertFalse(mTile.getState().forceExpandIcon); in testForceExpandIcon_recordingNotStarting()
261 assertFalse(mTile.getState().forceExpandIcon); in testForceExpandIcon_startingNotRecording()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTest.java83 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
90 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach()
97 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach()
108 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
110 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected()
112 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected()
113 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected()
115 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected()
117 assertEquals(Call.State.DISCONNECTED, mImsCallUT.getState()); in testConnectionDisconnected()
142 assertEquals(Call.State.ALERTING, mImsCallUT.getState()); in testUpdateRingBackTone()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp86 const Rect& viewport = getOutput().getState().layerStackSpace.getContent(); in calculateInitialCrop()
186 const auto& outputState = getOutput().getState(); in calculateOutputDisplayFrame()
244 const auto& outputState = getOutput().getState(); in calculateOutputRelativeBufferTransform()
291 const auto& outputState = getOutput().getState(); in updateCompositionState()
349 getOutput().getState().displayBrightnessNits == getOutput().getState().sdrWhitePointNits || in updateCompositionState()
350 getOutput().getState().displayBrightnessNits == 0.f || !layerFEState->dimmingEnabled) { in updateCompositionState()
352 state.whitePointNits = getOutput().getState().displayBrightnessNits; in updateCompositionState()
354 float layerBrightnessNits = getOutput().getState().sdrWhitePointNits; in updateCompositionState()
361 std::clamp(layerBrightnessNits / getOutput().getState().displayBrightnessNits, 0.f, in updateCompositionState()
376 const auto& state = getState(); in writeStateToHWC()
[all …]
DDisplay.cpp74 return getState().isSecure; in isSecure()
115 if (colorProfile.mode == getState().colorMode && in setColorProfile()
116 colorProfile.dataspace == getState().dataspace && in setColorProfile()
117 colorProfile.renderIntent == getState().renderIntent) { in setColorProfile()
209 displayId && getState().displayBrightness) { in applyDisplayBrightness()
212 hwc.setDisplayBrightness(*displayId, *getState().displayBrightness, in applyDisplayBrightness()
213 getState().displayBrightnessNits, in applyDisplayBrightness()
258 getState().earliestPresentTime, in chooseCompositionStrategy()
259 getState().expectedPresentTime, in chooseCompositionStrategy()
260 getState().frameInterval, outChanges); in chooseCompositionStrategy()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DVoiceCallSessionStatsTest.java277 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moRejected()
278 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moRejected()
284 doReturn(Call.State.ALERTING).when(mImsCall0).getState(); in singleImsCall_moRejected()
285 doReturn(Call.State.ALERTING).when(mImsConnection0).getState(); in singleImsCall_moRejected()
328 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moFailed()
329 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moFailed()
372 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moStartFailed()
373 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moStartFailed()
420 doReturn(Call.State.DIALING).when(mImsCall0).getState(); in singleImsCall_moAccepted()
421 doReturn(Call.State.DIALING).when(mImsConnection0).getState(); in singleImsCall_moAccepted()
[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/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java131 assertEquals(DOZE, mMachine.getState()); in testInitialize_goesToDoze()
141 assertEquals(DOZE_AOD, mMachine.getState()); in testInitialize_goesToAod()
151 assertEquals(DOZE_AOD_DOCKED, mMachine.getState()); in testInitialize_afterDocked_goesToDockedAod()
163 assertEquals(DOZE, mMachine.getState()); in testInitialize_afterDockPaused_goesToDoze()
174 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_goesToDoze()
185 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_goesToDoze()
196 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_afterDocked_goesToDoze()
209 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnDisabled_afterDockPaused_goesToDoze()
222 assertEquals(DOZE, mMachine.getState()); in testInitialize_alwaysOnSuppressed_alwaysOnEnabled_afterDockPaused_goesToDoze()
235 assertEquals(DOZE, mMachine.getState()); in testPulseDone_goesToDoze()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp200 layer.getState()->getOutputLayer()->getLayerFE().prepareClientComposition( in render()
312 const auto& layerFE = mLayers[0].getState()->getOutputLayer()->getLayerFE(); in requiresHolePunch()
327 [](const Layer& layer) { return layer.getState()->hasBlurBehind(); }); in hasBlurBehind()
347 const auto* outputLayer = layer.getState()->getOutputLayer(); in addHolePunchLayerIfFeasible()
348 if (contains(outputLayer->getState().displayFrame, holePunchBounds) && in addHolePunchLayerIfFeasible()
350 mHolePunchLayer = holePunchLayer.getFirstLayer().getState(); in addHolePunchLayerIfFeasible()
357 mBlurLayer = blurLayer.getFirstLayer().getState(); in addBackgroundBlurLayer()
370 auto dataspace = layer.getState()->getDataspace(); in hasKnownColorShift()
375 const auto hdrType = getHdrRenderType(dataspace, layer.getState()->getPixelFormat(), in hasKnownColorShift()
376 layer.getState()->getHdrSdrRatio()); in hasKnownColorShift()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DDeviceSelectActionFromTvTest.java191 private int getState() { in getState() method in DeviceSelectActionFromTvTest.TestActionTimer
235 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
253 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
260 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
280 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
282 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
284 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
286 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
288 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
307 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyAfterTimeoutForReportPowerStatus_Cec14b()
[all …]
DDeviceSelectActionFromPlaybackTest.java236 private int getState() { in getState() method in DeviceSelectActionFromPlaybackTest.TestActionTimer
282 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInPowerOnStatus_Cec14b()
302 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
307 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatus_Cec14b()
328 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
330 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
332 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
334 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_DEVICE_POWER_ON); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
336 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyStatusWithSomeTimeouts_Cec14b()
356 assertThat(actionTimer.getState()).isEqualTo(STATE_WAIT_FOR_REPORT_POWER_STATUS); in testDeviceSelect_DeviceInStandbyAfterTimeoutForReportPowerStatus_Cec14b()
[all …]
/frameworks/av/media/libaaudio/src/core/
DAudioStream.cpp63 LOG_ALWAYS_FATAL_IF(!(getState() == AAUDIO_STREAM_STATE_CLOSED in ~AudioStream()
64 || getState() == AAUDIO_STREAM_STATE_UNINITIALIZED), in ~AudioStream()
66 AudioGlobal_convertStreamStateToText(getState()), isDisconnected()); in ~AudioStream()
170 switch (getState()) { in systemStart()
185 AudioGlobal_convertStreamStateToText(getState())); in systemStart()
199 AudioGlobal_convertStreamStateToText(getState())); in systemStart()
223 switch (getState()) { in systemPause()
253 __func__, AudioGlobal_convertStreamStateToText(getState())); in systemPause()
277 aaudio_result_t result = AAudio_isFlushAllowed(getState()); in safeFlush()
306 switch (getState()) { in safeStop_l()
[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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java101 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
277 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
313 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit()
336 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease()
364 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush()
395 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
431 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
546 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRate()
569 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateZero()
595 assumeTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testSetPlaybackRateTwiceOutputSR()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_SetDisplayBrightnessTest.cpp52 EXPECT_EQ(std::nullopt, displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
70 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
88 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
96 EXPECT_EQ(std::nullopt, displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
114 displayDevice->getCompositionDisplay()->getState().displayBrightness); in TEST_F()
/frameworks/base/core/java/android/net/
DVpnProfileState.java71 @State public int getState() { in getState() method in VpnProfileState
174 resultJoiner.add("State: " + convertStateToString(getState())); in toString()
185 return (getState() == that.getState() in equals()
193 return Objects.hash(getState(), getSessionId(), isAlwaysOn(), isLockdownEnabled()); in hashCode()
/frameworks/libs/modules-utils/javatests/com/android/internal/util/
DStateMachineTest.java231 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
236 assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
333 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
338 assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
439 assertEquals(smQuitNowAfterStartTest.mS1, lr.getState()); in testStateMachineQuitNowAfterStart()
580 assertEquals(smEnterExitTransitionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
584 assertEquals(smEnterExitTransitionToTest.mS1, lr.getState()); in testStateMachineEnterExitTransitionToTest()
588 assertEquals(smEnterExitTransitionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
592 assertEquals(smEnterExitTransitionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
598 assertEquals(smEnterExitTransitionToTest.mS2, lr.getState()); in testStateMachineEnterExitTransitionToTest()
[all …]

12345678910>>...23