@Implements(value=android.os.BugreportManager.class, minSdk=29, isInAndroidSdk=false) public class ShadowBugreportManager extends Object
BugreportManager
.
This class is not available in the public Android SDK, but it is available for system apps.
Constructor | Description |
---|---|
ShadowBugreportManager() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
cancelBugreport() |
Cancels bugreport in progress and executes
BugreportManager.BugreportCallback onError. |
void |
executeOnError(int errorCode) |
Executes
BugreportManager.BugreportCallback onError on the provided Executor. |
void |
executeOnFinished() |
Executes
BugreportManager.BugreportCallback onFinished on the provided Executor. |
boolean |
isBugreportInProgress() |
|
protected void |
startBugreport(ParcelFileDescriptor bugreportFd,
ParcelFileDescriptor screenshotFd,
BugreportParams params,
Executor executor,
BugreportManager.BugreportCallback callback) |
Starts a bugreport with which can execute callback methods on the provided executor.
|
@Implementation protected void startBugreport(ParcelFileDescriptor bugreportFd, ParcelFileDescriptor screenshotFd, BugreportParams params, Executor executor, BugreportManager.BugreportCallback callback)
If bugreport already in progress, BugreportManager.BugreportCallback
onError will be executed.
@Implementation protected void cancelBugreport()
BugreportManager.BugreportCallback
onError.public void executeOnError(int errorCode)
BugreportManager.BugreportCallback
onError on the provided Executor.public void executeOnFinished()
BugreportManager.BugreportCallback
onFinished on the provided Executor.public boolean isBugreportInProgress()