Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 248) sorted by relevance

12345678910

/cts/tests/tests/text/src/android/text/method/cts/
DBackspaceTest.java46 private void backspace(final EditorState state, int modifiers) throws Throwable { in backspace() argument
48 mTextView.setText(state.mText, BufferType.EDITABLE); in backspace()
50 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace()
59 state.mText = mTextView.getText(); in backspace()
60 state.mSelectionStart = mTextView.getSelectionStart(); in backspace()
61 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace()
66 EditorState state = new EditorState(); in testCRLF() local
69 state.setByString("U+000A |"); in testCRLF()
70 backspace(state, 0); in testCRLF()
71 state.assertEquals("|"); in testCRLF()
[all …]
DForwardDeleteTest.java46 private void forwardDelete(final EditorState state, int modifiers) throws Throwable { in forwardDelete() argument
48 mTextView.setText(state.mText, BufferType.EDITABLE); in forwardDelete()
50 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete()
59 state.mText = mTextView.getText(); in forwardDelete()
60 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
61 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()
66 EditorState state = new EditorState(); in testCRLF() local
69 state.setByString("| U+000A"); in testCRLF()
70 forwardDelete(state, 0); in testCRLF()
71 state.assertEquals("|"); in testCRLF()
[all …]
DMetaKeyKeyListenerTest.java135 long state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_SHIFT_ON); in testAdjustMetaAfterKeypress2() local
136 assertEquals(MetaKeyKeyListener.META_SHIFT_ON, state); in testAdjustMetaAfterKeypress2()
138 state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_ALT_ON); in testAdjustMetaAfterKeypress2()
139 assertEquals(MetaKeyKeyListener.META_ALT_ON, state); in testAdjustMetaAfterKeypress2()
141 state = MetaKeyKeyListener.adjustMetaAfterKeypress(MetaKeyKeyListener.META_SYM_ON); in testAdjustMetaAfterKeypress2()
142 assertEquals(MetaKeyKeyListener.META_SYM_ON, state); in testAdjustMetaAfterKeypress2()
144 state = MetaKeyKeyListener.adjustMetaAfterKeypress(0); in testAdjustMetaAfterKeypress2()
145 assertEquals(0, state); in testAdjustMetaAfterKeypress2()
290 long state = MetaKeyKeyListener.resetLockedMeta(MetaKeyKeyListener.META_CAP_LOCKED); in testResetLockedMeta2() local
291 assertEquals(0, state); in testResetLockedMeta2()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/lifecycle/
DActivityTests.java57 waitAndAssertActivityStates(state(activity, ON_RESUME)); in testReleaseActivityInstance_visible()
77 waitAndAssertActivityStates(state(firstActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible()
84 waitAndAssertActivityStates(state(secondActivity, ON_DESTROY)); in testReleaseActivityInstance_invisible()
98 waitAndAssertActivityStates(state(rootActivity, ON_STOP), in testFinishTask_FromRoot()
99 state(topActivity, ON_TOP_POSITION_GAINED)); in testFinishTask_FromRoot()
104 waitAndAssertActivityStates(state(rootActivity, ON_DESTROY), in testFinishTask_FromRoot()
105 state(topActivity, ON_DESTROY)); in testFinishTask_FromRoot()
126 waitAndAssertActivityStates(state(rootActivity, ON_PAUSE), in testFinishTask_FromRoot_TranslucentOnTop()
127 state(topActivity, ON_TOP_POSITION_GAINED)); in testFinishTask_FromRoot_TranslucentOnTop()
132 waitAndAssertActivityStates(state(rootActivity, ON_DESTROY), in testFinishTask_FromRoot_TranslucentOnTop()
[all …]
DActivityLifecycleTopResumedStateTests.java108 waitAndAssertActivityStates(state(activity, ON_STOP)); in testTopPositionSwitchToActivityOnTop()
124 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
133 waitAndAssertActivityStates(state(secondActivityClass, ON_TOP_POSITION_GAINED), in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
134 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopSlowDifferentProcess()
150 waitAndAssertActivityStates(state(firstActivity, ON_TOP_POSITION_GAINED)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
160 waitAndAssertActivityStates(state(secondActivityClass, ON_TOP_POSITION_GAINED), in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
161 state(firstActivity, ON_STOP)); in testTopPositionSwitchToActivityOnTopTimeoutDifferentProcess()
184 waitAndAssertActivityStates(state(activity, ON_PAUSE)); in testTopPositionSwitchToTranslucentActivityOnTop()
201 waitAndAssertActivityStates(state(baseActivity, ON_STOP)); in testTopPositionSwitchOnDoubleLaunch()
241 waitAndAssertActivityStates(state(baseActivity, ON_STOP)); in testTopPositionSwitchOnDoubleLaunchAndTopFinish()
[all …]
DActivityLifecycleKeyguardTests.java73 waitAndAssertActivityStates(state(activity, ON_STOP)); in testKeyguardShowHide()
85 waitAndAssertActivityStates(state(activity, ON_RESUME)); in testKeyguardShowHide()
106 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen()
107 waitAndAssertActivityStates(state(secondaryActivity, ON_STOP)); in testKeyguardShowHideOverSplitScreen()
114 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverSplitScreen()
115 state(secondaryActivity, ON_RESUME)); in testKeyguardShowHideOverSplitScreen()
141 waitAndAssertActivityStates(state(firstActivity, ON_RESUME)); in testKeyguardShowHideOverPip()
147 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testKeyguardShowHideOverPip()
148 waitAndAssertActivityStates(state(PipActivity.class, ON_STOP)); in testKeyguardShowHideOverPip()
157 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testKeyguardShowHideOverPip()
[all …]
DActivityLifecycleTests.java94 waitAndAssertActivityStates(state(firstActivity, ON_STOP)); in testLaunchOnTop()
140 waitAndAssertActivityStates(state(translucentActivity, ON_RESUME)); in testLaunchDoubleTranslucentOnTop()
141 waitAndAssertActivityStates(state(secondTranslucentActivity, ON_DESTROY)); in testLaunchDoubleTranslucentOnTop()
159 waitAndAssertActivityStates(state(translucentActivity, ON_STOP)); in testTranslucentMovedIntoStack()
170 waitAndAssertActivityStates(state(translucentActivity, ON_RESUME), in testTranslucentMovedIntoStack()
171 state(firstActivity, ON_PAUSE)); in testTranslucentMovedIntoStack()
189 waitAndAssertActivityStates(state(firstActivity, ON_RESUME), in testDestroyTopTranslucent()
190 state(translucentActivity, ON_DESTROY)); in testDestroyTopTranslucent()
209 waitAndAssertActivityStates(state(translucentActivity, ON_STOP), in testDestroyOnTopOfTranslucent()
210 state(firstActivity, ON_STOP)); in testDestroyOnTopOfTranslucent()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecTunneledPlayer.java280 CodecState state; in addTrack() local
282 state = new CodecState((MediaTimeProvider)this, mVideoExtractor, in addTrack()
284 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local
286 state = new CodecState((MediaTimeProvider)this, mAudioExtractor, in addTrack()
288 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local
292 mAudioTrackState = state; in addTrack()
315 for (CodecState state : mVideoCodecStates.values()) { in start()
316 state.start(); in start()
319 for (CodecState state : mAudioCodecStates.values()) { in start()
320 state.start(); in start()
[all …]
DPlaybackStateTest.java65 PlaybackState state = new PlaybackState.Builder().build(); in testBuilder() local
67 assertEquals(new ArrayList<PlaybackState.CustomAction>(), state.getCustomActions()); in testBuilder()
68 assertEquals(0, state.getState()); in testBuilder()
69 assertEquals(0L, state.getPosition()); in testBuilder()
70 assertEquals(0L, state.getBufferedPosition()); in testBuilder()
71 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder()
72 assertEquals(0L, state.getActions()); in testBuilder()
73 assertNull(state.getErrorMessage()); in testBuilder()
74 assertEquals(0L, state.getLastPositionUpdateTime()); in testBuilder()
75 assertEquals(MediaSession.QueueItem.UNKNOWN_ID, state.getActiveQueueItemId()); in testBuilder()
[all …]
DMediaCodecClearKeyPlayer.java423 CodecState state; in addTrack() local
425 state = new CodecState((MediaTimeProvider)this, mVideoExtractor, in addTrack()
428 mVideoCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local
430 state = new CodecState((MediaTimeProvider)this, mAudioExtractor, in addTrack()
433 mAudioCodecStates.put(Integer.valueOf(trackIndex), state); in addTrack() local
437 mAudioTrackState = state; in addTrack()
489 for (CodecState state : mVideoCodecStates.values()) { in start()
490 state.start(); in start()
493 for (CodecState state : mAudioCodecStates.values()) { in start()
494 state.start(); in start()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gnss/
DGnssStatsTests.java88 AtomsProto.GnssStats state = atom.getGnssStats(); in testGnssStats() local
90 if ((state.getSvStatusReports() > 0 || state.getL5SvStatusReports() > 0) in testGnssStats()
91 && state.getLocationReports() == 0) { in testGnssStats()
96 assertThat(state.getLocationReports()).isGreaterThan((long) 0); in testGnssStats()
97 assertThat(state.getLocationFailureReports()).isAtLeast((long) 0); in testGnssStats()
98 assertThat(state.getTimeToFirstFixReports()).isGreaterThan((long) 0); in testGnssStats()
99 assertThat(state.getTimeToFirstFixMillis()).isGreaterThan((long) 0); in testGnssStats()
100 assertThat(state.getPositionAccuracyReports()).isGreaterThan((long) 0); in testGnssStats()
101 assertThat(state.getPositionAccuracyMeters()).isGreaterThan((long) 0); in testGnssStats()
102 assertThat(state.getTopFourAverageCn0Reports()).isGreaterThan((long) 0); in testGnssStats()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java158 waitForWithAmState(state -> state.getDreamTask() == null, "DreamActivity gone")); in waitForDreamGone()
161 public static boolean isKeyguardShowingAndNotOccluded(WindowManagerState state) { in isKeyguardShowingAndNotOccluded() argument
162 return state.getKeyguardControllerState().keyguardShowing in isKeyguardShowingAndNotOccluded()
163 && !state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY); in isKeyguardShowingAndNotOccluded()
172 waitForWithAmState(state -> state.getKeyguardControllerState().keyguardShowing in waitForKeyguardShowingAndOccluded()
173 && state.getKeyguardControllerState().isKeyguardOccluded(DEFAULT_DISPLAY), in waitForKeyguardShowingAndOccluded()
178 waitForWithAmState(state -> state.getKeyguardControllerState().aodShowing, "AOD showing"); in waitForAodShowing()
182 waitForWithAmState(state -> !state.getKeyguardControllerState().keyguardShowing, in waitForKeyguardGone()
189 state -> !state.getKeyguardControllerState().keyguardShowing, in waitAndAssertKeyguardGone()
195 waitForWithAmState(state -> state.getRotation() == rotation, "Rotation: " + rotation); in waitForRotation()
[all …]
/cts/apps/CameraITS/tests/scene1_1/
Dtest_ae_precapture_trigger.py86 state = cap['metadata']['android.control.aeState']
87 msg = 'AE state after manual request %d: %d' % (i, state)
90 assert state == AE_INACTIVE, e_msg
97 state = cap['metadata']['android.control.aeState']
98 msg = 'AE state after auto request: %d' % state
102 assert state in [AE_SEARCHING, AE_CONVERGED], e_msg
108 state = cap['metadata']['android.control.aeState']
109 msg = 'AE state after auto request with precapture trigger: %d' % state
113 assert state in [AE_SEARCHING, AE_CONVERGED, AE_PRECAPTURE], e_msg
120 state = caps[-1]['metadata']['android.control.aeState']
[all …]
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutTest.java972 private void moveCursorToRightCursorableOffset(EditorState state) { in moveCursorToRightCursorableOffset() argument
973 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToRightCursorableOffset()
974 StaticLayout layout = StaticLayout.Builder.obtain(state.mText, 0, state.mText.length(), in moveCursorToRightCursorableOffset()
976 final int newOffset = layout.getOffsetToRightOf(state.mSelectionStart); in moveCursorToRightCursorableOffset()
977 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToRightCursorableOffset()
980 private void moveCursorToLeftCursorableOffset(EditorState state) { in moveCursorToLeftCursorableOffset() argument
981 assertEquals("The editor has selection", state.mSelectionStart, state.mSelectionEnd); in moveCursorToLeftCursorableOffset()
982 StaticLayout layout = StaticLayout.Builder.obtain(state.mText, 0, state.mText.length(), in moveCursorToLeftCursorableOffset()
984 final int newOffset = layout.getOffsetToLeftOf(state.mSelectionStart); in moveCursorToLeftCursorableOffset()
985 state.mSelectionStart = state.mSelectionEnd = newOffset; in moveCursorToLeftCursorableOffset()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewZoomTest.java270 ScaleChangedState state = mWebViewClient.waitForNextScaleChange(); in testScaleChangeCallbackMatchesGetScale() local
273 state.mNewScale, mOnUiThread.getScale()); in testScaleChangeCallbackMatchesGetScale()
329 ScaleChangedState state = waitForNextScaleChange(); in expectZoomBy() local
330 assertEquals(currentScale, state.mOldScale); in expectZoomBy()
335 while (Math.abs(state.mNewScale - state.mOldScale) < PAGE_SCALE_EPSILON) { in expectZoomBy()
336 state = waitForNextScaleChange(); in expectZoomBy()
343 state.mNewScale, greaterThan(currentScale)); in expectZoomBy()
347 state.mNewScale, lessThan(currentScale)); in expectZoomBy()
352 if (Math.abs(nextScale - state.mNewScale) > PAGE_SCALE_EPSILON) { in expectZoomBy()
354 assertFalse(state.mCanZoomIn); in expectZoomBy()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memory/
DProcessMemoryStatsTests.java80 AtomsProto.ProcessMemoryState state = atom.getProcessMemoryState(); in testProcessMemoryState() local
81 if (state.getUid() != uid) { in testProcessMemoryState()
85 assertThat(state.getProcessName()).isEqualTo(DeviceUtils.STATSD_ATOM_TEST_PKG); in testProcessMemoryState()
86 assertThat(state.getOomAdjScore()).isAtLeast(0); in testProcessMemoryState()
87 assertThat(state.getPageFault()).isAtLeast(0L); in testProcessMemoryState()
88 assertThat(state.getPageMajorFault()).isAtLeast(0L); in testProcessMemoryState()
89 assertThat(state.getRssInBytes()).isGreaterThan(0L); in testProcessMemoryState()
90 assertThat(state.getCacheInBytes()).isAtLeast(0L); in testProcessMemoryState()
91 assertThat(state.getSwapInBytes()).isAtLeast(0L); in testProcessMemoryState()
119 AtomsProto.ProcessMemoryHighWaterMark state = atom.getProcessMemoryHighWaterMark(); in testProcessMemoryHighWaterMark() local
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java170 int state = mBluetoothAdapter.getState(); in assertDisabledAfterTimeout() local
171 switch (state) { in assertDisabledAfterTimeout()
176 if (state != BluetoothAdapter.STATE_ON || turnOff) { in assertDisabledAfterTimeout()
177 assertEquals(BluetoothAdapter.STATE_TURNING_OFF, state); in assertDisabledAfterTimeout()
189 int state = -1; in assertComponentStateAfterTimeout() local
191 state = mPackageManager.getComponentEnabledSetting(component); in assertComponentStateAfterTimeout()
192 if (expectedState == state) { in assertComponentStateAfterTimeout()
199 + state + " after timeout."); in assertComponentStateAfterTimeout()
231 int state = mBluetoothAdapter.getState(); in assertEnabledAfterTimeout() local
232 switch (state) { in assertEnabledAfterTimeout()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsProvider.java119 int state = sStateMap.get(widgetId); in gotoNextTest() local
122 state = state == STATE_COMPLETE ? state : state + 1; in gotoNextTest()
123 foundNextTest = shouldPerformTest(state); in gotoNextTest()
124 } while (state < STATE_COMPLETE && !foundNextTest); in gotoNextTest()
125 sStateMap.put(widgetId, state); in gotoNextTest()
128 private boolean shouldPerformTest(int state) { in shouldPerformTest() argument
129 if (state == STATE_VERIFY_SIZE_CALLBACK in shouldPerformTest()
132 } else if (state == STATE_VERIFY_RESIZE in shouldPerformTest()
135 } else if (state == STATE_VERIFY_COLLECTIONS in shouldPerformTest()
138 } else if (state == STATE_VERIFY_HOME_OR_KEYGUARD_CALLBACK in shouldPerformTest()
[all …]
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
DExternalStorageHelper.java29 String state = Environment.getExternalStorageState(); in isExternalStorageWritable() local
30 return Environment.MEDIA_MOUNTED.equals(state); in isExternalStorageWritable()
35 String state = Environment.getExternalStorageState(); in isExternalStorageReadable() local
36 return (Environment.MEDIA_MOUNTED.equals(state) || in isExternalStorageReadable()
37 Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)); in isExternalStorageReadable()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricTestBase.java143 protected void waitForState(@BiometricServiceState.AuthSessionState int state) in waitForState() argument
147 if (serviceState.mState != state) { in waitForState()
148 Log.d(TAG, "Not in state " + state + " yet, current: " + serviceState.mState); in waitForState()
154 Log.d(TAG, "Timed out waiting for state to become: " + state); in waitForState()
157 private void waitForStateNotEqual(@BiometricServiceState.AuthSessionState int state) in waitForStateNotEqual() argument
161 if (serviceState.mState == state) { in waitForStateNotEqual()
168 Log.d(TAG, "Timed out waiting for state to not equal: " + state); in waitForStateNotEqual()
190 BiometricServiceState state = getCurrentState(); in successfullyAuthenticate() local
191 Log.d(TAG, "State after acceptAuthentication: " + state); in successfullyAuthenticate()
192 if (state.mState == STATE_AUTH_PENDING_CONFIRM) { in successfullyAuthenticate()
[all …]
DBiometricServiceTests.java79 BiometricServiceState state = getCurrentStateAndClearSchedulerLog(); in testAuthenticatorIdsInvalidated_forSensor() local
85 state = getCurrentStateAndClearSchedulerLog(); in testAuthenticatorIdsInvalidated_forSensor()
88 assertEquals(0, Utils.numberOfSpecifiedOperations(state, sensorId, in testAuthenticatorIdsInvalidated_forSensor()
99 state = getCurrentStateAndClearSchedulerLog(); in testAuthenticatorIdsInvalidated_forSensor()
100 assertEquals(1, Utils.numberOfSpecifiedOperations(state, sensorId, in testAuthenticatorIdsInvalidated_forSensor()
105 assertEquals(1, Utils.numberOfSpecifiedOperations(state, id, in testAuthenticatorIdsInvalidated_forSensor()
137 BiometricServiceState state = getCurrentState(); in testLockoutResetRequestedAfterCredentialUnlock()
142 final int numResetLockouts = Utils.numberOfSpecifiedOperations(state, in testLockoutResetRequestedAfterCredentialUnlock()
207 BiometricServiceState state = getCurrentState(); in testLockoutResetRequestedAfterBiometricUnlock_whenStrong_forSensor() local
216 SensorStates.SensorState sensorState = state.mSensorStates.sensorStates in testLockoutResetRequestedAfterBiometricUnlock_whenStrong_forSensor()
[all …]
DBiometricActivityTests.java79 BiometricServiceState state = getCurrentState(); in testBiometricOnly_authenticateFromForegroundActivity_forSensor() local
80 assertTrue(state.toString(), state.mSensorStates.sensorStates.get(sensorId).isBusy()); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
130 BiometricServiceState state = getCurrentState(); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor() local
131 assertTrue(state.toString(), state.mSensorStates.sensorStates.get(sensorId).isBusy()); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
142 state = getCurrentState(); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
143 Log.d(TAG, "State after rejectAuthentication: " + state); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
144 if (state.mState == STATE_AUTH_PAUSED) { in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
195 BiometricServiceState state = getCurrentState(); in testBiometricOnly_rejectThenAuthenticate_forSensor() local
196 assertTrue(state.toString(), state.mSensorStates.sensorStates.get(sensorId).isBusy()); in testBiometricOnly_rejectThenAuthenticate_forSensor()
206 state = getCurrentState(); in testBiometricOnly_rejectThenAuthenticate_forSensor()
[all …]
/cts/tests/location/common/src/android/location/cts/common/
DTestMeasurementUtil.java229 int state = measurement.getState(); in assertAllGnssMeasurementMandatoryFields() local
233 String.valueOf(state), in assertAllGnssMeasurementMandatoryFields()
234 state >= 0); in assertAllGnssMeasurementMandatoryFields()
532 int state = measurement.getState(); in verifyReceivedSatelliteVehicleTimeInNs() local
539 if (state == 0) { in verifyReceivedSatelliteVehicleTimeInNs()
551 verifyGpsQzssSvTimes(measurement, softAssert, timeInNs, state, "CONSTELLATION_GPS"); in verifyReceivedSatelliteVehicleTimeInNs()
554 verifyGpsQzssSvTimes(measurement, softAssert, timeInNs, state, in verifyReceivedSatelliteVehicleTimeInNs()
558 if ((state & GnssMeasurement.STATE_SBAS_SYNC) in verifyReceivedSatelliteVehicleTimeInNs()
567 } else if ((state & GnssMeasurement.STATE_SYMBOL_SYNC) in verifyReceivedSatelliteVehicleTimeInNs()
576 } else if ((state & GnssMeasurement.STATE_CODE_LOCK) in verifyReceivedSatelliteVehicleTimeInNs()
[all …]
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DConstraintTest.java192 String state = getJobState(jobId); in assertJobReady() local
193 assertTrue("Job unexpectedly not ready, in state: " + state, state.contains("ready")); in assertJobReady()
197 String state = getJobState(jobId); in assertJobWaiting() local
198 assertTrue("Job unexpectedly not waiting, in state: " + state, state.contains("waiting")); in assertJobWaiting()
202 String state = getJobState(jobId); in assertJobNotReady() local
203 assertTrue("Job unexpectedly ready, in state: " + state, !state.contains("ready")); in assertJobNotReady()
/cts/tests/app/src/android/app/cts/
DBooleanTileServiceTest.java109 protected void waitForListening(boolean state) throws InterruptedException { in waitForListening() argument
111 while (ToggleableTestTileService.isListening() != state && (ct++ < CHECK_RETRIES)) { in waitForListening()
114 assertEquals(state, ToggleableTestTileService.isListening()); in waitForListening()
124 protected void waitForConnected(boolean state) throws InterruptedException { in waitForConnected() argument
126 while (ToggleableTestTileService.isConnected() != state && (ct++ < CHECK_RETRIES)) { in waitForConnected()
129 assertEquals(state, ToggleableTestTileService.isConnected()); in waitForConnected()

12345678910