Package org.robolectric.shadows
Class ShadowBugreportManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowBugreportManager
-
@Implements(value=android.os.BugreportManager.class, minSdk=29, isInAndroidSdk=false) public class ShadowBugreportManager extends java.lang.ObjectImplementation ofBugreportManager.This class is not available in the public Android SDK, but it is available for system apps.
-
-
Constructor Summary
Constructors Constructor Description ShadowBugreportManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcancelBugreport()Cancels bugreport in progress and executesBugreportManager.BugreportCallbackonError.voidexecuteOnError(int errorCode)ExecutesBugreportManager.BugreportCallbackonError on the provided Executor.voidexecuteOnFinished()ExecutesBugreportManager.BugreportCallbackonFinished on the provided Executor.booleanisBugreportInProgress()protected voidstartBugreport(android.os.ParcelFileDescriptor bugreportFd, android.os.ParcelFileDescriptor screenshotFd, android.os.BugreportParams params, java.util.concurrent.Executor executor, android.os.BugreportManager.BugreportCallback callback)Starts a bugreport with which can execute callback methods on the provided executor.
-
-
-
Method Detail
-
startBugreport
@Implementation protected void startBugreport(android.os.ParcelFileDescriptor bugreportFd, android.os.ParcelFileDescriptor screenshotFd, android.os.BugreportParams params, java.util.concurrent.Executor executor, android.os.BugreportManager.BugreportCallback callback)Starts a bugreport with which can execute callback methods on the provided executor.If bugreport already in progress,
BugreportManager.BugreportCallbackonError will be executed.
-
cancelBugreport
@Implementation protected void cancelBugreport()
Cancels bugreport in progress and executesBugreportManager.BugreportCallbackonError.
-
executeOnError
public void executeOnError(int errorCode)
ExecutesBugreportManager.BugreportCallbackonError on the provided Executor.
-
executeOnFinished
public void executeOnFinished()
ExecutesBugreportManager.BugreportCallbackonFinished on the provided Executor.
-
isBugreportInProgress
public boolean isBugreportInProgress()
-
-