/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PathTest.java | 61 Path path = new Path(); in testAddRect1() local 62 assertTrue(path.isEmpty()); in testAddRect1() 64 path.addRect(rect, Path.Direction.CW); in testAddRect1() 65 assertFalse(path.isEmpty()); in testAddRect1() 70 Path path = new Path(); in testAddRect2() local 71 assertTrue(path.isEmpty()); in testAddRect2() 72 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW); in testAddRect2() 73 assertFalse(path.isEmpty()); in testAddRect2() 78 Path path = new Path(); in testMoveTo() local 79 path.moveTo(10.0f, 10.0f); in testMoveTo() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ArcMotionTest.java | 38 Path path = arcMotion.getPath(0, 100, 100, 0); in test90Quadrants() local 39 assertPathMatches(expected, path); in test90Quadrants() 42 path = arcMotion.getPath(100, 0, 0, -100); in test90Quadrants() 43 assertPathMatches(expected, path); in test90Quadrants() 46 path = arcMotion.getPath(0, -100, -100, 0); in test90Quadrants() 47 assertPathMatches(expected, path); in test90Quadrants() 50 path = arcMotion.getPath(-100, 0, 0, 100); in test90Quadrants() 51 assertPathMatches(expected, path); in test90Quadrants() 60 Path path; in test345Triangles() local 63 path = arcMotion.getPath(0, 120, 160, 0); in test345Triangles() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 166 for (File path : paths) { in testPrimaryWalkingUpTreeReadWrite() 167 assertNotNull("Valid media must be inserted during CTS", path); in testPrimaryWalkingUpTreeReadWrite() 169 Environment.getExternalStorageState(path)); in testPrimaryWalkingUpTreeReadWrite() 171 assertTrue(path.getAbsolutePath().contains(packageName)); in testPrimaryWalkingUpTreeReadWrite() 174 while (path.getAbsolutePath().contains(packageName)) { in testPrimaryWalkingUpTreeReadWrite() 175 assertDirReadWriteAccess(path); in testPrimaryWalkingUpTreeReadWrite() 176 path = path.getParentFile(); in testPrimaryWalkingUpTreeReadWrite() 186 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree() local 194 if (path.getAbsolutePath().contains(packageName)) { in testMountStatusWalkingUpTree() 195 assertDirReadWriteAccess(path); in testMountStatusWalkingUpTree() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadExternalStorageTest.java | 50 for (File path : paths) { in testAllWalkingUpTreeReadOnly() 51 assertNotNull("Valid media must be inserted during CTS", path); in testAllWalkingUpTreeReadOnly() 53 Environment.getExternalStorageState(path)); in testAllWalkingUpTreeReadOnly() 55 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeReadOnly() 58 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeReadOnly() 59 assertDirReadWriteAccess(path); in testAllWalkingUpTreeReadOnly() 60 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly() 66 assertDirNoWriteAccess(path); in testAllWalkingUpTreeReadOnly() 67 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly() 70 while (path != null) { in testAllWalkingUpTreeReadOnly() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | PathTests.java | 31 Path path = new Path(); in testTextPathWithOffset() local 33 paint.getTextPath(text, 0, text.length(), 0, 0, path); in testTextPathWithOffset() 34 path.offset(0, 50); in testTextPathWithOffset() 35 canvas.drawPath(path, paint); in testTextPathWithOffset() 43 final Path path = new Path(); in testPathApproximate_circle() local 44 path.addCircle(45, 45, 40, Path.Direction.CW); in testPathApproximate_circle() 45 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_circle); in testPathApproximate_circle() 50 final Path path = new Path(); in testPathApproximate_rect() local 51 path.addRect(5, 5, 85, 85, Path.Direction.CW); in testPathApproximate_rect() 52 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_rect); in testPathApproximate_rect() [all …]
|
D | CanvasStateTests.java | 106 Path path = new Path(); in testQuickReject() local 107 assertTrue(canvas.quickReject(path)); in testQuickReject() 110 path.moveTo(30, 0); in testQuickReject() 111 path.lineTo(10, 20); in testQuickReject() 112 path.lineTo(40, 20); in testQuickReject() 113 path.close(); in testQuickReject() 114 assertFalse(canvas.quickReject(path)); in testQuickReject() 119 assertTrue(canvas.quickReject(path)); in testQuickReject() 124 path.reset(); in testQuickReject() 125 path.addCircle(-100, -100, 50, Path.Direction.CW); in testQuickReject() [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContract_AllUriTest.java | 240 private static Uri getUri(String[] path) { in getUri() argument 241 return Uri.parse(path[0]); in getUri() 244 private static boolean supportsQuery(String[] path) { in supportsQuery() argument 245 if (path.length == 1) { in supportsQuery() 248 return !(path[1].contains("-") || path[1].contains("!")); in supportsQuery() 251 private static boolean supportsInsert(String[] path) { in supportsInsert() argument 252 return (path.length) >= 2 && path[1].contains("i"); in supportsInsert() 255 private static boolean supportsUpdate(String[] path) { in supportsUpdate() argument 256 return (path.length) >= 2 && path[1].contains("u"); in supportsUpdate() 259 private static boolean supportsDelete(String[] path) { in supportsDelete() argument [all …]
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/ |
D | FileUtils.java | 54 public static void assertDirIsNotAccessible(String path) { in assertDirIsNotAccessible() argument 58 new FileInputStream(new File(path, "FILE_DOES_NOT_EXIST")); in assertDirIsNotAccessible() 63 assertThat(new File(path).canExecute()).isFalse(); in assertDirIsNotAccessible() 66 public static void assertDirDoesNotExist(String path) { in assertDirDoesNotExist() argument 67 File directory = new File(path); in assertDirDoesNotExist() 85 Os.mkdir(path, 0700); in assertDirDoesNotExist() 86 fail("Should not able to mkdir() on " + path); in assertDirDoesNotExist() 88 assertEquals(e.errno, OsConstants.EACCES, "Error on path: " + path); in assertDirDoesNotExist() 94 public static void assertDirIsAccessible(String path) { in assertDirIsAccessible() argument 98 assertFileDoesNotExist(path, "FILE_DOES_NOT_EXIST"); in assertDirIsAccessible() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTest.java | 85 private static ByteBuffer mmap(AssetManager am, String path) { in mmap() argument 87 try (InputStream is = am.open(path)) { in mmap() 158 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testBuilder_buffer() local 160 ByteBuffer buffer = mmap(am, path); in testBuilder_buffer() 163 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer() 164 assertEquals(path, slant, font.getStyle().getSlant()); in testBuilder_buffer() 165 assertEquals(path, 0, font.getTtcIndex()); in testBuilder_buffer() 166 assertNullOrEmpty(path, font.getAxes()); in testBuilder_buffer() 179 String path = FontTestUtil.getTtcFontFileInAsset(); in testBuilder_buffer_ttc() local 181 ByteBuffer buffer = mmap(am, path); in testBuilder_buffer_ttc() [all …]
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | VirtualPath.java | 34 public static LocalFilePath get(String path) { in get() argument 35 return new LocalFilePath(path); in get() 59 private final String path; field in VirtualPath.LocalFilePath 61 LocalFilePath(String path) { in LocalFilePath() argument 62 this.path = path; in LocalFilePath() 66 return new File(path); in toFile() 70 return new LocalFilePath(path + "/" + relative); in resolve() 75 return new FileInputStream(path); in newInputStream() 80 return path; in toString() 109 ResourcePath(ClassLoader classLoader, String path) throws IOException { in ResourcePath() argument [all …]
|
D | ApiDocumentParser.java | 35 private ApiParser getApiParser(VirtualPath path) { in getApiParser() argument 36 if (path.toString().endsWith(".txt")) { in getApiParser() 41 } else if (path.toString().endsWith(".api")) { in getApiParser() 43 } else if (path.toString().endsWith(".api.gz")) { in getApiParser() 46 throw new IllegalStateException("Unrecognized file type: " + path); in getApiParser() 50 public Stream<JDiffClassDescription> parseAsStream(VirtualPath path) { in parseAsStream() argument 51 ApiParser parser = getApiParser(path); in parseAsStream() 53 return parser.parseAsStream(path); in parseAsStream()
|
/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_LinkerNamespacesTest.cpp | 64 static bool is_directory(const char* path) { in is_directory() argument 66 if (stat(path, &sb) != -1) { in is_directory() 92 const std::string& path) { in is_library_on_path() argument 94 if (!android::base::EndsWith(path, tail)) return false; in is_library_on_path() 95 return library_search_paths.count(path.substr(0, path.size() - tail.size())) > 0; in is_library_on_path() 98 static std::string try_dlopen(const std::string& path) { in try_dlopen() argument 100 void *handle = dlopen(path.c_str(), RTLD_NOW); in try_dlopen() 114 static std::string load_library(JNIEnv* env, jclass clazz, const std::string& path, in load_library() argument 116 std::string error = try_dlopen(path); in load_library() 119 if (android::base::EndsWith(path, '/' + kWebViewPlatSupportLib)) { in load_library() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 59 for (File path : paths) { in testAllWalkingUpTreeNoAccess() 60 if (path == null) continue; in testAllWalkingUpTreeNoAccess() 62 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeNoAccess() 65 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeNoAccess() 66 assertDirReadWriteAccess(path); in testAllWalkingUpTreeNoAccess() 67 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess() 71 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testAllWalkingUpTreeNoAccess() 72 assertDirNoAccess(path); in testAllWalkingUpTreeNoAccess() 73 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess() 85 for (File path : mountPaths) { in testMountPointsNotReadable() [all …]
|
D | CommonExternalStorageTest.java | 108 for (File path : paths) { in testAllPackageDirsWritable() 109 assertNotNull("Valid media must be inserted during CTS", path); in testAllPackageDirsWritable() 111 Environment.getExternalStorageState(path)); in testAllPackageDirsWritable() 113 assertDirReadWriteAccess(path); in testAllPackageDirsWritable() 115 final File directChild = new File(path, "directChild"); in testAllPackageDirsWritable() 116 final File subdir = new File(path, "subdir"); in testAllPackageDirsWritable() 117 final File subdirChild = new File(path, "subdirChild"); in testAllPackageDirsWritable() 134 for (File path : paths) { in testAllPackageDirsWritable() 135 deleteContents(path); in testAllPackageDirsWritable() 264 public static void assertDirReadOnlyAccess(File path) { in assertDirReadOnlyAccess() argument [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | GestureDescriptionTest.java | 171 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local 172 path.moveTo(i, i); in testAddStroke_allowUpToMaxPaths() 173 path.lineTo(10 + i, 10 + i); in testAddStroke_allowUpToMaxPaths() 174 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths() 176 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local 177 path.moveTo(10, 10); in testAddStroke_allowUpToMaxPaths() 178 path.lineTo(20, 20); in testAddStroke_allowUpToMaxPaths() 180 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths() 188 Path path = new Path(); in testAddStroke_withDurationTooLong_shouldThrow() local 189 path.moveTo(10, 10); in testAddStroke_withDurationTooLong_shouldThrow() [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 | 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 | 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
|
/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 …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 321 public String getAssetUrl(String path) { in getAssetUrl() argument 324 sb.append(path); in getAssetUrl() 333 public String getDelayedAssetUrl(String path) { in getDelayedAssetUrl() argument 334 return getDelayedAssetUrl(path, DELAY_MILLIS); in getDelayedAssetUrl() 343 public String getDelayedAssetUrl(String path, int delayMs) { in getDelayedAssetUrl() argument 349 sb.append(path); in getDelayedAssetUrl() 358 public String getAuthAssetUrl(String path) { in getAuthAssetUrl() argument 362 sb.append(path); in getAuthAssetUrl() 372 public String getRedirectingAssetUrl(String path) { in getRedirectingAssetUrl() argument 373 return getRedirectingAssetUrl(path, 1); in getRedirectingAssetUrl() [all …]
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | SupportedBitstreamsProcessor.java | 67 public Map<String, Boolean> getDecoderCapabilitiesForPath(String path) { in getDecoderCapabilitiesForPath() argument 68 if (mDecodersForPath.containsKey(path)) { in getDecoderCapabilitiesForPath() 69 return mDecodersForPath.get(path); in getDecoderCapabilitiesForPath() 88 String path = lines[i++]; in process() local 95 mSupportedBitstreams.add(path); in process() 98 if (mDecodersForPath.containsKey(path)) { in process() 99 decoderCapabilities = mDecodersForPath.get(path); in process() 101 mDecodersForPath.put(path, decoderCapabilities = new HashMap<>()); in process()
|
/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);
|
/cts/tools/incremental-cts/ |
D | incremental_deqp.py | 409 test_file = os.path.join(device_deqp_dir, self.get_test_list_name(test)) 410 log_file = os.path.join(device_deqp_out_dir, self.get_test_log_name(test)) 411 perf_file = os.path.join(device_deqp_out_dir, self.get_test_perf_name(test)) 412 deqp_binary = os.path.join(device_deqp_dir, self.get_test_binary_name(test)) 423 host_log_file = os.path.join(self._work_dir, self.get_test_log_name(test)) 425 if not self.check_test_log(os.path.join(self._test_dir, self.get_test_list_name(test)), 436 perf_file = os.path.join(device_deqp_out_dir, self.get_test_perf_name(test)) 437 dump_file = os.path.join(self._work_dir, self.get_perf_dump_name(test)) 512 test_dir = os.path.dirname(os.path.abspath(__file__)) 515 extra_deqp_deps_file = os.path.join(test_dir, 'extra_deqp_dependency.txt') [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/hostsidetests/appsecurity/test-apps/ApkVerityTestApp/src/android/appsecurity/cts/apkveritytestapp/ |
D | InstalledFilesCheck.java | 43 private static native boolean hasFsverityNative(@NonNull String path); in hasFsverityNative() argument 47 for (String path : getInterestedFiles()) { in testFilesHaveFsverity() 48 assertTrue("Expect file installed: " + path, new File(path).exists()); in testFilesHaveFsverity() 49 assertTrue("Expect to have fs-verity: " + path, hasFsverityNative(path)); in testFilesHaveFsverity()
|