Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 25 of 97) 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.java132 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testRedirectedCallWithRedirectedGateway()
160 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testRedirectedCallWithPostDialDigits()
177 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testRedirectedCallWithRedirectedPhoneAccount()
202 assertTrue(Call.STATE_DISCONNECTED != mCall.getState()); in testPlaceCallUnmodified()
DConferenceTest.java233 assertTrue(conf.getState() != Call.STATE_DIALING); in testConferenceSetters()
437 assertEquals(connection1.getState(), mConferenceObject.getState()); in verifyConferenceObject()
438 assertEquals(connection2.getState(), mConferenceObject.getState()); in verifyConferenceObject()
DBaseRemoteTelecomTest.java195 return connection.getState(); in assertRemoteConnectionState()
213 return conference.getState(); in assertRemoteConferenceState()
/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.java107 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
278 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
314 final int observedState = track.getState(); in testBuilderDefault()
346 final int observedState = track.getState(); in testBuilderFormat()
468 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit()
491 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease()
519 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush()
550 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
586 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
616 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.java118 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioManagerGetActiveRecordConfigurations()
177 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in doCallbackTest()
233 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testParcel()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DUidAtomTests.java186 atom -> atom.getAudioStateChanged().getState().getNumber()); in testAudioState()
207 assertTrue(a0.getState().getNumber() == stateOn); in testBleScan()
208 assertTrue(a1.getState().getNumber() == stateOff); in testBleScan()
228 assertTrue(a0.getState().getNumber() == stateOn); in testBleUnoptimizedScan()
233 assertTrue(a1.getState().getNumber() == stateOff); in testBleUnoptimizedScan()
244 assertTrue(a0.getState().getNumber() == stateOn); in testBleUnoptimizedScan()
249 assertTrue(a1.getState().getNumber() == stateOff); in testBleUnoptimizedScan()
334 atom -> atom.getCameraStateChanged().getState().getNumber()); in testCameraState()
473 atom -> atom.getFlashlightStateChanged().getState().getNumber()); in testFlashlightState()
501 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()
651 if(atom.getState().getNumber() in testConnectivityStateChange()
655 if(atom.getState().getNumber() in testConnectivityStateChange()
/cts/tests/tests/bluetooth/bluetoothTestUtilLib/src/android/bluetooth/cts/
DBTAdapterUtils.java124 if (bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) return true; in disableAdapter()
131 while (bluetoothAdapter.getState() != BluetoothAdapter.STATE_OFF) { in disableAdapter()
144 return bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF; in disableAdapter()
/cts/tests/tests/net/src/android/net/cts/
DNetworkInfoTest.kt75 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo()
78 assertTrue(State.CONNECTING == netInfo.getState() || in assertNetworkInfo()
79 State.CONNECTED == netInfo.getState()) in assertNetworkInfo()
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java54 return (ss.getState() == ServiceState.STATE_IN_SERVICE in isCamped()
55 || ss.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isCamped()
/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()
DCheckedTextViewTest.java210 assertEquals(StateSet.WILD_CARD, firstDrawable.getState());
216 assertTrue(Arrays.equals(mCheckedTextView.getDrawableState(), firstDrawable.getState()));
226 assertEquals(StateSet.WILD_CARD, secondDrawable.getState());
233 assertTrue(Arrays.equals(mCheckedTextView.getDrawableState(), secondDrawable.getState()));
/cts/hostsidetests/incident/src/com/android/server/cts/
DNotificationIncidentTest.java96 .contains(record.getState().getValueDescriptor())); in testNotificationRecords()
172 .contains(cp.getState().getValueDescriptor())); in verifyZenModeProto()
227 .contains(record.getState().getValueDescriptor())); in verifyNotificationRecordProto()
/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/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java62 return (ss.getState() == ServiceState.STATE_IN_SERVICE in isCamped()
63 || ss.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isCamped()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DClipDrawableTest.java292 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
296 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
300 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
302 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
DDrawableWrapperTest.java306 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
310 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
314 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange()
316 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
/cts/tests/tests/print/src/android/print/cts/
DInterfaceForAppsTest.java121 job.getInfo().getState())); in createFirstMockPrinterServiceCallbacks()
217 eventually(() -> assertEquals(cancelAfterState, job.getInfo().getState()));
259 eventually(() -> assertEquals(PrintJobInfo.STATE_CREATED, job.getInfo().getState()));

1234