/frameworks/base/telephony/java/com/android/internal/telephony/ |
PhoneNotifier.java | 24 public void notifyPhoneState(Phone sender); 26 public void notifyServiceState(Phone sender); 28 public void notifyCellLocation(Phone sender); 30 public void notifySignalStrength(Phone sender); 32 public void notifyMessageWaitingChanged(Phone sender); 34 public void notifyCallForwardingChanged(Phone sender); 36 public void notifyDataConnection(Phone sender, String reason); 38 public void notifyDataConnectionFailed(Phone sender, String reason); 40 public void notifyDataActivity(Phone sender);
|
DefaultPhoneNotifier.java | 42 public void notifyPhoneState(Phone sender) { 55 public void notifyServiceState(Phone sender) { 63 public void notifySignalStrength(Phone sender) { 71 public void notifyMessageWaitingChanged(Phone sender) { 79 public void notifyCallForwardingChanged(Phone sender) { 87 public void notifyDataActivity(Phone sender) { 95 public void notifyDataConnection(Phone sender, String reason) { 112 public void notifyDataConnectionFailed(Phone sender, String reason) { 120 public void notifyCellLocation(Phone sender) { 138 public static int convertCallState(Phone.State state) [all...] |
DataConnectionTracker.java | 125 protected String mRequestedApnType = Phone.APN_TYPE_DEFAULT; 168 protected PhoneBase phone; field in class:DataConnectionTracker 194 protected DataConnectionTracker(PhoneBase phone) { 196 this.phone = phone; 238 Settings.Secure.putInt(phone.getContext().getContentResolver(), 240 if (phone.getServiceState().getRoaming()) { 252 return Settings.Secure.getInt(phone.getContext().getContentResolver(), 371 if (TextUtils.equals(type, Phone.APN_TYPE_DEFAULT)) { 373 } else if (TextUtils.equals(type, Phone.APN_TYPE_MMS)) [all...] |
PhoneFactory.java | 34 static final String LOG_TAG = "PHONE"; 39 static private Phone sProxyPhone = null; 62 synchronized(Phone.class) { 113 if (phoneType == Phone.PHONE_TYPE_GSM) { 117 } else if (phoneType == Phone.PHONE_TYPE_CDMA) { 129 * This function returns the type of the phone, depending 133 * @return Phone Type 140 return Phone.PHONE_TYPE_CDMA; 146 return Phone.PHONE_TYPE_GSM; 149 return Phone.PHONE_TYPE_CDMA 169 Phone phone = new CDMAPhone(sContext, sCommandsInterface, sPhoneNotifier); local 176 Phone phone = new GSMPhone(sContext, sCommandsInterface, sPhoneNotifier); local [all...] |
PhoneStateIntentReceiver.java | 40 private static final String LOG_TAG = "PHONE"; 49 Phone.State mPhoneState = Phone.State.IDLE; 81 public Phone.State getPhoneState() { 198 + intent.getStringExtra(Phone.STATE_KEY)); 199 String phoneState = intent.getStringExtra(Phone.STATE_KEY); 200 mPhoneState = (Phone.State) Enum.valueOf( 201 Phone.State.class, phoneState);
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TestPhoneNotifier.java | 27 public void notifyPhoneState(Phone sender) { 30 public void notifyServiceState(Phone sender) { 33 public void notifyCellLocation(Phone sender) { 36 public void notifySignalStrength(Phone sender) { 39 public void notifyMessageWaitingChanged(Phone sender) { 42 public void notifyCallForwardingChanged(Phone sender) { 45 public void notifyDataConnection(Phone sender, String reason) { 48 public void notifyDataConnectionFailed(Phone sender, String reason) { 51 public void notifyDataActivity(Phone sender) {
|
/packages/apps/Phone/src/com/android/phone/ |
TelephonyCapabilities.java | 17 package com.android.phone; 23 import com.android.internal.telephony.Phone; 27 * functions that depend upon the type of phone or the carrier. Ultimately 43 /* package */ static boolean useShortDtmfTones(Phone phone, Context context) { 44 int phoneType = phone.getPhoneType(); 45 if (phoneType == Phone.PHONE_TYPE_GSM) { 47 } else if (phoneType == Phone.PHONE_TYPE_CDMA) { 57 } else if (phoneType == Phone.PHONE_TYPE_SIP) { 61 throw new IllegalStateException("Unexpected phone type: " + phoneType) [all...] |
Settings.java | 17 package com.android.phone; 37 import com.android.internal.telephony.Phone; 43 * List of Phone-specific settings screens. 59 static final int preferredNetworkMode = Phone.PREFERRED_NT_MODE; 70 private Phone mPhone; 200 if (phoneType == Phone.PHONE_TYPE_CDMA) { 202 } else if (phoneType == Phone.PHONE_TYPE_GSM) { 205 throw new IllegalStateException("Unexpected phone type: " + phoneType); 263 case Phone.NT_MODE_GLOBAL: 264 modemNetworkMode = Phone.NT_MODE_GLOBAL [all...] |
CdmaSystemSelectListPreference.java | 17 package com.android.phone; 30 import com.android.internal.telephony.Phone; 39 private Phone mPhone; 73 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 77 case Phone.CDMA_RM_ANY: 78 statusCdmaRoamingMode = Phone.CDMA_RM_ANY; 80 case Phone.CDMA_RM_HOME: 82 statusCdmaRoamingMode = Phone.CDMA_RM_HOME; 123 Secure.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 125 if (statusCdmaRoamingMode == Phone.CDMA_RM_HOME | [all...] |
GsmUmtsCallOptions.java | 17 package com.android.phone; 25 import com.android.internal.telephony.Phone; 38 if (PhoneFactory.getDefaultPhone().getPhoneType() != Phone.PHONE_TYPE_GSM) {
|
CdmaSubscriptionListPreference.java | 17 package com.android.phone; 29 import com.android.internal.telephony.Phone; 44 private Phone mPhone; 86 statusCdmaSubscriptionMode = Phone.CDMA_SUBSCRIPTION_NV; 89 statusCdmaSubscriptionMode = Phone.CDMA_SUBSCRIPTION_RUIM_SIM; 92 statusCdmaSubscriptionMode = Phone.PREFERRED_CDMA_SUBSCRIPTION;
|
Use2GOnlyCheckBoxPreference.java | 17 package com.android.phone; 27 import com.android.internal.telephony.Phone; 34 private Phone mPhone; 57 int networkType = isChecked() ? Phone.NT_MODE_GSM_ONLY : Phone.NT_MODE_WCDMA_PREF; 87 setChecked(type == Phone.NT_MODE_GSM_ONLY);
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
ContactsUtilsTests.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 133 checkShouldCollapse("41", true, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE, 135 checkShouldCollapse("42", true, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "1"); 137 checkShouldCollapse("51", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, 139 checkShouldCollapse("52", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, 141 checkShouldCollapse("53", false, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE [all...] |
EntityModifierTests.java | 44 import android.provider.ContactsContract.CommonDataKinds.Phone; 88 // Phone allows maximum 2 home, 1 work, and unlimited other, with 90 DataKind kind = new DataKind(Phone.CONTENT_ITEM_TYPE, -1, -1, 10, true); 93 kind.typeColumn = Phone.TYPE; 95 kind.typeList.add(new EditType(Phone.TYPE_HOME, -1).setSpecificMax(2)); 96 kind.typeList.add(new EditType(Phone.TYPE_WORK, -1).setSpecificMax(1)); 97 kind.typeList.add(new EditType(Phone.TYPE_FAX_WORK, -1).setSecondary(true)); 98 kind.typeList.add(new EditType(Phone.TYPE_OTHER, -1)); 101 kind.fieldList.add(new EditField(Phone.NUMBER, -1, -1)); 102 kind.fieldList.add(new EditField(Phone.LABEL, -1, -1)) [all...] |
EntityDeltaTests.java | 35 import android.provider.ContactsContract.CommonDataKinds.Phone; 73 final ContentValues phone = new ContentValues(); local 74 phone.put(Data._ID, phoneId); 75 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); 76 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); 77 phone.put(Phone.TYPE, Phone.TYPE_HOME) 106 final ContentValues phone = new ContentValues(); local 223 final ContentValues phone = new ContentValues(); local 263 final ContentValues phone = new ContentValues(); local 388 final ContentValues phone = new ContentValues(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 44 Phone.TYPE_CUSTOM, 45 Phone.TYPE_MOBILE, 46 Phone.TYPE_HOME, 47 Phone.TYPE_WORK, 48 Phone.TYPE_OTHER, 49 Phone.TYPE_FAX_HOME, 50 Phone.TYPE_FAX_WORK, 51 Phone.TYPE_PAGER}; 100 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) [all...] |
/frameworks/base/core/java/android/net/ |
MobileDataStateTracker.java | 28 import com.android.internal.telephony.Phone; 37 * receiving broadcast intents from the Phone process whenever 47 private Phone.DataState mMobileDataState; 65 * @param apnType the Phone apnType 73 if (TextUtils.equals(mApnType, Phone.APN_TYPE_HIPRI)) { 74 mApnTypeToWatchFor = Phone.APN_TYPE_DEFAULT; 118 mMobileDataState = Phone.DataState.DISCONNECTED; 121 private Phone.DataState getMobileDataState(Intent intent) { 122 String str = intent.getStringExtra(Phone.STATE_KEY); 125 intent.getStringExtra(Phone.DATA_APN_TYPES_KEY) [all...] |
/frameworks/base/core/tests/coretests/src/android/pim/vcard/ |
VCardExporterTests.java | 30 import android.provider.ContactsContract.CommonDataKinds.Phone; 405 mVerifier.addInputEntry().addContentValues(Phone.CONTENT_ITEM_TYPE) 406 .put(Phone.NUMBER, "1") 407 .put(Phone.TYPE, Phone.TYPE_HOME); 426 mVerifier.addInputEntry().addContentValues(Phone.CONTENT_ITEM_TYPE) 427 .put(Phone.NUMBER, "1234567890(abcdefghijklmnopqrstuvwxyz)") 428 .put(Phone.TYPE, Phone.TYPE_HOME); 440 entry.addContentValues(Phone.CONTENT_ITEM_TYPE [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceContact.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 59 * @param primaryId primary ID in phone table. 60 * @param homeId home ID in phone table. 61 * @param mobileId mobile ID in phone table. 62 * @param workId work ID in phone table. 63 * @param otherId other ID in phone table. 111 Phone._ID, 112 Phone.TYPE, 113 Phone.IS_PRIMARY, 115 Phone.LABEL [all...] |
/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");
|
/frameworks/base/telephony/java/android/telephony/ |
CellLocation.java | 29 import com.android.internal.telephony.Phone; 43 ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.getService("phone")); local 44 if (phone != null) { 45 phone.updateServiceLocation(); 67 case Phone.PHONE_TYPE_CDMA: 69 case Phone.PHONE_TYPE_GSM: 88 * location, or null for unknown/none phone radio types. 95 case Phone.PHONE_TYPE_CDMA: 97 case Phone.PHONE_TYPE_GSM [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
Constants.java | 20 import android.provider.ContactsContract.CommonDataKinds.Phone; 29 * Specific MIME-type for {@link Phone#CONTENT_ITEM_TYPE} entries that
|
/packages/apps/Phone/tests/ |
Android.mk | 28 LOCAL_INSTRUMENTATION_FOR := Phone
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
FallbackSource.java | 33 import android.provider.ContactsContract.CommonDataKinds.Phone; 91 return new EditType(type, Phone.getTypeLabelResource(type)); 184 DataKind kind = getKindForMimetype(Phone.CONTENT_ITEM_TYPE); 186 kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup, 191 kind.actionBody = new SimpleInflater(Phone.NUMBER); 195 kind.typeColumn = Phone.TYPE; 197 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 198 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 199 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 200 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)) [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
RecipientsAdapter.java | 30 import android.provider.ContactsContract.CommonDataKinds.Phone; 54 Phone._ID, // 0 55 Phone.CONTACT_ID, // 1 56 Phone.TYPE, // 2 57 Phone.NUMBER, // 3 58 Phone.LABEL, // 4 59 Phone.DISPLAY_NAME, // 5 63 + Contacts.DISPLAY_NAME + "," + Phone.TYPE; 91 CharSequence displayLabel = Phone.getDisplayLabel(mContext, type, label); 137 CharSequence labelText = Phone.getDisplayLabel(mContext, type 155 String phone = ""; local [all...] |