Home
last modified time | relevance | path

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

12

/cts/tests/framework/base/biometrics/src/android/server/biometrics/fingerprint/
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()
DFingerprintServiceTest.java75 private static FingerprintCallbackHelper.State getCallbackState(@NonNull TestJournal journal) { in getCallbackState()
84 final FingerprintCallbackHelper.State state = in getCallbackState()
85 FingerprintCallbackHelper.State.fromBundle(bundle); in getCallbackState()
211 FingerprintCallbackHelper.State callbackState = getCallbackState(journal); in testAuthenticateFromForegroundActivity()
266 FingerprintCallbackHelper.State callbackState = getCallbackState(journal); in testRejectThenErrorFromForegroundActivity()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appcompatstate/
DAppCompatStateStatsTests.java21 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_ASPECT_RATIO;
22 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_FIXED_ORIENTATI…
23 import static com.android.os.AtomsProto.AppCompatStateChanged.State.LETTERBOXED_FOR_SIZE_COMPAT_MOD…
24 import static com.android.os.AtomsProto.AppCompatStateChanged.State.NOT_LETTERBOXED;
25 import static com.android.os.AtomsProto.AppCompatStateChanged.State.NOT_VISIBLE;
173 List<AppCompatStateChanged.State>... expectedStatesOptions) throws Exception { in testAppCompatFlow()
179 boolean switchToOpened, List<AppCompatStateChanged.State>... expectedStatesOptions) in testAppCompatFlow()
209 private List<AppCompatStateChanged.State> getAppCompatStatesForUid(int uid) in getAppCompatStatesForUid()
211 ArrayList<AppCompatStateChanged.State> result = new ArrayList<>(); in getAppCompatStatesForUid()
213 AppCompatStateChanged.State prevState = AppCompatStateChanged.State.UNKNOWN; in getAppCompatStatesForUid()
[all …]
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
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()
DBiometricActivityTests.java88 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_authenticateFromForegroundActivity_forSensor()
137 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_rejectThenErrorFromForegroundActivity_forSensor()
207 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_rejectThenAuthenticate_forSensor()
269 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricOnly_negativeButtonInvoked_forSensor()
365 BiometricCallbackHelper.State callbackState; in testBiometricOrCredential_credentialButtonInvoked_forConfiguration()
DBiometricSecurityTests.java202 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrength_forSensor_authAllowed()
252 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrength_forSensor_authDisallowed()
374 BiometricCallbackHelper.State callbackState; in testBiometricStrengthDowngraded_forSensor()
559 BiometricCallbackHelper.State callbackState = getCallbackState(journal); in testBiometricStrengthUpgraded_forSensor()
DBiometricTestBase.java454 protected static BiometricCallbackHelper.State getCallbackState(@NonNull TestJournal journal) { in getCallbackState()
460 final BiometricCallbackHelper.State state = in getCallbackState()
461 BiometricCallbackHelper.State.fromBundle(bundle); in getCallbackState()
/cts/hostsidetests/time/host/src/android/time/cts/host/
DLocationTimeZoneManagerStatsTest.java52 LocationTimeZoneProviderStateChanged.State.values().length;
94 LocationTimeZoneProviderStateChanged.State.INITIALIZING); in testAtom_locationTimeZoneProviderStateChanged()
96 LocationTimeZoneProviderStateChanged.State.PERM_FAILED); in testAtom_locationTimeZoneProviderStateChanged()
98 LocationTimeZoneProviderStateChanged.State.INITIALIZING); in testAtom_locationTimeZoneProviderStateChanged()
100 LocationTimeZoneProviderStateChanged.State.STOPPED); in testAtom_locationTimeZoneProviderStateChanged()
129 LocationTimeZoneProviderStateChanged.State state) { in singletonStateId()
146 int providerIndex, LocationTimeZoneProviderStateChanged.State providerState) {
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/
DBluetoothStatsTests.java72 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleScan()
74 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleScan()
94 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleUnoptimizedScan()
96 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleUnoptimizedScan()
112 AtomsProto.BleScanStateChanged.State.ON_VALUE); in testBleUnoptimizedScan()
118 AtomsProto.BleScanStateChanged.State.OFF_VALUE); in testBleUnoptimizedScan()
129 Collections.singletonList(AtomsProto.BleScanStateChanged.State.ON_VALUE)); in testBleOpportunisticScan()
131 Collections.singletonList(AtomsProto.BleScanStateChanged.State.OFF_VALUE)); in testBleOpportunisticScan()
147 AtomsProto.BleScanStateChanged.State.ON_VALUE); in testBleOpportunisticScan()
153 AtomsProto.BleScanStateChanged.State.OFF_VALUE); in testBleOpportunisticScan()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java132 assertThat(atom.getState()).isEqualTo(AppBreadcrumbReported.State.START); in testIsolatedToHostUidMapping()
259 Arrays.asList(AudioStateChanged.State.ON_VALUE));
261 Arrays.asList(AudioStateChanged.State.OFF_VALUE));
281 assertThat(new ArrayList<>(Arrays.asList(AudioStateChanged.State.ON_VALUE,
282 AudioStateChanged.State.OFF_VALUE))).containsExactlyElementsIn(atomStates);
297 Set<Integer> cameraOn = new HashSet<>(Arrays.asList(CameraStateChanged.State.ON_VALUE));
298 Set<Integer> cameraOff = new HashSet<>(Arrays.asList(CameraStateChanged.State.OFF_VALUE));
381 Arrays.asList(FlashlightStateChanged.State.ON_VALUE)); in testFlashlightState()
383 Arrays.asList(FlashlightStateChanged.State.OFF_VALUE)); in testFlashlightState()
406 Arrays.asList(ForegroundServiceStateChanged.State.ENTER_VALUE)); in testForegroundServiceState()
[all …]
DHostAtomTests.java353 Arrays.asList(BatterySaverModeStateChanged.State.ON_VALUE)); in testBatterySaverModeStateChangedAtom()
355 Arrays.asList(BatterySaverModeStateChanged.State.OFF_VALUE)); in testBatterySaverModeStateChangedAtom()
555 assertThat(atom.getState().getNumber()).isEqualTo(AppBreadcrumbReported.State.START_VALUE); in testBreadcrumbAdb()
589 assertThat(atom.getState().getNumber()).isEqualTo(AppBreadcrumbReported.State.START_VALUE); in testDumpsysStats()
616 == ConnectivityStateChanged.State.DISCONNECTED_VALUE) { in testConnectivityStateChange()
620 == ConnectivityStateChanged.State.CONNECTED_VALUE) { in testConnectivityStateChange()
DAtomTestCase.java873 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.START.ordinal()); in doAppBreadcrumbReportedStart()
877 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.STOP.ordinal()); in doAppBreadcrumbReportedStop()
881 doAppBreadcrumbReported(label, AppBreadcrumbReported.State.UNSPECIFIED.ordinal()); in doAppBreadcrumbReported()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/
DJobSchedulerStatsTests.java69 Arrays.asList(AtomsProto.ScheduledJobStateChanged.State.SCHEDULED_VALUE)); in testScheduledJobState()
71 Arrays.asList(AtomsProto.ScheduledJobStateChanged.State.STARTED_VALUE)); in testScheduledJobState()
73 Arrays.asList(AtomsProto.ScheduledJobStateChanged.State.FINISHED_VALUE)); in testScheduledJobState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/
DWifiStatsTests.java86 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.ON_VALUE)); in testWifiLockHighPerf()
88 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.OFF_VALUE)); in testWifiLockHighPerf()
115 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.ON_VALUE)); in testWifiLockLowLatency()
117 Collections.singletonList(AtomsProto.WifiLockStateChanged.State.OFF_VALUE)); in testWifiLockLowLatency()
144 Collections.singletonList(AtomsProto.WifiMulticastLockStateChanged.State.ON_VALUE)); in testWifiMulticastLock()
147 AtomsProto.WifiMulticastLockStateChanged.State.OFF_VALUE)); in testWifiMulticastLock()
249 final int stateOn = AtomsProto.WifiScanStateChanged.State.ON_VALUE; in testWifiScanLogsStateChangedAtoms()
250 final int stateOff = AtomsProto.WifiScanStateChanged.State.OFF_VALUE; in testWifiScanLogsStateChangedAtoms()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java157 expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.CONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()
177 … expectNetworkBroadcast(TYPE_MOBILE_HIPRI, NetworkInfo.State.DISCONNECTED, new Runnable() { in testStartUsingNetworkFeature_enableHipri()
222 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, in expectNetworkBroadcast()
260 final NetworkInfo.State desiredState = enabled ? in setWifiState()
261 NetworkInfo.State.CONNECTED : in setWifiState()
262 NetworkInfo.State.DISCONNECTED; in setWifiState()
/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/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionSessionVisibleActivityTest.java61 mActivityScenario.moveToState(Lifecycle.State.DESTROYED); in cleanup()
189 mActivityScenario.moveToState(Lifecycle.State.RESUMED); in performActivityChangeAndVerifyCallback()
193 mActivityScenario.moveToState(Lifecycle.State.DESTROYED); in performActivityChangeAndVerifyCallback()
/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/tests/tests/view/src/android/view/cts/
DAttachedSurfaceControlTest.java97 scenario.moveToState(Lifecycle.State.RESUMED); in testOnBufferTransformHintChangedListener()
161 scenario.moveToState(Lifecycle.State.RESUMED); in testOnBufferTransformHintChangesFromLandToSea()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perfetto/
DPerfettoTests.java219 1, AppBreadcrumbReported.State.START.ordinal())); in startPerfettoTrace()
258 AppBreadcrumbReported.State in getStatsdConfig()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dca.conf101 stateOrProvinceName = State or Province Name
/cts/hostsidetests/incident/src/com/android/server/cts/
DPrintProtoTest.java124 PrintJobInfoProto.State.getDescriptor().getValues() in verifyPrintJobInfoProto()
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt60 scenario.moveToState(Lifecycle.State.RESUMED) in <lambda>()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/
Dpoc.cpp119 sp<VolumeShaper::State> getVolumeShaperState(int id) { return NULL; } in getVolumeShaperState()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DAtomTestUtils.java54 AppBreadcrumbReported.State.START.ordinal()); in sendAppBreadcrumbReportedAtom()

12