Class ShadowBugreportManager


  • @Implements(value=android.os.BugreportManager.class,
                minSdk=29,
                isInAndroidSdk=false)
    public class ShadowBugreportManager
    extends java.lang.Object
    Implementation of BugreportManager.

    This class is not available in the public Android SDK, but it is available for system apps.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowBugreportManager

        public ShadowBugreportManager()
    • 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.BugreportCallback onError will be executed.

      • cancelBugreport

        @Implementation
        protected void cancelBugreport()
        Cancels bugreport in progress and executes BugreportManager.BugreportCallback onError.
      • executeOnError

        public void executeOnError​(int errorCode)
        Executes BugreportManager.BugreportCallback onError on the provided Executor.
      • executeOnFinished

        public void executeOnFinished()
        Executes BugreportManager.BugreportCallback onFinished on the provided Executor.
      • isBugreportInProgress

        public boolean isBugreportInProgress()