Home
last modified time | relevance | path

Searched refs:stateSet (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DProcStateAtomTests.java104 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testForegroundService() local
114 assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testForegroundService()
125 List<Set<Integer>> stateSet = Arrays.asList(onStates); // state sets, in order in testForeground() local
136 assertStatesOccurred(stateSet, data, 0, PROC_STATE_FUNCTION); in testForeground()
146 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testBackground() local
156 assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testBackground()
167 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTop() local
178 assertStatesOccurred(stateSet, data, waitTime, PROC_STATE_FUNCTION); in testTop()
190 List<Set<Integer>> stateSet = Arrays.asList(onStates, offStates); // state sets, in order in testTopSleeping() local
209 assertStatesOccurred(stateSet, data, 0, PROC_STATE_FUNCTION); in testTopSleeping()
[all …]
DUidAtomTests.java173 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testAudioState() local
185 assertStatesOccurred(stateSet, data, 0, in testAudioState()
324 List<Set<Integer>> stateSet = Arrays.asList(cameraOn, cameraOff); in testCameraState() local
333 assertStatesOccurred(stateSet, data, WAIT_TIME_LONG, in testCameraState()
461 List<Set<Integer>> stateSet = Arrays.asList(flashlightOn, flashlightOff); in testFlashlightState() local
472 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testFlashlightState()
489 List<Set<Integer>> stateSet = Arrays.asList(enterForeground, exitForeground); in testForegroundServiceState() local
500 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testForegroundServiceState()
563 List<Set<Integer>> stateSet = Arrays.asList(onState, offState); in testMediaCodecActivity() local
575 assertStatesOccurred(stateSet, data, videoDuration, in testMediaCodecActivity()
[all …]
DHostAtomTests.java83 List<Set<Integer>> stateSet = Arrays.asList(screenOnStates, screenOffStates); in testScreenStateChangedAtom() local
101 assertStatesOccurred(stateSet, data, WAIT_TIME_LONG, in testScreenStateChangedAtom()
128 List<Set<Integer>> stateSet = Arrays.asList(batteryUnknownStates, batteryChargingStates, in testChargingStateChangedAtom() local
154 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testChargingStateChangedAtom()
179 List<Set<Integer>> stateSet = Arrays.asList(acStates, unpluggedStates, usbStates, in testPluggedStateChangedAtom() local
207 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testPluggedStateChangedAtom()
229 List<Set<Integer>> stateSet = Arrays.asList(batteryLow, battery25p, battery50p, in testBatteryLevelChangedAtom() local
255 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testBatteryLevelChangedAtom()
277 List<Set<Integer>> stateSet = Arrays.asList(dozeLight, dozeDeep, dozeOff); in testDeviceIdleModeStateChangedAtom() local
294 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testDeviceIdleModeStateChangedAtom()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DStateSetTest.java40 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/tests/tests/graphics/src/android/graphics/drawable/cts/
DVectorDrawableTest.java234 private void verifyVectorDrawables(int[] resIds, int[] goldenImages, int[] stateSet) in verifyVectorDrawables() argument
258 if (stateSet != null) { in verifyVectorDrawables()
259 vectorDrawable.setState(stateSet); in verifyVectorDrawables()
266 String stateSetTitle = getTitleForStateSet(stateSet); in verifyVectorDrawables()
291 private @Nullable String getTitleForStateSet(int[] stateSet) { in getTitleForStateSet() argument
292 if (stateSet == null || stateSet.length == 0) { in getTitleForStateSet()
297 for (int i = 0; i < stateSet.length; i++) { in getTitleForStateSet()
298 final String state = mResources.getResourceName(stateSet[i]); in getTitleForStateSet()
303 builder.append(stateSet[i]); in getTitleForStateSet()
DStateListDrawableTest.java357 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()
DLayerDrawableTest.java1614 public boolean setState(final int[] stateSet) { in setState() argument
1616 return super.setState(stateSet); in setState()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTests.java103 List<Set<Integer>> stateSet = Arrays.asList(wakelockOn, wakelockOff); in testPartialWakelock() local
115 assertStatesOccurred(stateSet, data, WAIT_TIME_SHORT, in testPartialWakelock()