/cts/tests/tests/util/src/android/util/cts/ |
D | StateSetTest.java | 47 int[] stateSet = {1, 2, 3}; in testTrimStateSet() local 48 assertEquals(stateSet, StateSet.trimStateSet(stateSet, 3)); in testTrimStateSet() 50 int [] stateSet2 = StateSet.trimStateSet(stateSet, 2); in testTrimStateSet() 53 assertEquals(stateSet2[i - 1], stateSet[i - 1]); in testTrimStateSet() 59 int[] stateSet = {android.R.attr.state_window_focused, in testDump() local 65 String string = StateSet.dump(stateSet); in testDump()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/ |
D | JobSchedulerStatsTests.java | 79 List<Set<Integer>> stateSet = List.of(STATE_SCHEDULE, STATE_START, STATE_FINISH); in testScheduledJobState() local 89 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, 0, in testScheduledJobState() 102 List<Set<Integer>> stateSet = List.of(STATE_SCHEDULE, STATE_CANCEL); in testScheduledJobState_CancelledJob() local 113 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, 0, in testScheduledJobState_CancelledJob() 126 List<Set<Integer>> stateSet = List.of( in testScheduledJobStatePriority() local 142 AtomTestUtils.assertStatesOccurred(stateSet, data, in testScheduledJobStatePriority()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | ProcStateAtomTests.java | 152 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testForegroundService() local 163 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testForegroundService() 171 List<Set<Integer>> stateSet = Arrays.asList(onStates); // state sets, in order in testForeground() local 182 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, 0, PROC_STATE_FUNCTION); in testForeground() 189 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testBackground() local 200 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testBackground() 208 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTop() local 219 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testTop() 228 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTopSleeping() local 249 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, 0, PROC_STATE_FUNCTION); in testTopSleeping()
|
D | HostAtomTests.java | 128 List<Set<Integer>> stateSet = Arrays.asList(screenOnStates, screenOffStates); in testScreenStateChangedAtom() local 146 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, in testScreenStateChangedAtom() 170 List<Set<Integer>> stateSet = Arrays.asList(batteryUnknownStates, batteryChargingStates, in testChargingStateChangedAtom() local 196 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testChargingStateChangedAtom() 219 List<Set<Integer>> stateSet = Arrays.asList(acStates, unpluggedStates, usbStates, in testPluggedStateChangedAtom() local 252 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, in testPluggedStateChangedAtom() 272 List<Set<Integer>> stateSet = Arrays.asList(batteryLow, battery25p, battery50p, in testBatteryLevelChangedAtom() local 303 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, in testBatteryLevelChangedAtom() 322 List<Set<Integer>> stateSet = Arrays.asList(dozeLight, dozeDeep, dozeOff); in testDeviceIdleModeStateChangedAtom() local 339 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testDeviceIdleModeStateChangedAtom() [all …]
|
D | UidAtomTests.java | 268 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); 305 List<Set<Integer>> stateSet = Arrays.asList(cameraOn, cameraOff); 315 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, 354 List<Set<Integer>> stateSet = Arrays.asList(flashlightOn, flashlightOff); in testFlashlightState() local 365 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testFlashlightState() 379 List<Set<Integer>> stateSet = Arrays.asList(enterForeground, exitForeground); in testForegroundServiceState() local 390 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testForegroundServiceState() 498 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testMediaCodecActivity() local 511 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, videoDuration, in testMediaCodecActivity() 525 List<Set<Integer>> stateSet = Arrays.asList(entered, exited); in testOverlayState() local [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableTest.java | 238 private void verifyVectorDrawables(int[] resIds, int[] goldenImages, int[] stateSet) in verifyVectorDrawables() argument 240 verifyVectorDrawables(resIds, goldenImages, stateSet, in verifyVectorDrawables() 246 private void verifyVectorDrawables(int[] resIds, int[] goldenImages, int[] stateSet, in verifyVectorDrawables() argument 271 if (stateSet != null) { in verifyVectorDrawables() 272 vectorDrawable.setState(stateSet); in verifyVectorDrawables() 279 String stateSetTitle = getTitleForStateSet(stateSet); in verifyVectorDrawables() 302 private @Nullable String getTitleForStateSet(int[] stateSet) { in getTitleForStateSet() argument 303 if (stateSet == null || stateSet.length == 0) { in getTitleForStateSet() 308 for (int i = 0; i < stateSet.length; i++) { in getTitleForStateSet() 309 final String state = mResources.getResourceName(stateSet[i]); in getTitleForStateSet() [all …]
|
D | StateListDrawableTest.java | 357 int[] stateSet = new int[]{1}; in testGetStateDrawable() local 358 stateList.addState(stateSet, colorDrawable); in testGetStateDrawable() 369 int[] stateSet = new int[]{0}; in testGetStateSet() local 371 stateList.addState(stateSet, colorDrawable); in testGetStateSet() 373 assertEquals(stateSet, resolvedStateSet); in testGetStateSet() 442 protected boolean onStateChange(int[] stateSet) { in onStateChange() argument 443 boolean result = super.onStateChange(stateSet); in onStateChange()
|
D | LayerDrawableTest.java | 1614 public boolean setState(final int[] stateSet) { in setState() argument 1616 return super.setState(stateSet); in setState()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/wifi/ |
D | WifiStatsTests.java | 120 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiLockHighPerf() local 123 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiLockHighPerf() 171 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiLockHighPerfDeprecated() local 174 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiLockHighPerfDeprecated() 222 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiLockLowLatency() local 225 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiLockLowLatency() 255 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiMulticastLock() local 258 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiMulticastLock()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/ |
D | BluetoothStatsTests.java | 78 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleScan() local 86 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, expectedWait, in testBleScan() 101 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleUnoptimizedScan() local 136 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleOpportunisticScan() local
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | GarageModeAtomTests.java | 90 List<Set<Integer>> stateSet = Arrays.asList(garageModeOn, garageModeOff); in testGarageModeOnOff() local 98 AtomTestUtils.assertStatesOccurredInOrder(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testGarageModeOnOff()
|