/cts/tests/tests/util/src/android/util/cts/ |
D | StateSetTest.java | 40 int[] stateSet = {1, 2, 3}; in testTrimStateSet() local 41 assertEquals(stateSet, StateSet.trimStateSet(stateSet, 3)); in testTrimStateSet() 43 int [] stateSet2 = StateSet.trimStateSet(stateSet, 2); in testTrimStateSet() 46 assertEquals(stateSet2[i - 1], stateSet[i - 1]); in testTrimStateSet() 52 int[] stateSet = {android.R.attr.state_window_focused, in testDump() local 58 String string = StateSet.dump(stateSet); in testDump()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | ProcStateAtomTests.java | 150 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testForegroundService() local 161 AtomTestUtils.assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testForegroundService() 169 List<Set<Integer>> stateSet = Arrays.asList(onStates); // state sets, in order in testForeground() local 180 AtomTestUtils.assertStatesOccurred(stateSet, data, 0, PROC_STATE_FUNCTION); in testForeground() 187 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testBackground() local 198 AtomTestUtils.assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testBackground() 206 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTop() local 217 AtomTestUtils.assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testTop() 226 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTopSleeping() local 247 AtomTestUtils.assertStatesOccurred(stateSet, data, 0, PROC_STATE_FUNCTION); in testTopSleeping() [all …]
|
D | UidAtomTests.java | 264 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); 301 List<Set<Integer>> stateSet = Arrays.asList(cameraOn, cameraOff); 311 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, 386 List<Set<Integer>> stateSet = Arrays.asList(flashlightOn, flashlightOff); in testFlashlightState() local 397 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testFlashlightState() 411 List<Set<Integer>> stateSet = Arrays.asList(enterForeground, exitForeground); in testForegroundServiceState() local 422 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testForegroundServiceState() 530 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testMediaCodecActivity() local 543 AtomTestUtils.assertStatesOccurred(stateSet, data, videoDuration, in testMediaCodecActivity() 557 List<Set<Integer>> stateSet = Arrays.asList(entered, exited); in testOverlayState() local [all …]
|
D | HostAtomTests.java | 134 List<Set<Integer>> stateSet = Arrays.asList(screenOnStates, screenOffStates); in testScreenStateChangedAtom() local 152 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, in testScreenStateChangedAtom() 176 List<Set<Integer>> stateSet = Arrays.asList(batteryUnknownStates, batteryChargingStates, in testChargingStateChangedAtom() local 202 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testChargingStateChangedAtom() 225 List<Set<Integer>> stateSet = Arrays.asList(acStates, unpluggedStates, usbStates, in testPluggedStateChangedAtom() local 258 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_LONG, in testPluggedStateChangedAtom() 277 List<Set<Integer>> stateSet = Arrays.asList(batteryLow, battery25p, battery50p, in testBatteryLevelChangedAtom() local 303 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testBatteryLevelChangedAtom() 322 List<Set<Integer>> stateSet = Arrays.asList(dozeLight, dozeDeep, dozeOff); in testDeviceIdleModeStateChangedAtom() local 339 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testDeviceIdleModeStateChangedAtom() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableTest.java | 235 private void verifyVectorDrawables(int[] resIds, int[] goldenImages, int[] stateSet) in verifyVectorDrawables() argument 259 if (stateSet != null) { in verifyVectorDrawables() 260 vectorDrawable.setState(stateSet); in verifyVectorDrawables() 267 String stateSetTitle = getTitleForStateSet(stateSet); in verifyVectorDrawables() 292 private @Nullable String getTitleForStateSet(int[] stateSet) { in getTitleForStateSet() argument 293 if (stateSet == null || stateSet.length == 0) { in getTitleForStateSet() 298 for (int i = 0; i < stateSet.length; i++) { in getTitleForStateSet() 299 final String state = mResources.getResourceName(stateSet[i]); in getTitleForStateSet() 304 builder.append(stateSet[i]); in getTitleForStateSet()
|
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 | 91 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiLockHighPerf() local 94 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiLockHighPerf() 120 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiLockLowLatency() local 123 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiLockLowLatency() 152 List<Set<Integer>> stateSet = Arrays.asList(lockOn, lockOff); in testWifiMulticastLock() local 155 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testWifiMulticastLock()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | GarageModeAtomTests.java | 89 List<Set<Integer>> stateSet = Arrays.asList(garageModeOn, garageModeOff); in testGarageModeOnOff() local 97 AtomTestUtils.assertStatesOccurred(stateSet, data, AtomTestUtils.WAIT_TIME_SHORT, in testGarageModeOnOff()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/jobscheduler/ |
D | JobSchedulerStatsTests.java | 76 List<Set<Integer>> stateSet = Arrays.asList(jobSchedule, jobOn, jobOff); in testScheduledJobState() local 86 AtomTestUtils.assertStatesOccurred(stateSet, data, 0, in testScheduledJobState()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/bluetooth/ |
D | BluetoothStatsTests.java | 77 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleScan() local 85 AtomTestUtils.assertStatesOccurred(stateSet, data, expectedWait, in testBleScan() 100 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleUnoptimizedScan() local 135 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testBleOpportunisticScan() local
|