Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/cts/tests/tests/jni/src/android/jni/cts/
DJniInstanceTest.java27 private InstanceNonce target; field in JniInstanceTest
31 target = new InstanceNonce(); in setUp()
38 target.nop(); in test_nop()
45 assertEquals(false, target.returnBoolean()); in test_returnBoolean()
52 assertEquals(123, target.returnByte()); in test_returnByte()
59 assertEquals(-12345, target.returnShort()); in test_returnShort()
66 assertEquals(34567, target.returnChar()); in test_returnChar()
73 assertEquals(12345678, target.returnInt()); in test_returnInt()
80 assertEquals(-1098765432109876543L, target.returnLong()); in test_returnLong()
87 assertEquals(-98765.4321F, target.returnFloat()); in test_returnFloat()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewPropertyAnimatorTests.java48 public void configureView(AlphaTestView target) { in testViewCustomAlpha()
49 target.setStartColor(Color.RED); in testViewCustomAlpha()
50 target.setEndColor(Color.BLUE); in testViewCustomAlpha()
59 public void verifyViewState(AlphaTestView target) { in testViewCustomAlpha()
60 assertEquals(Color.BLUE, target.getBlendedColor()); in testViewCustomAlpha()
85 public void configureView(AlphaTestView target) { in testViewCustomAlphaBy()
86 target.setStartColor(Color.RED); in testViewCustomAlphaBy()
87 target.setEndColor(Color.BLUE); in testViewCustomAlphaBy()
88 target.setAlpha(0.5f); in testViewCustomAlphaBy()
97 public void verifyViewState(AlphaTestView target) { in testViewCustomAlphaBy()
[all …]
/cts/tests/tests/resolverservice/src/android/service/resolver/cts/
DResolverTargetTest.java38 ResolverTarget target = new ResolverTarget(); in sanityCheckDataConsistency() local
40 target.setChooserScore(1.0f); in sanityCheckDataConsistency()
41 assertThat(target.getChooserScore(), is(1.0f)); in sanityCheckDataConsistency()
43 target.setLaunchScore(0.5f); in sanityCheckDataConsistency()
44 assertThat(target.getLaunchScore(), is(0.5f)); in sanityCheckDataConsistency()
46 target.setRecencyScore(0.3f); in sanityCheckDataConsistency()
47 assertThat(target.getRecencyScore(), is(0.3f)); in sanityCheckDataConsistency()
49 target.setSelectProbability(0.2f); in sanityCheckDataConsistency()
50 assertThat(target.getSelectProbability(), is(0.2f)); in sanityCheckDataConsistency()
52 target.setTimeSpentScore(0.1f); in sanityCheckDataConsistency()
[all …]
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchTargetTest.java76 SearchTarget target = mBuilderAction.build(); in testBuilderSearchAction() local
77 assertEverythingSearchAction(target); in testBuilderSearchAction()
78 SearchTarget clone = cloneThroughParcel(target); in testBuilderSearchAction()
82 private void assertEverythingSearchAction(@NonNull SearchTarget target) { in assertEverythingSearchAction() argument
83 assertThat(target.getResultType()).isEqualTo(RESULT_CORPUS); in assertEverythingSearchAction()
84 assertThat(target.getLayoutType()).isEqualTo(LAYOUT_TYPE); in assertEverythingSearchAction()
85 assertThat(target.getId()).isEqualTo(ID); in assertEverythingSearchAction()
86 assertThat(target.getUserHandle()).isEqualTo(UserHandle.CURRENT); in assertEverythingSearchAction()
87 assertThat(target.getScore()).isEqualTo(SCORE); in assertEverythingSearchAction()
88 assertThat(target.getParentId()).isEqualTo(PARENTID); in assertEverythingSearchAction()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DScrollCaptureTargetTest.java107 ScrollCaptureTarget target = new ScrollCaptureTarget(mTargetView, in testScrollBounds() local
111 assertNull(target.getScrollBounds()); in testScrollBounds()
114 target.setScrollBounds(new Rect(-5, -5, 15, 15)); in testScrollBounds()
116 assertEquals(new Rect(0, 0, 10, 10), target.getScrollBounds()); in testScrollBounds()
119 target.setScrollBounds(new Rect()); in testScrollBounds()
121 target.getScrollBounds().isEmpty()); in testScrollBounds()
124 target.setScrollBounds(null); in testScrollBounds()
125 assertNull(target.getScrollBounds()); in testScrollBounds()
132 ScrollCaptureTarget target = new ScrollCaptureTarget(mTargetView, in testContainingView() local
134 assertEquals(mTargetView, target.getContainingView()); in testContainingView()
[all …]
DViewGroup_ScrollCaptureTest.java62 public void accept(T target) { in accept() argument
63 mValues.add(target); in accept()
173 ScrollCaptureTarget target = receiver.getValue(); in testDispatchScrollCaptureSearch_withCallback() local
174 assertNotNull("Target not found", target); in testDispatchScrollCaptureSearch_withCallback()
175 assertSame("Target has the wrong callback", callback, target.getCallback()); in testDispatchScrollCaptureSearch_withCallback()
176 assertEquals("Target has the wrong bounds", new Rect(1, 2, 3, 4), target.getScrollBounds()); in testDispatchScrollCaptureSearch_withCallback()
178 assertSame("Target has the wrong View", viewGroup, target.getContainingView()); in testDispatchScrollCaptureSearch_withCallback()
180 target.getContainingView().getScrollCaptureHint()); in testDispatchScrollCaptureSearch_withCallback()
315 receiver.getAllValues().forEach(target -> in callOnScrollCaptureSearch()
316 target.getCallback().onScrollCaptureSearch(signal, (scrollBounds) -> { in callOnScrollCaptureSearch()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java42 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() local
43 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode()
49 Canvas canvas = new Canvas(target); in testPorterDuffXfermode()
54 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
55 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
56 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
58 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode()
63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
64 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
65 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
[all …]
DPorterDuffColorFilterTest.java48 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter() local
49 target.eraseColor(Color.TRANSPARENT); in testPorterDuffColorFilter()
50 Canvas canvas = new Canvas(target); in testPorterDuffColorFilter()
58 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
59 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter()
62 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter()
65 target.eraseColor(Color.BLACK); in testPorterDuffColorFilter()
71 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
72 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter()
73 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DGetCharsTest.java50 final char[] target = new char[getChars.length()]; in testGetChars() local
51 getChars.getChars(0, getChars.length(), target, 0); in testGetChars()
52 assertEquals('\uD83D', target[0]); in testGetChars()
53 assertEquals('\uDE00', target[1]); in testGetChars()
56 getChars.getChars(-1, getChars.length(), target, 0); in testGetChars()
62 getChars.getChars(1, 0, target, 0); in testGetChars()
68 getChars.getChars(0, getChars.length() + 1, target, 0); in testGetChars()
74 getChars.getChars(0, getChars.length(), target, -1); in testGetChars()
80 getChars.getChars(0, getChars.length(), target, 1); in testGetChars()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileCopyHelper.java65 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy() local
66 copyFile(source, target); in copy()
73 OutputStream target = new FileOutputStream(path); in copyToExternalStorage() local
74 copyFile(source, target); in copyToExternalStorage()
79 OutputStream target = new FileOutputStream(path); in copyToExternalStorage() local
80 copyFile(source, target); in copyToExternalStorage()
83 private void copyFile(InputStream source, OutputStream target) throws IOException { in copyFile() argument
87 target.write(buffer, 0, len); in copyFile()
93 if (target != null) { in copyFile()
94 target.close(); in copyFile()
/cts/tools/release-parser/tests/resources/
Dboot-framework.oat.pb.txt42target/product/sailfish/dex_bootjars/system/framework/arm64/boot.art:/system/framework/out/target/…
66target/product/sailfish/dex_bootjars/system/framework/boot.prof --dex-file=out/target/common/obj/J…
Dandroid.test.runner.odex.pb.txt38target/product/sailfish/dex_bootjars/system/framework/arm64/boot.art:out/target/product/sailfish/d…
70target/product/sailfish/dex_bootjars/system/framework/boot.art --dex-file=out/target/common/obj/JA…
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUriGrantsTest.java88 final Uri target = Uri.withAppendedPath(PERM_URI_GRANTING, "foo"); in testGrantPersistableUriPermission() local
89 final ClipData clip = makeSingleClipData(target); in testGrantPersistableUriPermission()
97 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
119 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
121 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
125 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in testGrantPersistableUriPermission()
138 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
147 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
149 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
153 resolver.takePersistableUriPermission(target, in testGrantPersistableUriPermission()
[all …]
DUriGrantsClipboardTest.java52 for (Uri target : GRANTABLE) { in testClipboardWithPermission()
53 Log.d(TAG, "Testing " + target); in testClipboardWithPermission()
54 final ClipData clip = makeSingleClipData(target); in testClipboardWithPermission()
86 for (Uri target : NOT_GRANTABLE) { in testClipboardWithoutPermission()
87 Log.d(TAG, "Testing " + target); in testClipboardWithoutPermission()
88 final ClipData clip = makeSingleClipData(target); in testClipboardWithoutPermission()
/cts/hostsidetests/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/
DUsesSdkTest.kt66 assertSdks(result, min = 1, target = 0) in defaultsNoTag()
81 assertSdks(result, min = 1, target = 1) in defaultsWithTag()
96 assertSdks(result, min = 1, target = 29) in missingMinDefaults()
111 assertSdks(result, min = 29, target = 29) in missingTargetCoercedToMin()
131 assertSdks(result, target = 29, extensions = mapOf(31 to 0)) in takeAndroidTargetSdk()
149 assertSdks(result, min = 1, target = 1, extensions = emptyMap()) in emptyUsesSdk()
165 assertSdks(result, target = 29) in takeLastTargetSdk()
182 assertSdks(result, min = 29, target = 29) in takeLastMinSdk()
202 assertSdks(result, min = 1, target = 1, extensions = mapOf(31 to 0)) in takeLastExtensionSdk()
220 assertSdks(result, min = 1, target = 30, extensions = emptyMap()) in lastDeclarationOverridesAllPrevious()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEmbeddedHierarchyTest.java110 final AccessibilityNodeInfo target = in testEmbeddedViewCanBeFound() local
112 assertNotNull(target); in testEmbeddedViewCanBeFound()
117 final AccessibilityNodeInfo target = in testEmbeddedViewCanFindItsHostParent() local
119 final AccessibilityNodeInfo parent = target.getParent(); in testEmbeddedViewCanFindItsHostParent()
125 final AccessibilityNodeInfo target = in testEmbeddedViewHasCorrectBound() local
127 final AccessibilityNodeInfo parent = target.getParent(); in testEmbeddedViewHasCorrectBound()
132 target.getBoundsInScreen(embeddedViewBoundsInScreen); in testEmbeddedViewHasCorrectBound()
142 final AccessibilityNodeInfo target = in testEmbeddedViewHasCorrectBoundAfterHostViewMove() local
148 target.getBoundsInScreen(oldEmbeddedViewBoundsInScreen); in testEmbeddedViewHasCorrectBoundAfterHostViewMove()
153 target.refresh(); in testEmbeddedViewHasCorrectBoundAfterHostViewMove()
[all …]
/cts/hostsidetests/jvmti/redefining/app/src/android/jvmti/cts/
DJvmtiRedefineClassesTest.java56 public Class<?> target; field in JvmtiRedefineClassesTest.RedefineError
59 public RedefineError(int err, Class<?> target, String base64string) { in RedefineError() argument
60 this(err, target, Base64.getDecoder().decode(base64string)); in RedefineError()
65 this.target = klass; in RedefineError()
87 assertEquals(err.expectedError, redefineClass(err.target, err.dexData)); in checkRedefinition()
290 pushTransformationResult(GOOD_TRANSFORM.target, GOOD_TRANSFORM.dexData); in testSucessfulRetransform()
648 pushTransformationResult(e.target, e.dexData); in checkRetransformation()
649 assertEquals(e.expectedError, retransformClass(e.target)); in checkRetransformation()
737 private void checkClassHasMethods(Class<?> target, ExpectedMethod[] methods) throws Exception { in checkClassHasMethods() argument
739 m.ensureHasMethod(target); in checkClassHasMethods()
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionBlockingMethodTest.java254 private Wrapper(InputConnection target) { in testGetTextAfterCursor() argument
255 super(target, false); in testGetTextAfterCursor()
284 private Wrapper(InputConnection target) { in testGetTextAfterCursorFailWithTimeout() argument
285 super(target, false); in testGetTextAfterCursorFailWithTimeout()
315 private Wrapper(InputConnection target) { in testGetTextAfterCursorFailFastAfterUnbindInput() argument
316 super(target, false); in testGetTextAfterCursorFailFastAfterUnbindInput()
355 private Wrapper(InputConnection target) { in testGetTextBeforeCursor() argument
356 super(target, false); in testGetTextBeforeCursor()
385 private Wrapper(InputConnection target) { in testGetTextBeforeCursorFailWithTimeout() argument
386 super(target, false); in testGetTextBeforeCursorFailWithTimeout()
[all …]
DInputBindingTest.java59 InputBinding target = InputBinding.CREATOR.createFromParcel(p); in testInputBinding() local
60 assertEquals(uid, target.getUid()); in testInputBinding()
61 assertEquals(pid, target.getPid()); in testInputBinding()
62 assertSame(binder, target.getConnectionToken()); in testInputBinding()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java137 final Intent target = new Intent(); in testReadFromParcel() local
138 target.readFromParcel(parcel); in testReadFromParcel()
139 assertEquals(mIntent.getAction(), target.getAction()); in testReadFromParcel()
140 assertEquals(mIntent.getData(), target.getData()); in testReadFromParcel()
141 assertEquals(mIntent.getIdentifier(), target.getIdentifier()); in testReadFromParcel()
142 assertEquals(mIntent.getFlags(), target.getFlags()); in testReadFromParcel()
143 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel()
144 assertEquals(mIntent.getCategories(), target.getCategories()); in testReadFromParcel()
145 assertEquals(mIntent.toURI(), target.toURI()); in testReadFromParcel()
154 final ArrayList<Intent> target = mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME); in testGetParcelableArrayListExtra() local
[all …]
DIntent_FilterComparisonTest.java52 FilterComparison target = new Intent.FilterComparison(mIntent); in testEquals() local
54 assertTrue(mFilterComparison.equals(target)); in testEquals()
55 target = new Intent.FilterComparison(new Intent("test")); in testEquals()
56 assertFalse(mFilterComparison.equals(target)); in testEquals()
DIntent_ShortcutIconResourceTest.java71 ShortcutIconResource target = ShortcutIconResource.CREATOR in testWriteToParcel() local
73 assertEquals(mShortcutIconResource.packageName, target.packageName); in testWriteToParcel()
74 assertEquals(mShortcutIconResource.resourceName, target.resourceName); in testWriteToParcel()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtilsReceiver.java75 final File target; in doAllocation() local
77 target = (i++ % 2) == 0 ? intDir : extDir; in doAllocation()
79 target = intDir; in doAllocation()
82 final File f = makeUniqueFile(target); in doAllocation()
84 if (target == intDir) { in doAllocation()
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java339 Object target = colorAnimator.getTarget(); in testGetTarget() local
340 assertEquals(object, target); in testGetTarget()
381 Object target = new Object() { in testOfFloat_Path() local
389 final ObjectAnimator anim = ObjectAnimator.ofFloat(target, "x", "y", path); in testOfFloat_Path()
435 Object target = new Object() { in testOfInt_Path() local
443 final ObjectAnimator anim = ObjectAnimator.ofInt(target, "x", "y", path); in testOfInt_Path()
494 Object target = new Object() { in testOfMultiFloat_Path() local
499 final ObjectAnimator anim = ObjectAnimator.ofMultiFloat(target, "position", path); in testOfMultiFloat_Path()
554 Object target = new Object() { in testOfMultiFloat() local
559 final ObjectAnimator anim = ObjectAnimator.ofMultiFloat(target, "position", data); in testOfMultiFloat()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceWithHeaders.java64 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument
65 loadedHeaders = target; in onBuildHeaders()
66 loadHeadersFromResource(R.xml.preference_headers, target); in onBuildHeaders()

12345678910>>...16