History log of /frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bfc5f1c9a8b4587fff77129f96d6525d2e7e49d9 09-Sep-2017 Hall Liu <hallliu@google.com> API council suggested edits, part 3

* MbmsException no longer thrown from the common methods, and the error
codes are now containined in MbmsError.
* In order to avoid ANRs while processing download-done broadcasts,
don't perform arbitrary moves when a download is done. Instead, move
into a staging directory and let the app handle it.

Bug: 30981736
Test: testapps
Change-Id: I9416f28b4f24f89af1da6f56a93ea0f0e4ea3878
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
a96478a9b7d7be9c646a5679b817ea2fae27d704 28-Aug-2017 Hall Liu <hallliu@google.com> Make changes to MBMS Streaming APIs per recommendations

* Rename MbmsStreamingManager -> MbmsStreamingSession
* MbmsStreamingSession now implements AutoClosable instead of using
dispose()
* No longer throw checked MbmsExceptions from any methods. All such
errors will be reported via the async callback.
* null arguments no longer accepted for Handlers
* Guarantee that no further callbacks will get enqueued after closing.

Test: run testapps
Bug: 30981736
Merged-In: I6db045053f1baa4cd4de3718865fcfe525e8a4d6
Change-Id: I85e98850759c6c7fe7b883ffffa5b1f4e362770d
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
46cbcd1b4a02cca1bbe092875d3ea9d1ce5a7caa 07-Jul-2017 Hall Liu <hallliu@google.com> Clean up streaming API docs and organize errors

* Implement listPendingDownloads and resetDownloadKnowledge
* Bring MbmsStreamingManager docs in line with vendor-side API docs.
* Remove activeStreamingServicesUpdated
* Reorganize the errors in MbmsException into categories.
* Add some vendor API docs for file-download

Change-Id: Ia29066ea6f2c0414171cffa1ae11bb467f187bee
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
3bedd88caeda1ce5add85228d00107f04e78dbe3 29-Jun-2017 Hall Liu <hallliu@google.com> Update DownloadRequest API

- Add set/getOpaqueData methods so middleware has one thing to persist
- remove id from DownloadRequest since nobody seems to want it
- replace FileServiceInfo with a service ID
- add a FileInfo extra when sending file-completion to the app

Change-Id: I75be3cce923d5d3c74081d344074b4e3c67deff3
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
990a573da975f70dcfde6dd98f00f055f205b257 22-Jun-2017 Hall Liu <hallliu@google.com> Implement the cleanup action in MbmsDownloadReceiver

Implement ACTION_CLEANUP, add result codes for the ordered broadcasts,
and remove the download request extra for file descriptor requests

Change-Id: I5ee19ad0aefbdceacb636b3d17e197a6fb1bdaa6
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
2043f70acb2fa0bb9c0ddc056c9bfd427addc580 20-Jun-2017 Hall Liu <hallliu@google.com> Add download request tokens and enforce destination clear

Start writing tokens for each download request after calling download(),
and check agains them when a completed-file intent is received with a
download request extra.
Also start checking that the download destination is clear.

Change-Id: I533fe2ba49ac56bed5eab44670fe8e9a273b1ffb
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
727a05b23e4c5bcfba4ce8b8c1eaaa078122735d 16-Jun-2017 Hall Liu <hallliu@google.com> Add callback for initialization done

Add callback for initialization done in the framework, and listen to it
in the testapps. Make initialization asynchronous as well for both
download and streaming.

Change-Id: Iea7f803df9d2752401b2eca9f6c7375007cac35e
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java
0842831e2351fafb7d101ef0bc0d1be04f0852a3 20-May-2017 Hall Liu <hallliu@google.com> Embms download setup

Add MbmsDownloadReceiver and MbmsTempFileProvider to facilitate MBMS
download.
Fill in the download method in MbmsDownloadManager

Test: testapps
Change-Id: Ibb30f3b2b9d14b9df6b53c06916c21e3ca3a42c6
/frameworks/base/telephony/java/android/telephony/mbms/MbmsUtils.java