Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9dfb9b4 authored by Paul Westbrook's avatar Paul Westbrook
Browse files

Download Manager API to support Gmail

Adds APIs to the Download manager to handle downloads based on
opaque ids
parent 642b7c0f
Loading
Loading
Loading
Loading
+455 −0
Original line number Diff line number Diff line
@@ -85760,6 +85760,461 @@
>
</field>
</class>
<class name="Downloads"
 extends="java.lang.Object"
 abstract="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<method name="isStatusError"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="status" type="int">
</parameter>
</method>
<method name="isStatusSuccess"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="status" type="int">
</parameter>
</method>
<field name="ACTION_DOWNLOAD_COMPLETED"
 type="java.lang.String"
 transient="false"
 volatile="false"
 value="&quot;android.intent.action.DOWNLOAD_COMPLETED&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="COLUMN_NOTIFICATION_EXTRAS"
 type="java.lang.String"
 transient="false"
 volatile="false"
 value="&quot;notificationextras&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="DOWNLOAD_DESTINATION_CACHE"
 type="int"
 transient="false"
 volatile="false"
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="DOWNLOAD_DESTINATION_CACHE_PURGEABLE"
 type="int"
 transient="false"
 volatile="false"
 value="3"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="DOWNLOAD_DESTINATION_EXTERNAL"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="DOWNLOAD_ID_INVALID"
 type="long"
 transient="false"
 volatile="false"
 value="-1L"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_DEVICE_NOT_FOUND_ERROR"
 type="int"
 transient="false"
 volatile="false"
 value="499"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_INSUFFICIENT_SPACE_ERROR"
 type="int"
 transient="false"
 volatile="false"
 value="498"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_NOT_ACCEPTABLE"
 type="int"
 transient="false"
 volatile="false"
 value="406"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_PENDING"
 type="int"
 transient="false"
 volatile="false"
 value="190"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_RUNNING"
 type="int"
 transient="false"
 volatile="false"
 value="192"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_SUCCESS"
 type="int"
 transient="false"
 volatile="false"
 value="200"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_UNHANDLED_REDIRECT"
 type="int"
 transient="false"
 volatile="false"
 value="493"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="STATUS_UNKNOWN_ERROR"
 type="int"
 transient="false"
 volatile="false"
 value="491"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
</class>
<class name="Downloads.ById"
 extends="android.net.Downloads.DownloadBase"
 abstract="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<method name="deleteDownload"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="downloadId" type="long">
</parameter>
</method>
<method name="getMimeTypeForId"
 return="java.lang.String"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="downloadId" type="long">
</parameter>
</method>
<method name="getStatus"
 return="android.net.Downloads.StatusInfo"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="downloadId" type="long">
</parameter>
</method>
<method name="openDownload"
 return="android.os.ParcelFileDescriptor"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="downloadId" type="long">
</parameter>
<parameter name="mode" type="java.lang.String">
</parameter>
<exception name="FileNotFoundException" type="java.io.FileNotFoundException">
</exception>
</method>
<method name="openDownloadStream"
 return="java.io.InputStream"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="downloadId" type="long">
</parameter>
<exception name="FileNotFoundException" type="java.io.FileNotFoundException">
</exception>
<exception name="IOException" type="java.io.IOException">
</exception>
</method>
</class>
<class name="Downloads.ByUri"
 extends="android.net.Downloads.DownloadBase"
 abstract="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<method name="getStatus"
 return="android.net.Downloads.StatusInfo"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="url" type="java.lang.String">
</parameter>
<parameter name="redownload_threshold" type="long">
</parameter>
</method>
<method name="removeAllDownloadsByPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="notification_package" type="java.lang.String">
</parameter>
<parameter name="notification_class" type="java.lang.String">
</parameter>
</method>
</class>
<class name="Downloads.DownloadBase"
 extends="java.lang.Object"
 abstract="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="private"
>
<method name="startDownloadByUri"
 return="long"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="url" type="java.lang.String">
</parameter>
<parameter name="cookieData" type="java.lang.String">
</parameter>
<parameter name="showDownload" type="boolean">
</parameter>
<parameter name="downloadDestination" type="int">
</parameter>
<parameter name="allowRoaming" type="boolean">
</parameter>
<parameter name="skipIntegrityCheck" type="boolean">
</parameter>
<parameter name="title" type="java.lang.String">
</parameter>
<parameter name="notification_package" type="java.lang.String">
</parameter>
<parameter name="notification_class" type="java.lang.String">
</parameter>
<parameter name="notification_extras" type="java.lang.String">
</parameter>
</method>
</class>
<class name="Downloads.StatusInfo"
 extends="java.lang.Object"
 abstract="false"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
<constructor name="Downloads.StatusInfo"
 type="android.net.Downloads.StatusInfo"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</constructor>
<method name="isComplete"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="isSuccessful"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<field name="bytesSoFar"
 type="long"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="completed"
 type="boolean"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="filename"
 type="java.lang.String"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="id"
 type="long"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="statusCode"
 type="int"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</field>
</class>
<class name="LocalServerSocket"
 extends="java.lang.Object"
 abstract="false"
+476 −140

File changed.

Preview size limit exceeded, changes collapsed.