API review cleanups.
1) Make all exposed APIs SystemApi, instead of public APIs.
2) Indicate SipException when errors happen.
3) Change API name from getListOfProfiles to getProfiles
Test: make, atest TeleServiceTests:PhoneGlobalsTest
Bug: 148604927
Change-Id: I35a564a7bb708f598f520f28a3aa2d32e95fa092
diff --git a/sip/src/com/android/services/telephony/sip/SipSettings.java b/sip/src/com/android/services/telephony/sip/SipSettings.java
index 700fe81..813ba51 100644
--- a/sip/src/com/android/services/telephony/sip/SipSettings.java
+++ b/sip/src/com/android/services/telephony/sip/SipSettings.java
@@ -241,7 +241,7 @@
private void processActiveProfilesFromSipService() {
List<SipProfile> activeList = new ArrayList<>();
try {
- activeList = mSipManager.getListOfProfiles();
+ activeList = mSipManager.getProfiles();
} catch (SipException e) {
log("SipManager could not retrieve SIP profiles: " + e);
}