/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorAdditionalInfoTest.java | 102 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/ |
D | ConnectionTest.java | 48 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 …]
|
D | PhoneAccountSuggestionServiceTest.java | 105 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()
|
D | CallRedirectionServiceTest.java | 119 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()
|
D | BaseRemoteTelecomTest.java | 195 return connection.getState(); in assertRemoteConnectionState() 213 return conference.getState(); in assertRemoteConferenceState()
|
D | MockConnectionService.java | 134 if (connection1.getState() == Connection.STATE_HOLDING){ in onConference() 137 if(connection2.getState() == Connection.STATE_HOLDING){ in onConference()
|
D | ConferenceTest.java | 230 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/ |
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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 151 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/ |
D | AudioTrackTest.java | 106 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 …]
|
D | PlaybackStateTest.java | 59 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()
|
D | AudioRecordingConfigurationTest.java | 117 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/ |
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/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()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/ |
D | UidAtomTests.java | 188 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 …]
|
D | HostAtomTests.java | 102 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/ |
D | CellInfoTest.java | 49 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/ |
D | NotificationIncidentTest.java | 91 .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/ |
D | CompoundButtonTest.java | 203 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()
|
D | ToggleButtonTest.java | 139 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/ |
D | SignalStrengthTest.java | 61 return (ss.getState() == ServiceState.STATE_IN_SERVICE in isCamped() 62 || ss.getState() == ServiceState.STATE_EMERGENCY_ONLY); in isCamped()
|
D | ServiceStateTest.java | 70 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/ |
D | DialerCallTestService.java | 55 if (call.getState() == Call.STATE_RINGING) { in onCallAdded()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssPseudorangeVerificationTest.java | 186 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/ |
D | NoCaptureAudioOutputPermissionTest.java | 64 record.getState() != AudioRecord.STATE_INITIALIZED); in testCreateAudioRecord()
|