Home
last modified time | relevance | path

Searched refs:targets (Results 1 – 16 of 16) sorted by relevance

/cts/tests/fragment/src/android/fragment/cts/
DPostponedTransitionTest.java783 fragment.enterTransition.targets.clear(); in clearTargets()
784 fragment.reenterTransition.targets.clear(); in clearTargets()
785 fragment.exitTransition.targets.clear(); in clearTargets()
786 fragment.returnTransition.targets.clear(); in clearTargets()
787 fragment.sharedElementEnter.targets.clear(); in clearTargets()
788 fragment.sharedElementReturn.targets.clear(); in clearTargets()
792 assertEquals(0, fragment.enterTransition.targets.size()); in assureNoTransition()
793 assertEquals(0, fragment.reenterTransition.targets.size()); in assureNoTransition()
794 assertEquals(0, fragment.enterTransition.targets.size()); in assureNoTransition()
795 assertEquals(0, fragment.returnTransition.targets.size()); in assureNoTransition()
[all …]
DFragmentTransitionTest.java841 ArrayList<View> targets = transition.getTrackedTargets(); in verifyAndClearTransition() local
844 "}, but got: [" + targets.size() + "] {" + in verifyAndClearTransition()
845 targets.stream().map(v -> v.toString()).collect(Collectors.joining(", ")) + in verifyAndClearTransition()
847 assertEquals(errorMessage, expected.length, targets.size()); in verifyAndClearTransition()
849 assertTrue(errorMessage, targets.contains(view)); in verifyAndClearTransition()
855 assertEquals(0, fragment.enterTransition.targets.size()); in verifyNoOtherTransitions()
856 assertEquals(0, fragment.exitTransition.targets.size()); in verifyNoOtherTransitions()
857 assertEquals(0, fragment.reenterTransition.targets.size()); in verifyNoOtherTransitions()
858 assertEquals(0, fragment.returnTransition.targets.size()); in verifyNoOtherTransitions()
859 assertEquals(0, fragment.sharedElementEnter.targets.size()); in verifyNoOtherTransitions()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/transition/
DTrackingVisibility.java32 public final ArrayList<View> targets = new ArrayList<>(); field in TrackingVisibility
38 targets.add(endValues.view); in onAppear()
51 targets.add(startValues.view); in onDisappear()
63 return targets; in getTrackedTargets()
68 targets.clear(); in clearTargets()
DTrackingTransition.java39 public final ArrayList<View> targets = new ArrayList<>(); field in TrackingTransition
63 targets.add(startValues.view); in createAnimator()
66 targets.add(endValues.view); in createAnimator()
79 return targets; in getTrackedTargets()
84 targets.clear(); in clearTargets()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/transition/
DTrackingVisibility.java32 public final ArrayList<View> targets = new ArrayList<>(); field in TrackingVisibility
38 targets.add(endValues.view); in onAppear()
51 targets.add(startValues.view); in onDisappear()
63 return targets; in getTrackedTargets()
68 targets.clear(); in clearTargets()
DTrackingTransition.java39 public final ArrayList<View> targets = new ArrayList<>(); field in TrackingTransition
63 targets.add(startValues.view); in createAnimator()
66 targets.add(endValues.view); in createAnimator()
79 return targets; in getTrackedTargets()
84 targets.clear(); in clearTargets()
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/
DServiceReporter.java135 void onSortAppTargets(AppPredictionSessionId sessionId, List<AppTarget> targets, in onSortAppTargets() argument
138 assertNotNull(targets); in onSortAppTargets()
242 public void onTargetsAvailable(List<AppTarget> targets) { in onTargetsAvailable() argument
245 assertEquals(targets, mTargets); in onTargetsAvailable()
249 mTargets = targets; in onTargetsAvailable()
262 boolean requestAndWaitForTargets(List<AppTarget> targets, Runnable requestUpdateCb) { in requestAndWaitForTargets() argument
263 mTargets = targets; in requestAndWaitForTargets()
268 return awaitTargets(targets); in requestAndWaitForTargets()
274 boolean awaitTargets(List<AppTarget> targets) { in awaitTargets() argument
277 assertEquals(targets, mTargets); in awaitTargets()
DAppPredictionServiceTest.java159 List<AppTarget> targets = createPredictions(); in testAppTargetEvent() local
161 for (AppTarget target : targets) { in testAppTargetEvent()
180 List<AppTarget> targets = createPredictions(); in testNotifyLocationShown() local
182 for (AppTarget target : targets) { in testNotifyLocationShown()
206 mReporter.setSortedPredictionsProvider((targets) -> { in testSortTargets() argument
207 assertEquals(targets, shuffledTargets); in testSortTargets()
250 List<AppTarget> targets = new ArrayList<>(); in createPredictions() local
253 targets.add(new AppTarget.Builder(new AppTargetId(String.valueOf(i)), "test.pkg", in createPredictions()
258 return targets; in createPredictions()
DPredictionService.java64 public void onSortAppTargets(AppPredictionSessionId sessionId, List<AppTarget> targets, in onSortAppTargets() argument
66 mReporter.onSortAppTargets(sessionId, targets, callback); in onSortAppTargets()
67 callback.accept(mReporter.getSortedPredictionsProvider().sortTargets(targets)); in onSortAppTargets()
DSortedPredictionsProvider.java27 List<AppTarget> sortTargets(List<AppTarget> targets); in sortTargets() argument
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionInflaterTest.java178 List<Integer> targets = transition.getTargetIds(); in verifyTargetIds() local
179 assertNotNull(targets); in verifyTargetIds()
180 assertEquals(2, targets.size()); in verifyTargetIds()
181 assertEquals(R.id.hello, (int) targets.get(0)); in verifyTargetIds()
182 assertEquals(R.id.world, (int) targets.get(1)); in verifyTargetIds()
186 List<String> targets = transition.getTargetNames(); in verifyTargetNames() local
187 assertNotNull(targets); in verifyTargetNames()
188 assertEquals(2, targets.size()); in verifyTargetNames()
189 assertEquals("hello", targets.get(0)); in verifyTargetNames()
190 assertEquals("world", targets.get(1)); in verifyTargetNames()
[all …]
DActivityTransitionTest.java506 Set<Integer> targets = getTargetViewIds(transition); in assertTargetContains() local
508 assertTrueWithId(id, "%s was not included from the transition", targets.contains(id)); in assertTargetContains()
513 Set<Integer> targets = getTargetViewIds(transition); in assertTargetExcludes() local
515 assertTrueWithId(id, "%s was not excluded from the transition", !targets.contains(id)); in assertTargetExcludes()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildDalvikSuite.java85 Set<BuildStep> targets = new TreeSet<BuildStep>(); field in BuildDalvikSuite.MyTestHandler
204 generateBuildStepFor(dependentTestClassNames, targets); in handleTest()
218 for (BuildStep buildStep : handler.targets) { in handleTests()
228 Set<BuildStep> targets) { in generateBuildStepFor() argument
230 generateBuildStepForDependant(dependentTestClassName, targets); in generateBuildStepFor()
235 Set<BuildStep> targets) { in generateBuildStepForDependant() argument
277 targets.add(jarBuildStep); in generateBuildStepForDependant()
287 targets.add(dexBuildStep); in generateBuildStepForDependant()
295 targets.add(dexBuildStep); in generateBuildStepForDependant()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DRectChecker.java41 public RectChecker(Target... targets) { in RectChecker() argument
42 for (Target t : targets) { in RectChecker()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java797 final List<File> targets = new ArrayList<File>(); in getTargetFiles() local
802 targets.add(dir); in getTargetFiles()
804 return targets; in getTargetFiles()
/cts/tools/dasm/src/dasm/
DDAsm.java1441 CodeAddress targets[] = new CodeAddress[sz]; in endSwitch() local
1467 targets[i] = addr; in endSwitch()
1474 insn_addr, switch_keys, targets); in endSwitch()