Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java111 private void assertReadingClipNotAllowed(ClipData clip) { in assertReadingClipNotAllowed() argument
112 assertReadingClipNotAllowed(clip, null); in assertReadingClipNotAllowed()
115 private void assertReadingClipNotAllowed(ClipData clip, String msg) { in assertReadingClipNotAllowed() argument
116 for (int i=0; i<clip.getItemCount(); i++) { in assertReadingClipNotAllowed()
117 ClipData.Item item = clip.getItemAt(i); in assertReadingClipNotAllowed()
215 private void assertWritingClipNotAllowed(ClipData clip) { in assertWritingClipNotAllowed() argument
216 assertWritingClipNotAllowed(clip, null); in assertWritingClipNotAllowed()
219 private void assertWritingClipNotAllowed(ClipData clip, String msg) { in assertWritingClipNotAllowed() argument
220 for (int i=0; i<clip.getItemCount(); i++) { in assertWritingClipNotAllowed()
221 ClipData.Item item = clip.getItemAt(i); in assertWritingClipNotAllowed()
[all …]
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DCopyPasteTest.java57 ClipData clip = ClipData.newPlainText(""/*label*/, INITIAL_TEXT); in testCanReadAcrossProfiles() local
58 mClipboard.setPrimaryClip(clip); in testCanReadAcrossProfiles()
67 ClipData clip = ClipData.newPlainText(""/*label*/, INITIAL_TEXT); in testCannotReadAcrossProfiles() local
68 mClipboard.setPrimaryClip(clip); in testCannotReadAcrossProfiles()
85 ClipData clip = mClipboard.getPrimaryClip(); in getTextFromClipboard() local
86 if (clip == null) { in getTextFromClipboard()
89 ClipData.Item item = clip.getItemAt(0); in getTextFromClipboard()
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfRendererTest.java301 Rect clip = new Rect(20, 20, A4_WIDTH_PTS - 20, A4_HEIGHT_PTS - 20); in render45degreeRotationTranslationAndScaleAndClip() local
303 renderAndCompare(A4_WIDTH_PTS, A4_HEIGHT_PTS, A4_PORTRAIT, clip, transform, in render45degreeRotationTranslationAndScaleAndClip()
315 Rect clip = new Rect(20, 20, A4_WIDTH_PTS - 50, A4_HEIGHT_PTS - 50); in renderWithClip() local
316 renderAndCompare(A4_WIDTH_PTS, A4_HEIGHT_PTS, A4_PORTRAIT, clip, null, in renderWithClip()
322 Rect clip = new Rect(A4_WIDTH_PTS / 2, A4_HEIGHT_PTS / 2, A4_WIDTH_PTS / 2, in renderWithAllClipped() local
324 renderAndCompare(A4_WIDTH_PTS, A4_HEIGHT_PTS, A4_PORTRAIT, clip, null, in renderWithAllClipped()
330 Rect clip = new Rect(0, 0, A4_WIDTH_PTS + 20, A4_HEIGHT_PTS + 20); in renderWithBadLowerCornerOfClip() local
332 () -> renderWithTransform(A4_WIDTH_PTS, A4_HEIGHT_PTS, A4_PORTRAIT, clip, null, in renderWithBadLowerCornerOfClip()
338 Rect clip = new Rect(-20, -20, A4_WIDTH_PTS, A4_HEIGHT_PTS); in renderWithBadUpperCornerOfClip() local
340 () -> renderWithTransform(A4_WIDTH_PTS, A4_HEIGHT_PTS, A4_PORTRAIT, clip, null, in renderWithBadUpperCornerOfClip()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeBoundsTest.java242 redAndGreen.red.clip != null in waitForClipIsMiddle()
243 && redAndGreen.green.clip != null in waitForClipIsMiddle()
244 && redAndGreen.red.clip.width() > middleSize in waitForClipIsMiddle()
245 && redAndGreen.red.clip.height() > middleSize in waitForClipIsMiddle()
246 && redAndGreen.green.clip.width() > middleSize in waitForClipIsMiddle()
247 && redAndGreen.green.clip.height() > middleSize in waitForClipIsMiddle()
282 return start.red.clip.width() < smallSize + errorPx in isRestartingClip()
283 && start.green.clip.width() < smallSize + errorPx; in isRestartingClip()
287 return start.red.clip.width() > largeSize - errorPx in isRestartingClip()
288 && start.green.clip.width() > largeSize - errorPx; in isRestartingClip()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicColorMatrix.java38 boolean clip) { in subtest() argument
59 if (clip) { in subtest()
68 if (clip) { in subtest()
82 boolean clip) { in test() argument
134 dtin, i, dtout, j, clip); in test()
DIntrinsicHistogram.java62 private void testNorm(int inVSize, int outVSize, int w, int h, boolean clip) { in testNorm() argument
76 if (clip) { in testNorm()
185 private void testDot(int inVSize, int w, int h, boolean clip) { in testDot() argument
204 if (clip) { in testDot()
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerListenerActivity.java46 public synchronized void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument
47 mClipboardManager.setPrimaryClip(clip); in setPrimaryClip()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java82 ClipData clip = params.getClipData(); in onStartJob() local
83 if (clip != null) { in onStartJob()
84 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
86 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java82 ClipData clip = params.getClipData(); in onStartJob() local
83 if (clip != null) { in onStartJob()
84 permCheckRead = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
86 permCheckWrite = checkUriPermission(clip.getItemAt(0).getUri(), Process.myPid(), in onStartJob()
/cts/tests/tests/graphics/src/android/graphics/cts/
DRegionTest.java1357 Region clip = new Region(0, 0, 10, 10); in testGetBoundaryPath1() local
1360 assertTrue(mRegion.setPath(path, clip)); in testGetBoundaryPath1()
1390 Region clip = new Region(); in testSetPath() local
1392 assertFalse(mRegion.setPath(path, clip)); in testSetPath()
1396 clip = new Region(0, 0, 10, 10); in testSetPath()
1397 assertFalse(mRegion.setPath(path, clip)); in testSetPath()
1400 clip = new Region(); in testSetPath()
1403 assertFalse(mRegion.setPath(path, clip)); in testSetPath()
1406 clip = new Region(); in testSetPath()
1408 clip = new Region(0, 0, 10, 10); in testSetPath()
[all …]
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DIntentReceiverActivity.java86 ClipData clip = ClipData.newPlainText("", text); in onCreate() local
89 clipboard.setPrimaryClip(clip); in onCreate()
/cts/apps/CameraITS/pymodules/its/
Dimage.py415 img = (((img.reshape(h,w,3) - black_levels) * scale) * gains).clip(0.0,1.0)
416 img = numpy.dot(img.reshape(w*h,3), ccm.T).reshape(h,w,3).clip(0.0,1.0)
470 flt = numpy.dot(flt.reshape(w*h,3), ccm_yuv_to_rgb.T).clip(0, 255)