1 /*
2 ** Copyright 2017, The Android Open Source Project
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 **     http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
17 package android.telephony.mbms.vendor;
18 
19 import android.app.PendingIntent;
20 import android.net.Uri;
21 import android.telephony.mbms.DownloadRequest;
22 import android.telephony.mbms.FileInfo;
23 import android.telephony.mbms.IDownloadProgressListener;
24 import android.telephony.mbms.IDownloadStatusListener;
25 import android.telephony.mbms.IMbmsDownloadSessionCallback;
26 
27 /**
28  * @hide
29  */
30 interface IMbmsDownloadService
31 {
initialize(int subId, IMbmsDownloadSessionCallback listener)32     int initialize(int subId, IMbmsDownloadSessionCallback listener);
33 
requestUpdateFileServices(int subId, in List<String> serviceClasses)34     int requestUpdateFileServices(int subId, in List<String> serviceClasses);
35 
setTempFileRootDirectory(int subId, String rootDirectoryPath)36     int setTempFileRootDirectory(int subId, String rootDirectoryPath);
37 
download(in DownloadRequest downloadRequest)38     int download(in DownloadRequest downloadRequest);
39 
addStatusListener(in DownloadRequest downloadRequest, IDownloadStatusListener listener)40     int addStatusListener(in DownloadRequest downloadRequest,
41         IDownloadStatusListener listener);
42 
removeStatusListener(in DownloadRequest downloadRequest, IDownloadStatusListener listener)43     int removeStatusListener(in DownloadRequest downloadRequest,
44         IDownloadStatusListener listener);
45 
addProgressListener(in DownloadRequest downloadRequest, IDownloadProgressListener listener)46     int addProgressListener(in DownloadRequest downloadRequest,
47         IDownloadProgressListener listener);
48 
removeProgressListener(in DownloadRequest downloadRequest, IDownloadProgressListener listener)49     int removeProgressListener(in DownloadRequest downloadRequest,
50         IDownloadProgressListener listener);
51 
listPendingDownloads(int subscriptionId)52     List<DownloadRequest> listPendingDownloads(int subscriptionId);
53 
cancelDownload(in DownloadRequest downloadRequest)54     int cancelDownload(in DownloadRequest downloadRequest);
55 
requestDownloadState(in DownloadRequest downloadRequest, in FileInfo fileInfo)56     int requestDownloadState(in DownloadRequest downloadRequest, in FileInfo fileInfo);
57 
resetDownloadKnowledge(in DownloadRequest downloadRequest)58     int resetDownloadKnowledge(in DownloadRequest downloadRequest);
59 
dispose(int subId)60     void dispose(int subId);
61 }
62