Home
last modified time | relevance | path

Searched refs:State (Results 1 – 25 of 47) sorted by relevance

12

/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/util/
DFingerprintCallbackHelper.java41 public static class State { class in FingerprintCallbackHelper
52 public State() { in State() method in FingerprintCallbackHelper.State
66 private State(ArrayList<Integer> errorsReceived, ArrayList<Integer> acquiredReceived, in State() method in FingerprintCallbackHelper.State
74 public static State fromBundle(@NonNull Bundle bundle) { in fromBundle()
75 return new State( in fromBundle()
84 private final State mState;
112 mState = new State(); in FingerprintCallbackHelper()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/
DAppCompatStateStatsTests.java19 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_ASPECT_RATIO;
20 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_FIXED_ORIENTATI…
21 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_SIZE_COMPAT_MOD…
22 import static com.android.os.AtomsProto.AppCompatStateChanged.State.NOT_LETTERBOXED;
23 import static com.android.os.AtomsProto.AppCompatStateChanged.State.NOT_VISIBLE;
175 List<AppCompatStateChanged.State>... expectedStatesOptions) throws Exception { in testAppCompatFlow()
181 boolean switchToOpened, List<AppCompatStateChanged.State>... expectedStatesOptions) in testAppCompatFlow()
230 private List<AppCompatStateChanged.State> getAppCompatStatesForUid(int uid) in getAppCompatStatesForUid()
232 ArrayList<AppCompatStateChanged.State> result = new ArrayList<>(); in getAppCompatStatesForUid()
234 AppCompatStateChanged.State prevState = AppCompatStateChanged.State.UNKNOWN; in getAppCompatStatesForUid()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/util/
DBiometricCallbackHelper.java34 public static class State { class in BiometricCallbackHelper
47 public State() { in State() method in BiometricCallbackHelper.State
62 private State(ArrayList<Integer> errorsReceived, ArrayList<Integer> acquiredReceived, in State() method in BiometricCallbackHelper.State
71 public static BiometricCallbackHelper.State fromBundle(@NonNull Bundle bundle) { in fromBundle()
72 return new BiometricCallbackHelper.State( in fromBundle()
93 private final State mState;
131 mState = new BiometricCallbackHelper.State(); in BiometricCallbackHelper()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsCallSessionImpl.java47 private int mState = ImsCallSessionImplBase.State.IDLE;
102 return (mState == ImsCallSessionImplBase.State.ESTABLISHED) ? true : false; in isInCall()
123 if ((state != ImsCallSessionImplBase.State.IDLE) in start()
124 && (state != ImsCallSessionImplBase.State.INITIATED)) { in start()
156 setState(ImsCallSessionImplBase.State.INITIATED); in startInternal()
184 setState(ImsCallSessionImplBase.State.ESTABLISHING); in startInternal()
194 setState(ImsCallSessionImplBase.State.ESTABLISHED); in startInternal()
223 setState(ImsCallSessionImplBase.State.TERMINATED); in startFailed()
244 setState(ImsCallSessionImplBase.State.ESTABLISHED); in accept()
265 setState(ImsCallSessionImplBase.State.TERMINATED); in reject()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DBluetoothStatsTests.java73 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleScan()
75 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleScan()
95 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleUnoptimizedScan()
97 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleUnoptimizedScan()
113 AtomsProto.BleScanStateChanged.State.ON_VALUE); in testBleUnoptimizedScan()
119 AtomsProto.BleScanStateChanged.State.OFF_VALUE); in testBleUnoptimizedScan()
130 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleOpportunisticScan()
132 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleOpportunisticScan()
148 AtomsProto.BleScanStateChanged.State.ON_VALUE); in testBleOpportunisticScan()
154 AtomsProto.BleScanStateChanged.State.OFF_VALUE); in testBleOpportunisticScan()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DBackNavigationTests.java65 mScenario.moveToState(Lifecycle.State.RESUMED); in registerCallback_initialized()
71 mScenario.moveToState(Lifecycle.State.CREATED); in registerCallback_created()
73 mScenario.moveToState(Lifecycle.State.RESUMED); in registerCallback_created()
79 mScenario.moveToState(Lifecycle.State.RESUMED); in registerCallback_resumed()
100 mScenario.moveToState(Lifecycle.State.RESUMED); in onBackPressedNotCalled()
110 mScenario.moveToState(Lifecycle.State.RESUMED); in registerCallback_relaunch()
114 newScenario.moveToState(Lifecycle.State.RESUMED); in registerCallback_relaunch()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java135 assertThat(atom.getState()).isEqualTo(AppBreadcrumbReported.State.START); in testIsolatedToHostUidMapping()
263 Arrays.asList(AudioStateChanged.State.ON_VALUE));
265 Arrays.asList(AudioStateChanged.State.OFF_VALUE));
285 assertThat(new ArrayList<>(Arrays.asList(AudioStateChanged.State.ON_VALUE,
286 AudioStateChanged.State.OFF_VALUE))).containsExactlyElementsIn(atomStates);
301 Set<Integer> cameraOn = new HashSet<>(Arrays.asList(CameraStateChanged.State.ON_VALUE));
302 Set<Integer> cameraOff = new HashSet<>(Arrays.asList(CameraStateChanged.State.OFF_VALUE));
349 Arrays.asList(FlashlightStateChanged.State.ON_VALUE)); in testFlashlightState()
351 Arrays.asList(FlashlightStateChanged.State.OFF_VALUE)); in testFlashlightState()
374 Arrays.asList(ForegroundServiceStateChanged.State.ENTER_VALUE)); in testForegroundServiceState()
[all …]
DHostAtomTests.java354 Arrays.asList(BatterySaverModeStateChanged.State.ON_VALUE)); in testBatterySaverModeStateChangedAtom()
356 Arrays.asList(BatterySaverModeStateChanged.State.OFF_VALUE)); in testBatterySaverModeStateChangedAtom()
556 assertThat(atom.getState().getNumber()).isEqualTo(AppBreadcrumbReported.State.START_VALUE); in testBreadcrumbAdb()
590 assertThat(atom.getState().getNumber()).isEqualTo(AppBreadcrumbReported.State.START_VALUE); in testDumpsysStats()
617 == ConnectivityStateChanged.State.DISCONNECTED_VALUE) { in testConnectivityStateChange()
621 == ConnectivityStateChanged.State.CONNECTED_VALUE) { in testConnectivityStateChange()
/cts/hostsidetests/time/host/src/android/time/cts/host/
DLocationTimeZoneManagerStatsTest.java70 LocationTimeZoneProviderStateChanged.State.values().length;
241 LocationTimeZoneProviderStateChanged.State.STOPPED); in testAtom_locationTimeZoneProviderStateChanged()
243 LocationTimeZoneProviderStateChanged.State.PERM_FAILED); in testAtom_locationTimeZoneProviderStateChanged()
245 LocationTimeZoneProviderStateChanged.State.STOPPED); in testAtom_locationTimeZoneProviderStateChanged()
247 LocationTimeZoneProviderStateChanged.State.INITIALIZING); in testAtom_locationTimeZoneProviderStateChanged()
249 LocationTimeZoneProviderStateChanged.State.STOPPED); in testAtom_locationTimeZoneProviderStateChanged()
269 LocationTimeZoneProviderStateChanged.State state) { in singletonStateId()
286 int providerIndex, LocationTimeZoneProviderStateChanged.State providerState) {
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveNotificationAppHidingTest.kt38 import androidx.lifecycle.Lifecycle.State in <lambda>()
236 activityScenario.moveToState(State.CREATED) in <lambda>()
237 activityScenario.moveToState(State.RESUMED) in <lambda>()
278 activityScenario.moveToState(State.CREATED) in <lambda>()
279 activityScenario.moveToState(State.RESUMED) in <lambda>()
298 activityScenario.moveToState(State.CREATED) in <lambda>()
300 activityScenario.moveToState(State.RESUMED) in <lambda>()
323 activityScenario.moveToState(State.CREATED) in <lambda>()
325 activityScenario.moveToState(State.RESUMED) in <lambda>()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java115 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.ON_VALUE)); in testWifiLockHighPerf()
117 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.OFF_VALUE)); in testWifiLockHighPerf()
166 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.ON_VALUE)); in testWifiLockHighPerfDeprecated()
168 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.OFF_VALUE)); in testWifiLockHighPerfDeprecated()
217 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.ON_VALUE)); in testWifiLockLowLatency()
219 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.OFF_VALUE)); in testWifiLockLowLatency()
247 Collections.singletonList(AtomsProto.WifiMulticastLockStateChanged.State.ON_VALUE)); in testWifiMulticastLock()
250 AtomsProto.WifiMulticastLockStateChanged.State.OFF_VALUE)); in testWifiMulticastLock()
359 final int stateOn = AtomsProto.WifiScanStateChanged.State.ON_VALUE; in testWifiScanLogsStateChangedAtoms()
360 final int stateOff = AtomsProto.WifiScanStateChanged.State.OFF_VALUE; in testWifiScanLogsStateChangedAtoms()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/
DJobSchedulerStatsTests.java39 List.of(AtomsProto.ScheduledJobStateChanged.State.SCHEDULED_VALUE));
41 List.of(AtomsProto.ScheduledJobStateChanged.State.STARTED_VALUE));
43 List.of(AtomsProto.ScheduledJobStateChanged.State.FINISHED_VALUE));
45 List.of(AtomsProto.ScheduledJobStateChanged.State.CANCELLED_VALUE));
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java171 expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.CONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()
191 … expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.DISCONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()
236 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, in expectNetworkBroadcast()
274 final NetworkInfo.State desiredState = enabled ? in setWifiState()
275 NetworkInfo.State.CONNECTED : in setWifiState()
276 NetworkInfo.State.DISCONNECTED; in setWifiState()
/cts/tests/autofillservice/src/android/autofillservice/cts/dialog/
DDialogTest.java50 scenario.moveToState(Lifecycle.State.RESUMED); in showAutofillDialog_noResponse_returnsFalse()
69 scenario.moveToState(Lifecycle.State.RESUMED); in showAutofillDialogForVirtualView_noDialogPresentation_returnsFalse()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
DFingerprintManagerTest.java99 private static FingerprintCallbackHelper.State getCallbackState(@NonNull TestJournal journal) { in getCallbackState()
108 final FingerprintCallbackHelper.State state = in getCallbackState()
109 FingerprintCallbackHelper.State.fromBundle(bundle); in getCallbackState()
242 FingerprintCallbackHelper.State callbackState = getCallbackState(journal); in testAuthenticateFromForegroundActivity()
279 FingerprintCallbackHelper.State callbackState = getCallbackState(journal); in testRejectThenErrorFromForegroundActivity()
364 FingerprintCallbackHelper.State callbackState = getCallbackState(journal); in testAuthCancelsWhenAppSwitched()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DOffBodySensorTestActivity.java69 private enum State { enum in OffBodySensorTestActivity
87 private State mPreviousSensorState;
122 mPreviousSensorState = State.OFF_BODY; in onSensorChanged()
128 mPreviousSensorState = State.ON_BODY; in onSensorChanged()
410 if (mPreviousSensorState != State.ON_BODY) { in runOffbodyDetectResponseTimeTest()
470 if (mPreviousSensorState != State.OFF_BODY) { in runOnbodyDetectResponseTimeTest()
514 if (mPreviousSensorState != State.ON_BODY) { in runWakeAPOffbodyDetectTest()
524 if (mPreviousSensorState != State.ON_BODY) { in runWakeAPOffbodyDetectTest()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/memorysafety/
DMteStateTest.java97 assertThat(data.getState()).isEqualTo(hasMte ? MteState.State.ON : MteState.State.OFF); in testMteState()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricActivityTests.java101 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
149 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
225 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_rejectThenAuthenticate_forSensor()
290 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_negativeButtonInvoked_forSensor()
406 BiometricCallbackHelper.State callbackState; in testBiometricOrCredential_credentialButtonInvoked_forConfiguration()
DBiometricSecurityTests.java228 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrength_forSensor_authAllowed()
272 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrength_forSensor_authDisallowed()
434 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrengthDowngraded_forSensor()
571 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrengthUpgraded_forSensor()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DMeteredDataRestrictionTest.java28 import android.net.NetworkInfo.State;
132 final String expectedState = (blocked ? State.DISCONNECTED : State.CONNECTED).name(); in verifyAppNetworkState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/vibrator/
DVibratorStatsTests.java76 VibratorStateChanged.State.ON_VALUE, VibratorStateChanged.State.OFF_VALUE); in testVibratorStateChanged()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java167 if (sNetworkInfo.getState() == NetworkInfo.State.CONNECTED) {
284 private void waitForNetworkInfoState(NetworkInfo.State state, int timeoutMillis) in waitForNetworkInfoState()
298 waitForNetworkInfoState(NetworkInfo.State.CONNECTED, WIFI_CONNECT_TIMEOUT_MS); in waitForConnection()
302 waitForNetworkInfoState(NetworkInfo.State.CONNECTED, timeoutMillis); in waitForConnection()
306 waitForNetworkInfoState(NetworkInfo.State.DISCONNECTED, WIFI_DISCONNECT_TIMEOUT_MS); in waitForDisconnection()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DOWNERS11 per-file *State*er*.java = felipeal@google.com
/cts/tests/credentials/src/android/credentials/cts/
DCtsSettingsIntentTest.java135 activityScenario.moveToState(Lifecycle.State.CREATED); in testCredentialManagerSettingsIntent()
175 activityScenario.moveToState(Lifecycle.State.CREATED); in testCredentialManagerAutofillSettingsIntent()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/gamemanager/
DGameManagerStatsTests.java28 import com.android.os.AtomsProto.GameStateChanged.State;
89 assertThat(a0.getState()).isEqualTo(State.MODE_CONTENT); in testGameStateStatsd()

12