Searched refs:path (Results 1 - 25 of 202) sorted by relevance

123456789

/cts/tests/tests/graphics/src/android/graphics/cts/
H A DPathTest.java50 Path path = new Path();
51 assertTrue(path.isEmpty());
53 path.addRect(rect, Path.Direction.CW);
54 assertFalse(path.isEmpty());
60 Path path = new Path();
61 assertTrue(path.isEmpty());
62 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW);
63 assertFalse(path.isEmpty());
68 Path path = new Path();
69 path
416 drawAndGetBitmap(Path path) argument
426 setPath(Path path) argument
[all...]
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
H A DReadExternalStorageTest.java50 for (File path : paths) {
51 assertNotNull("Valid media must be inserted during CTS", path);
53 Environment.getExternalStorageState(path));
55 assertTrue(path.getAbsolutePath().contains(packageName));
58 while (path.getAbsolutePath().contains(packageName)) {
59 assertDirReadWriteAccess(path);
60 path = path.getParentFile();
64 while (path != null) {
65 if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
[all...]
/cts/tests/tests/transition/src/android/transition/cts/
H A DArcMotionTest.java31 Path path = arcMotion.getPath(0, 100, 100, 0);
32 assertPathMatches(expected, path);
35 path = arcMotion.getPath(100, 0, 0, -100);
36 assertPathMatches(expected, path);
39 path = arcMotion.getPath(0, -100, -100, 0);
40 assertPathMatches(expected, path);
43 path = arcMotion.getPath(-100, 0, 0, 100);
44 assertPathMatches(expected, path);
52 Path path;
55 path
[all...]
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
H A DWriteExternalStorageTest.java143 for (File path : paths) {
144 assertNotNull("Valid media must be inserted during CTS", path);
146 Environment.getExternalStorageState(path));
148 assertTrue(path.getAbsolutePath().contains(packageName));
151 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
152 assertDirReadWriteAccess(path);
153 path = path.getParentFile();
177 File path = getContext().getExternalCacheDir();
181 assertDirReadWriteAccess(path);
[all...]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
H A DRSAllocationTest.java30 native boolean typedTest(String path); argument
35 native boolean test1DCopy(String path); argument
40 native boolean test2DCopy(String path); argument
45 native boolean test3DCopy(String path); argument
50 native boolean test1DCopyPadded(String path); argument
55 native boolean test2DCopyPadded(String path); argument
60 native boolean test3DCopyPadded(String path); argument
65 native boolean testSetElementAt(String path); argument
H A DRSElementTest.java30 native boolean testCreatePixel(String path); argument
35 native boolean testCreateVector(String path); argument
40 native boolean testPrebuiltElements(String path); argument
45 native boolean testIsCompatible(String path); argument
50 native boolean testElementBuilder(String path); argument
H A DRSObjectTest.java30 native boolean testClearObjectElement(String path); argument
35 native boolean testClearObjectType(String path); argument
40 native boolean testClearObjectAllocation(String path); argument
45 native boolean testClearObjectSampler(String path); argument
50 native boolean testClearObjectScript(String path); argument
H A DRSForEachTest.java30 native boolean testForEach(String path); argument
35 native boolean testMultipleForEach(String path); argument
40 native boolean testNoRoot(String path); argument
H A DRSScriptTest.java30 native boolean testSet(String path); argument
35 native boolean testInstance(String path); argument
40 native boolean testVector(String path); argument
H A DRSTypeTest.java30 native boolean testCreate(String path); argument
35 native boolean testGet(String path); argument
40 native boolean testGetCount(String path); argument
/cts/tests/tests/security/src/android/security/cts/
H A DVoldExploitTest.java31 String path = sm.getMountedObbPath("/dev/null\0asec list");
32 assertNull(path);
/cts/common/util/src/com/android/compatibility/common/util/
H A DITestResult.java77 * @return the path of the bug report generated of the failure.
82 * @param path the path of the bug report generated of the failure.
84 void setBugReport(String path); argument
87 * @return the path of the log file generated of the failure.
92 * @param path the path of the log file generated of the failure.
94 void setLog(String path); argument
97 * @return the path of the screenshot file generated of the failure.
102 * @param path th
104 setScreenshot(String path) argument
[all...]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
H A DGestureDescriptionTest.java100 fail("Missing exception for empty path.");
113 fail("Missing exception for stroke with multi-contour path.");
121 Path path = new Path();
122 path.moveTo(i, i);
123 path.lineTo(10 + i, 10 + i);
125 new GestureDescription.StrokeDescription(path, 0, NOMINAL_PATH_DURATION));
127 Path path = new Path();
128 path.moveTo(10, 10);
129 path.lineTo(20, 20);
132 new GestureDescription.StrokeDescription(path,
[all...]
/cts/apps/CameraITS/tools/
H A Drun_all_tests.py16 import os.path namespace
79 tests += [(d,s[:-3],os.path.join("tests", d, s))
80 for s in os.listdir(os.path.join("tests",d))
99 camera_ids_path = os.path.join(topdir, "camera_ids.txt")
102 os.path.join(os.getcwd(),"tools/get_camera_ids.py"), out_arg,
117 os.mkdir(os.path.join(topdir, camera_id))
119 os.mkdir(os.path.join(topdir, camera_id, d))
132 out_path = os.path.join(topdir, camera_id, scene+".jpg")
137 os.path.join(os.getcwd(),"tools/validate_scene.py"),
144 cmd = ['python', os.path
[all...]
/cts/tests/tests/jni/libjnitest/
H A Dandroid_jni_cts_LinkerNamespacesTest.cpp91 const std::string& path) {
92 std::string name = basename(path.c_str());
94 (public_library_path + "/" + name == path);
97 static bool is_directory(const std::string path) { argument
99 if (stat(path.c_str(), &sb) != -1) {
106 static bool is_libdl(const std::string path) { argument
107 return kSystemLibraryPath + "/libdl.so" == path;
112 const std::string& path,
114 if (is_libdl(path)) {
123 std::unique_ptr<void, decltype(dlcloser)> handle(dlopen(path
89 should_be_accessible(const std::string& public_library_path, const std::unordered_set<std::string>& public_libraries, const std::string& path) argument
110 check_lib(const std::string& public_library_path, const std::unordered_set<std::string>& public_libraries, const std::string& path, std::string* error_msg) argument
171 std::string path = public_library_path + "/" + name; local
[all...]
/cts/tests/tests/security/jni/
H A Dandroid_security_cts_SELinuxTest.cpp33 * Purpose: retrieves the context associated with the given path in the file system
35 * path: given path in the file system
39 * Exceptions: NullPointerException if the path object is null
42 ScopedUtfChars path(env, pathStr);
43 if (path.c_str() == NULL) {
48 int ret = getfilecon(path.c_str(), &tmp);
/cts/tests/tests/permission/src/android/permission/cts/
H A DFileUtils.java105 private native static boolean fileHasOnly(String path, argument
108 public boolean fileHasOnly(String path) { argument
109 return fileHasOnly(path, Ints.toArray(mCapabilities));
114 * @param path of the file to stat
119 public native static boolean getFileStatus(String path, FileStatus status, boolean statLinks); argument
125 public native static boolean hasSetUidCapability(String path); argument
127 public native static boolean hasSetGidCapability(String path); argument
/cts/apps/CameraITS/tests/inprog/
H A Dtest_param_edge_mode.py19 import os.path namespace
26 NAME = os.path.basename(__file__).split(".")[0]
H A Dtest_test_patterns.py18 import os.path namespace
23 NAME = os.path.basename(__file__).split(".")[0]
/cts/tests/tests/drm/lib/
H A DTestPlugin.h31 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/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
H A DCommonExternalStorageTest.java72 * Verify that single path is always first item in multiple.
82 * Verify that single path is always first item in multiple.
93 * Verify that single path is always first item in multiple.
107 for (File path : paths) {
108 assertNotNull("Valid media must be inserted during CTS", path);
110 Environment.getExternalStorageState(path));
112 assertDirReadWriteAccess(path);
114 final File directChild = new File(path, "directChild");
115 final File subdir = new File(path, "subdir");
116 final File subdirChild = new File(path, "subdirChil
238 assertDirReadOnlyAccess(File path) argument
257 assertDirReadWriteAccess(File path) argument
276 assertDirNoAccess(File path) argument
299 assertDirNoWriteAccess(File path) argument
313 assertFileReadOnlyAccess(File path) argument
328 assertFileReadWriteAccess(File path) argument
342 assertFileNoAccess(File path) argument
[all...]
H A DExternalStorageTest.java63 for (File path : paths) {
64 if (path == null) continue;
66 assertTrue(path.getAbsolutePath().contains(packageName));
69 while (path.getAbsolutePath().contains(packageName)) {
70 assertDirReadWriteAccess(path);
71 path = path.getParentFile();
75 while (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState(path))) {
76 assertDirNoAccess(path);
77 path
[all...]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
H A DFileCopyHelper.java59 * @return the absolute path of the destination file
70 public void copyToExternalStorage(int resId, File path) throws IOException { argument
72 OutputStream target = new FileOutputStream(path);
96 for (String path : mFilesList) {
97 mContext.deleteFile(path);
/cts/libs/deviceutil/src/android/cts/util/
H A DFileCopyHelper.java59 * @return the absolute path of the destination file
70 public void copyToExternalStorage(int resId, File path) throws IOException { argument
72 OutputStream target = new FileOutputStream(path);
96 for (String path : mFilesList) {
97 mContext.deleteFile(path);
/cts/tests/tests/os/src/android/os/cts/
H A DStatFsTest.java26 File path = Environment.getDataDirectory();
27 StatFs stat = new StatFs(path.getPath());
43 path = Environment.getRootDirectory();
44 stat.restat(path.getPath());

Completed in 2032 milliseconds

123456789