/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionTest.java | 44 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks() 48 assertEquals(Connection.STATE_INITIALIZING, connection.getState()); in testStateCallbacks() 52 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks() 56 assertEquals(Connection.STATE_RINGING, connection.getState()); in testStateCallbacks() 60 assertEquals(Connection.STATE_DIALING, connection.getState()); in testStateCallbacks() 64 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testStateCallbacks() 68 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testStateCallbacks() 73 assertEquals(Connection.STATE_DISCONNECTED, connection.getState()); in testStateCallbacks() 78 Connection.STATE_DISCONNECTED, connection.getState()); in testStateCallbacks() 90 assertEquals(Connection.STATE_DISCONNECTED, connection.getState()); in testFailedState() [all …]
|
D | BaseRemoteTelecomTest.java | 195 return connection.getState(); in assertRemoteConnectionState() 213 return conference.getState(); in assertRemoteConferenceState()
|
D | ConferenceTest.java | 265 assertEquals(connection1.getState(), mConferenceObject.getState()); in verifyConferenceObject() 266 assertEquals(connection2.getState(), mConferenceObject.getState()); in verifyConferenceObject()
|
D | ExtendedInCallServiceTest.java | 179 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testHoldAndUnholdCall() 183 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testHoldAndUnholdCall()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothTest.java | 137 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/tests/tests/net/src/android/net/cts/ |
D | NetworkInfoTest.java | 59 if (State.CONNECTED == netInfo.getState()) { in assertNetworkInfo() 62 assertTrue(State.CONNECTING == netInfo.getState() in assertNetworkInfo() 63 || State.CONNECTED == netInfo.getState()); in assertNetworkInfo()
|
D | ConnectivityManagerTest.java | 134 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetworkInfo() 146 assertTrue(ni.getState() == State.CONNECTED); in testGetActiveNetwork() 154 State state = ni.getState(); in testGetNetworkInfo() 442 State networkState = networkInfo.getState(); in onReceive() 444 if (networkType == mNetworkType && networkInfo.getState() == mNetState) { in onReceive()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioTrackTest.java | 88 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate() 250 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType() 285 final int observedState = track.getState(); in testBuilderDefault() 318 final int observedState = track.getState(); in testBuilderFormat() 394 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit() 416 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease() 443 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush() 473 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop() 508 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause() 537 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlushAndPlay() [all …]
|
D | AudioRecordTest.java | 122 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioRecordProperties() 137 assertEquals(AudioRecord.STATE_INITIALIZED, mAudioRecord.getState()); in testAudioRecordOP() 230 assertEquals(AudioRecord.STATE_UNINITIALIZED, mAudioRecord.getState()); in testAudioRecordOP() 344 final int observedState = rec.getState(); in testAudioRecordBuilderDefault() 376 final int observedState = rec.getState(); in testAudioRecordBuilderPartialFormat() 415 final int observedState = rec.getState(); in testAudioRecordBuilderParams() 454 final int observedState2 = record2.getState(); in testAudioRecordBufferSize() 510 assertEquals(TEST_NAME, AudioRecord.STATE_INITIALIZED, record.getState()); in testSynchronizedRecord() 684 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in doTest()
|
D | AudioPreProcessingTest.java | 244 AudioRecord.STATE_INITIALIZED, ar.getState()); in getAudioRecord()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BasicAdapterTest.java | 227 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/telephony/src/android/telephony/cts/ |
D | ServiceStateTest.java | 33 assertEquals(ServiceState.STATE_POWER_OFF, serviceState.getState()); in testServiceState() 37 assertEquals(ServiceState.STATE_OUT_OF_SERVICE, serviceState.getState()); in testServiceState() 41 assertEquals(ServiceState.STATE_IN_SERVICE, serviceState.getState()); in testServiceState()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ToggleButtonTest.java | 104 assertNull(drawable.getState()); in testDrawableStateChanged() 107 assertNotNull(drawable.getState()); in testDrawableStateChanged() 108 assertEquals(toggleButton.getDrawableState(), drawable.getState()); in testDrawableStateChanged()
|
D | CheckedTextViewTest.java | 199 assertEquals(StateSet.WILD_CARD, firstDrawable.getState()); 205 assertTrue(Arrays.equals(checkedTextView.getDrawableState(), firstDrawable.getState())); 214 assertEquals(StateSet.WILD_CARD, secondDrawable.getState()); 221 assertTrue(Arrays.equals(checkedTextView.getDrawableState(), secondDrawable.getState()));
|
D | CompoundButtonTest.java | 178 assertNull(drawable.getState()); in testDrawableStateChanged() 181 assertNotNull(drawable.getState()); in testDrawableStateChanged() 182 assertSame(compoundButton.getDrawableState(), drawable.getState()); in testDrawableStateChanged() 198 assertEquals(StateSet.WILD_CARD, firstDrawable.getState()); in testSetButtonDrawableByDrawable() 208 assertEquals(StateSet.WILD_CARD, secondDrawable.getState()); in testSetButtonDrawableByDrawable()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoCaptureAudioOutputPermissionTest.java | 64 record.getState() != AudioRecord.STATE_INITIALIZED); in testCreateAudioRecord()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 198 public int getState() { in getState() method in StorageManagerTest.ObbObserver 265 assertEquals(expectedState, observer.getState()); in mountObb() 286 assertEquals(expectedState, observer.getState()); in waitForObbActionCompletion() 306 assertEquals(expectedState, observer.getState()); in unmountObb()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | InsetDrawableTest.java | 238 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 242 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 246 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 248 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
|
D | DrawableWrapperTest.java | 288 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 292 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 296 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 298 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
|
D | ClipDrawableTest.java | 253 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 257 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 261 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 263 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
|
D | ScaleDrawableTest.java | 282 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 286 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 290 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD); in testOnStateChange() 292 assertTrue("child state changed", Arrays.equals(state, d.getState())); in testOnStateChange()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 289 NetworkInfo.State networkState = networkInfo.getState(); in onReceive() 301 return mExpectedState == mCm.getNetworkInfo(mNetworkType).getState(); in hasExpectedState()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | NetworkUsageStatsTest.java | 230 assertEquals(bucket.getState(), NetworkStats.Bucket.STATE_ALL); in testDeviceSummary() 262 assertEquals(bucket.getState(), NetworkStats.Bucket.STATE_ALL); in testUserSummary() 352 assertEquals(bucket.getState(), NetworkStats.Bucket.STATE_ALL); in testAppDetails() 407 assertEquals(bucket.getState(), NetworkStats.Bucket.STATE_ALL); in testUidDetails()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 107 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) 187 if (mNetworkInfo.getState() == NetworkInfo.State.CONNECTED) return; in connectWifi() 191 && mNetworkInfo.getState() != NetworkInfo.State.CONNECTED) in connectWifi() 193 assertTrue(mNetworkInfo.getState() == NetworkInfo.State.CONNECTED); in connectWifi()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioRecordHelper.java | 44 if (testAudioRecord.getState() == AudioRecord.STATE_INITIALIZED) { in AudioRecordHelper()
|