commit | 0def6d1b51e23d539728d4fa43032de8d18c69ad | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Thu Oct 28 00:38:33 2021 +0000 |
committer | jiabin <jiabin@google.com> | Thu Oct 28 00:38:33 2021 +0000 |
tree | 6db0cd34c31e4af124ca1b35689bb6ce60e964c4 | |
parent | df08d4937e6553ade3efc70cb30772adc418227a [diff] |
Add RingtoneManager.hasHapticChannels(Context, Uri). Currently, RingtoneManager.hasHapticChannels(Uri) will use the context from AudioService to resolve the given Uri. However, that may not always work. In that case, add another API to ask apps to provide Context to resolve given Uri can help the API returning correct result. Test: atest RingtoneManagerTest Bug: 196195517 Change-Id: I484e157e0d03e5eeabdd68908b11db534ad3c3ab