/packages/services/Telephony/src/com/android/phone/vvm/ |
PhoneAccountHandleConverter.java | 17 package com.android.phone.vvm; 22 import com.android.internal.telephony.Phone; 24 import com.android.phone.PhoneUtils; 25 import com.android.phone.vvm.VvmLog; 44 // phone object cannot be found, so the Phone object should be created and checked here. 45 Phone phone = PhoneFactory.getPhone(SubscriptionManager.getPhoneId(subId)); local 46 if (phone == null) { 47 VvmLog.e(TAG, "Unable to find Phone for subId " + subId) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
MmiCode.java | 51 * @return Phone associated with the MMI/USSD message 53 public Phone getPhone();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
DcTesterDeactivateAll.java | 27 import com.android.internal.telephony.Phone; 38 private Phone mPhone; 68 DcTesterDeactivateAll(Phone phone, DcController dcc, Handler handler) { 69 mPhone = phone; 81 phone.getContext().registerReceiver(sIntentReceiver, filter, null, handler);
|
DcTesterFailBringUpAll.java | 27 import com.android.internal.telephony.Phone; 44 private Phone mPhone; 77 DcTesterFailBringUpAll(Phone phone, Handler handler) { 78 mPhone = phone; 91 phone.getContext().registerReceiver(mIntentReceiver, filter, null, handler);
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
PhoneQuery.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 48 new String[] {Phone.DISPLAY_NAME_ALTERNATIVE, Phone.CARRIER_PRESENCE};
|
/packages/services/Telephony/src/com/android/services/telephony/ |
PstnPhoneCapabilitiesNotifier.java | 26 import com.android.internal.telephony.Phone; 28 import com.android.phone.PhoneUtils; 31 * Listens to phone's capabilities changed event and notifies Telecomm. One instance of these exists 44 private final Phone mPhone; 61 PstnPhoneCapabilitiesNotifier(Phone phone, Listener listener) { 62 Preconditions.checkNotNull(phone); 64 mPhone = phone;
|
RadioOnStateListener.java | 27 import com.android.internal.telephony.Phone; 30 * Helper class that listens to a Phone's radio state and sends an onComplete callback when we 42 * Given the Phone and the new service state of that phone, return whether or not this 43 * phone is ok to call. If it is, onComplete will be called shortly after. 45 boolean isOkToCall(Phone phone, int serviceState); 67 Phone phone = (Phone) args.arg1 [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
InCallService.java | 44 * phone calls. Telecom binds to this service while there exists a live (active or incoming) call, 46 * first be set as the default phone app (See {@link TelecomManager#getDefaultDialerPackage()}) 80 * to see if they would like your application to be the new default phone app. See the 117 mPhone = new Phone(new InCallAdapter((IInCallAdapter) msg.obj), callingPackage, 273 private Phone.Listener mPhoneListener = new Phone.Listener() { 276 public void onAudioStateChanged(Phone phone, AudioState audioState) { 280 public void onCallAudioStateChanged(Phone phone, CallAudioState callAudioState) [all...] |
Phone.java | 39 public final class Phone { 45 * @param phone The {@code Phone} calling this method. 48 * @deprecated Use {@link #onCallAudioStateChanged(Phone, CallAudioState)} instead. 51 public void onAudioStateChanged(Phone phone, AudioState audioState) { } 56 * @param phone The {@code Phone} calling this method. 59 public void onCallAudioStateChanged(Phone phone, CallAudioState callAudioState) { [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
PhoneNumberListAdapter.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 60 * A cursor adapter for the {@link Phone#CONTENT_ITEM_TYPE} and {@link 63 * <p>By default this adapter just handles phone numbers. When {@link #setUseCallableUri(boolean)} 65 * API instead of {@link Phone}. 70 private static final String IGNORE_NUMBER_TOO_LONG_CLAUSE = "length(" + Phone.NUMBER + ") < 1000"; 137 Uri baseUri = mUseCallableUri ? Callable.CONTENT_URI : Phone.CONTENT_URI; 144 builder.appendQueryParameter(Phone.EXTRA_ADDRESS_BOOK_INDEX, "true"); 149 // Ignore invalid phone numbers that are too long. These can potentially cause freezes 172 loader.setSortOrder(Phone.SORT_KEY_PRIMARY); 174 loader.setSortOrder(Phone.SORT_KEY_ALTERNATIVE) [all...] |
/packages/apps/EmergencyInfo/tests/common/src/com/android/emergency/ |
ContactTestUtils.java | 31 /** Deletes contacts that match the given name and phone number. */ 34 String phone) { 36 Uri.encode(phone)); 60 * Creates a new contact with the given name and phone number. Returns the 61 * ContactsContract.CommonDataKinds.Phone.CONTENT_URI corresponding to the new contact. 73 ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE); 93 ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); 94 values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, phoneNumber); 95 values.put(ContactsContract.CommonDataKinds.Phone.TYPE, type); 96 values.put(ContactsContract.CommonDataKinds.Phone.LABEL, "Mobile") [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
TestDataFactory.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 60 Phone.CONTACT_ID, 61 Phone.DISPLAY_NAME_PRIMARY, 62 Phone.PHOTO_THUMBNAIL_URI, 63 Phone.NUMBER, 64 Phone.TYPE, 65 Phone.LABEL, 66 Phone.LOOKUP_KEY, 67 Phone._ID, 68 Phone.SORT_KEY_PRIMARY [all...] |
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
TestTelephonyConnection.java | 30 import com.android.internal.telephony.Phone; 53 private Phone mMockPhone; 67 mMockPhone = mock(Phone.class); 86 public void setMockPhone(Phone newPhone) { 91 public Phone getPhone() {
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
PhoneNumberListAdapter.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 56 * A cursor adapter for the {@link Phone#CONTENT_ITEM_TYPE} and 59 * By default this adapter just handles phone numbers. When {@link #setUseCallableUri(boolean)} is 61 * API instead of {@link Phone}. 100 Phone._ID, // 0 101 Phone.TYPE, // 1 102 Phone.LABEL, // 2 103 Phone.NUMBER, // 3 104 Phone.CONTACT_ID, // 4 105 Phone.LOOKUP_KEY, // [all...] |
/packages/services/Telephony/src/com/android/phone/ |
MobileNetworkSettings.java | 17 package com.android.phone; 77 import com.android.internal.telephony.Phone; 81 import com.android.phone.settings.PhoneAccountSettingsFragment; 93 * tablets as well as regular phone devices. 95 * Note that this Activity is part of the phone app, even though 98 * available from the Phone app (see CallFeaturesSetting for that.) 250 // Number of last phone number digits shown in Euicc Setting tab 282 static final int preferredNetworkMode = Phone.PREFERRED_NT_MODE; 316 private Phone mPhone; [all...] |
CallBarringDeselectAllPreference.java | 17 package com.android.phone; 27 import com.android.internal.telephony.Phone; 29 import com.android.phone.settings.fdn.EditPinPreference; 39 private Phone mPhone; 70 void init(Phone phone) { 72 Log.d(LOG_TAG, "init: phoneId = " + phone.getPhoneId()); 74 mPhone = phone;
|
RoamingDialogFragment.java | 16 package com.android.phone; 30 import com.android.internal.telephony.Phone; 48 private Phone mPhone; 50 public void setPhone(Phone phone) { 51 mPhone = phone;
|
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/ |
ContactsPopulator.java | 28 import android.provider.ContactsContract.CommonDataKinds.Phone; 43 // Phone numbers from https://www.google.com/about/company/facts/locations/ 48 .addPhoneNumber(new PhoneNumber("+1-302-6365454", Phone.TYPE_MOBILE)) 57 .addPhoneNumber(new PhoneNumber("(425) 739-5600", Phone.TYPE_MOBILE)) 66 .addPhoneNumber(new PhoneNumber("+44 (0) 20 7031 3000", Phone.TYPE_MOBILE)) 72 // US and Australia, contact with a long name and multiple phone numbers. 75 .addPhoneNumber(new PhoneNumber("+1-650-2530000", Phone.TYPE_HOME)) 76 .addPhoneNumber(new PhoneNumber("+1 404-487-9000", Phone.TYPE_WORK)) 77 .addPhoneNumber(new PhoneNumber("+61 2 9374 4001", Phone.TYPE_FAX_HOME)) 82 // US, phone number shared with another contact and 2nd phone number with wait and pause [all...] |
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
DisambigDialog.java | 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 104 * <li>Header for each unique phone number 105 * <li>Clickable video option if the phone number is video reachable (ViLTE, Duo) 138 /** Inserts a group of options for a specific phone number. */ 177 if (numberType == Phone.TYPE_CUSTOM && TextUtils.isEmpty(numberLabel)) { 180 return (String) Phone.getTypeLabel(resources, numberType, numberLabel); 213 new String[] {Phone.NUMBER, Phone.TYPE, Phone.LABEL, Phone.CARRIER_PRESENCE} [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
GoogleAccountType.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 89 kind.typeColumn = Phone.TYPE; 91 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 92 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 93 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 94 kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN)); 95 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); 96 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); 97 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); 98 kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER)) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/account/ |
GoogleAccountType.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 85 kind.typeColumn = Phone.TYPE; 87 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 88 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 89 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 90 kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN)); 91 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); 92 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); 93 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); 94 kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER)) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_DataTest.java | 33 import android.provider.ContactsContract.CommonDataKinds.Phone; 150 cv2.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); 151 cv2.put(Phone.DATA, "510-123-5769"); 152 cv2.put(Phone.TYPE, Phone.TYPE_HOME); 178 cv6.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); 179 cv6.put(Phone.DATA, "518-354-1111"); 180 cv6.put(Phone.TYPE, Phone.TYPE_HOME); 449 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE [all...] |
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/ |
DirectoryContactsCursorLoader.java | 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 46 Uri.withAppendedPath(Phone.CONTENT_URI, "filter_enterprise"); 48 private static final String IGNORE_NUMBER_TOO_LONG_CLAUSE = "length(" + Phone.NUMBER + ") < 1000"; 49 private static final String PHONE_NUMBER_NOT_NULL = Phone.NUMBER + " IS NOT NULL"; 63 Phone.SORT_KEY_PRIMARY); 96 // directory extension doesn't appear to respect it, and sometimes returns a null phone 151 : Phone.CONTENT_FILTER_URI;
|
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
ContactDbUtil.java | 41 import android.provider.ContactsContract.CommonDataKinds.Phone; 55 String selection = ContactsContract.Data.MIMETYPE + " = '" + Phone.CONTENT_ITEM_TYPE + "'"; 70 String selection = ContactsContract.Data.MIMETYPE + " = '" + Phone.CONTENT_ITEM_TYPE
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
GoogleSource.java | 38 import android.provider.ContactsContract.CommonDataKinds.Phone; 87 kind.typeColumn = Phone.TYPE; 89 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 90 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 91 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 92 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)); 93 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true)); 94 kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true)); 95 kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER)); 96 kind.typeList.add(buildPhoneType(Phone.TYPE_CUSTOM).setSecondary(true).setCustomColumn [all...] |