/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PathTest.java | 60 Path path = new Path(); in testAddRect1() local 61 assertTrue(path.isEmpty()); in testAddRect1() 63 path.addRect(rect, Path.Direction.CW); in testAddRect1() 64 assertFalse(path.isEmpty()); in testAddRect1() 69 Path path = new Path(); in testAddRect2() local 70 assertTrue(path.isEmpty()); in testAddRect2() 71 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW); in testAddRect2() 72 assertFalse(path.isEmpty()); in testAddRect2() 77 Path path = new Path(); in testMoveTo() local 78 path.moveTo(10.0f, 10.0f); in testMoveTo() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ArcMotionTest.java | 37 Path path = arcMotion.getPath(0, 100, 100, 0); in test90Quadrants() local 38 assertPathMatches(expected, path); in test90Quadrants() 41 path = arcMotion.getPath(100, 0, 0, -100); in test90Quadrants() 42 assertPathMatches(expected, path); in test90Quadrants() 45 path = arcMotion.getPath(0, -100, -100, 0); in test90Quadrants() 46 assertPathMatches(expected, path); in test90Quadrants() 49 path = arcMotion.getPath(-100, 0, 0, 100); in test90Quadrants() 50 assertPathMatches(expected, path); in test90Quadrants() 59 Path path; in test345Triangles() local 62 path = arcMotion.getPath(0, 120, 160, 0); in test345Triangles() [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() 64 while (path != null) { in testAllWalkingUpTreeReadOnly() 65 if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testAllWalkingUpTreeReadOnly() 66 assertDirReadOnlyAccess(path); in testAllWalkingUpTreeReadOnly() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | PathTests.java | 30 Path path = new Path(); in testTextPathWithOffset() local 32 paint.getTextPath(text, 0, text.length(), 0, 0, path); in testTextPathWithOffset() 33 path.offset(0, 50); in testTextPathWithOffset() 34 canvas.drawPath(path, paint); in testTextPathWithOffset() 42 final Path path = new Path(); in testPathApproximate_circle() local 43 path.addCircle(45, 45, 40, Path.Direction.CW); in testPathApproximate_circle() 44 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_circle); in testPathApproximate_circle() 49 final Path path = new Path(); in testPathApproximate_rect() local 50 path.addRect(5, 5, 85, 85, Path.Direction.CW); in testPathApproximate_rect() 51 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_rect); in testPathApproximate_rect() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/ |
D | WriteExternalStorageTest.java | 147 for (File path : paths) { in testPrimaryWalkingUpTreeReadWrite() 148 assertNotNull("Valid media must be inserted during CTS", path); in testPrimaryWalkingUpTreeReadWrite() 150 Environment.getExternalStorageState(path)); in testPrimaryWalkingUpTreeReadWrite() 152 assertTrue(path.getAbsolutePath().contains(packageName)); in testPrimaryWalkingUpTreeReadWrite() 155 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) { in testPrimaryWalkingUpTreeReadWrite() 156 assertDirReadWriteAccess(path); in testPrimaryWalkingUpTreeReadWrite() 157 path = path.getParentFile(); in testPrimaryWalkingUpTreeReadWrite() 182 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree() local 186 assertDirReadWriteAccess(path); in testMountStatusWalkingUpTree() 187 assertEquals(Environment.MEDIA_MOUNTED, Environment.getExternalStorageState(path)); in testMountStatusWalkingUpTree() [all …]
|
/cts/tests/tests/provider/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/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
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
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() 245 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/accessibilityservice/src/android/accessibilityservice/cts/ |
D | GestureDescriptionTest.java | 144 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local 145 path.moveTo(i, i); in testAddStroke_allowUpToMaxPaths() 146 path.lineTo(10 + i, 10 + i); in testAddStroke_allowUpToMaxPaths() 147 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths() 149 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local 150 path.moveTo(10, 10); in testAddStroke_allowUpToMaxPaths() 151 path.lineTo(20, 20); in testAddStroke_allowUpToMaxPaths() 153 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths() 160 Path path = new Path(); in testAddStroke_withDurationTooLong_shouldThrow() local 161 path.moveTo(10, 10); in testAddStroke_withDurationTooLong_shouldThrow() [all …]
|
/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_LinkerNamespacesTest.cpp | 72 static bool is_directory(const char* path) { in is_directory() argument 74 if (stat(path, &sb) != -1) { in is_directory() 100 const std::string& path) { in is_library_on_path() argument 102 if (!android::base::EndsWith(path, tail)) return false; in is_library_on_path() 103 return library_search_paths.count(path.substr(0, path.size() - tail.size())) > 0; in is_library_on_path() 106 static bool check_lib(const std::string& path, in check_lib() argument 110 std::unique_ptr<void, decltype(&dlclose)> handle(dlopen(path.c_str(), RTLD_NOW), dlclose); in check_lib() 118 std::string baselib = basename(path.c_str()); in check_lib() 120 is_library_on_path(library_search_paths, baselib, path)) { in check_lib() 122 errors->push_back("The library \"" + path + in check_lib() [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()
|
/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);
|
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/hostsidetests/api/src/com/android/cts/api/ |
D | FilePuller.java | 50 PulledFile pullFromDevice(String path, String name) { in pullFromDevice() argument 59 device.executeShellCommand(String.format("cat %s", path), in pullFromDevice() 67 throw new RuntimeException("Error pulling file " + path, e); in pullFromDevice() 76 throw new RuntimeException("Error saving file " + path, in pullFromDevice() 87 return new PulledFile(outputFile, path); in pullFromDevice() 91 throw new RuntimeException("Failed to pull file " + path, e); in pullFromDevice()
|
D | UnofficialApisUsageTest.java | 64 public final String path; field in UnofficialApisUsageTest.JavaModule 67 private JavaModule(String name, String path, Type type) { in JavaModule() argument 69 this.path = path; in JavaModule() 77 String path = line.substring(0, separatorPos); in newPackageFromLine() local 79 return new JavaModule(name, path, Type.APK); in newPackageFromLine() 87 String path = tokens[4]; in newLibraryFromLine() local 88 return new JavaModule(name, path, type.equals("(jar)") ? Type.JAR : Type.APK); in newLibraryFromLine() 106 private String getRealPath(String path) { in getRealPath() argument 108 return device.executeShellCommand(String.format("realpath %s", path)); in getRealPath() 168 .filter(module -> getRealPath(module.path).startsWith("/vendor")) in testNonApiReferences() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | GestureUtils.java | 57 return new StrokeDescription(path(point), 0, ViewConfiguration.getTapTimeout(), true); in pointerDown() 61 return lastStroke.continueStroke(path(lastPointOf(lastStroke)), in pointerUp() 71 return new StrokeDescription(path(point), 0, ViewConfiguration.getTapTimeout()); in click() 75 return new StrokeDescription(path(point), 0, in longClick() 84 return new StrokeDescription(path(from, to), 0, duration); in swipe() 89 path(lastPointOf(from), to), in drag() 93 public static Path path(PointF first, PointF... rest) { in path() method in GestureUtils 94 Path path = new Path(); in path() local 95 path.moveTo(first.x, first.y); in path() 97 path.lineTo(point.x, point.y); in path() [all …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 282 public String getAssetUrl(String path) { in getAssetUrl() argument 285 sb.append(path); in getAssetUrl() 294 public String getDelayedAssetUrl(String path) { in getDelayedAssetUrl() argument 295 return getDelayedAssetUrl(path, DELAY_MILLIS); in getDelayedAssetUrl() 304 public String getDelayedAssetUrl(String path, int delayMs) { in getDelayedAssetUrl() argument 310 sb.append(path); in getDelayedAssetUrl() 319 public String getAuthAssetUrl(String path) { in getAuthAssetUrl() argument 323 sb.append(path); in getAuthAssetUrl() 333 public String getRedirectingAssetUrl(String path) { in getRedirectingAssetUrl() argument 334 return getRedirectingAssetUrl(path, 1); in getRedirectingAssetUrl() [all …]
|
/cts/apps/CameraITS/tools/ |
D | hardware.py | 137 path = os.path.join(root, attr) 138 with open(path) as f: 154 path = os.path.join(root, attr) 155 with open(path) as f: 192 inf_path = os.path.join(self._USB_DEVICE_SYS_ROOT, 197 tty_list = os.listdir(os.path.join(inf_path, 'tty')) 201 return os.path.join(self._DEV_ROOT, tty_list[0]) 210 return os.path.join(self._DEV_ROOT, entry) 222 path = os.path.join(self._USB_DEVICE_SYS_ROOT, dir_entry) 227 vendor_id = self._read_sys_hex_attr(path, self._SYS_VENDOR_ID) [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 | 59 Path path = new Path(); in testDraw() local 60 path.moveTo(50, 0); in testDraw() 61 path.lineTo(0, 50); in testDraw() 62 path.lineTo(50, 100); in testDraw() 63 path.lineTo(100, 50); in testDraw() 64 path.close(); in testDraw() 65 PathShape pathShape = new PathShape(path, SHAPE_SIZE, SHAPE_SIZE); in testDraw()
|