use of android.telecom.PhoneAccount in project android_frameworks_base by ResurrectionRemix.
the class Telecom method runRegisterSimPhoneAccount.
private void runRegisterSimPhoneAccount() throws RemoteException {
final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
final String label = nextArgRequired();
final String address = nextArgRequired();
PhoneAccount account = PhoneAccount.builder(handle, label).setAddress(Uri.parse(address)).setSubscriptionAddress(Uri.parse(address)).setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION).setShortDescription(label).addSupportedUriScheme(PhoneAccount.SCHEME_TEL).addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL).build();
mTelecomService.registerPhoneAccount(account);
System.out.println("Success - " + handle + " registered.");
}
use of android.telecom.PhoneAccount in project android_frameworks_base by DirtyUnicorns.
the class Telecom method runRegisterSimPhoneAccount.
private void runRegisterSimPhoneAccount() throws RemoteException {
final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
final String label = nextArgRequired();
final String address = nextArgRequired();
PhoneAccount account = PhoneAccount.builder(handle, label).setAddress(Uri.parse(address)).setSubscriptionAddress(Uri.parse(address)).setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION).setShortDescription(label).addSupportedUriScheme(PhoneAccount.SCHEME_TEL).addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL).build();
mTelecomService.registerPhoneAccount(account);
System.out.println("Success - " + handle + " registered.");
}
use of android.telecom.PhoneAccount in project android_frameworks_base by DirtyUnicorns.
the class Telecom method runRegisterPhoneAccount.
private void runRegisterPhoneAccount() throws RemoteException {
final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
final String label = nextArgRequired();
PhoneAccount account = PhoneAccount.builder(handle, label).setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER).build();
mTelecomService.registerPhoneAccount(account);
System.out.println("Success - " + handle + " registered.");
}
use of android.telecom.PhoneAccount in project android_frameworks_base by AOSPA.
the class Telecom method runRegisterPhoneAccount.
private void runRegisterPhoneAccount() throws RemoteException {
final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
final String label = nextArgRequired();
PhoneAccount account = PhoneAccount.builder(handle, label).setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER).build();
mTelecomService.registerPhoneAccount(account);
System.out.println("Success - " + handle + " registered.");
}
use of android.telecom.PhoneAccount in project platform_frameworks_base by android.
the class Telecom method runRegisterPhoneAccount.
private void runRegisterPhoneAccount() throws RemoteException {
final PhoneAccountHandle handle = getPhoneAccountHandleFromArgs();
final String label = nextArgRequired();
PhoneAccount account = PhoneAccount.builder(handle, label).setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER).build();
mTelecomService.registerPhoneAccount(account);
System.out.println("Success - " + handle + " registered.");
}
Aggregations