Home
last modified time | relevance | path

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

1234

/cts/tests/sensor/src/android/hardware/cts/
DSensorAdditionalInfoTest.java102 assertTrue("Missing additional info at registration: (" + verifier.getState() + ")", in runSensorAdditionalInfoTest()
106 verifier.getState() + ")", verifier.beginFrameDuplicate()); in runSensorAdditionalInfoTest()
110 verifier.getState() + ")", verifier.internalTemperatureDuplicate()); in runSensorAdditionalInfoTest()
115 verifier.getState() + ")", verifier.samplingDuplicate()); in runSensorAdditionalInfoTest()
121 assertTrue("Missing TYPE_SENSOR_PLACEMENT at: (" + verifier.getState() + ")", in runSensorAdditionalInfoTest()
127 verifier.getState() + ")", verifier.sensorPlacementDuplicate()); in runSensorAdditionalInfoTest()
130 verifier.getState() + ")", verifier.sensorPlacementSizeValid()); in runSensorAdditionalInfoTest()
134 verifier.getState() + ")", verifier.sensorPlacementRotationValid()); in runSensorAdditionalInfoTest()
140 verifier.getState() + ")", verifier.untrackedDelayDuplicate()); in runSensorAdditionalInfoTest()
145 verifier.getState() + ")", verifier.vec3CalibrationDuplicate()); in runSensorAdditionalInfoTest()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionTest.java48 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks()
52 assertEquals(Connection.STATE_INITIALIZING, connection.getState()); in testStateCallbacks()
56 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks()
60 assertEquals(Connection.STATE_RINGING, connection.getState()); in testStateCallbacks()
64 assertEquals(Connection.STATE_DIALING, connection.getState()); in testStateCallbacks()
68 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testStateCallbacks()
72 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testStateCallbacks()
76 assertEquals(Connection.STATE_PULLING_CALL, connection.getState()); in testStateCallbacks()
81 assertEquals(Connection.STATE_DISCONNECTED, connection.getState()); in testStateCallbacks()
86 Connection.STATE_DISCONNECTED, connection.getState()); in testStateCallbacks()
[all …]
DPhoneAccountSuggestionServiceTest.java105 assertEquals(Call.STATE_SELECT_PHONE_ACCOUNT, phoneAcctSelectCall.getState()); in testSuggestionFlow()
149 assertEquals(Call.STATE_SELECT_PHONE_ACCOUNT, phoneAcctSelectCall.getState()); in testSuggestionTimeout()
184 assertEquals(Call.STATE_SELECT_PHONE_ACCOUNT, phoneAcctSelectCall.getState()); in testEmptySuggestions()
221 assertEquals(Call.STATE_SELECT_PHONE_ACCOUNT, phoneAcctSelectCall.getState()); in testPartialSuggestions()
DCallRedirectionServiceTest.java119 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testRedirectedCallWithRedirectedGateway()
136 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testRedirectedCallWithRedirectedPhoneAccount()
161 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testPlaceCallUnmodified()
DBaseRemoteTelecomTest.java195 return connection.getState(); in assertRemoteConnectionState()
213 return conference.getState(); in assertRemoteConferenceState()
DMockConnectionService.java134 if (connection1.getState() == Connection.STATE_HOLDING){ in onConference()
137 if(connection2.getState() == Connection.STATE_HOLDING){ in onConference()
DConferenceTest.java230 assertTrue(conf.getState() != Call.STATE_DIALING); in testConferenceSetters()
419 assertEquals(connection1.getState(), mConferenceObject.getState()); in verifyConferenceObject()
420 assertEquals(connection2.getState(), mConferenceObject.getState()); in verifyConferenceObject()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothTest.java137 if (mAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
142 assertEquals(BluetoothAdapter.STATE_ON, mAdapter.getState()); in disable()
148 int state = mAdapter.getState(); in disable()
171 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) { in enable()
176 assertEquals(BluetoothAdapter.STATE_OFF, mAdapter.getState()); in enable()
182 int state = mAdapter.getState(); in enable()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java151 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
156 assertEquals(BluetoothAdapter.STATE_ON, mBluetoothAdapter.getState()); in disable()
170 int state = mBluetoothAdapter.getState(); in assertDisabledAfterTimeout()
212 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in enable()
217 assertEquals(BluetoothAdapter.STATE_OFF, mBluetoothAdapter.getState()); in enable()
231 int state = mBluetoothAdapter.getState(); in assertEnabledAfterTimeout()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackTest.java106 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
277 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
313 final int observedState = track.getState(); in testBuilderDefault()
345 final int observedState = track.getState(); in testBuilderFormat()
467 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit()
490 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease()
518 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush()
549 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
585 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
615 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlushAndPlay()
[all …]
DPlaybackStateTest.java59 assertEquals(0, state.getState()); in testBuilder()
91 assertEquals(PlaybackState.STATE_PLAYING, state.getState()); in testBuilder_setterMethods()
108 assertEquals(PlaybackState.STATE_REWINDING, state.getState()); in testBuilder_setStateWithUpdateTime()
198 assertEquals(PlaybackState.STATE_CONNECTING, stateOut.getState()); in testWriteToParcel()
DAudioRecordingConfigurationTest.java117 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioManagerGetActiveRecordConfigurations()
176 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in doCallbackTest()
229 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testParcel()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBasicAdapterTest.java227 if (adapter.getState() == BluetoothAdapter.STATE_OFF) { in disable()
232 assertEquals(BluetoothAdapter.STATE_ON, adapter.getState()); in disable()
238 int state = adapter.getState(); in disable()
260 if (adapter.getState() == BluetoothAdapter.STATE_ON) { in enable()
265 assertEquals(BluetoothAdapter.STATE_OFF, adapter.getState()); in enable()
271 int state = adapter.getState(); in enable()
/cts/tests/tests/net/src/android/net/cts/
DNetworkInfoTest.java59 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo()
62 assertTrue(State.CONNECTING == netInfo.getState() in assertNetworkInfo()
63 || State.CONNECTED == netInfo.getState()); in assertNetworkInfo()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DUidAtomTests.java188 atom -> atom.getAudioStateChanged().getState().getNumber()); in testAudioState()
209 assertTrue(a0.getState().getNumber() == stateOn); in testBleScan()
210 assertTrue(a1.getState().getNumber() == stateOff); in testBleScan()
230 assertTrue(a0.getState().getNumber() == stateOn); in testBleUnoptimizedScan()
235 assertTrue(a1.getState().getNumber() == stateOff); in testBleUnoptimizedScan()
246 assertTrue(a0.getState().getNumber() == stateOn); in testBleUnoptimizedScan()
251 assertTrue(a1.getState().getNumber() == stateOff); in testBleUnoptimizedScan()
336 atom -> atom.getCameraStateChanged().getState().getNumber()); in testCameraState()
511 atom -> atom.getFlashlightStateChanged().getState().getNumber()); in testFlashlightState()
539 atom -> atom.getForegroundServiceStateChanged().getState().getNumber()); in testForegroundServiceState()
[all …]
DHostAtomTests.java102 atom -> atom.getScreenStateChanged().getState().getNumber()); in testScreenStateChangedAtom()
155 atom -> atom.getChargingStateChanged().getState().getNumber()); in testChargingStateChangedAtom()
208 atom -> atom.getPluggedStateChanged().getState().getNumber()); in testPluggedStateChangedAtom()
295 atom -> atom.getDeviceIdleModeStateChanged().getState().getNumber()); in testDeviceIdleModeStateChangedAtom()
331 atom -> atom.getBatterySaverModeStateChanged().getState().getNumber()); in testBatterySaverModeStateChangedAtom()
586 assertTrue(atom.getState().getNumber() == AppBreadcrumbReported.State.START_VALUE); in testBreadcrumbAdb()
622 assertTrue(atom.getState().getNumber() == AppBreadcrumbReported.State.START_VALUE); in testDumpsysStats()
650 if(atom.getState().getNumber() in testConnectivityStateChange()
654 if(atom.getState().getNumber() in testConnectivityStateChange()
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java49 return (ss.getState() == ServiceState.STATE_IN_SERVICE in isCamped()
50 || ss.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isCamped()
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationIncidentTest.java91 .contains(record.getState().getValueDescriptor())); in testNotificationRecords()
162 .contains(cp.getState().getValueDescriptor())); in verifyZenModeProto()
217 .contains(record.getState().getValueDescriptor())); in verifyNotificationRecordProto()
/cts/tests/tests/widget/src/android/widget/cts/
DCompoundButtonTest.java203 assertNull(drawable.getState()); in testDrawableStateChanged()
206 assertNotNull(drawable.getState()); in testDrawableStateChanged()
207 assertSame(compoundButton.getDrawableState(), drawable.getState()); in testDrawableStateChanged()
221 assertEquals(StateSet.WILD_CARD, firstDrawable.getState()); in testSetButtonDrawableByDrawable()
231 assertEquals(StateSet.WILD_CARD, secondDrawable.getState()); in testSetButtonDrawableByDrawable()
DToggleButtonTest.java139 assertNull(drawable.getState()); in testDrawableStateChanged()
142 assertNotNull(drawable.getState()); in testDrawableStateChanged()
143 assertEquals(toggleButton.getDrawableState(), drawable.getState()); in testDrawableStateChanged()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java61 return (ss.getState() == ServiceState.STATE_IN_SERVICE in isCamped()
62 || ss.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isCamped()
DServiceStateTest.java70 assertEquals(STATE_POWER_OFF, serviceState.getState()); in testSetStateOff()
77 assertEquals(STATE_OUT_OF_SERVICE, serviceState.getState()); in testSetStateOutOfService()
84 assertEquals(ServiceState.STATE_IN_SERVICE, serviceState.getState()); in testSetState()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerCallTestService.java55 if (call.getState() == Call.STATE_RINGING) { in onCallAdded()
/cts/tests/tests/location/src/android/location/cts/
DGnssPseudorangeVerificationTest.java186 if ((measurement.getState() & GnssMeasurement.STATE_CODE_LOCK) == 0) { in filterMeasurements()
190 if ((measurement.getState() in filterMeasurements()
195 } else if ((measurement.getState() & (GnssMeasurement.STATE_TOW_DECODED in filterMeasurements()
/cts/tests/tests/permission2/src/android/permission2/cts/
DNoCaptureAudioOutputPermissionTest.java64 record.getState() != AudioRecord.STATE_INITIALIZED); in testCreateAudioRecord()

1234