Home
last modified time | relevance | path

Searched refs:probe (Results 1 – 7 of 7) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java264 final File probe = buildProbeFile(path); in assertDirReadOnlyAccess() local
265 assertFalse(probe.createNewFile()); in assertDirReadOnlyAccess()
266 assertFalse(probe.exists()); in assertDirReadOnlyAccess()
267 assertFalse(probe.delete()); in assertDirReadOnlyAccess()
283 final File probe = buildProbeFile(path); in assertDirReadWriteAccess() local
284 assertTrue(probe.createNewFile()); in assertDirReadWriteAccess()
285 assertTrue(probe.exists()); in assertDirReadWriteAccess()
286 assertTrue(probe.delete()); in assertDirReadWriteAccess()
287 assertFalse(probe.exists()); in assertDirReadWriteAccess()
300 final File probe = buildProbeFile(path); in assertDirNoAccess() local
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseBootReceiver.java34 final File probe = new File(context.getFilesDir(), in onReceive() local
36 Log.d(TAG, "Touching probe " + probe); in onReceive()
37 probe.createNewFile(); in onReceive()
38 exposeFile(probe); in onReceive()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java105 final File probe = new File( in testWriteExternalStorageDirs() local
109 assertFalse(probe.exists()); in testWriteExternalStorageDirs()
110 assertTrue(probe.mkdirs()); in testWriteExternalStorageDirs()
112 assertDirReadWriteAccess(probe); in testWriteExternalStorageDirs()
299 final File probe = buildProbeFile(Environment.getExternalStorageDirectory()); in testSecondaryMountPointsNotWritable() local
300 assertTrue(probe.createNewFile()); in testSecondaryMountPointsNotWritable()
309 final File testProbe = new File(path, probe.getName()); in testSecondaryMountPointsNotWritable()
310 final File testUserProbe = new File(userPath, probe.getName()); in testSecondaryMountPointsNotWritable()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DExternalStorageHostTest.java455 String probe = "/sdcard/../" + user; in testSecondaryUsersInaccessible() local
460 assertTrue(probe, access(probe)); in testSecondaryUsersInaccessible()
463 assertFalse(probe, access(probe)); in testSecondaryUsersInaccessible()
465 probe = mount + "/" + user; in testSecondaryUsersInaccessible()
466 assertFalse(probe, access(probe)); in testSecondaryUsersInaccessible()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java383 final File probe = new File(otherContext.getFilesDir(), in awaitBroadcast() local
386 Log.d(TAG, "Waiting for " + probe + "..."); in awaitBroadcast()
387 if (probe.exists()) { in awaitBroadcast()
392 throw new AssertionError("Failed to find " + probe); in awaitBroadcast()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStorePlacementTest.java98 for (String probe : new String[] { in testIgnored()
104 values.put(MediaColumns.RELATIVE_PATH, probe); in testIgnored()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java122 final File probe = new File(Environment.getExternalStorageDirectory(), in doSandboxed() local
126 probe.createNewFile(); in doSandboxed()
132 assertTrue(probe.createNewFile()); in doSandboxed()