Commit Graph

5 Commits

Author SHA1 Message Date
Ashwini Oruganti
bddcbb7825 SoundPicker: Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.

Bug: 150232615
Test: TH
Change-Id: Id471a7a92e16ba286da9ca41ee214f96add556c5
2020-03-11 18:46:57 -07:00
Jeff Sharkey
04b4ba1e15 Shuffling to prepare for MediaProvider APEX.
An upcoming change will move MediaStore to be within the recently
created MediaProvider APEX.  This means that MediaStore will need to
be fully built against @SystemApi, and so this CL adjusts APIs to
support a clean transition:

-- Listing of "recent" storage volumes and scan paths for "internal"
storage is now handled by StorageManager directly, so that partners
retain control over what is deemed recent.
-- StorageVolume now returns the MediaStore volume name and the
filesystem directory where its contents are presented to apps.
-- Conversion of legacy thumbnail "kind" values to dimensions now
happens directly inside MediaStore.
-- PendingParams and PendingSession are completely removed.
-- Contributed media APIs are completely removed.
-- Media for demo users is now surfaced as a unique StorageVolume.
-- Migrate most MediaStore APIs to accept ContentResolver, which
supports easy usage of ContentResolver.wrap().

Bug: 144247087, 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: in-place refactoring
Change-Id: I445528b2779bb37b9f2558e67a3cfc9f60412092
2019-12-18 01:35:46 +00:00
Heemin Seog
c39e4bf51e Restrict showing "new ringtone" for missing picker
Automotive builds can come without a file picker. In such cases, the
RingtonePickerActivity shouldn't need to show the "Add New Ringtone"
list item.

Bug: 138454052
Test: manual
Change-Id: Iceb5555493420898d6eafe79e3299d5bd3a77a98
2019-09-13 10:26:29 -07:00
Jeff Sharkey
77d67325f3 Migrate CheckedListItem missed in refactoring.
Bug: 134542205
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I3d6c28cbe1a9bf29f1a314954fa2541371194935
2019-08-22 09:42:42 -06:00
Jeff Sharkey
8f18b2a0c1 Migrate ringtone picking out of MediaProvider.
Some OEMs have requested the ability to customize the ringtone
picker logic, and that's already supported by the existing
"config_defaultRingtonePickerEnabled" parameter today.

This change is a clean refactoring of the AOSP ringtone picker out
of MediaProvider and into a new "SoundPicker" module, which is
consistent with how some OEMs have already defined their own
"SoundPickerPrebuilt" module.

Bug: 134542205
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Iadc60e731e6dcfce651f89bc7598e65541ab0ddf
2019-08-21 14:58:59 -06:00