Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 86) sorted by relevance

1234

/cts/tests/tests/graphics/src/android/graphics/cts/
DPathTest.java45 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 …]
DDiscretePathEffectTest.java51 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()
DComposePathEffectTest.java39 Path path = new Path(); in testComposePathEffect() local
40 path.moveTo(START_X, CENTER); in testComposePathEffect()
41 path.lineTo(END_X, CENTER); in testComposePathEffect()
57 canvas.drawPath(path, paint); in testComposePathEffect()
63 canvas.drawPath(path, paint); in testComposePathEffect()
DSumPathEffectTest.java45 Path path = new Path(); in testSumPathEffect() local
46 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW); in testSumPathEffect()
55 canvas.drawPath(path, paint); in testSumPathEffect()
59 canvas.drawPath(path, paint); in testSumPathEffect()
64 canvas.drawPath(path, paint); in testSumPathEffect()
DCornerPathEffectTest.java42 Path path = new Path(); in testCornerPathEffect() local
43 path.moveTo(0, PADDING); in testCornerPathEffect()
44 path.lineTo(BITMAP_WIDTH - PADDING, PADDING); in testCornerPathEffect()
45 path.lineTo(BITMAP_WIDTH - PADDING, BITMAP_HEIGHT); in testCornerPathEffect()
59 canvas.drawPath(path, pathPaint); in testCornerPathEffect()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java131 for (File path : paths) { in testPrimaryWalkingUpTreeReadWrite()
132 assertNotNull("Valid media must be inserted during CTS", path); in testPrimaryWalkingUpTreeReadWrite()
134 Environment.getStorageState(path)); in testPrimaryWalkingUpTreeReadWrite()
136 assertTrue(path.getAbsolutePath().contains(packageName)); in testPrimaryWalkingUpTreeReadWrite()
139 while (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(path))) { in testPrimaryWalkingUpTreeReadWrite()
140 assertDirReadWriteAccess(path); in testPrimaryWalkingUpTreeReadWrite()
141 path = path.getParentFile(); in testPrimaryWalkingUpTreeReadWrite()
166 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree() local
170 assertDirReadWriteAccess(path); in testMountStatusWalkingUpTree()
171 assertEquals(Environment.MEDIA_MOUNTED, Environment.getStorageState(path)); in testMountStatusWalkingUpTree()
[all …]
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java88 for (File path : paths) { in testAllPackageDirsWritable()
89 assertNotNull("Valid media must be inserted during CTS", path); in testAllPackageDirsWritable()
91 Environment.getStorageState(path)); in testAllPackageDirsWritable()
93 assertDirReadWriteAccess(path); in testAllPackageDirsWritable()
95 final File directChild = new File(path, "directChild"); in testAllPackageDirsWritable()
96 final File subdir = new File(path, "subdir"); in testAllPackageDirsWritable()
97 final File subdirChild = new File(path, "subdirChild"); in testAllPackageDirsWritable()
108 for (File path : paths) { in testAllPackageDirsWritable()
109 deleteContents(path); in testAllPackageDirsWritable()
168 public static void assertDirReadOnlyAccess(File path) { in assertDirReadOnlyAccess() argument
[all …]
DExternalStorageTest.java53 for (File path : paths) { in testAllWalkingUpTreeNoAccess()
54 if (path == null) continue; in testAllWalkingUpTreeNoAccess()
56 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeNoAccess()
59 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeNoAccess()
60 assertDirReadWriteAccess(path); in testAllWalkingUpTreeNoAccess()
61 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess()
65 while (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(path))) { in testAllWalkingUpTreeNoAccess()
66 assertDirNoAccess(path); in testAllWalkingUpTreeNoAccess()
67 path = path.getParentFile(); in testAllWalkingUpTreeNoAccess()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java54 for (File path : paths) { in testAllWalkingUpTreeReadOnly()
55 assertNotNull("Valid media must be inserted during CTS", path); in testAllWalkingUpTreeReadOnly()
57 Environment.getStorageState(path)); in testAllWalkingUpTreeReadOnly()
59 assertTrue(path.getAbsolutePath().contains(packageName)); in testAllWalkingUpTreeReadOnly()
62 while (path.getAbsolutePath().contains(packageName)) { in testAllWalkingUpTreeReadOnly()
63 assertDirReadWriteAccess(path); in testAllWalkingUpTreeReadOnly()
64 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly()
68 while (Environment.MEDIA_MOUNTED.equals(Environment.getStorageState(path))) { in testAllWalkingUpTreeReadOnly()
69 assertDirReadOnlyAccess(path); in testAllWalkingUpTreeReadOnly()
70 path = path.getParentFile(); in testAllWalkingUpTreeReadOnly()
/cts/tools/utils/
DbuildCts.py31 return [x for x in os.listdir(root) if os.path.isdir(os.path.join(root, x))]
73 self.test_repository = os.path.join(self.out_dir, 'repository/testcases')
74 self.plan_repository = os.path.join(self.out_dir, 'repository/plans')
77 self.definedplans_repository = os.path.join(self.android_root, 'cts/tests/plans')
94 plan.Write(os.path.join(self.plan_repository, plan_name + '.xml'))
101 descriptions = sorted(glob.glob(os.path.join(self.test_repository, '*.xml')))
161 shutil.copyfile(os.path.join(self.definedplans_repository, 'CTS-flaky.xml'),
162 os.path.join(self.plan_repository, 'CTS-flaky.xml'))
163 shutil.copyfile(os.path.join(self.definedplans_repository, 'CTS-stable.xml'),
164 os.path.join(self.plan_repository, 'CTS-stable.xml'))
[all …]
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java283 public String getAssetUrl(String path) { in getAssetUrl() argument
286 sb.append(path); in getAssetUrl()
295 public String getDelayedAssetUrl(String path) { in getDelayedAssetUrl() argument
299 sb.append(path); in getDelayedAssetUrl()
308 public String getAuthAssetUrl(String path) { in getAuthAssetUrl() argument
312 sb.append(path); in getAuthAssetUrl()
323 public String getRedirectingAssetUrl(String path) { in getRedirectingAssetUrl() argument
324 return getRedirectingAssetUrl(path, 1); in getRedirectingAssetUrl()
334 public String getRedirectingAssetUrl(String path, int numRedirects) { in getRedirectingAssetUrl() argument
340 sb.append(path); in getRedirectingAssetUrl()
[all …]
/cts/tests/tests/drm/lib/
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);
DTestPlugin.cpp55 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/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
DMultiUserStorageTest.java67 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { in writeIsolatedStorage()
68 assertNotNull("Valid media must be inserted during CTS", path); in writeIsolatedStorage()
70 Environment.getStorageState(path)); in writeIsolatedStorage()
72 writeInt(new File(path, FILE_SINGLETON), uid); in writeIsolatedStorage()
91 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { in readIsolatedStorage()
92 assertNotNull("Valid media must be inserted during CTS", path); in readIsolatedStorage()
94 Environment.getStorageState(path)); in readIsolatedStorage()
96 assertEquals("Unexpected value in singleton file at " + path, uid, in readIsolatedStorage()
97 readInt(new File(path, FILE_SINGLETON))); in readIsolatedStorage()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java48 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/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp50 jstring path, jobject fileStatus, jboolean statLinks) in android_permission_cts_FileUtils_getFileStatus() argument
52 const char* pathStr = env->GetStringUTFChars(path, NULL); in android_permission_cts_FileUtils_getFileStatus()
76 env->ReleaseStringUTFChars(path, pathStr); in android_permission_cts_FileUtils_getFileStatus()
95 static jboolean isPermittedCapBitSet(JNIEnv* env, jstring path, size_t capId) in isPermittedCapBitSet() argument
97 const char* pathStr = env->GetStringUTFChars(path, NULL); in isPermittedCapBitSet()
117 env->ReleaseStringUTFChars(path, pathStr); in isPermittedCapBitSet()
122 jobject clazz, jstring path) in android_permission_cts_FileUtils_hasSetUidCapability() argument
124 return isPermittedCapBitSet(env, path, CAP_SETUID); in android_permission_cts_FileUtils_hasSetUidCapability()
128 jobject clazz, jstring path) in android_permission_cts_FileUtils_hasSetGidCapability() argument
130 return isPermittedCapBitSet(env, path, CAP_SETGID); in android_permission_cts_FileUtils_hasSetGidCapability()
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java33 .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/security/src/android/security/cts/
DVoldExploitTest.java45 String path = sm.getMountedObbPath("/dev/null\0asec list"); in testTryCommandInjection() local
46 assertNull(path); in testTryCommandInjection()
129 private static void doAttack(NetlinkSocket ns, int pid, String path) in doAttack() argument
132 ns.sendmsg(pid, getDiskAddedMessage(path)); in doAttack()
136 ns.sendmsg(pid, getPartitionAddedMessage(path, i)); in doAttack()
262 private static byte[] getDiskAddedMessage(String path) { in getDiskAddedMessage() argument
265 + "DEVPATH=" + path + "\0MAJOR=179\0MINOR=12345" in getDiskAddedMessage()
273 String path, int partitionNum) { in getPartitionAddedMessage() argument
276 + "DEVPATH=" + path + "\0MAJOR=179\0MINOR=12345" in getPartitionAddedMessage()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java200 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()
DStatFsTest.java26 File path = Environment.getDataDirectory(); in testStatFs() local
27 StatFs stat = new StatFs(path.getPath()); in testStatFs()
43 path = Environment.getRootDirectory(); in testStatFs()
44 stat.restat(path.getPath()); in testStatFs()
/cts/suite/cts/deviceTests/opengl/jni/graphics/
DGLUtils.cpp33 static AAsset* loadAsset(const char* path) { in loadAsset() argument
38 return AAssetManager_open(nativeManager, path, AASSET_MODE_UNKNOWN);; in loadAsset()
41 char* GLUtils::openTextFile(const char* path) { in openTextFile() argument
42 AAsset* asset = loadAsset(path); in openTextFile()
44 ALOGE("Couldn't load %s", path); in openTextFile()
52 ALOGE("Couldn't read %s", path); in openTextFile()
60 GLuint GLUtils::loadTexture(const char* path) { in loadTexture() argument
73 jstring pathStr = sEnv->NewStringUTF(path); in loadTexture()
92 Mesh* GLUtils::loadMesh(const char* path) { in loadMesh() argument
93 char* buffer = openTextFile(path); in loadMesh()
/cts/libs/deviceutil/src/android/provider/cts/
DFileCopyHelper.java70 public void copyToExternalStorage(int resId, File path) throws IOException { in copyToExternalStorage() argument
72 OutputStream target = new FileOutputStream(path); in copyToExternalStorage()
96 for (String path : mFilesList) { in clear()
97 mContext.deleteFile(path); in clear()
/cts/suite/audio_quality/lib/src/
DFileUtil.cpp64 android::String8 path; in prepare() local
65 if (path.appendFormat("%s/%s", reportTopDir, reportTime.string()) != 0) { in prepare()
68 result = mkdir(path.string(), S_IRWXU); in prepare()
73 mDirPath = path; in prepare()
74 dirPath = path; in prepare()
/cts/tools/cfassembler/src/dxconvext/
DClassFileParser.java259 private static String fixPath(String path) { in fixPath() argument
265 path = path.replace('\\', '/'); in fixPath()
268 int index = path.lastIndexOf("/./"); in fixPath()
271 return path.substring(index + 3); in fixPath()
274 if (path.startsWith("./")) { in fixPath()
275 return path.substring(2); in fixPath()
278 return path; in fixPath()
/cts/tests/tests/permission/src/android/permission/cts/
DFileUtils.java91 public native static boolean getFileStatus(String path, FileStatus status, boolean statLinks); in getFileStatus() argument
97 public native static boolean hasSetUidCapability(String path); in hasSetUidCapability() argument
99 public native static boolean hasSetGidCapability(String path); in hasSetGidCapability() argument

1234