/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/ |
Cp2Projections.java | 21 import android.provider.ContactsContract.CommonDataKinds.Phone; 33 // Projection for performing lookups using the PHONE table 36 Phone.DISPLAY_NAME_PRIMARY, // 0 37 Phone.PHOTO_THUMBNAIL_URI, // 1 38 Phone.PHOTO_URI, // 2 39 Phone.PHOTO_ID, // 3 40 Phone.TYPE, // 4 41 Phone.LABEL, // 5 42 Phone.NORMALIZED_NUMBER, // 6 43 Phone.CONTACT_ID, // [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneFactory.java | 19 import com.android.internal.telephony.Phone; 32 * @param context {@code Context} needed to create a Phone object 33 * @param phoneNotifier {@code PhoneNotifier} needed to create a Phone 38 PhoneNotifier phoneNotifier, Phone defaultPhone) {
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
TestInCallServiceImpl.java | 24 import android.telecom.Phone; 38 private Phone mPhone; 40 private Phone.Listener mPhoneListener = new Phone.Listener() { 42 public void onCallAdded(Phone phone, Call call) { 53 public void onCallRemoved(Phone phone, Call call) { 60 public void onPhoneCreated(Phone phone) { [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CdmaSystemSelectListPreference.java | 17 package com.android.phone; 31 import com.android.internal.telephony.Phone; 39 private Phone mPhone; 72 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 76 case Phone.CDMA_RM_ANY: 77 statusCdmaRoamingMode = Phone.CDMA_RM_ANY; 79 case Phone.CDMA_RM_HOME: 81 statusCdmaRoamingMode = Phone.CDMA_RM_HOME; 122 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 124 if (statusCdmaRoamingMode == Phone.CDMA_RM_HOME | [all...] |
CdmaSubscriptionListPreference.java | 17 package com.android.phone; 30 import com.android.internal.telephony.Phone; 43 static final int preferredSubscriptionMode = Phone.PREFERRED_CDMA_SUBSCRIPTION; 45 private Phone mPhone; 87 statusCdmaSubscriptionMode = Phone.CDMA_SUBSCRIPTION_NV; 90 statusCdmaSubscriptionMode = Phone.CDMA_SUBSCRIPTION_RUIM_SIM; 93 statusCdmaSubscriptionMode = Phone.PREFERRED_CDMA_SUBSCRIPTION;
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk5.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 36 * one and the phone number from the other. 74 // Load the phone number (if any). 75 cursor = contentResolver.query(Phone.CONTENT_URI, 76 new String[]{Phone.NUMBER}, 77 Phone.CONTACT_ID + "=" + contactId, null, Phone.IS_SUPER_PRIMARY + " DESC");
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
FallbackSource.java | 33 import android.provider.ContactsContract.CommonDataKinds.Phone; 86 return new EditType(type, Phone.getTypeLabelResource(type)); 179 DataKind kind = getKindForMimetype(Phone.CONTENT_ITEM_TYPE); 181 kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup, 186 kind.actionBody = new SimpleInflater(Phone.NUMBER); 190 kind.typeColumn = Phone.TYPE; 192 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 193 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 194 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 195 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/util/ |
DevicePolicyUtils.java | 25 import android.provider.ContactsContract.CommonDataKinds.Phone; 52 return isBluetoothWorkContactSharingDisabled(context) ? Phone.CONTENT_URI 53 : Phone.ENTERPRISE_CONTENT_URI;
|
/packages/services/Telephony/src/com/android/services/telephony/ |
TelephonyGlobals.java | 21 import com.android.internal.telephony.Phone; 32 * app - running as the default user. {@link com.android.phone.PhoneApp} determines whether or not 42 // For supporting MSIM phone, change Phone and TtyManager as 1 to 1 63 Phone[] phones = PhoneFactory.getPhones(); 64 for (Phone phone : phones) { 65 mTtyManagers.add(new TtyManager(mContext, phone));
|
TtyManager.java | 29 import com.android.internal.telephony.Phone; 36 private final Phone mPhone; 73 TtyManager(Context context, Phone phone) { 74 mPhone = phone; 134 return Phone.TTY_MODE_FULL; 136 return Phone.TTY_MODE_OFF; 142 case Phone.TTY_MODE_FULL: 144 case Phone.TTY_MODE_VCO: 146 case Phone.TTY_MODE_HCO [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactTileLoaderFactory.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 49 // contact id for strequent items, we thus have to use Phone.contact_id instead. 67 * and status data and the addition of phone number and label. 76 Phone.NUMBER, // ..........................................5 77 Phone.TYPE, // ............................................6 78 Phone.LABEL, // ...........................................7 79 Phone.IS_SUPER_PRIMARY, //.................................8 81 Phone.CONTACT_ID, //.......................................10
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
TelephonyConnectionServiceTest.java | 48 import com.android.internal.telephony.Phone; 103 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_IN_SERVICE, 105 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE, 110 Phone resultPhone = mTestConnectionService.getFirstPhoneForEmergencyCall(); 120 * Result: getFirstPhoneForEmergencyCall returns the slot 1 phone 125 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE, 127 Phone slot1Phone = makeTestPhone(SLOT_1_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE, 132 Phone resultPhone = mTestConnectionService.getFirstPhoneForEmergencyCall(); 142 * Result: getFirstPhoneForEmergencyCall returns the slot 1 phone 147 Phone slot0Phone = makeTestPhone(SLOT_0_PHONE_ID, ServiceState.STATE_OUT_OF_SERVICE 768 Phone phone = c.getPhone(); local 814 Phone phone = mock(Phone.class); local [all...] |
/external/guice/examples/src/example/xml/ |
Main.java | 31 final URL xmlUrl = Main.class.getResource("phone.xml"); 40 Phone phone = injector.getInstance(Phone.class); local 42 if (phone.getContacts() == null) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
TelephonyComponentFactory.java | 52 public GsmCdmaCallTracker makeGsmCdmaCallTracker(GsmCdmaPhone phone) { 53 return new GsmCdmaCallTracker(phone); 56 public SmsStorageMonitor makeSmsStorageMonitor(Phone phone) { 57 return new SmsStorageMonitor(phone); 64 public ServiceStateTracker makeServiceStateTracker(GsmCdmaPhone phone, CommandsInterface ci) { 65 return new ServiceStateTracker(phone, ci); 71 public NitzStateMachine makeNitzStateMachine(GsmCdmaPhone phone) { 72 return new NitzStateMachine(phone); 75 public SimActivationTracker makeSimActivationTracker(Phone phone) [all...] |
DefaultPhoneNotifier.java | 50 public void notifyPhoneState(Phone sender) { 70 public void notifyServiceState(Phone sender) { 91 public void notifySignalStrength(Phone sender) { 110 public void notifyMessageWaitingChanged(Phone sender) { 125 public void notifyCallForwardingChanged(Phone sender) { 141 public void notifyDataActivity(Phone sender) { 154 public void notifyDataConnection(Phone sender, String reason, String apnType, 159 private void doNotifyDataConnection(Phone sender, String reason, String apnType, 198 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType) { 210 public void notifyCellLocation(Phone sender) [all...] |
PhoneSubInfoController.java | 44 private final Phone[] mPhone; 48 public PhoneSubInfoController(Context context, Phone[] phone) { 49 mPhone = phone; 66 final Phone phone = mPhone[phoneId]; local 67 if (phone != null) { 69 mContext, phone.getSubId(), callingPackage, "getDeviceId")) { 72 return phone.getDeviceId(); 74 loge("getDeviceIdForPhone phone " + phoneId + " is null") 80 Phone phone = getPhone(subId); local 94 Phone phone = getPhone(subId); local 109 Phone phone = getPhone(subId); local 125 Phone phone = getPhone(subId); local 143 Phone phone = getPhone(subId); local 160 Phone phone = getPhone(subId); local 178 Phone phone = getPhone(subId); local 199 Phone phone = getPhone(subId); local 217 Phone phone = getPhone(subId); local 236 Phone phone = getPhone(subId); local 254 Phone phone = getPhone(subId); local 272 Phone phone = getPhone(subId); local 293 Phone phone = getPhone(subId); local 310 Phone phone = getPhone(subId); local 366 Phone phone = getPhone(subId); local 386 Phone phone = getPhone(subId); local 406 Phone phone = getPhone(subId); local 426 Phone phone = getPhone(subId); local 446 Phone phone = getPhone(subId); local 468 Phone phone = getPhone(subId); local 495 Phone phone = getPhone(subId); local [all...] |
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkApp.java | 32 import com.android.internal.telephony.Phone; 74 Log.d(TAG, "- state: " + intent.getBooleanExtra(Phone.STATE_KEY, false)); 77 Log.d(TAG, "- apnName: " + intent.getStringExtra(Phone.DATA_APN_KEY)); 78 Log.d(TAG, "- apnType: " + intent.getStringExtra(Phone.DATA_APN_TYPE_KEY)); 79 Log.d(TAG, "- state: " + intent.getStringExtra(Phone.STATE_KEY)); 80 Log.d(TAG, "- reason: " + intent.getStringExtra(Phone.STATE_CHANGE_REASON_KEY)); 82 intent.getBooleanExtra(Phone.NETWORK_UNAVAILABLE_KEY, false)); 87 Log.d(TAG, "- phoneName: " + intent.getStringExtra(Phone.PHONE_NAME_KEY)); 90 Log.d(TAG, "- reason: " + intent.getStringExtra(Phone.STATE_CHANGE_REASON_KEY)); 97 Log.d(TAG, "- phoneName: " + intent.getStringExtra(Phone.PHONE_NAME_KEY)) 131 Phone phone = PhoneFactory.getDefaultPhone(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
PhoneDataItem.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 27 * Represents a phone data item, wrapping the columns in 28 * {@link ContactsContract.CommonDataKinds.Phone}. 44 return getContentValues().getAsString(Phone.NUMBER); 48 * Returns the normalized phone number in E164 format. 51 return getContentValues().getAsString(Phone.NORMALIZED_NUMBER); 59 return getContentValues().getAsString(Phone.LABEL); 88 * Returns the formatted phone number (if already computed using {@link 89 * #computeFormattedPhoneNumber}). Otherwise this method returns the unformatted phone number.
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
PhoneDataItem.java | 21 import android.provider.ContactsContract.CommonDataKinds.Phone; 25 * Represents a phone data item, wrapping the columns in {@link 26 * android.provider.ContactsContract.CommonDataKinds.Phone}. 37 return getContentValues().getAsString(Phone.NUMBER); 40 /** Returns the normalized phone number in E164 format. */ 42 return getContentValues().getAsString(Phone.NORMALIZED_NUMBER); 50 return getContentValues().getAsString(Phone.LABEL); 64 * Returns the formatted phone number (if already computed using {@link 65 * #computeFormattedPhoneNumber}). Otherwise this method returns the unformatted phone number.
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
Constants.java | 20 import android.provider.ContactsContract.CommonDataKinds.Phone; 29 * Specific MIME-type for {@link Phone#CONTENT_ITEM_TYPE} entries that
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ValuesDeltaTests.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 45 after.put(Phone.NUMBER, TEST_PHONE_NUMBER_2); 65 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); 77 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); 80 values.put(Phone.NUMBER, TEST_PHONE_NUMBER_2);
|
RawContactModifierTests.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 91 // Phone allows maximum 2 home, 1 work, and unlimited other, with 94 Phone.CONTENT_ITEM_TYPE, -1, 10, true); 97 phoneKind.typeColumn = Phone.TYPE; 99 phoneKind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); 100 phoneKind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); 101 phoneKind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); 102 phoneKind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); 105 phoneKind.fieldList.add(new EditField(Phone.NUMBER, -1, -1)); 106 phoneKind.fieldList.add(new EditField(Phone.LABEL, -1, -1)) [all...] |
RawContactDeltaTests.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 68 final ContentValues phone = new ContentValues(); local 69 phone.put(Data._ID, phoneId); 70 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); 71 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); 72 phone.put(Phone.TYPE, Phone.TYPE_HOME) 101 final ContentValues phone = new ContentValues(); local 177 final ContentValues phone = new ContentValues(); local 220 final ContentValues phone = new ContentValues(); local 354 final ContentValues phone = new ContentValues(); local [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
ContactDisplayUtilTests.java | 19 import static android.provider.ContactsContract.CommonDataKinds.Phone; 49 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_CUSTOM)); 50 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_ASSISTANT)); 54 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_HOME)); 55 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_FAX_WORK)); 56 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_MOBILE)); 57 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_OTHER)); 61 final CharSequence smsResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, 65 final CharSequence callResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, 71 CharSequence result = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_HOME, "" [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ExpandableList2.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 43 Phone._ID, 44 Phone.NUMBER 89 // Return a cursor that points to this contact's phone numbers 96 PHONE_NUMBER_PROJECTION, Phone.MIMETYPE + "=?", 97 new String[] { Phone.CONTENT_ITEM_TYPE }, null); 117 new String[] { Phone.NUMBER }, // Number for child layouts
|