Another push towards more test coverage.

Mostly mechanical changes to change visibility of methods for testing
purposes.

Adjust callers of getFuseDaemonForFile(), since new throwing behavior
was causing test failures.

Move RedactingFileDescriptor file mode logic into FileUtils, which
better matches upstream FileUtils, and which allows us to borrow
robust unit tests.

Basic tests for PermissionActivity adn CacheClearingActivity; the
real tests for these will exist in CTS, since they require that the
calling app be a third-party app; we simply add here for coverage
purposes.

Bug: 142561358
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I54975d757dfb2d364ef1e66b96948878f7469422
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index f4baf43..b5c556a 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -7,6 +7,10 @@
 
     <application android:label="MediaProvider Tests">
         <uses-library android:name="android.test.runner" />
+
+        <activity android:name="com.android.providers.media.GetResultActivity" />
+        <activity android:name="com.android.providers.media.PermissionActivity" />
+        <activity android:name="com.android.providers.media.CacheClearingActivity" />
     </application>
 
     <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"