/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | AccessPermissionWithDiffSigTest.java | 111 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/ |
D | CopyPasteTest.java | 57 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/ |
D | PdfRendererTest.java | 301 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/ |
D | ChangeBoundsTest.java | 242 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/ |
D | IntrinsicColorMatrix.java | 38 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()
|
D | IntrinsicHistogram.java | 62 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/ |
D | ClipboardManagerListenerActivity.java | 46 public synchronized void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument 47 mClipboardManager.setPrimaryClip(clip); in setPrimaryClip()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 82 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/ |
D | MockJobService.java | 82 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/ |
D | RegionTest.java | 1357 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/ |
D | IntentReceiverActivity.java | 86 ClipData clip = ClipData.newPlainText("", text); in onCreate() local 89 clipboard.setPrimaryClip(clip); in onCreate()
|
/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 415 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)
|