- provider
- the provider name
- enabled
- the mock enabled value
Type Reason Java.Lang.SecurityException if the ACCESS_MOCK_LOCATION permission is not present or the NoType:android/provider/Settings$Secure;Href=../../../reference/android/provider/Settings.Secure.html#ALLOW_MOCK_LOCATION} system setting is not enabled Java.Lang.IllegalArgumentException if no provider with the given name exists
Sets a mock enabled value for the given provider. This value will be used in place of any actual value from the provider.