Expose capabilitiesToString for use in Telecom.

We will use this in phone account registrar to make the logs more useful.

Test: Manual
Bug: 119306215
Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
This commit is contained in:
Tyler Gunn
2018-11-09 08:43:02 -08:00
parent fbc4e55540
commit 1847b4eb74

View File

@@ -985,10 +985,10 @@ public final class PhoneAccount implements Parcelable {
/**
* Generates a string representation of a capabilities bitmask.
*
* @param capabilities The capabilities bitmask.
* @return String representation of the capabilities bitmask.
* @hide
*/
private String capabilitiesToString() {
public String capabilitiesToString() {
StringBuilder sb = new StringBuilder();
if (hasCapabilities(CAPABILITY_SELF_MANAGED)) {
sb.append("SelfManaged ");