HomeSort by relevance Sort by last modified time
    Searched refs:phoneAccount (Results 1 - 25 of 66) sorted by null

1 2 3

  /packages/apps/Dialer/java/com/android/voicemail/impl/settings/
VisualVoicemailSettingsUtil.java 34 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) {
35 VvmLog.i("VisualVoicemailSettingsUtil.setEnable", phoneAccount + " enabled:" + isEnabled);
36 new VisualVoicemailPreferences(context, phoneAccount)
40 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccount);
44 VvmAccountManager.removeAccount(context, phoneAccount);
50 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) {
53 new VisualVoicemailPreferences(context, phoneAccount)
59 public static boolean isEnabled(Context context, PhoneAccountHandle phoneAccount) {
60 if (phoneAccount == null) {
64 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount);
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/compat/
PhoneAccountCompat.java 22 import android.telecom.PhoneAccount;
26 * Compatiblity class for {@link android.telecom.PhoneAccount}
33 * Gets the {@link Icon} associated with the given {@link PhoneAccount}
35 * @param phoneAccount the PhoneAccount from which to retrieve the Icon
39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) {
40 if (phoneAccount == null) {
45 return phoneAccount.getIcon();
52 * Builds and returns an icon {@code Drawable} to represent this {@code PhoneAccount} in a use
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/compat/
PhoneAccountCompat.java 22 import android.telecom.PhoneAccount;
26 /** Compatiblity class for {@link android.telecom.PhoneAccount} */
32 * Gets the {@link Icon} associated with the given {@link PhoneAccount}
34 * @param phoneAccount the PhoneAccount from which to retrieve the Icon
38 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) {
39 if (phoneAccount == null) {
44 return phoneAccount.getIcon();
51 * Builds and returns an icon {@code Drawable} to represent this {@code PhoneAccount} in a use
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/
VvmPackageInstallHandler.java 48 for (PhoneAccountHandle phoneAccount :
51 new OmtpVvmCarrierConfigHelper(context, phoneAccount);
63 if (VisualVoicemailSettingsUtil.isEnabledUserSet(context, phoneAccount)) {
77 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccount, false);
VvmPackageInstallReceiver.java 52 for (PhoneAccountHandle phoneAccount :
55 new OmtpVvmCarrierConfigHelper(context, phoneAccount);
67 if (VisualVoicemailSettingsUtil.isEnabledUserSet(context, phoneAccount)) {
77 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccount, false);
  /packages/apps/Dialer/java/com/android/voicemail/impl/sync/
VoicemailStatusQueryHelper.java 56 * @param phoneAccount The phone account for the voicemail source to check.
60 public boolean isVoicemailSourceConfigured(PhoneAccountHandle phoneAccount) {
61 return isFieldEqualTo(phoneAccount, CONFIGURATION_STATE, Status.CONFIGURATION_STATE_OK);
70 public boolean isNotificationsChannelActive(PhoneAccountHandle phoneAccount) {
72 phoneAccount, NOTIFICATION_CHANNEL_STATE, Status.NOTIFICATION_CHANNEL_STATE_OK);
78 * @param phoneAccount The phone account of the voicemail source to query for.
84 private boolean isFieldEqualTo(PhoneAccountHandle phoneAccount, int columnIndex, int value) {
86 if (phoneAccount != null) {
87 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString();
88 String phoneAccountId = phoneAccount.getId()
    [all...]
OmtpVvmSyncReceiver.java 47 for (PhoneAccountHandle phoneAccount : accounts) {
48 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) {
51 if (!VvmAccountManager.isAccountActivated(context, phoneAccount)) {
52 VvmLog.i(TAG, "Unactivated account " + phoneAccount + " found, activating");
53 ActivationTask.start(context, phoneAccount, null);
55 SyncTask.start(context, phoneAccount, OmtpVvmSyncService.SYNC_FULL_SYNC);
VoicemailProviderChangeReceiver.java 36 for (PhoneAccountHandle phoneAccount : VvmAccountManager.getActiveAccounts(context)) {
37 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) {
40 UploadTask.start(context, phoneAccount);
VvmAccountManager.java 70 public static void removeAccount(Context context, PhoneAccountHandle phoneAccount) {
71 VoicemailStatus.disable(context, phoneAccount);
72 VisualVoicemailPreferences preferences = new VisualVoicemailPreferences(context, phoneAccount);
82 listener.onActivationStateChanged(phoneAccount, false);
87 public static boolean isAccountActivated(Context context, PhoneAccountHandle phoneAccount) {
88 Assert.isNotNull(phoneAccount);
89 VisualVoicemailPreferences preferences = new VisualVoicemailPreferences(context, phoneAccount);
OmtpVvmSyncService.java 78 PhoneAccountHandle phoneAccount,
81 Assert.isTrue(phoneAccount != null);
82 VvmLog.v(TAG, "Sync requested: " + action + " - for account: " + phoneAccount);
83 setupAndSendRequest(task, phoneAccount, voicemail, action, status);
88 PhoneAccountHandle phoneAccount,
92 if (!VisualVoicemailSettingsUtil.isEnabled(mContext, phoneAccount)) {
96 if (!VvmAccountManager.isAccountActivated(mContext, phoneAccount)) {
97 ActivationTask.start(mContext, phoneAccount, null);
101 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(mContext, phoneAccount);
107 VoicemailStatus.edit(mContext, phoneAccount), OmtpEvents.DATA_IMAP_OPERATION_STARTED)
    [all...]
VvmNetworkRequestCallback.java 61 Context context, PhoneAccountHandle phoneAccount, VoicemailStatus.Editor status) {
63 mPhoneAccount = phoneAccount;
71 PhoneAccountHandle phoneAccount,
74 mPhoneAccount = phoneAccount;
VvmNetworkRequest.java 99 PhoneAccountHandle phoneAccount,
101 super(config, phoneAccount, status);
  /packages/apps/Dialer/java/com/android/voicemail/impl/utils/
VoicemailDatabaseUtil.java 71 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount();
72 if (phoneAccount != null) {
75 phoneAccount.getComponentName().flattenToString());
76 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId());
  /cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
CallBlockingTest.java 28 import android.telecom.PhoneAccount;
53 final PhoneAccount phoneAccount = PhoneAccount.builder(
56 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)
58 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL))
60 mTelecomManager.registerPhoneAccount(phoneAccount);
74 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(getPhoneAccountHandle());
75 assertNotNull(phoneAccount);
    [all...]
  /packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
CallNotificationReceiver.java 85 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
97 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras);
101 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
114 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras);
119 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
132 TelecomManager.from(context).addNewUnknownCall(phoneAccount, extras);
  /packages/apps/Dialer/java/com/android/dialer/app/settings/
PhoneAccountSelectionFragment.java 28 import android.telecom.PhoneAccount;
79 Context context, PhoneAccountHandle phoneAccountHandle, PhoneAccount phoneAccount) {
82 setTitle(phoneAccount.getLabel());
83 setSummary(phoneAccount.getShortDescription());
84 Icon icon = phoneAccount.getIcon();
116 PhoneAccount account = telecomManager.getPhoneAccount(handle);
119 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
  /frameworks/base/telecomm/java/android/telecom/
PhoneAccount.java 37 * {@link TelecomManager} uses registered {@link PhoneAccount}s to present the user with
38 * alternative options when placing a phone call. When building a {@link PhoneAccount}, the app
42 public final class PhoneAccount implements Parcelable {
45 * {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()}) which determines the
57 * {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()}) which determines the
71 * Flag indicating that this {@code PhoneAccount} can act as a connection manager for
72 * other connections. The {@link ConnectionService} associated with this {@code PhoneAccount}
77 * {@link ConnectionService} associated with this {@code PhoneAccount} will be attempted firs
    [all...]
ParcelableConference.java 46 PhoneAccountHandle phoneAccount,
56 mPhoneAccount = phoneAccount;
135 PhoneAccountHandle phoneAccount = source.readParcelable(classLoader);
148 return new ParcelableConference(phoneAccount, state, capabilities, properties,
ParcelableConnection.java 58 PhoneAccountHandle phoneAccount,
77 this(phoneAccount, state, capabilities, properties, supportedAudioRoutes, address,
86 PhoneAccountHandle phoneAccount,
104 mPhoneAccount = phoneAccount;
237 PhoneAccountHandle phoneAccount = source.readParcelable(classLoader);
260 phoneAccount,
  /frameworks/base/services/core/java/com/android/server/telecom/
TelecomLoaderService.java 108 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager();
109 if (phoneAccount != null) {
112 phoneAccount.getComponentName().getPackageName();
263 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager(userId);
264 if (phoneAccount != null) {
265 return new String[]{phoneAccount.getComponentName().getPackageName()};
334 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager(userId);
335 if (phoneAccount != null) {
337 String packageName = phoneAccount.getComponentName().getPackageName();
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipBroadcastReceiver.java 25 import android.telecom.PhoneAccount;
84 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle);
85 if(phoneAccount != null && phoneAccount.isEnabled()) {
88 log("takeCall, PhoneAccount is disabled. Not accepting incoming call...");
  /packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
MissedCallNotifierImplTest.java 36 import android.telecom.PhoneAccount;
200 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY);
202 CALL_TIMESTAMP, phoneAccount.getAccountHandle());
227 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY);
229 CALL_TIMESTAMP, phoneAccount.getAccountHandle());
284 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY);
285 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER)
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/simulator/impl/
SimulatorConnectionService.java 25 import android.telecom.PhoneAccount;
43 private static PhoneAccount buildPhoneAccount(Context context) {
44 PhoneAccount.Builder builder =
45 new PhoneAccount.Builder(
48 uriSchemes.add(PhoneAccount.SCHEME_TEL);
51 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)
64 return Uri.fromParts(PhoneAccount.SCHEME_TEL, phoneNumber, null);
69 PhoneAccountHandle phoneAccount, ConnectionRequest request) {
78 PhoneAccountHandle phoneAccount, ConnectionRequest request) {
  /packages/services/Telecomm/src/com/android/server/telecom/
CreateConnectionProcessor.java 23 import android.telecom.PhoneAccount;
49 // The PhoneAccount describing the target connection service which we will
52 // The PhoneAccount which we will tell the target connection service to use
189 // If the target PhoneAccount differs from the ConnectionManager phone acount, ensure it
195 "Target PhoneAccount does not have BIND_TELECOM_CONNECTION_SERVICE for "
204 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount;
205 mService = mRepository.getService(phoneAccount.getComponentName(),
206 phoneAccount.getUserHandle());
270 PhoneAccount targetPhoneAccount = mPhoneAccountRegistrar
277 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) != 0
    [all...]
  /cts/tests/tests/telecom/src/android/telecom/cts/
CallScreeningServiceTest.java 31 import android.telecom.PhoneAccount;
49 public static final PhoneAccount TEST_PHONE_ACCOUNT = PhoneAccount.builder(
52 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER |
53 PhoneAccount.CAPABILITY_CONNECTION_MANAGER)
54 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL)
157 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle);
158 return (phoneAccount != null && phoneAccount.isEnabled())
    [all...]

Completed in 686 milliseconds

1 2 3