Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920b387d authored by Thomas Stuart's avatar Thomas Stuart
Browse files

update TM#getRegisteredPhoneAccounts docs

API review noted that I should mention that the API will only return
accounts registered by the same app.

Fixes: 327333100
Test: existing CTS coverage + javadoc comment check (renders properly)
Change-Id: I355ae4d09e857568c5d5198a3d69838e8df0daff
parent 9f5b9858
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1434,11 +1434,14 @@ public class TelecomManager {
    }

    /**
     * This API will return all {@link PhoneAccount}s registered via
     * This API will return all {@link PhoneAccount}s the caller registered via
     * {@link TelecomManager#registerPhoneAccount(PhoneAccount)}.  If a {@link PhoneAccount} appears
     * to be missing from the list, Telecom has either unregistered the {@link PhoneAccount}
     * or the caller registered the {@link PhoneAccount} under a different user and does not
     * have the {@link android.Manifest.permission#INTERACT_ACROSS_USERS} permission.
     * to be missing from the list, Telecom has either unregistered the {@link PhoneAccount} (for
     * cleanup purposes) or the caller registered the {@link PhoneAccount} under a different user
     * and does not have the  {@link android.Manifest.permission#INTERACT_ACROSS_USERS} permission.
     * <b>Note:</b> This API will only return {@link PhoneAccount}s registered by the same app.  For
     * system Dialers that need all the {@link PhoneAccount}s registered by every application, see
     * {@link TelecomManager#getAllPhoneAccounts()}.
     *
     * @return all the {@link PhoneAccount}s registered by the caller.
     */