/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PathTest.java | 45 Path path = new Path(); in testAddRect1() local 46 assertTrue(path.isEmpty()); in testAddRect1() 48 path.addRect(rect, Path.Direction.CW); in testAddRect1() 49 assertFalse(path.isEmpty()); in testAddRect1() 55 Path path = new Path(); in testAddRect2() local 56 assertTrue(path.isEmpty()); in testAddRect2() 57 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW); in testAddRect2() 58 assertFalse(path.isEmpty()); in testAddRect2() 63 Path path = new Path(); in testMoveTo() local 64 path.moveTo(10.0f, 10.0f); in testMoveTo() [all …]
|
D | DiscretePathEffectTest.java | 51 Path path = new Path(); in testDiscretePathEffect() local 52 path.moveTo(START_X, COORD_Y); in testDiscretePathEffect() 53 path.lineTo(END_X, COORD_Y); in testDiscretePathEffect() 59 canvas.drawPath(path, paint); in testDiscretePathEffect() 67 canvas.drawPath(path, paint); in testDiscretePathEffect() 72 canvas.drawPath(path, paint); in testDiscretePathEffect()
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 137 for (File path : paths) { in testPrimaryWalkingUpTreeReadWrite() 138 assertNotNull("Valid media must be inserted during CTS", path); in testPrimaryWalkingUpTreeReadWrite() 140 Environment.getExternalStorageState(path)); in testPrimaryWalkingUpTreeReadWrite() 142 assertTrue(path.getAbsolutePath().contains(packageName)); in testPrimaryWalkingUpTreeReadWrite() 145 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testPrimaryWalkingUpTreeReadWrite() 146 assertDirReadWriteAccess(path); in testPrimaryWalkingUpTreeReadWrite() 147 path = path.getParentFile(); in testPrimaryWalkingUpTreeReadWrite() 172 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree() local 176 assertDirReadWriteAccess(path); in testMountStatusWalkingUpTree() 177 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState(path)); in testMountStatusWalkingUpTree() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadExternalStorageTest.java | 49 for (File path : paths) { in testAllWalkingUpTreeReadOnly() 50 assertNotNull("Valid media must be inserted during CTS", path); in testAllWalkingUpTreeReadOnly() 52 Environment.getExternalStorageState(path)); in testAllWalkingUpTreeReadOnly() 54 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeReadOnly() 57 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeReadOnly() 58 assertDirReadWriteAccess(path); in testAllWalkingUpTreeReadOnly() 59 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly() 63 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testAllWalkingUpTreeReadOnly() 64 assertDirReadOnlyAccess(path); in testAllWalkingUpTreeReadOnly() 65 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | CommonExternalStorageTest.java | 107 for (File path : paths) { in testAllPackageDirsWritable() 108 assertNotNull("Valid media must be inserted during CTS", path); in testAllPackageDirsWritable() 110 Environment.getExternalStorageState(path)); in testAllPackageDirsWritable() 112 assertDirReadWriteAccess(path); in testAllPackageDirsWritable() 114 final File directChild = new File(path, "directChild"); in testAllPackageDirsWritable() 115 final File subdir = new File(path, "subdir"); in testAllPackageDirsWritable() 116 final File subdirChild = new File(path, "subdirChild"); in testAllPackageDirsWritable() 127 for (File path : paths) { in testAllPackageDirsWritable() 128 deleteContents(path); in testAllPackageDirsWritable() 202 public static void assertDirReadOnlyAccess(File path) { in assertDirReadOnlyAccess() argument [all …]
|
D | ExternalStorageTest.java | 63 for (File path : paths) { in testAllWalkingUpTreeNoAccess() 64 if (path == null) continue; in testAllWalkingUpTreeNoAccess() 66 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeNoAccess() 69 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeNoAccess() 70 assertDirReadWriteAccess(path); in testAllWalkingUpTreeNoAccess() 71 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess() 75 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testAllWalkingUpTreeNoAccess() 76 assertDirNoAccess(path); in testAllWalkingUpTreeNoAccess() 77 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess() 88 for (File path : mountPaths) { in testMountPointsNotReadable() [all …]
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSAllocationTest.java | 30 native boolean typedTest(String path); in typedTest() argument 35 native boolean test1DCopy(String path); in test1DCopy() argument 40 native boolean test2DCopy(String path); in test2DCopy() argument 45 native boolean test3DCopy(String path); in test3DCopy() argument 50 native boolean test1DCopyPadded(String path); in test1DCopyPadded() argument 55 native boolean test2DCopyPadded(String path); in test2DCopyPadded() argument 60 native boolean test3DCopyPadded(String path); in test3DCopyPadded() argument 65 native boolean testSetElementAt(String path); in testSetElementAt() argument
|
D | RSObjectTest.java | 30 native boolean testClearObjectElement(String path); in testClearObjectElement() argument 35 native boolean testClearObjectType(String path); in testClearObjectType() argument 40 native boolean testClearObjectAllocation(String path); in testClearObjectAllocation() argument 45 native boolean testClearObjectSampler(String path); in testClearObjectSampler() argument 50 native boolean testClearObjectScript(String path); in testClearObjectScript() argument
|
D | RSElementTest.java | 30 native boolean testCreatePixel(String path); in testCreatePixel() argument 35 native boolean testCreateVector(String path); in testCreateVector() argument 40 native boolean testPrebuiltElements(String path); in testPrebuiltElements() argument 45 native boolean testIsCompatible(String path); in testIsCompatible() argument 50 native boolean testElementBuilder(String path); in testElementBuilder() argument
|
D | RSForEachTest.java | 30 native boolean testForEach(String path); in testForEach() argument 35 native boolean testMultipleForEach(String path); in testMultipleForEach() argument 40 native boolean testNoRoot(String path); in testNoRoot() argument
|
D | RSTypeTest.java | 30 native boolean testCreate(String path); in testCreate() argument 35 native boolean testGet(String path); in testGet() argument 40 native boolean testGetCount(String path); in testGetCount() argument
|
D | RSScriptTest.java | 30 native boolean testSet(String path); in testSet() argument 35 native boolean testInstance(String path); in testInstance() argument 40 native boolean testVector(String path); in testVector() argument
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 16 import os.path 60 tests += [(d,s[:-3],os.path.join("tests", d, s)) 61 for s in os.listdir(os.path.join("tests",d)) 80 camera_ids_path = os.path.join(topdir, "camera_ids.txt") 83 os.path.join(os.getcwd(),"tools/get_camera_ids.py"), out_arg, 98 os.mkdir(os.path.join(topdir, camera_id)) 100 os.mkdir(os.path.join(topdir, camera_id, d)) 113 out_path = os.path.join(topdir, camera_id, scene+".jpg") 117 os.path.join(os.getcwd(),"tools/validate_scene.py"), 123 cmd = ['python', os.path.join(os.getcwd(),testpath)] + \ [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_object.cpp | 40 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() local 42 mRS->init(path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 43 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 68 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() local 70 mRS->init(path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 71 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 96 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() local 98 mRS->init(path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() 99 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() 125 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSObjectTest_testClearObjectSampler() local [all …]
|
D | rs_jni_script.cpp | 50 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSScriptTest_testSet() local 52 mRS->init(path); in Java_android_cts_rscpp_RSScriptTest_testSet() 53 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSScriptTest_testSet() 90 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSScriptTest_testInstance() local 92 mRS->init(path); in Java_android_cts_rscpp_RSScriptTest_testInstance() 93 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSScriptTest_testInstance() 162 const char * path = env->GetStringUTFChars(pathObj, nullptr); in Java_android_cts_rscpp_RSScriptTest_testVector() local 164 mRS->init(path); in Java_android_cts_rscpp_RSScriptTest_testVector() 165 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSScriptTest_testVector()
|
D | rs_jni.cpp | 69 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSInitTest_initTest() local 73 r &= rs->init(path); in Java_android_cts_rscpp_RSInitTest_initTest() 76 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSInitTest_initTest() 89 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSBlurTest_blurTest() local 94 rs->init(path); in Java_android_cts_rscpp_RSBlurTest_blurTest() 116 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSBlurTest_blurTest() 128 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() local 135 rs->init(path); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() 162 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() 175 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSLUTTest_lutTest() local [all …]
|
/cts/tests/tests/drm/lib/ |
D | TestPlugin.h | 31 DrmConstraints* onGetConstraints(int uniqueId, const String8* path, int action); 33 DrmMetadata* onGetMetadata(int uniqueId, const String8* path); 41 bool onCanHandle(int uniqueId, const String8& path); 50 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 54 int onCheckRightsStatus(int uniqueId, const String8& path, int action); 62 int uniqueId, const String8& path, int action, const ActionDescription& description); 64 status_t onRemoveRights(int uniqueId, const String8& path);
|
D | TestPlugin.cpp | 55 DrmMetadata* TestPlugIn::onGetMetadata(int uniqueId, const String8* path) { in onGetMetadata() argument 60 int uniqueId, const String8* path, int action) { in onGetConstraints() argument 95 bool TestPlugIn::onCanHandle(int uniqueId, const String8& path) { in onCanHandle() argument 99 String8 TestPlugIn::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { in onGetOriginalMimeType() argument 104 int uniqueId, const String8& path, const String8& mimeType) { in onGetDrmObjectType() argument 108 int TestPlugIn::onCheckRightsStatus(int uniqueId, const String8& path, int action) { in onCheckRightsStatus() argument 123 bool TestPlugIn::onValidateAction(int uniqueId, const String8& path, in onValidateAction() argument 128 status_t TestPlugIn::onRemoveRights(int uniqueId, const String8& path) { in onRemoveRights() argument
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 346 public String getAssetUrl(String path) { in getAssetUrl() argument 349 sb.append(path); in getAssetUrl() 358 public String getDelayedAssetUrl(String path) { in getDelayedAssetUrl() argument 359 return getDelayedAssetUrl(path, DELAY_MILLIS); in getDelayedAssetUrl() 368 public String getDelayedAssetUrl(String path, int delayMs) { in getDelayedAssetUrl() argument 374 sb.append(path); in getDelayedAssetUrl() 383 public String getAuthAssetUrl(String path) { in getAuthAssetUrl() argument 387 sb.append(path); in getAuthAssetUrl() 397 public String getRedirectingAssetUrl(String path) { in getRedirectingAssetUrl() argument 398 return getRedirectingAssetUrl(path, 1); in getRedirectingAssetUrl() [all …]
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileUtils.java | 105 private native static boolean fileHasOnly(String path, in fileHasOnly() argument 108 public boolean fileHasOnly(String path) { in fileHasOnly() argument 109 return fileHasOnly(path, Ints.toArray(mCapabilities)); in fileHasOnly() 119 public native static boolean getFileStatus(String path, FileStatus status, boolean statLinks); in getFileStatus() argument 125 public native static boolean hasSetUidCapability(String path); in hasSetUidCapability() argument 127 public native static boolean hasSetGidCapability(String path); in hasSetGidCapability() argument
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | PathShapeTest.java | 48 Path path = new Path(); in testDraw() local 49 path.moveTo(50, 0); in testDraw() 50 path.lineTo(0, 50); in testDraw() 51 path.lineTo(50, 100); in testDraw() 52 path.lineTo(100, 50); in testDraw() 53 path.close(); in testDraw() 54 PathShape pathShape = new PathShape(path, SHAPE_SIZE, SHAPE_SIZE); in testDraw()
|
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
D | MultiUserStorageTest.java | 70 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { in testWriteIsolatedStorage() 71 assertNotNull("Valid media must be inserted during CTS", path); in testWriteIsolatedStorage() 73 Environment.getExternalStorageState(path)); in testWriteIsolatedStorage() 75 writeInt(new File(path, FILE_SINGLETON), uid); in testWriteIsolatedStorage() 94 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { in testReadIsolatedStorage() 95 assertNotNull("Valid media must be inserted during CTS", path); in testReadIsolatedStorage() 97 Environment.getExternalStorageState(path)); in testReadIsolatedStorage() 99 assertEquals("Unexpected value in singleton file at " + path, uid, in testReadIsolatedStorage() 100 readInt(new File(path, FILE_SINGLETON))); in testReadIsolatedStorage()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | UriTest.java | 33 .path("/rss/") in testParcelling() 130 .path("/test/") in testEqualsAndHashCode() 300 String path, String query, String fragment) { in testHierarchical() argument 306 if (path != null) { in testHierarchical() 307 sb.append(path); in testHierarchical() 328 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 330 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 337 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 339 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 348 .encodedPath(path) in testHierarchical() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | PathClippingTests.java | 66 Path path = new Path(); 67 path.addCircle(30, 30, 50, Path.Direction.CW); 68 path.addCircle(30, 30, 30, Path.Direction.CCW); 70 canvas.clipPath(path); 147 Path path = new Path(); in testTextClip() 148 path.addCircle(0, 45, 45, Path.Direction.CW); in testTextClip() 149 path.addCircle(90, 45, 45, Path.Direction.CW); in testTextClip() 150 canvas.clipPath(path); in testTextClip()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | FileObserverTest.java | 200 public String path; field in FileObserverTest.FileEvent 202 public FileEvent(final int event, final String path) { in FileEvent() argument 204 this.path = path; in FileEvent() 220 public MockFileObserver(String path) { in MockFileObserver() argument 221 super(path); in MockFileObserver() 224 public MockFileObserver(String path, int mask) { in MockFileObserver() argument 225 super(path, mask); in MockFileObserver() 229 public synchronized void onEvent(int event, String path) { in onEvent() argument 230 mEvents.add(new FileEvent(event, path)); in onEvent()
|