Home
last modified time | relevance | path

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

1234567

/cts/tests/sensor/src/android/hardware/cts/
DSensorAdditionalInfoTest.java99 assertTrue("Missing additional info at registration: (" + verifier.getState() + ")", in runSensorAdditionalInfoTest()
102 + verifier.getState() + ")", verifier.outOfOrderBeginFrame()); in runSensorAdditionalInfoTest()
109 assertTrue("Missing TYPE_SENSOR_PLACEMENT at: (" + verifier.getState() + ")", in runSensorAdditionalInfoTest()
115 verifier.getState() + ")", verifier.sensorPlacementDuplicate()); in runSensorAdditionalInfoTest()
118 verifier.getState() + ")", verifier.sensorPlacementSizeValid()); in runSensorAdditionalInfoTest()
122 verifier.getState() + ")", verifier.sensorPlacementRotationValid()); in runSensorAdditionalInfoTest()
127 + verifier.getState() + ")", verifier.internalTemperatureDuplicate()); in runSensorAdditionalInfoTest()
129 + verifier.getState() + ")", verifier.samplingDuplicate()); in runSensorAdditionalInfoTest()
131 + verifier.getState() + ")", verifier.untrackedDelayDuplicate()); in runSensorAdditionalInfoTest()
133 + verifier.getState() + ")", verifier.vec3CalibrationDuplicate()); in runSensorAdditionalInfoTest()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DScreenRecordingCallbackTests.java82 int getState() throws InterruptedException { in getState() method in ScreenRecordingCallbackTests.TestableScreenRecordingCallback
178 + " starts", SCREEN_RECORDING_STATE_NOT_VISIBLE, activity.mCallback.getState()); in testFullDisplayMediaProjectionStartsAfterActivity()
182 + " projection", SCREEN_RECORDING_STATE_VISIBLE, activity.mCallback.getState()); in testFullDisplayMediaProjectionStartsAfterActivity()
186 + " projection", SCREEN_RECORDING_STATE_NOT_VISIBLE, activity.mCallback.getState()); in testFullDisplayMediaProjectionStartsAfterActivity()
206 SCREEN_RECORDING_STATE_VISIBLE, activity.mCallback.getState()); in testFullDisplayMediaProjectionStartsBeforeActivity()
210 + " projection", SCREEN_RECORDING_STATE_NOT_VISIBLE, activity.mCallback.getState()); in testFullDisplayMediaProjectionStartsBeforeActivity()
236 SCREEN_RECORDING_STATE_VISIBLE, callback.getState()); in testFullDisplayMediaProjectionAppCallback()
241 SCREEN_RECORDING_STATE_NOT_VISIBLE, callback.getState()); in testFullDisplayMediaProjectionAppCallback()
275 + " projection", SCREEN_RECORDING_STATE_VISIBLE, callback.getState()); in testPartialScreenSharingRecorded()
281 SCREEN_RECORDING_STATE_NOT_VISIBLE, callback.getState()); in testPartialScreenSharingRecorded()
[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 …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/projection/
DMediaProjectionAtomsTests.java132 assertThat(a0.getState()).isEqualTo(MEDIA_PROJECTION_STATE_INITIATED); in testMediaProjectionStateChanged_stoppedCapture()
136 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_stoppedCapture()
140 assertThat(a2.getState()).isEqualTo(MEDIA_PROJECTION_STATE_CAPTURING_IN_PROGRESS); in testMediaProjectionStateChanged_stoppedCapture()
144 assertThat(a3.getState()).isEqualTo(MEDIA_PROJECTION_STATE_STOPPED); in testMediaProjectionStateChanged_stoppedCapture()
204 assertThat(a0.getState()).isEqualTo(MEDIA_PROJECTION_STATE_INITIATED); in testMediaProjectionStateChanged_setupCancelled()
208 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_setupCancelled()
212 assertThat(a2.getState()).isEqualTo(MEDIA_PROJECTION_STATE_CANCELLED); in testMediaProjectionStateChanged_setupCancelled()
233 assertThat(a0.getState()).isEqualTo(MEDIA_PROJECTION_STATE_INITIATED); in testMediaProjectionStateChanged_appSelectorShown()
237 assertThat(a1.getState()).isEqualTo(MEDIA_PROJECTION_STATE_PERMISSION_REQUEST_DISPLAYED); in testMediaProjectionStateChanged_appSelectorShown()
244 assertThat(a2.getState()).isEqualTo(MEDIA_PROJECTION_STATE_APP_SELECTOR_DISPLAYED); in testMediaProjectionStateChanged_appSelectorShown()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java133 int state = mBluetoothAdapter.getState(); in disable()
158 state = mBluetoothAdapter.getState(); in assertDisabledAfterTimeout()
190 int state = mBluetoothAdapter.getState(); in enable()
216 state = mBluetoothAdapter.getState(); in assertEnabledAfterTimeout()
247 int actualState = mBluetoothAdapter.getState(); in assertBluetoothAdapterState()
/cts/tests/tests/car/src/android/car/cts/
DCarPowerManagerTest.java260 return display.getState() == Display.STATE_ON; in testSetDisplayPowerState_passengerDisplays_modeOn()
265 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOn()
270 return display.getState() == Display.STATE_ON; in testSetDisplayPowerState_passengerDisplays_modeOn()
297 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
302 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
307 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeOff()
334 return display.getState() == Display.STATE_ON; in testSetDisplayPowerState_passengerDisplays_modeAlwaysOn()
339 return display.getState() == Display.STATE_OFF; in testSetDisplayPowerState_passengerDisplays_modeAlwaysOn()
344 return display.getState() == Display.STATE_ON; in testSetDisplayPowerState_passengerDisplays_modeAlwaysOn()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsCallingTest.java292 if (call.getDetails().getState() == Call.STATE_RINGING) { in testIncomingCall()
324 if (call.getDetails().getState() == Call.STATE_RINGING) { in testIncomingCallReturnListener()
354 if (call.getDetails().getState() == Call.STATE_RINGING) { in testIncomingCallReject()
482 assertTrue("call is not in Active State", (call.getDetails().getState() in testOutGoingCallHoldFailure()
529 assertTrue("Call is not in Hold State", (call.getDetails().getState() in testOutGoingCallResumeFailure()
570 assertTrue("Call is not in Active State", (call.getDetails().getState() in testOutGoingCallReceivedHoldResume()
577 assertTrue("Call is not in Active State", (call.getDetails().getState() in testOutGoingCallReceivedHoldResume()
617 assertTrue("Call is not in Active State", (moCall.getDetails().getState() in testOutGoingIncomingMultiCall()
630 if (mtCall.getDetails().getState() == Call.STATE_RINGING) { in testOutGoingIncomingMultiCall()
640 assertTrue("Call is not in Active State", (mtCall.getDetails().getState() in testOutGoingIncomingMultiCall()
[all …]
/cts/tests/quicksettings/src/android/quicksettings/cts/
DBooleanTileServiceTest.java53 assertEquals(Tile.STATE_INACTIVE, mTileService.getQsTile().getState()); in testTileStartsInactive()
73 assertEquals(Tile.STATE_ACTIVE, mTileService.getQsTile().getState()); in testValueTracksState()
DToggleableTestTileService.java40 switch(tile.getState()) { in toggleState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DBluetoothStatsTests.java87 atom -> atom.getBleScanStateChanged().getState().getNumber()); in testBleScan()
112 assertThat(a0.getState().getNumber()).isEqualTo( in testBleUnoptimizedScan()
118 assertThat(a1.getState().getNumber()).isEqualTo( in testBleUnoptimizedScan()
147 assertThat(a0.getState().getNumber()).isEqualTo( in testBleOpportunisticScan()
153 assertThat(a1.getState().getNumber()).isEqualTo( in testBleOpportunisticScan()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioRecordSharedAudioTest.java89 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in testPermissionFailure()
114 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in testPermissionSuccess()
153 assertEquals(AudioRecord.STATE_INITIALIZED, record.getState()); in testBadValues()
186 assertEquals(AudioRecord.STATE_INITIALIZED, record1.getState()); in testCapturesMatch()
212 assertEquals(AudioRecord.STATE_INITIALIZED, record2.getState()); in testCapturesMatch()
DAudioTrackTest.java114 localRes = (track.getState() == _expected_stateForMode); in constructorTestMultiSampleRate()
285 if (track.getState() != AudioTrack.STATE_INITIALIZED) { in testConstructorStreamType()
321 final int observedState = track.getState(); in testBuilderDefault()
353 final int observedState = track.getState(); in testBuilderFormat()
468 assertEquals(AudioTrack.STATE_INITIALIZED, track.getState()); in testBuilderWithContext()
501 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterInit()
524 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionIncrease()
552 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterFlush()
583 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterStop()
619 assertTrue(TEST_NAME, track.getState() == AudioTrack.STATE_INITIALIZED); in testPlaybackHeadPositionAfterPause()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBtAdapterUtils.java130 if (bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) return true; in disableAdapter()
136 while (bluetoothAdapter.getState() != BluetoothAdapter.STATE_OFF) { in disableAdapter()
149 return bluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF; in disableAdapter()
/cts/tests/translation/src/android/translation/cts/unittests/
DTranslationCapabilityTest.java61 assertThat(capability.getState()) in testCapability_validCapability()
83 assertThat(capability.getState()) in testParceledCapability()
104 assertThat(parceledCapability.getState()) in testParceledCapability()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DExtensionsUtil.java274 return new FoldingFeature(newBounds, f.getType(), f.getState()); in assertEqualWindowLayoutInfo()
310 || portraitFoldingFeature.getState() in assertEqualWindowLayoutInfo()
311 != landscapeFoldingFeature.getState()) { in assertEqualWindowLayoutInfo()
346 return new FoldingFeature(r, f.getType(), f.getState()); in getMutualDisplayFeatures()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/
DJobSchedulerStatsTests.java90 atom -> atom.getScheduledJobStateChanged().getState().getNumber()); in testScheduledJobState()
114 atom -> atom.getScheduledJobStateChanged().getState().getNumber()); in testScheduledJobState_CancelledJob()
143 atom -> atom.getScheduledJobStateChanged().getState().getNumber()); in testScheduledJobStatePriority()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java135 assertThat(atom.getState()).isEqualTo(AppBreadcrumbReported.State.START); in testIsolatedToHostUidMapping()
280 .getState().getNumber())
316 atom -> atom.getCameraStateChanged().getState().getNumber());
366 atom -> atom.getFlashlightStateChanged().getState().getNumber()); in testFlashlightState()
391 atom -> atom.getForegroundServiceStateChanged().getState().getNumber()); in testForegroundServiceState()
465 assertThat(a0.getState().getNumber()).isEqualTo(stateOn); in testGpsScan()
466 assertThat(a1.getState().getNumber()).isEqualTo(stateOff); in testGpsScan()
512 atom -> atom.getMediaCodecStateChanged().getState().getNumber()); in testMediaCodecActivity()
540 atom -> atom.getOverlayStateChanged().getState().getNumber()); in testOverlayState()
648 atom -> atom.getSyncStateChanged().getState().getNumber()); in testSyncState()
[all …]
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DWaitForInCallService.java121 return call.getState(); in assertCallState()
125 + " actual CallState[" + stateToString(call.getState()) + "]" in assertCallState()
/cts/tests/framework/base/windowmanager/src/android/server/wm/am/
DAmStartOptionsTests.java57 assertTrue(activity.getState().equals(STATE_INITIALIZING) || activity.getState().equals( in testDashD()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DApnCarrierIdTest.java146 || mPreciseDataConnectionState.getState() != TelephonyManager.DATA_CONNECTED) { in setUp()
219 assertThat(mPreciseDataConnectionState.getState()) in validateDataConnectionWithCarrierIdApn()
252 assertThat(mPreciseDataConnectionState.getState()) in validateAndSetupInitialState()
346 int dataState = state.getState(); in onPreciseDataConnectionStateChanged()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java124 atom -> atom.getWifiLockStateChanged().getState().getNumber()); in testWifiLockHighPerf()
175 atom -> atom.getWifiLockStateChanged().getState().getNumber()); in testWifiLockHighPerfDeprecated()
226 atom -> atom.getWifiLockStateChanged().getState().getNumber()); in testWifiLockLowLatency()
259 atom -> atom.getWifiMulticastLockStateChanged().getState().getNumber()); in testWifiMulticastLock()
370 assertThat(a0.getState().getNumber()).isEqualTo(stateOn); in testWifiScanLogsStateChangedAtoms()
371 assertThat(a1.getState().getNumber()).isEqualTo(stateOff); in testWifiScanLogsStateChangedAtoms()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DFakeTimeZoneProviderAppShellHelper.java217 public int getState() throws Exception { in getState() method in FakeTimeZoneProviderAppShellHelper.FakeTimeZoneProviderShellHelper
228 assertEquals(expectedState, getState()); in assertCurrentState()
233 getState(); in exists()
/cts/apps/CtsVerifier/jni/megaaudio/common/
DOboeStream.cpp125 oboe::StreamState OboeStream::getState() const { in getState() function in OboeStream
126 return mAudioStream != nullptr ? mAudioStream->getState() : oboe::StreamState::Unknown; in getState()
DOboeStream.h35 oboe::StreamState getState() const;
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothCddTest.java71 if (mAdapter != null && mAdapter.getState() != BluetoothAdapter.STATE_OFF) { in tearDown()
72 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) { in tearDown()

1234567