Home
last modified time | relevance | path

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

12345678910>>...18

/cts/tests/tests/graphics/src/android/graphics/cts/
DPathTest.java73 Path path = new Path(); in testAddRect1() local
74 assertTrue(path.isEmpty()); in testAddRect1()
76 path.addRect(rect, Path.Direction.CW); in testAddRect1()
77 assertFalse(path.isEmpty()); in testAddRect1()
82 Path path = new Path(); in testAddRect2() local
83 assertTrue(path.isEmpty()); in testAddRect2()
84 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW); in testAddRect2()
85 assertFalse(path.isEmpty()); in testAddRect2()
90 Path path = new Path(); in testMoveTo() local
91 path.moveTo(10.0f, 10.0f); in testMoveTo()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DArcMotionTest.java38 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/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java50 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/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java167 for (File path : paths) { in testPrimaryWalkingUpTreeReadWrite()
168 assertNotNull("Valid media must be inserted during CTS", path); in testPrimaryWalkingUpTreeReadWrite()
170 Environment.getExternalStorageState(path)); in testPrimaryWalkingUpTreeReadWrite()
172 assertTrue(path.getAbsolutePath().contains(packageName)); in testPrimaryWalkingUpTreeReadWrite()
175 while (path.getAbsolutePath().contains(packageName)) { in testPrimaryWalkingUpTreeReadWrite()
176 assertDirReadWriteAccess(path); in testPrimaryWalkingUpTreeReadWrite()
177 path = path.getParentFile(); in testPrimaryWalkingUpTreeReadWrite()
187 File path = getContext().getExternalCacheDir(); in testMountStatusWalkingUpTree() local
195 if (path.getAbsolutePath().contains(packageName)) { in testMountStatusWalkingUpTree()
196 assertDirReadWriteAccess(path); in testMountStatusWalkingUpTree()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPathTests.java45 Path path = new Path(); in testTextPathWithOffset() local
46 paint.getTextPath(text, 0, text.length(), 0, 0, path); in testTextPathWithOffset()
47 path.offset(0, 50); in testTextPathWithOffset()
48 canvas.drawPath(path, paint); in testTextPathWithOffset()
56 final Path path = new Path(); in testPathApproximate_circle() local
57 path.addCircle(45, 45, 40, Path.Direction.CW); in testPathApproximate_circle()
58 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_circle); in testPathApproximate_circle()
63 final Path path = new Path(); in testPathApproximate_rect() local
64 path.addRect(5, 5, 85, 85, Path.Direction.CW); in testPathApproximate_rect()
65 verifyPathApproximation(path, R.drawable.pathtest_path_approximate_rect); in testPathApproximate_rect()
[all …]
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DFileUtils.java54 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/libs/webkit-shared/src/android/webkit/cts/
DSharedSdkWebServer.java66 String path, String responseString, List<HttpHeader> responseHeaders) { in setResponse() argument
71 path, in setResponse()
78 public String getAbsoluteUrl(String path) { in getAbsoluteUrl() argument
80 return mWebServer.getAbsoluteUrl(path); in getAbsoluteUrl()
92 public String getDelayedAssetUrl(String path) {
94 return mWebServer.getDelayedAssetUrl(path);
99 public String getRedirectingAssetUrl(String path) {
101 return mWebServer.getRedirectingAssetUrl(path);
106 public String getAssetUrl(String path) {
108 return mWebServer.getAssetUrl(path);
[all …]
DIWebServer.aidl32 String path, String responseString, in List<HttpHeader> responseHeaders); in setResponse() argument
34 String getAbsoluteUrl(String path); in getAbsoluteUrl() argument
38 String getDelayedAssetUrl(String path); in getDelayedAssetUrl() argument
40 String getRedirectingAssetUrl(String path); in getRedirectingAssetUrl() argument
42 String getAssetUrl(String path); in getAssetUrl() argument
44 String getAuthAssetUrl(String path); in getAuthAssetUrl() argument
52 int getRequestCountWithPath(String path); in getRequestCountWithPath() argument
56 HttpRequest getLastRequest(String path); in getLastRequest() argument
60 String getCookieUrl(String path); in getCookieUrl() argument
62 String getSetCookieUrl(String path, String key, String value, String attributes); in getSetCookieUrl() argument
[all …]
DSharedWebViewTestEnvironment.java317 String path, String responseString, List<HttpHeader> responseHeaders) {
321 path, responseString, HttpHeader.asPairList(responseHeaders));
325 public String getAbsoluteUrl(String path) {
328 return mWebServer.getAbsoluteUrl(path);
339 public String getDelayedAssetUrl(String path) {
342 return mWebServer.getDelayedAssetUrl(path);
346 public String getRedirectingAssetUrl(String path) {
349 return mWebServer.getRedirectingAssetUrl(path);
353 public String getAssetUrl(String path) {
356 return mWebServer.getAssetUrl(path);
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_AllUriTest.java262 private static Uri getUri(String[] path) { in getUri() argument
263 return Uri.parse(path[0]); in getUri()
266 private static boolean supportsQuery(String[] path) { in supportsQuery() argument
267 if (path.length == 1) { in supportsQuery()
270 return !(path[1].contains("-") || path[1].contains("!")); in supportsQuery()
273 private static boolean supportsInsert(String[] path) { in supportsInsert() argument
274 return (path.length) >= 2 && path[1].contains("i"); in supportsInsert()
277 private static boolean supportsUpdate(String[] path) { in supportsUpdate() argument
278 return (path.length) >= 2 && path[1].contains("u"); in supportsUpdate()
281 private static boolean supportsDelete(String[] path) { in supportsDelete() argument
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DApiDocumentParser.java35 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()
DVirtualPath.java35 public static LocalFilePath get(String path) { in get() argument
36 return new LocalFilePath(path); in get()
78 private final String path; field in VirtualPath.LocalFilePath
80 LocalFilePath(String path) { in LocalFilePath() argument
81 this.path = path; in LocalFilePath()
85 return new File(path); in toFile()
89 return new LocalFilePath(path + "/" + relative); in resolve()
94 return new FileInputStream(path); in newInputStream()
106 return path.equals(that.path); in equals()
111 return Objects.hash(path); in hashCode()
[all …]
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/
DPropertyPathCtsTest.java69 PropertyPath path = new PropertyPath("foo.bar[1]"); in testPropertyPathValid() local
70 assertThat(path.size()).isEqualTo(2); in testPropertyPathValid()
71 assertThat(path.get(0).getPropertyName()).isEqualTo("foo"); in testPropertyPathValid()
72 assertThat(path.get(0).getPropertyIndex()).isEqualTo(NON_REPEATED_CARDINALITY); in testPropertyPathValid()
73 assertThat(path.get(1).getPropertyName()).isEqualTo("bar"); in testPropertyPathValid()
74 assertThat(path.get(1).getPropertyIndex()).isEqualTo(1); in testPropertyPathValid()
76 path = new PropertyPath("a.b.c.d.e.f.g.h.i.j"); in testPropertyPathValid()
77 assertThat(path.size()).isEqualTo(10); in testPropertyPathValid()
78 assertThat(path.get(4).getPropertyName()).isEqualTo("e"); in testPropertyPathValid()
79 assertThat(path.get(9).getPropertyName()).isEqualTo("j"); in testPropertyPathValid()
[all …]
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java87 private static ByteBuffer mmap(AssetManager am, String path) { in mmap() argument
89 try (InputStream is = am.open(path)) { in mmap()
172 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testBuilder_buffer() local
174 ByteBuffer buffer = mmap(am, path); in testBuilder_buffer()
177 assertEquals(path, weight, font.getStyle().getWeight()); in testBuilder_buffer()
178 assertEquals(path, slant, font.getStyle().getSlant()); in testBuilder_buffer()
179 assertEquals(path, 0, font.getTtcIndex()); in testBuilder_buffer()
180 assertNullOrEmpty(path, font.getAxes()); in testBuilder_buffer()
193 String path = FontTestUtil.getTtcFontFileInAsset(); in testBuilder_buffer_ttc() local
195 ByteBuffer buffer = mmap(am, path); in testBuilder_buffer_ttc()
[all …]
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp107 const std::string& path) { in is_library_on_path() argument
109 if (!android::base::EndsWith(path, tail)) return false; in is_library_on_path()
110 return library_search_paths.count(path.substr(0, path.size() - tail.size())) > 0; in is_library_on_path()
113 static std::string try_dlopen(const std::string& path) { in try_dlopen() argument
115 void *handle = dlopen(path.c_str(), RTLD_NOW); in try_dlopen()
129 static std::string load_library(JNIEnv* env, jclass clazz, const std::string& path, in load_library() argument
131 std::string error = try_dlopen(path); in load_library()
134 if (android::base::EndsWith(path, '/' + kWebViewPlatSupportLib)) { in load_library()
144 ScopedLocalRef<jstring> jpath(env, env->NewStringUTF(path.c_str())); in load_library()
154 std::string baselib = basename(path.c_str()); in load_library()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
DRSAllocationTest.java30 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
DRSElementTest.java30 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/
DExternalStorageTest.java59 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 …]
DCommonExternalStorageTest.java108 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/
DGestureDescriptionTest.java174 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local
175 path.moveTo(i, i); in testAddStroke_allowUpToMaxPaths()
176 path.lineTo(10 + i, 10 + i); in testAddStroke_allowUpToMaxPaths()
177 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths()
179 Path path = new Path(); in testAddStroke_allowUpToMaxPaths() local
180 path.moveTo(10, 10); in testAddStroke_allowUpToMaxPaths()
181 path.lineTo(20, 20); in testAddStroke_allowUpToMaxPaths()
183 gestureBuilder.addStroke(new StrokeDescription(path, 0, NOMINAL_PATH_DURATION)); in testAddStroke_allowUpToMaxPaths()
191 Path path = new Path(); in testAddStroke_withDurationTooLong_shouldThrow() local
192 path.moveTo(10, 10); in testAddStroke_withDurationTooLong_shouldThrow()
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_object.cpp40 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/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DXmlPathQueryHelper.java63 public XmlPathQueryHelper(E query, String path) { in XmlPathQueryHelper() argument
65 mPath = enforceXpathSyntax(path); in XmlPathQueryHelper()
177 String path = mPath; in matches() local
180 sXPath.evaluate("boolean(" + path + ")", in matches()
189 sXPath.evaluate(StringUtils.ensureEndsWith(path, '/') + "text()", in matches()
203 StringUtils.ensureEndsWith(path, '/') + "@" + attribute, in matches()
219 private static String enforceXpathSyntax(String path) { in enforceXpathSyntax() argument
220 if (path.endsWith(SINGLE_FORWARD_SLASH)) { in enforceXpathSyntax()
221 path = path.substring(0, path.length() - 1); in enforceXpathSyntax()
224 if (path.startsWith(DOUBLE_FORWARD_SLASH)) { in enforceXpathSyntax()
[all …]
/cts/tools/mcts/
Ddownload_mcts.sh54 path=""
57 path="${year}-${month}/${abi}"
61 path="${android_version}/${abi}"
65 full_dir_path="$dir_prefix/$path"
83 local path=$1
85 local url="https://dl.google.com/android/xts/mcts/${path}/${file}"
158 download_mcts $path $file
/cts/tests/storageaccess/src/android/storageaccess/cts/tests/
DScopedDirectoryAccessClientTest.kt47 invalidPaths.forEach { path -> in <lambda>() method
48 assertNull("Should NOT be able get access intent for '$path' on $volume", in <lambda>()
49 volume.createAccessIntent(path)) in <lambda>()
78 paths.forEach innerLoop@ { path -> in <lambda>() method
81 if (volume.isPrimary && path == null) return@innerLoop in <lambda>()
83 val intent = volume.createAccessIntent(path) in <lambda>()
84 assertNotNull("Could NOT get access intent for '$path' on $volume", intent) in <lambda>()
86 log("Launching Access Intent for '$path' on $volume: ${intent!!}") in <lambda>()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DSupportedBitstreamsProcessor.java67 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()

12345678910>>...18