public abstract class MountServiceInternal extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MountServiceInternal.ExternalStorageMountPolicy
Policy that influences how external storage is mounted and reported.
|
Constructor and Description |
---|
MountServiceInternal() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addExternalStoragePolicy(MountServiceInternal.ExternalStorageMountPolicy policy)
Adds a policy for determining how external storage is mounted and reported.
|
abstract int |
getExternalStorageMountMode(int uid,
String packageName)
Gets the mount mode to use for a given UID as determined by consultin all
policies.
|
abstract void |
onExternalStoragePolicyChanged(int uid,
String packageName)
Notify the mount service that the mount policy for a UID changed.
|
public abstract void addExternalStoragePolicy(MountServiceInternal.ExternalStorageMountPolicy policy)
policy
- The policy to add.public abstract void onExternalStoragePolicyChanged(int uid, String packageName)
uid
- The UID for which policy changed.packageName
- The package in the UID for making the call.public abstract int getExternalStorageMountMode(int uid, String packageName)
uid
- The UID for which to get mount mode.packageName
- The package in the UID for making the call.