Found 15141 results in 3225 files, showing top 50 files (show more).
chromium.googlesource.com/android_tools:sdk/sources/android-25/com/android/internal/telephony/Phone.java: [ master, ] java
88: public abstract class Phone extends Handler implements PhoneInternalInterface {
410:     protected Phone(String name, PhoneNotifier notifier, Context context, CommandsInterface ci,
427:     protected Phone(String name, PhoneNotifier notifier, Context context, CommandsInterface ci,
256:     protected Phone mImsPhone = null;
2823:     public Phone getImsPhone() {
2837:     private void updateImsPhone() {
3308:     public Phone getDefaultPhone() {
184:     protected static final int EVENT_UPDATE_PHONE_OBJECT            = 42;
253:     protected int mPhoneId;
341:     public String getPhoneName() {
345:     protected void setPhoneName(String name) {
1508:     public void updatePhoneObject(int voiceRadioTech) {
2098:     public abstract int getPhoneType();
2886:     public int getPhoneId() {
2894:     public int getVoicePhoneServiceState() {
78:  * A base implementation for the com.android.internal.telephony.Phone interface.
80:  * Note that implementations of Phone.java are expected to be used
89:     private static final String LOG_TAG = "Phone";
97:             if (intent.hasExtra(ImsManager.EXTRA_PHONE_ID)) {
98:                 int extraPhoneId = intent.getIntExtra(ImsManager.EXTRA_PHONE_ID,
99:                         SubscriptionManager.INVALID_PHONE_INDEX);
101:                 if (extraPhoneId == SubscriptionManager.INVALID_PHONE_INDEX ||
107:             synchronized (Phone.lockForRadioTechnologyChange) {
337:      * Returns a string identifier for this phone interface for parties
338:      *  outside the phone app process.
401:      * Constructs a Phone in normal (non-unit test) mode.
412:         this(name, notifier, context, ci, unitTestMode, SubscriptionManager.DEFAULT_PHONE_INDEX,
417:      * Constructs a Phone in normal (non-unit test) mode.
425:      * @param phoneId the phone-id of this phone.
451:         * (i.e. voice) phone calls over the telephony network, and is allowed
477:         if (getPhoneType() == PhoneConstants.PHONE_TYPE_IMS) {
504:         if (getPhoneType() != PhoneConstants.PHONE_TYPE_SIP) {
516:         if (getPhoneType() == PhoneConstants.PHONE_TYPE_SIP) {
520:         synchronized(Phone.lockForRadioTechnologyChange) {
549:         // messages to be handled whether or not the phone is being destroyed
551:         // resources of the phone being destroyed
657:         Phone imsPhone = mImsPhone;
697:      * Gets the context for the phone, as set at initialization time.
750:      * Subclasses of Phone probably want to replace this with a
776:      * Subclasses of Phone probably want to replace this with a
787:     protected void migrateFrom(Phone from) {
852:      *   Connection.getCall() == Phone.getRingingCall()
870:      * Notifies when phone's video capabilities changes <p>
875:      *  AsyncResult.result = true if phone supports video calling <p>
1010:      * Example: If Phone.dial is called with "*#31#", then the app will
1303:      * For unit tests; don't send notifications to "Phone"
1320:      * Subclasses of Phone probably want to replace this with a
1405:         // no need for regular phone
1409:      * Subclasses of Phone probably want to replace this with a
1420:      * If this is a simulated phone interface, returns a SimulatedRadioControl.
1434:      * the thread that originally obtained this Phone instance.
1439:                     "com.android.internal.telephony.Phone must be used from within one thread");
1470:      * If the phone has an active call and call waiting occurs,
1471:      * then the phone state is RINGING not OFFHOOK
1479:      * Retrieves the IccFileHandler of the Phone instance
1497:      * Retrieves the Handler of the Phone instance
1504:      * Update the phone object if the voice radio technology has changed
1512:     * Retrieves the ServiceStateTracker of the phone instance.
1541:      * Returns the ICC card interface for this phone, or null
1546:         //throw new Exception("getIccCard Shouldn't be called from Phone");
1717:         if (getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
1850:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_OFF}
1851:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_FULL}
1852:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_HCO}
1853:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_VCO}
1864:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_OFF}
1865:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_FULL}
1866:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_HCO}
1867:      * - {@link com.android.internal.telephony.Phone#TTY_MODE_VCO}
2058:      * @return {@code true} if we are in emergency call back mode. This is a period where the phone
2095:      * Return a numerical identifier for the phone radio interface.
2096:      * @return PHONE_TYPE_XXX as defined above.
2108:     /** sets the voice mail count of the phone and notifies listeners. */
2577:      *  @return The string array will always return at least one entry, Phone.APN_TYPE_DEFAULT.
2655:      * Subclasses of Phone probably want to replace this with a
2673:      * Notify registrants if phone is video capable.
2786:         Rlog.e(LOG_TAG, "Error! This function should never be executed, inactive Phone.");
2799:      * Gets the Uicc card corresponding to this phone.
2800:      * @return the UiccCard object corresponding to the phone ID.
2821:      * Return an instance of a IMS phone
2884:      * Returns the phone id.
2895:         Phone imsPhone = mImsPhone;
2969:         Phone imsPhone = mImsPhone;
2987:         Phone imsPhone = mImsPhone;
3000:         Phone imsPhone = mImsPhone;
3052:      *  Set phone radio capability
3054:      *  @param rc the phone radio capability defined in
3063:      *  Get phone radio access family
3083:      *  Get phone radio capability
3097:      *  @param rc the phone radio capability currently in effect for this phone.
3128:      * Registers the handler when phone radio  capability is changed.
3139:      * Unregister for notifications when phone radio type and access technology is changed.
3163:      * Determines if video calling is enabled for the phone.
3168:         Phone imsPhone = mImsPhone;
3268:     public static void checkWfcWifiOnlyModeBeforeDial(Phone imsPhone, Context context)
3303:      * This function returns the parent phone of the current phone. It is applicable
3304:      * only for IMS phone (function is overridden by ImsPhone). For others the phone
3335:         pw.println("Phone: subId=" + getSubId());
44: import android.telephony.PhoneStateListener;
82:  * originally called PhoneFactory to obtain the interface.
110:                     updateImsPhone();
114:                     updateImsPhone();
322:      * PhoneNotifier is an abstraction for all system-wide
326:     protected PhoneNotifier mNotifier;
350:      * Retrieves Nai for phones. Returns null if Nai is not set.
428:                     boolean unitTestMode, int phoneId,
430:         mPhoneId = phoneId;
465:          * By default old phones won't have the property set but do generate
532:                 updateImsPhone();
565:                     PhoneConstants.State state = getState();
567:                             && ((state == PhoneConstants.State.RINGING) ||
568:                                     (state == PhoneConstants.State.IDLE))) {
579:                 if (getState() == PhoneConstants.State.RINGING) {
664:                     if (imsPhone != null) {
665:                         conn = imsPhone.getHandoverConnection();
666:                         migrateFrom(imsPhone);
668:                         Rlog.d(LOG_TAG, "HANDOVER_STARTED: mImsPhone null");
673:                     if (imsPhone != null) {
674:                         imsPhone.notifySrvccState(srvccState);
676:                         Rlog.d(LOG_TAG, "HANDOVER_COMPLETED: mImsPhone null");
729:      * {@link PhoneConstants.State} which can be obtained using the {@link PhoneStateListener}
808:             // Since CallManager has already registered with both CS and IMS phones,
1476:     public abstract PhoneConstants.State getState();
1621:      * Sets the minimum time in milli-seconds between {@link PhoneStateListener#onCellInfoChanged
1622:      * PhoneStateListener.onCellInfoChanged} will be invoked.
1636:      * available on this interface. Use PhoneStateNotifier or similar instead.
1712:      * available on this interface. Use PhoneStateNotifier or similar instead.
1747:      * interface. Use <code>PhoneStateNotifier</code> or an equivalent.
2019:             PhoneConstants.DataState state) {
2085:         if (mImsPhone != null) {
2086:             isVideoCallActive = isVideoCall(mImsPhone.getForegroundCall()) ||
2087:                     isVideoCall(mImsPhone.getBackgroundCall()) ||
2088:                     isVideoCall(mImsPhone.getRingingCall());
2195:      * Retrieves the MIN for CDMA phones.
2211:      *  Retrieves PRL Version for CDMA phones
2623:         return isDataConnectivityPossible(PhoneConstants.APN_TYPE_DEFAULT);
2736:      * Retrieves the MSISDN from the UICC. For GSM/UMTS phones, this is equivalent to
2737:      * {@link #getLine1Number()}. For CDMA phones, {@link #getLine1Number()} returns
2738:      * the MDN, so this method is provided to return the MSISDN on CDMA/LTE phones.
2747:      * {@link android.telephony.PhoneStateListener} instead.
2749:     public PhoneConstants.DataState getDataConnectionState() {
2750:         return getDataConnectionState(PhoneConstants.APN_TYPE_DEFAULT);
2770:      * @return {@link PhoneConstants#LTE_ON_CDMA_UNKNOWN}, {@link PhoneConstants#LTE_ON_CDMA_FALSE}
2771:      * or {@link PhoneConstants#LTE_ON_CDMA_TRUE}
2785:         // This function should be overridden by class GsmCdmaPhone.
2824:         return mImsPhone;
2828:      * Return if UT capability of ImsPhone is enabled or not
2838:         Rlog.d(LOG_TAG, "updateImsPhone"
2841:         if (mImsServiceReady && (mImsPhone == null)) {
2842:             mImsPhone = PhoneFactory.makeImsPhone(mNotifier, this);
2843:             CallManager.getInstance().registerPhone(mImsPhone);
2844:             mImsPhone.registerForSilentRedial(
2846:         } else if (!mImsServiceReady && (mImsPhone != null)) {
2847:             CallManager.getInstance().unregisterPhone(mImsPhone);
2848:             mImsPhone.unregisterForSilentRedial(this);
2850:             mImsPhone.dispose();
2851:             // Potential GC issue if someone keeps a reference to ImsPhone.
2854:             //mImsPhone.removeReferences();
2855:             mImsPhone = null;
2872:         // dialInternal shall be overriden by GsmCdmaPhone
2891:      * Return the service state of mImsPhone if it is STATE_IN_SERVICE
2896:         if (imsPhone != null
2897:                 && imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) {
2971:         if (imsPhone != null) {
2972:             isImsRegistered = imsPhone.isImsRegistered();
2989:         if (imsPhone != null) {
2990:             isWifiCallingEnabled = imsPhone.isWifiCallingEnabled();
3002:         if (imsPhone != null) {
3003:             isVolteEnabled = imsPhone.isVolteEnabled();
3111:         int type = PhoneFactory.calculatePreferredNetworkType(mContext, getSubId());
3122:             int type = PhoneFactory.calculatePreferredNetworkType(mContext, getSubId());
3169:         if ((imsPhone != null)
3170:                 && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE)) {
3171:             return imsPhone.isVideoEnabled();
3270:         if (imsPhone == null || !imsPhone.isWifiCallingEnabled()) {
3313:         if (mImsPhone == null) return 0;
3314:         return mImsPhone.getVtDataUsage();
3373:         if (mImsPhone != null) {
3375:                 mImsPhone.dump(fd, pw, args);
100:                 Rlog.d(LOG_TAG, "mImsIntentReceiver: extraPhoneId = " + extraPhoneId);
102:                         extraPhoneId != getPhoneId()) {
111:                     ImsManager.updateImsServiceConfig(mContext, mPhoneId, false);
323:      * state change notification. DefaultPhoneNotifier is
403:      * @param notifier An instance of DefaultPhoneNotifier,
419:      * @param notifier An instance of DefaultPhoneNotifier,
529:             ImsManager imsManager = ImsManager.getInstance(mContext, getPhoneId());
533:                 ImsManager.updateImsServiceConfig(mContext, mPhoneId, false);
1294:         editor.putInt(CLIR_KEY + getPhoneId(), commandInterfaceCLIRMode);
2014:         // This function is added to send the notification to DefaultPhoneNotifier.
2714:      * A fucntion of type getPhoneProp(propType) where propType is an
2803:         return mUiccController.getUiccCard(mPhoneId);
2880:         return SubscriptionController.getInstance().getSubIdUsingPhoneId(mPhoneId);
2887:         return mPhoneId;
3336:         pw.println(" mPhoneId=" + mPhoneId);
3364:         pw.println(" getPhoneName()=" + getPhoneName());
3365:         pw.println(" getPhoneType()=" + getPhoneType());
android.googlesource.com/platform/superproject:external/guice/examples/src/example/xml/Phone.java: [ master, ] java
3: public class Phone {
android.googlesource.com/platform/external/guice:examples/src/example/xml/Phone.java: [ master, ] java Duplicate result
android.googlesource.com/platform/frameworks/opt/vcard:java/com/android/vcard/VCardEntry.java: [ master, ] java
89:         PHONE,
303:     public static class PhoneData implements EntryElement {
313:         public PhoneData(String data, int type, String label, boolean isPrimary) {
1767:     private void addPhone(int type, String data, String label, boolean isPrimary) {
131:         private String mPhoneticFamily;
132:         private String mPhoneticGiven;
133:         private String mPhoneticMiddle;
155:         public boolean emptyPhoneticStructuredName() {
738:         private final String mPhoneticName; // We won't have this in "TITLE" property.
858:         public String getPhoneticName() {
1543:     private List<PhoneData> mPhoneList;
1853:     private String buildSinglePhoneticNameFromSortAsParam(Map<String, Collection<String>> paramMap) {
2066:     private void handlePhoneticNameFromSound(List<String> elems) {
2617:     public final List<PhoneData> getPhoneList() {
33: import android.provider.ContactsContract.CommonDataKinds.Phone;
325:             builder.withValueBackReference(Phone.RAW_CONTACT_ID, backReferenceIndex);
326:             builder.withValue(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
328:             builder.withValue(Phone.TYPE, mType);
329:             if (mType == Phone.TYPE_CUSTOM) {
330:                 builder.withValue(Phone.LABEL, mLabel);
332:             builder.withValue(Phone.NUMBER, mNumber);
334:                 builder.withValue(Phone.IS_PRIMARY, 1);
376:             return EntryLabel.PHONE;
1774:         if (type == Phone.TYPE_PAGER || VCardConfig.refrainPhoneNumberFormatting(mVCardType)) {
1778:             // Note that some other codes (like the phone number formatter) or modules expect this
2295:                 // Given propValue is in URI format, not in phone number format used until
2303:                     // we may still have non-URI phone number. To keep given data as much as
2328:                     type = Phone.TYPE_CUSTOM;
2343:             // The phone number available via Skype.
2345:             final int type = Phone.TYPE_OTHER;
19: import com.android.vcard.VCardUtils.PhoneNumberUtilsPort;
42: import android.telephony.PhoneNumberUtils;
184:             boolean phoneticNameSpecified = false;
187:                 builder.withValue(StructuredName.PHONETIC_GIVEN_NAME, mPhoneticGiven);
188:                 phoneticNameSpecified = true;
191:                 builder.withValue(StructuredName.PHONETIC_FAMILY_NAME, mPhoneticFamily);
192:                 phoneticNameSpecified = true;
195:                 builder.withValue(StructuredName.PHONETIC_MIDDLE_NAME, mPhoneticMiddle);
196:                 phoneticNameSpecified = true;
199:             // SORT-STRING is used only when phonetic names aren't specified in
201:             if (!phoneticNameSpecified) {
202:                 builder.withValue(StructuredName.PHONETIC_GIVEN_NAME, mSortString);
349:             if (!(obj instanceof PhoneData)) {
352:             PhoneData phoneData = (PhoneData) obj;
353:             return (mType == phoneData.mType
354:                     && TextUtils.equals(mNumber, phoneData.mNumber)
355:                     && TextUtils.equals(mLabel, phoneData.mLabel)
356:                     && (mIsPrimary == phoneData.mIsPrimary));
743:                 final String titleName, final String phoneticName, int type,
749:             mPhoneticName = phoneticName;
794:                 builder.withValue(Organization.PHONETIC_NAME, mPhoneticName);
1769:             mPhoneList = new ArrayList<PhoneData>();
1785:                 // See RFC 3601 and docs for PhoneNumberUtils for more info.
1787:                     builder.append(PhoneNumberUtils.PAUSE);
1790:                     builder.append(PhoneNumberUtils.WAIT);
1792:                 } else if (PhoneNumberUtils.is12Key(ch) || (i == 0 && ch == '+')) {
1798:                 formattedNumber = PhoneNumberUtilsPort.formatNumber(
1804:         PhoneData phoneData = new PhoneData(formattedNumber, type, label, isPrimary);
1805:         mPhoneList.add(phoneData);
1842:             final String titleName, final String phoneticName, int type, final boolean isPrimary) {
1847:                 phoneticName, type, isPrimary));
1882:         final String phoneticName = buildSinglePhoneticNameFromSortAsParam(paramMap);
1917:             addNewOrganization(organizationName, departmentName, null, phoneticName, type,
1936:         addNewOrganization(organizationName, departmentName, null, phoneticName, type, isPrimary);
1989:      * them in appropriate phonetic name variables. This method does not care
2060:      * Note: Some Japanese mobile phones use this field for phonetic name, since
2070:             // This means the other properties like "X-PHONETIC-FIRST-NAME" was already found.
2082:         // phones use this order.
2105:                     // phones' preference.
2165:                 final List<String> phoneticNameList = VCardUtils.constructListFromValue(propValue,
2167:                 handlePhoneticNameFromSound(phoneticNameList);
2292:             String phoneNumber = null;
2300:                     phoneNumber = propValue.substring(4);
2305:                     phoneNumber = propValue;
2308:                 phoneNumber = propValue;
2321:                         phoneNumber);
2340:                 addPhone(type, phoneNumber, label, isPrimary);
2353:             addPhone(type, propValue, null, isPrimary);
2387:         } else if (propertyName.equals(VCardConstants.PROPERTY_X_PHONETIC_FIRST_NAME)) {
2389:         } else if (propertyName.equals(VCardConstants.PROPERTY_X_PHONETIC_MIDDLE_NAME)) {
2391:         } else if (propertyName.equals(VCardConstants.PROPERTY_X_PHONETIC_LAST_NAME)) {
156:             return TextUtils.isEmpty(mPhoneticFamily) && TextUtils.isEmpty(mPhoneticGiven)
157:                     && TextUtils.isEmpty(mPhoneticMiddle);
186:             if (!TextUtils.isEmpty(mPhoneticGiven)) {
190:             if (!TextUtils.isEmpty(mPhoneticFamily)) {
194:             if (!TextUtils.isEmpty(mPhoneticMiddle)) {
214:                     && TextUtils.isEmpty(mPhoneticFamily) && TextUtils.isEmpty(mPhoneticMiddle)
215:                     && TextUtils.isEmpty(mPhoneticGiven) && TextUtils.isEmpty(mSortString));
234:                     && TextUtils.equals(mPhoneticFamily, nameData.mPhoneticFamily)
235:                     && TextUtils.equals(mPhoneticMiddle, nameData.mPhoneticMiddle)
236:                     && TextUtils.equals(mPhoneticGiven, nameData.mPhoneticGiven)
243:                     mFormatted, mPhoneticFamily, mPhoneticMiddle,
244:                     mPhoneticGiven, mSortString};
793:             if (mPhoneticName != null) {
805:                     && TextUtils.isEmpty(mTitle) && TextUtils.isEmpty(mPhoneticName);
859:             return mPhoneticName;
1592:         iterateOneList(mPhoneList, iterator);
1768:         if (mPhoneList == null) {
1797:                 final int formattingType = VCardUtils.getPhoneNumberFormat(mVCardType);
1998:                 && !(TextUtils.isEmpty(mNameData.mPhoneticFamily)
1999:                         && TextUtils.isEmpty(mNameData.mPhoneticMiddle) && TextUtils
2000:                         .isEmpty(mNameData.mPhoneticGiven))) {
2019:                 mNameData.mPhoneticMiddle = sortNames.get(2); //$FALL-THROUGH$
2021:                 mNameData.mPhoneticGiven = sortNames.get(1); //$FALL-THROUGH$
2023:                 mNameData.mPhoneticFamily = sortNames.get(0);
2067:         if (!(TextUtils.isEmpty(mNameData.mPhoneticFamily)
2068:                 && TextUtils.isEmpty(mNameData.mPhoneticMiddle) && TextUtils
2069:                 .isEmpty(mNameData.mPhoneticGiven))) {
2100:                     mNameData.mPhoneticFamily = namesArray[0];
2101:                     mNameData.mPhoneticMiddle = namesArray[1];
2102:                     mNameData.mPhoneticGiven = namesArray[2];
2106:                     mNameData.mPhoneticFamily = namesArray[0];
2107:                     mNameData.mPhoneticGiven = namesArray[1];
2109:                     mNameData.mPhoneticGiven = elems.get(0);
2118:             mNameData.mPhoneticMiddle = elems.get(2);
2120:             mNameData.mPhoneticGiven = elems.get(1);
2122:             mNameData.mPhoneticFamily = elems.get(0);
2320:                 final Object typeObject = VCardUtils.getPhoneTypeFromStrings(typeCollection,
2388:             mNameData.mPhoneticGiven = propValue;
2390:             mNameData.mPhoneticMiddle = propValue;
2392:             mNameData.mPhoneticFamily = propValue;
2488:         } else if (!mNameData.emptyPhoneticStructuredName()) {
2490:                     mNameData.mPhoneticFamily, mNameData.mPhoneticMiddle, mNameData.mPhoneticGiven);
2493:         } else if (mPhoneList != null && mPhoneList.size() > 0) {
2494:             displayName = mPhoneList.get(0).mNumber;
2618:         return mPhoneList;
android.googlesource.com/platform/packages/apps/Settings:src/com/android/settings/RadioInfo.java: [ master, ] java
221:     private Phone phone = null;
248:     private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
894:     updatePhoneState(int state) {
87: import com.android.internal.telephony.Phone;
401:         phone = PhoneFactory.getDefaultPhone();
404:         //      Better to have an instance per phone?
485:         phone.getPreferredNetworkType(
552:         log("onPause: unregister phone & data intents");
633:         dnsCheckState.setText(phone.isDnsCheckDisabled() ?
900:                 display = r.getString(R.string.radioInfo_phone_idle);
903:                 display = r.getString(R.string.radioInfo_phone_ringing);
906:                 display = r.getString(R.string.radioInfo_phone_offhook);
938:         if(phone != null) {
939:             ServiceState ss = phone.getServiceState();
941:                     phone.getServiceState().getRilDataRadioTechnology()));
943:                     phone.getServiceState().getRilVoiceRadioTechnology()));
952:         s = phone.getDeviceId();
956:         s = phone.getSubscriberId();
961:         s = phone.getLine1Number();
1038:         phone.getSmscAddress(mHandler.obtainMessage(EVENT_QUERY_SMSC_DONE));
1110:             intent.setClassName("com.android.phone",
1111:                     "com.android.phone.SimContacts");
1125:             intent.setClassName("com.android.phone",
1126:                     "com.android.phone.settings.fdn.FdnList");
1141:             intent.setClassName("com.android.phone",
1142:                     "com.android.phone.ADNList");
1150:             boolean isImsRegistered = phone.isImsRegistered();
1151:             boolean availableVolte = phone.isVolteEnabled();
1152:             boolean availableWfc = phone.isWifiCallingEnabled();
1153:             boolean availableVt = phone.isVideoEnabled();
1154:             boolean availableUt = phone.isUtEnabled();
1197:                     phone.setUserDataEnabled(false);
1201:                     phone.setUserDataEnabled(true);
1213:         return phone.getServiceState().getState() != ServiceState.STATE_POWER_OFF;
1245:         if (phone != null && mImsManager != null) {
1264:             phone.setRadioPower(isChecked);
1269:         if (phone != null && mImsManager != null) {
1270:             return mImsManager.isVolteEnabledByPlatform(phone.getContext())
1271:                 && mImsManager.isVolteProvisionedOnDevice(phone.getContext());
1284:         if (phone != null && mImsManager != null) {
1285:             return mImsManager.isVtEnabledByPlatform(phone.getContext())
1286:                 && mImsManager.isVtProvisionedOnDevice(phone.getContext());
1299:         if (phone != null && mImsManager != null) {
1300:             return mImsManager.isWfcEnabledByPlatform(phone.getContext())
1301:                 && mImsManager.isWfcProvisionedOnDevice(phone.getContext());
1363:                 && mImsManager.isVolteEnabledByPlatform(phone.getContext()));
1369:                 && mImsManager.isVtEnabledByPlatform(phone.getContext()));
1375:                 && mImsManager.isWfcEnabledByPlatform(phone.getContext()));
1381:                 && isEabEnabledByPlatform(phone.getContext()));
1387:             phone.disableDnsCheck(!phone.isDnsCheckDisabled());
1414:             phone.setSmscAddress(smsc.getText().toString(),
1459:                 final int subId = phone.getSubId();
1461:                     Settings.Global.putInt(phone.getContext().getContentResolver(),
1466:                 phone.setPreferredNetworkType(mPreferredNetworkTypeResult, msg);
59: import android.telephony.PhoneStateListener;
88: import com.android.internal.telephony.PhoneFactory;
403:         //TODO: Need to update this if the default phoneId changes?
529:                   PhoneStateListener.LISTEN_CALL_STATE
531:         //      | PhoneStateListener.LISTEN_PRECISE_CALL_STATE
532:                 | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE
533:                 | PhoneStateListener.LISTEN_DATA_ACTIVITY
534:                 | PhoneStateListener.LISTEN_CELL_LOCATION
535:                 | PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR
536:                 | PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR
537:                 | PhoneStateListener.LISTEN_CELL_INFO
538:                 | PhoneStateListener.LISTEN_SERVICE_STATE
539:                 | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS
540:                 | PhoneStateListener.LISTEN_PHYSICAL_CHANNEL_CONFIGURATION);
554:         mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
263:             updatePhoneState(state);
406:                 SubscriptionManager.getDefaultVoicePhoneId());
528:         mTelephonyManager.listen(mPhoneStateListener,
android.googlesource.com/platform/frameworks/base:core/proto/android/os/batterystats.proto: [ master, ] protobuf
338:             PHONE = 3;
280:         optional int64 phone_on_duration_ms = 2;
329:     repeated PhoneSignalStrength phone_signal_strength = 16;
323:     message PhoneSignalStrength {
android.googlesource.com/platform/superproject:tools/adt/idea/android/gen/icons/AndroidIcons.java: [ master, ] java
166:     public static final Icon Phone = load("/icons/nele/phone.png");
83:     public static final Icon Mobile_32 = load("/icons/formfactors/phone_tablet_32.png"); // 32x32
89:     public static final Icon Mobile_64 = load("/icons/formfactors/64/phone_tablet.png"); // 64x64
android.googlesource.com/platform/superproject:frameworks/base/core/proto/android/os/batterystats.proto: [ master, ] protobuf Duplicate result
android.googlesource.com/platform/tools/adt/idea:android/gen/icons/AndroidIcons.java: [ master, ] java Duplicate result
android.googlesource.com/platform/packages/apps/ContactsCommon:src/com/android/contacts/common/model/account/BaseAccountType.java: [ master, ] java
104:         static final int PHONE = 10;
60:     protected static final int FLAGS_PHONE = EditorInfo.TYPE_CLASS_PHONE;
256:     protected DataKind addDataKindPhone(Context context) throws DefinitionException {
540:     public static class PhoneActionInflater extends CommonInflater {
552:     public static class PhoneActionAltInflater extends CommonInflater {
1034:     private static class PhoneKindBuilder extends KindBuilder {
65:     protected static final int FLAGS_PHONETIC = EditorInfo.TYPE_CLASS_TEXT
125:     protected static EditType buildPhoneType(int type) {
220:     protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException {
30: import android.provider.ContactsContract.CommonDataKinds.Phone;
121:         this.titleRes = R.string.account_phone;
126:         return new EditType(type, Phone.getTypeLabelResource(type));
257:         DataKind kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup,
258:                 Weight.PHONE, true));
263:         kind.actionBody = new SimpleInflater(Phone.NUMBER);
264:         kind.typeColumn = Phone.TYPE;
266:         kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE));
267:         kind.typeList.add(buildPhoneType(Phone.TYPE_HOME));
268:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK));
269:         kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true));
270:         kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true));
271:         kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true));
272:         kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER));
274:                 buildPhoneType(Phone.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Phone.LABEL));
275:         kind.typeList.add(buildPhoneType(Phone.TYPE_CALLBACK).setSecondary(true));
276:         kind.typeList.add(buildPhoneType(Phone.TYPE_CAR).setSecondary(true));
277:         kind.typeList.add(buildPhoneType(Phone.TYPE_COMPANY_MAIN).setSecondary(true));
278:         kind.typeList.add(buildPhoneType(Phone.TYPE_ISDN).setSecondary(true));
279:         kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN).setSecondary(true));
280:         kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER_FAX).setSecondary(true));
281:         kind.typeList.add(buildPhoneType(Phone.TYPE_RADIO).setSecondary(true));
282:         kind.typeList.add(buildPhoneType(Phone.TYPE_TELEX).setSecondary(true));
283:         kind.typeList.add(buildPhoneType(Phone.TYPE_TTY_TDD).setSecondary(true));
284:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK_MOBILE).setSecondary(true));
285:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK_PAGER).setSecondary(true));
286:         kind.typeList.add(buildPhoneType(Phone.TYPE_ASSISTANT).setSecondary(true));
287:         kind.typeList.add(buildPhoneType(Phone.TYPE_MMS).setSecondary(true));
290:         kind.fieldList.add(new EditField(Phone.NUMBER, R.string.phoneLabelsGroup, FLAGS_PHONE));
509:             return Phone.TYPE;
513:             return Phone.LABEL;
1037:             return "phone";
1045:                     Phone.CONTENT_ITEM_TYPE, Phone.TYPE, R.string.phoneLabelsGroup, Weight.PHONE,
1046:                     new PhoneActionInflater(), new SimpleInflater(Phone.NUMBER));
1052:             kind.fieldList.add(new EditField(Phone.NUMBER, R.string.phoneLabelsGroup, FLAGS_PHONE));
1059:             return new EditType(type, Phone.getTypeLabelResource(type)).setSecondary(secondary);
1064:             if ("home".equals(type)) return build(Phone.TYPE_HOME, false);
1065:             if ("mobile".equals(type)) return build(Phone.TYPE_MOBILE, false);
1066:             if ("work".equals(type)) return build(Phone.TYPE_WORK, false);
1067:             if ("fax_work".equals(type)) return build(Phone.TYPE_FAX_WORK, true);
1068:             if ("fax_home".equals(type)) return build(Phone.TYPE_FAX_HOME, true);
1069:             if ("pager".equals(type)) return build(Phone.TYPE_PAGER, true);
1070:             if ("other".equals(type)) return build(Phone.TYPE_OTHER, false);
1071:             if ("callback".equals(type)) return build(Phone.TYPE_CALLBACK, true);
1072:             if ("car".equals(type)) return build(Phone.TYPE_CAR, true);
1073:             if ("company_main".equals(type)) return build(Phone.TYPE_COMPANY_MAIN, true);
1074:             if ("isdn".equals(type)) return build(Phone.TYPE_ISDN, true);
1075:             if ("main".equals(type)) return build(Phone.TYPE_MAIN, true);
1076:             if ("other_fax".equals(type)) return build(Phone.TYPE_OTHER_FAX, true);
1077:             if ("radio".equals(type)) return build(Phone.TYPE_RADIO, true);
1078:             if ("telex".equals(type)) return build(Phone.TYPE_TELEX, true);
1079:             if ("tty_tdd".equals(type)) return build(Phone.TYPE_TTY_TDD, true);
1080:             if ("work_mobile".equals(type)) return build(Phone.TYPE_WORK_MOBILE, true);
1081:             if ("work_pager".equals(type)) return build(Phone.TYPE_WORK_PAGER, true);
1084:             if ("assistant".equals(type)) return build(Phone.TYPE_ASSISTANT, true);
1085:             if ("mms".equals(type)) return build(Phone.TYPE_MMS, true);
1087:                 return build(Phone.TYPE_CUSTOM, true).setCustomColumn(Phone.LABEL);
66:             | EditorInfo.TYPE_TEXT_VARIATION_PHONETIC;
169:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
170:                 R.string.name_phonetic_family, FLAGS_PHONETIC));
171:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
172:                 R.string.name_phonetic_middle, FLAGS_PHONETIC));
173:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
174:                 R.string.name_phonetic_given, FLAGS_PHONETIC));
221:         DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME,
222:                 R.string.name_phonetic, Weight.NONE, true));
228:         kind.fieldList.add(new EditField(DataKind.PSEUDO_COLUMN_PHONETIC_NAME,
229:                 R.string.name_phonetic, FLAGS_PHONETIC).setShortForm(true));
230:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
231:                 R.string.name_phonetic_family, FLAGS_PHONETIC).setLongForm(true));
232:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
233:                 R.string.name_phonetic_middle, FLAGS_PHONETIC).setLongForm(true));
234:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
235:                 R.string.name_phonetic_given, FLAGS_PHONETIC).setLongForm(true));
261:         kind.actionHeader = new PhoneActionInflater();
262:         kind.actionAltHeader = new PhoneActionAltInflater();
706:             addBuilder(new PhoneKindBuilder());
729:          * (structured, display and phonetic)
867:      * DataKind parser for Name. (structured, display, phonetic)
890:             // - DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME
943:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
944:                     R.string.name_phonetic_family, FLAGS_PHONETIC));
945:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
946:                     R.string.name_phonetic_middle, FLAGS_PHONETIC));
947:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
948:                     R.string.name_phonetic_given, FLAGS_PHONETIC));
986:             // Phonetic name
988:                     DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, null,
989:                     R.string.name_phonetic, Weight.NONE,
996:             kp.fieldList.add(new EditField(DataKind.PSEUDO_COLUMN_PHONETIC_NAME,
997:                     R.string.name_phonetic, FLAGS_PHONETIC).setShortForm(true));
998:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
999:                     R.string.name_phonetic_family, FLAGS_PHONETIC).setLongForm(true));
1000:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
1001:                     R.string.name_phonetic_middle, FLAGS_PHONETIC).setLongForm(true));
1002:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
1003:                     R.string.name_phonetic_given, FLAGS_PHONETIC).setLongForm(true));
1050:             kind.actionAltHeader = new PhoneActionAltInflater();
543:             return ContactDisplayUtils.isCustomPhoneType(type);
548:             return ContactDisplayUtils.getPhoneLabelResourceId(type);
555:             return ContactDisplayUtils.isCustomPhoneType(type);
899:             final boolean supportsPhoneticFamilyName =
900:                     getAttr(attrs, "supportsPhoneticFamilyName", false);
901:             final boolean supportsPhoneticMiddleName =
902:                     getAttr(attrs, "supportsPhoneticMiddleName", false);
903:             final boolean supportsPhoneticGivenName =
904:                     getAttr(attrs, "supportsPhoneticGivenName", false);
911:             checkAttributeTrue(supportsPhoneticFamilyName, "supportsPhoneticFamilyName");
912:             checkAttributeTrue(supportsPhoneticMiddleName, "supportsPhoneticMiddleName");
913:             checkAttributeTrue(supportsPhoneticGivenName, "supportsPhoneticGivenName");
android.googlesource.com/platform/packages/apps/Contacts:src/com/android/contacts/model/account/BaseAccountType.java: [ master, ] java
106:         static final int PHONE = 10;
62:     protected static final int FLAGS_PHONE = EditorInfo.TYPE_CLASS_PHONE;
248:     protected DataKind addDataKindPhone(Context context) throws DefinitionException {
538:     public static class PhoneActionInflater extends CommonInflater {
550:     public static class PhoneActionAltInflater extends CommonInflater {
1015:     private static class PhoneKindBuilder extends KindBuilder {
67:     protected static final int FLAGS_PHONETIC = EditorInfo.TYPE_CLASS_TEXT
127:     protected static EditType buildPhoneType(int type) {
213:     protected DataKind addDataKindPhoneticName(Context context) throws DefinitionException {
30: import android.provider.ContactsContract.CommonDataKinds.Phone;
123:         this.titleRes = R.string.account_phone;
128:         return new EditType(type, Phone.getTypeLabelResource(type));
249:         DataKind kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup,
250:                 Weight.PHONE, true));
255:         kind.actionBody = new SimpleInflater(Phone.NUMBER);
256:         kind.typeColumn = Phone.TYPE;
258:         kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE));
259:         kind.typeList.add(buildPhoneType(Phone.TYPE_HOME));
260:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK));
261:         kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true));
262:         kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true));
263:         kind.typeList.add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true));
264:         kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER));
266:                 buildPhoneType(Phone.TYPE_CUSTOM).setSecondary(true).setCustomColumn(Phone.LABEL));
267:         kind.typeList.add(buildPhoneType(Phone.TYPE_CALLBACK).setSecondary(true));
268:         kind.typeList.add(buildPhoneType(Phone.TYPE_CAR).setSecondary(true));
269:         kind.typeList.add(buildPhoneType(Phone.TYPE_COMPANY_MAIN).setSecondary(true));
270:         kind.typeList.add(buildPhoneType(Phone.TYPE_ISDN).setSecondary(true));
271:         kind.typeList.add(buildPhoneType(Phone.TYPE_MAIN).setSecondary(true));
272:         kind.typeList.add(buildPhoneType(Phone.TYPE_OTHER_FAX).setSecondary(true));
273:         kind.typeList.add(buildPhoneType(Phone.TYPE_RADIO).setSecondary(true));
274:         kind.typeList.add(buildPhoneType(Phone.TYPE_TELEX).setSecondary(true));
275:         kind.typeList.add(buildPhoneType(Phone.TYPE_TTY_TDD).setSecondary(true));
276:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK_MOBILE).setSecondary(true));
277:         kind.typeList.add(buildPhoneType(Phone.TYPE_WORK_PAGER).setSecondary(true));
278:         kind.typeList.add(buildPhoneType(Phone.TYPE_ASSISTANT).setSecondary(true));
279:         kind.typeList.add(buildPhoneType(Phone.TYPE_MMS).setSecondary(true));
282:         kind.fieldList.add(new EditField(Phone.NUMBER, R.string.phoneLabelsGroup, FLAGS_PHONE));
507:             return Phone.TYPE;
511:             return Phone.LABEL;
1018:             return "phone";
1026:                     Phone.CONTENT_ITEM_TYPE, Phone.TYPE, R.string.phoneLabelsGroup, Weight.PHONE,
1027:                     new PhoneActionInflater(), new SimpleInflater(Phone.NUMBER));
1033:             kind.fieldList.add(new EditField(Phone.NUMBER, R.string.phoneLabelsGroup, FLAGS_PHONE));
1040:             return new EditType(type, Phone.getTypeLabelResource(type)).setSecondary(secondary);
1045:             if ("home".equals(type)) return build(Phone.TYPE_HOME, false);
1046:             if ("mobile".equals(type)) return build(Phone.TYPE_MOBILE, false);
1047:             if ("work".equals(type)) return build(Phone.TYPE_WORK, false);
1048:             if ("fax_work".equals(type)) return build(Phone.TYPE_FAX_WORK, true);
1049:             if ("fax_home".equals(type)) return build(Phone.TYPE_FAX_HOME, true);
1050:             if ("pager".equals(type)) return build(Phone.TYPE_PAGER, true);
1051:             if ("other".equals(type)) return build(Phone.TYPE_OTHER, false);
1052:             if ("callback".equals(type)) return build(Phone.TYPE_CALLBACK, true);
1053:             if ("car".equals(type)) return build(Phone.TYPE_CAR, true);
1054:             if ("company_main".equals(type)) return build(Phone.TYPE_COMPANY_MAIN, true);
1055:             if ("isdn".equals(type)) return build(Phone.TYPE_ISDN, true);
1056:             if ("main".equals(type)) return build(Phone.TYPE_MAIN, true);
1057:             if ("other_fax".equals(type)) return build(Phone.TYPE_OTHER_FAX, true);
1058:             if ("radio".equals(type)) return build(Phone.TYPE_RADIO, true);
1059:             if ("telex".equals(type)) return build(Phone.TYPE_TELEX, true);
1060:             if ("tty_tdd".equals(type)) return build(Phone.TYPE_TTY_TDD, true);
1061:             if ("work_mobile".equals(type)) return build(Phone.TYPE_WORK_MOBILE, true);
1062:             if ("work_pager".equals(type)) return build(Phone.TYPE_WORK_PAGER, true);
1065:             if ("assistant".equals(type)) return build(Phone.TYPE_ASSISTANT, true);
1066:             if ("mms".equals(type)) return build(Phone.TYPE_MMS, true);
1068:                 return build(Phone.TYPE_CUSTOM, true).setCustomColumn(Phone.LABEL);
68:             | EditorInfo.TYPE_TEXT_VARIATION_PHONETIC;
169:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
170:                 R.string.name_phonetic_family, FLAGS_PHONETIC));
171:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
172:                 R.string.name_phonetic_middle, FLAGS_PHONETIC));
173:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
174:                 R.string.name_phonetic_given, FLAGS_PHONETIC));
194:                     FLAGS_PERSON_NAME).setPhoneticsColumn(StructuredName.PHONETIC_FAMILY_NAME));
196:                     FLAGS_PERSON_NAME).setOptional(true).setPhoneticsColumn(StructuredName.PHONETIC_MIDDLE_NAME));
198:                     FLAGS_PERSON_NAME).setPhoneticsColumn(StructuredName.PHONETIC_GIVEN_NAME));
201:                     FLAGS_PERSON_NAME).setPhoneticsColumn(StructuredName.PHONETIC_GIVEN_NAME));
203:                     FLAGS_PERSON_NAME).setOptional(true).setPhoneticsColumn(StructuredName.PHONETIC_MIDDLE_NAME));
205:                     FLAGS_PERSON_NAME).setPhoneticsColumn(StructuredName.PHONETIC_FAMILY_NAME));
214:         DataKind kind = addKind(new DataKind(DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME,
215:                 R.string.name_phonetic, Weight.NONE, true));
222:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
223:                 R.string.name_phonetic_family, FLAGS_PHONETIC));
224:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
225:                 R.string.name_phonetic_middle, FLAGS_PHONETIC));
226:         kind.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
227:                 R.string.name_phonetic_given, FLAGS_PHONETIC));
253:         kind.actionHeader = new PhoneActionInflater();
254:         kind.actionAltHeader = new PhoneActionAltInflater();
704:             addBuilder(new PhoneKindBuilder());
727:          * (structured, display and phonetic)
865:      * DataKind parser for Name. (structured, display, phonetic)
888:             // - DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME
929:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
930:                     R.string.name_phonetic_family, FLAGS_PHONETIC));
931:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
932:                     R.string.name_phonetic_middle, FLAGS_PHONETIC));
933:             ks.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
934:                     R.string.name_phonetic_given, FLAGS_PHONETIC));
969:             // Phonetic name
971:                     DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME, null,
972:                     R.string.name_phonetic, Weight.NONE,
979:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_FAMILY_NAME,
980:                     R.string.name_phonetic_family, FLAGS_PHONETIC));
981:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_MIDDLE_NAME,
982:                     R.string.name_phonetic_middle, FLAGS_PHONETIC));
983:             kp.fieldList.add(new EditField(StructuredName.PHONETIC_GIVEN_NAME,
984:                     R.string.name_phonetic_given, FLAGS_PHONETIC));
1031:             kind.actionAltHeader = new PhoneActionAltInflater();
541:             return ContactDisplayUtils.isCustomPhoneType(type);
546:             return ContactDisplayUtils.getPhoneLabelResourceId(type);
553:             return ContactDisplayUtils.isCustomPhoneType(type);
896:             final boolean supportsPhoneticFamilyName =
897:                     getAttr(attrs, "supportsPhoneticFamilyName", false);
898:             final boolean supportsPhoneticMiddleName =
899:                     getAttr(attrs, "supportsPhoneticMiddleName", false);
900:             final boolean supportsPhoneticGivenName =
901:                     getAttr(attrs, "supportsPhoneticGivenName", false);
907:             checkAttributeTrue(supportsPhoneticFamilyName, "supportsPhoneticFamilyName");
908:             checkAttributeTrue(supportsPhoneticMiddleName, "supportsPhoneticMiddleName");
909:             checkAttributeTrue(supportsPhoneticGivenName, "supportsPhoneticGivenName");
android.googlesource.com/platform/packages/apps/Exchange:src/com/android/exchange/adapter/ContactsSyncParser.java: [ master, ] java
752:         String phone;
751:     static class PhoneRow implements UntypedRow {
755:         public PhoneRow(String _phone, int _type) {
1154:         public void addPhone(Entity entity, int type, String phone) {
70:     private static final int MAX_PHONE_ROWS = 2;
25: import android.provider.ContactsContract.CommonDataKinds.Phone;
72:     private static final String COMMON_TYPE_ROW = Phone.TYPE; // Could have been any typed row
148:                     workPhones.add(new PhoneRow(getValue(), Phone.TYPE_WORK));
151:                     ops.addPhone(entity, Phone.TYPE_MMS, getValue());
154:                     ops.addPhone(entity, Phone.TYPE_FAX_WORK, getValue());
156:                 case Tags.CONTACTS2_COMPANY_MAIN_PHONE:
157:                     ops.addPhone(entity, Phone.TYPE_COMPANY_MAIN, getValue());
160:                     ops.addPhone(entity, Phone.TYPE_FAX_HOME, getValue());
164:                     homePhones.add(new PhoneRow(getValue(), Phone.TYPE_HOME));
167:                     ops.addPhone(entity, Phone.TYPE_MOBILE, getValue());
170:                     ops.addPhone(entity, Phone.TYPE_CAR, getValue());
173:                     ops.addPhone(entity, Phone.TYPE_RADIO, getValue());
176:                     ops.addPhone(entity, Phone.TYPE_PAGER, getValue());
179:                     ops.addPhone(entity, Phone.TYPE_ASSISTANT, getValue());
322:         ops.addUntyped(entity, homePhones, Phone.CONTENT_ITEM_TYPE, Phone.TYPE_HOME,
323:                 MAX_PHONE_ROWS);
324:         ops.addUntyped(entity, workPhones, Phone.CONTENT_ITEM_TYPE, Phone.TYPE_WORK,
325:                 MAX_PHONE_ROWS);
756:             phone = _phone;
762:             builder.withValue(Im.DATA, phone);
763:             builder.withValue(Phone.TYPE, type);
768:             return type == _type && phone.equalsIgnoreCase(value);
931:                             final int subtype = cv.getAsInteger(Phone.TYPE);
1155:             RowBuilder builder = typedRowBuilder(entity, Phone.CONTENT_ITEM_TYPE, type);
1157:             if (cv != null && cvCompareString(cv, Phone.NUMBER, phone)) {
1160:             builder.withValue(Phone.TYPE, type);
1161:             builder.withValue(Phone.NUMBER, phone);
146:                 case Tags.CONTACTS_BUSINESS2_TELEPHONE_NUMBER:
147:                 case Tags.CONTACTS_BUSINESS_TELEPHONE_NUMBER:
162:                 case Tags.CONTACTS_HOME_TELEPHONE_NUMBER:
163:                 case Tags.CONTACTS_HOME2_TELEPHONE_NUMBER:
166:                 case Tags.CONTACTS_MOBILE_TELEPHONE_NUMBER:
169:                 case Tags.CONTACTS_CAR_TELEPHONE_NUMBER:
172:                 case Tags.CONTACTS_RADIO_TELEPHONE_NUMBER:
178:                 case Tags.CONTACTS_ASSISTANT_TELEPHONE_NUMBER:
1091:                     cvCompareString(cv, StructuredName.PHONETIC_GIVEN_NAME, yomiFirstName) &&
1092:                     cvCompareString(cv, StructuredName.PHONETIC_FAMILY_NAME, yomiLastName) &&
1100:             builder.withValue(StructuredName.PHONETIC_GIVEN_NAME, yomiFirstName);
1101:             builder.withValue(StructuredName.PHONETIC_FAMILY_NAME, yomiLastName);
1298:                     cvCompareString(cv, Organization.PHONETIC_NAME, yomiCompanyName) &&
1308:             builder.withValue(Organization.PHONETIC_NAME, yomiCompanyName);
115:         ArrayList<UntypedRow> homePhones = new ArrayList<UntypedRow>();
116:         ArrayList<UntypedRow> workPhones = new ArrayList<UntypedRow>();
android.googlesource.com/platform/superproject:external/cldr/specs/rfc/rfc2629.dtd: [ master, ] dtd
159: <!ELEMENT phone       (%CTEXT;)>
148: <!ELEMENT address     (postal?,phone?,facsimile?,email?,uri?)>
github.com/sourcegraph/android-sdk-jars:extras/google/google_play_services/docs/reference/com/google/android/gms/vision/barcode/Barcode.html: [ master, ] html
2145: <A NAME="PHONE"></A>
2750: <A NAME="phone"></A>
365: ...(22 bytes skipped)...pi apilevel-"><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.Phone.html">Barcode.Phone</a></li>
684: ...(15 bytes skipped)...="jd-linkcol"><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.Phone.html">Barcode.Phone</a></td>
685:       <td class="jd-descrcol" width="100%">A phone number from a 'TEL:' or similar QRCode type.&nbsp;</td>
864: ...(22 bytes skipped)...linkcol"><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.html#PHONE">PHONE</a></td>
865:         <td class="jd-descrcol" width="100%">Barcode value format constant for phone numbers.</td>
1080:           <a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.Phone.html">Barcode.Phone</a></nobr></td>
1081: ...(24 bytes skipped)...linkcol"><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.html#phone">phone</a></td>
1082:           <td class="jd-descrcol" width="100%">Parsed phone...(151 bytes skipped)...is <code><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.html#PHONE">PHONE</a></code>).</td>
2155:         PHONE
2165:   <div class="jd-tagdata jd-tagdescr"><p>Barcode value format constant for phone numbers. Specifies the format of a Barcode value via
2758:         <a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.Phone.html">Barcode.Phone</a>
2760:         phone
2770:   <div class="jd-tagdata jd-tagdescr"><p>Parsed phone...(151 bytes skipped)...is <code><a href="../../../../../../../reference/com/google/android/gms/vision/barcode/Barcode.html#PHONE">PHONE</a></code>). </p></div>
github.com/android-pay/s2ap-quickstart-java:src/main/java/com/google/wallet/objects/webservice/WebserviceWalletUser.java: [ master, ] java
22:   String phone;
173:   public String getPhone() {
180:   public void setPhone(String phone) {
171:    * @return the phone
174:     return phone;
178:    * @param phone the phone to set
181:     this.phone = phone;
github.com/android-pay/s2ap-quickstart-csharp:WalletObjectsCSharp/webservice/WebserviceWalletUser.cs: [ master, ] c#
32: 	   internal string phone;
159: 	  public virtual string Phone
158: 	  /// <returns> the phone </returns>
163: 			return phone;
167: 			this.phone = value;
android.googlesource.com/platform/external/libppp:src/datalink.h: [ master, ] c++
76:     } phone;
97:   } phone;
82:       int timeout;		/* Redial timeout value (end of phone list) */
94:     char *next;			/* Next phone from the list */
95:     char *alt;			/* Alternate (after fail) phone from the list */
96:     const char *chosen;		/* Chosen phone number after DIAL */
75:       char list[SCRIPT_LEN];	/* Telephone Numbers */
155: extern const char *datalink_ChoosePhoneNumber(struct datalink *);
android.googlesource.com/platform/external/libchrome:device/bluetooth/bluetooth_common.h: [ master, ] c++
33:   PHONE,
android.googlesource.com/platform/external/snakeyaml:src/test/java/org/yaml/snakeyaml/resolver/ResolverTest.java: [ master, ] java
75:     class Phone {
78:         public Phone(String n) {
105:         private class RepresentPhone implements Represent {
119:         private class ConstructPhone extends AbstractConstruct {
141:         private class RepresentPhone implements Represent {
43:         yaml.addImplicitResolver(new Tag(Tag.PREFIX + "Phone"), regexp, "0123456789");
44:         Phone phone1 = new Phone("12-34-567");
45:         Phone phone2 = new Phone("11-22-333");
46:         Phone phone3 = new Phone("44-55-777");
47:         List<Phone> etalonList = new ArrayList<Phone>();
48:         etalonList.add(phone1);
49:         etalonList.add(phone2);
50:         etalonList.add(phone3);
53:         List<Phone> parsedList = (List<Phone>) yaml.load(output);
55:         assertEquals(phone1, parsedList.get(0));
56:         assertEquals(phone2, parsedList.get(1));
57:         assertEquals(phone3, parsedList.get(2));
64:         yaml.addImplicitResolver(new Tag(Tag.PREFIX + "Phone"), regexp, "\0");
69:         map.put("a", new Phone("12-34-567"));
88:             if (!(obj instanceof Phone)) {
96:             return "Phone: " + number;
102:             this.representers.put(Phone.class, new RepresentPhone());
107:                 Phone phone = (Phone) data;
108:                 String value = phone.getNumber();
109:                 return representScalar(new Tag(Tag.PREFIX + "Phone"), value);
116:             this.yamlConstructors.put(new Tag(Tag.PREFIX + "Phone"), new ConstructPhone());
122:                 return new Phone(val);
130:             this.representers.put(Phone.class, new RepresentPhone());
135:                 Point phone = (Point) data;
136:                 String value = "x" + (int) phone.getX() + "_y" + (int) phone.getY();
143:                 Phone phone = (Phone) data;
144:                 String value = phone.getNumber();
145:                 return representScalar(new Tag(Tag.PREFIX + "Phone"), value);
github.com/MobileChromeApps/AndroidApkTemplate:apk-template/res/raw/messaging_api.js: [ master, ] javascript
52:       phone: to,
android.googlesource.com/platform/external/grpc-grpc:third_party/nanopb/tests/common/person.proto: [ master, ] protobuf
21:   repeated PhoneNumber phone = 4 [(nanopb).max_count = 5];
10:   enum PhoneType {
16:   message PhoneNumber {
18:     optional PhoneType type = 2 [default = HOME];
android.googlesource.com/platform/external/nanopb-c:tests/common/person.proto: [ master, ] protobuf Duplicate result
chromium.googlesource.com/android_ndk:prebuilt/linux-x86_64/lib/python2.7/ctypes/test/test_structures.py: [ master, ] python
278:         class Phone(Structure):
315:         class Phone(Structure):
284:                         ("phone", Phone),
290:         self.assertEqual(p.phone.areacode, "1234")
291:         self.assertEqual(p.phone.number, "5678")
321:                         ("phone", Phone),
329:                                  "(Phone) <type 'exceptions.TypeError'>: "
333:                                  "(Phone) exceptions.TypeError: "
340:                                  "(Phone) <type 'exceptions.TypeError'>: too many initializers")
342:             self.assertEqual(msg, "(Phone) exceptions.TypeError: too many initializers")
android.googlesource.com/platform/external/python/cpython3:Lib/ctypes/test/test_structures.py: [ master, ] python
280:         class Phone(Structure):
313:         class Phone(Structure):
286:                         ("phone", Phone),
292:         self.assertEqual(p.phone.areacode, b"1234")
293:         self.assertEqual(p.phone.number, b"5678")
319:                         ("phone", Phone),
325:                              "(Phone) <class 'TypeError'>: "
331:                              "(Phone) <class 'TypeError'>: too many initializers")
android.googlesource.com/platform/packages/services/Telephony:src/com/android/phone/MobileNetworkSettings.java: [ master, ] java
17: package com.android.phone;
432:         private class PhoneCallStateListener extends PhoneStateListener {
720:         private void updatePhone(int slotId) {
868:         private class PhoneChangeReceiver extends BroadcastReceiver {
107:     private static final String LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT =
347:         private static final int NUM_LAST_PHONE_DIGITS = 4;
295:     private static Intent buildPhoneAccountConfigureIntent(
375:         private final BroadcastReceiver mPhoneChangeReceiver = new PhoneChangeReceiver();
468:         private final PhoneCallStateListener mPhoneStateListener = new PhoneCallStateListener();
74: import com.android.internal.telephony.Phone;
88:  * tablets as well as regular phone devices.
90:  * Note that this Activity is part of the phone app, even though
93:  * available from the Phone app (see CallFeaturesSetting for that.)
152:      * Returns true if Wifi calling is enabled for at least one phone.
165:      * Returns true if Wifi calling is enabled for the specific phone with id {@code phoneId}.
298:                 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT);
303:                     context, accountHandle, LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT);
306:                         "Phone account using old configuration intent: " + accountHandle);
323:         intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle);
325:         // Check to see that the phone account package can handle the setting intent.
346:         // Number of last phone number digits shown in Euicc Setting tab
378:         static final int preferredNetworkMode = Phone.PREFERRED_NT_MODE;
1071:                 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
1073:                 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
1076:                     throw new IllegalStateException("Unexpected phone type: " + phoneType);
1083:                     CarrierConfigManager.KEY_WORLD_PHONE_BOOL) == true) {
1221:             if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
1268:             } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
1306:                 throw new IllegalStateException("Unexpected phone type: " + phoneType);
1674:                     if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA
1817:                         if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA
1841:                         // If the phone exits from ECM mode, show the CDMA Options
51: import android.telecom.PhoneAccountHandle;
54: import android.telephony.PhoneStateListener;
75: import com.android.internal.telephony.PhoneConstants;
155:         int phoneCount = TelephonyManager.from(context).getPhoneCount();
156:         for (int i = 0; i < phoneCount; i++) {
167:     public static boolean isWifiCallingEnabled(Context context, int phoneId) {
168:         final PhoneAccountHandle simCallManager =
179:             ImsManager imsMgr = ImsManager.getInstance(context, phoneId);
248:                 int phoneId = SubscriptionManager.getPhoneId(subInfo.getSubscriptionId());
249:                 ImsManager imsManager = ImsManager.getInstance(context, phoneId);
296:             Context context, PhoneAccountHandle accountHandle) {
313:             Context context, PhoneAccountHandle accountHandle, String actionStr) {
436:              * @see android.telephony.PhoneStateListener#onCallStateChanged(int,
441:                 if (DBG) log("PhoneStateListener.onCallStateChanged: state=" + state);
453:                 if (subId.equals(PhoneCallStateListener.this.mSubId)) {
457:                 PhoneCallStateListener.this.mSubId = subId;
459:                 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE);
463:                     mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE);
672:             updatePhone(currentTab);
715:                 updatePhone(Integer.parseInt(tabId));
727:                 Log.i(LOG_TAG, "updatePhone:- slotId=" + slotId + " sir=" + sir);
733:                     log("updatePhone :: Could not get ImsManager instance!");
735:                     log("updatePhone :: mImsMgr=" + mImsMgr);
841:             updatePhone(currentTab);
929:             mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
955:                 int phoneSubId, boolean hasActiveSubscriptions) {
974:                 mMobileDataPref.initialize(phoneSubId);
975:                 mDataUsagePref.initialize(phoneSubId);
1027:                 int phoneSubId, boolean hasActiveSubscriptions) {
1029:                     == PhoneConstants.LTE_ON_CDMA_TRUE;
1032:                 log("updateBody: isLteOnCdma=" + isLteOnCdma + " phoneSubId=" + phoneSubId);
1051:                     android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId,
1070:                 final int phoneType = mTelephonyManager.getPhoneType();
1074:                     updateGsmUmtsOptions(this, prefSet, phoneSubId);
1090:                 updateGsmUmtsOptions(this, prefSet, phoneSubId);
1219:             final int phoneType = mTelephonyManager.getPhoneType();
1227:                         == PhoneConstants.LTE_ON_CDMA_TRUE;
1321:             mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
1343:             final int phoneSubId = mSubId;
1352:                         android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId,
1391:                             android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId,
1408:                         android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId,
1443:                             android.provider.Settings.Global.PREFERRED_NETWORK_MODE + phoneSubId,
1493:                 // So it only makes sense to call phoneMgr.enableVideoCalling if it's checked.
1622:                         case PhoneConstants.LTE_ON_CDMA_TRUE:
1626:                         case PhoneConstants.LTE_ON_CDMA_FALSE:
1864:             final PhoneAccountHandle simCallManager =
173:             Intent intent = MobileNetworkSettings.buildPhoneAccountConfigureIntent(
730:                         SubscriptionManager.getPhoneId(mSubId));
742:             mPhoneStateListener.updateSubscriptionId(mSubId);
931:             // NOTE: Buttons will be enabled/disabled in mPhoneStateListener
942:             context.registerReceiver(mPhoneChangeReceiver, intentFilter);
1327:             context.unregisterReceiver(mPhoneChangeReceiver);
1859:             if (!isWifiCallingEnabled(getContext(), SubscriptionManager.getPhoneId(mSubId))) {
1868:                 Intent intent = MobileNetworkSettings.buildPhoneAccountConfigureIntent(
android.googlesource.com/platform/frameworks/policies/base:phone/com/android/internal/policy/impl/PhoneWindowManager.java: [ master, ] java
128:     static final int PHONE_LAYER = 3;
117: public class PhoneWindowManager implements WindowManagerPolicy {
136:     static final int PRIORITY_PHONE_LAYER = 9;
1011:     static ITelephony getPhoneInterface() {
88: import static android.view.WindowManager.LayoutParams.TYPE_PHONE;
89: import static android.view.WindowManager.LayoutParams.TYPE_PRIORITY_PHONE;
111:  * WindowManagerPolicy implementation for the Android phone UI.  This
661:             case TYPE_PHONE:
662:             case TYPE_PRIORITY_PHONE:
771:         case TYPE_PHONE:
772:             return PHONE_LAYER;
787:         case TYPE_PRIORITY_PHONE:
788:             return PRIORITY_PHONE_LAYER;
1677:         final ITelephony phone = getPhoneInterface();
1678:         if (phone == null) {
1683:             return phone.isOffhook();
1790:             // This is necessary because the phone app will disable the keyguard
113:  * PhoneWindowManager.  This is used to protect some internal state, and
508:                 "PhoneWindowManager.mBroadcastWakeLock");
1061:                             ITelephony phoneServ = getPhoneInterface();
1062:                             if (phoneServ != null) {
1063:                                 incomingRinging = phoneServ.isRinging();
1674:      * @return Whether a telephone call is in progress right now.
1819:                     ITelephony phoneServ = getPhoneInterface();
1820:                     if (phoneServ != null) {
1823:                                 handled = hungUp = phoneServ.endCall();
1825:                                 if (phoneServ.isRinging()) {
1828:                                     phoneServ.silenceRinger();
1830:                                 } else if (phoneServ.isOffhook() &&
1836:                                     handled = hungUp = phoneServ.endCall();
1890:                     // case, the PhoneWindow class will do the same thing, except it will
1908:                         ITelephony phoneServ = getPhoneInterface();
1909:                         if (phoneServ != null) {
1910:                             if (phoneServ.isRinging()) {
1913:                                 phoneServ.answerRingingCall();
1937:                         ITelephony phoneServ = getPhoneInterface();
1938:                         if (phoneServ != null) {
1939:                             if (phoneServ.isRinging()) {
1944:                                 phoneServ.silenceRinger();
1068:                             Log.w(TAG, "RemoteException from getPhoneInterface()", ex);
1923:                         Log.w(TAG, "CALL button: RemoteException from getPhoneInterface()", ex);
1954:                         Log.w(TAG, "VOLUME button: RemoteException from getPhoneInterface()", ex);
github.com/google-developer-training/android-fundamentals-phone-sms:PhoneCallingSample/app/src/main/java/com/example/android/phonecallingsample/MainActivity.java: [ master, ] java
42:     private static final int MY_PERMISSIONS_REQUEST_CALL_PHONE = 1;
17: package com.example.android.phonecallingsample;
96:     private void checkForPhonePermission() {
175:     private class MyPhoneCallListener extends PhoneStateListener {
37:  * This app accepts a phone number and makes a phone call.
50:      *     Checks for phone permission.
65:             // Check for phone permission.
67:             // Register the PhoneStateListener to monitor phone activity.
94:      * Checks whether the app has phone-calling permission.
98:                 Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
101:             // MY_PERMISSIONS_REQUEST_CALL_PHONE is an
105:                     new String[]{Manifest.permission.CALL_PHONE},
106:                     MY_PERMISSIONS_REQUEST_CALL_PHONE);
126:             case MY_PERMISSIONS_REQUEST_CALL_PHONE: {
127:                 if (permissions[0].equalsIgnoreCase(Manifest.permission.CALL_PHONE)
144:      * Uses an implicit intent to make the phone call.
147:      * @param view View (phone_icon) that was clicked.
151:         // Use format with "tel:" and phone number to create phoneNumber.
153:         // Log the concatenated phone number for dialing.
159:         // Set the data for the intent as the phone number.
161:         // If package resolves to an app, check for phone permission,
172:      * Monitors and logs phone call activities, and shows the phone state
181:             String message = getString(R.string.phone_status);
191:                     // Phone call is active -- off the hook.
198:                     // Phone is idle before and after phone call.
200:                     // restart activity when phone call ends.
217:                     message = message + "Phone off";
226:      * Makes the call button (phone_icon) invisible so that it can't be used,
230:         Toast.makeText(this, R.string.phone_disabled, Toast.LENGTH_LONG).show();
231:         ImageButton callButton = (ImageButton) findViewById(R.id.phone_icon);
240:      * Makes the call button (phone_icon) visible so that it can be used.
243:         ImageButton callButton = (ImageButton) findViewById(R.id.phone_icon);
27: import android.telephony.PhoneStateListener;
51:      *     Sets the PhoneStateListener.
69:             mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CALL_STATE);
152:         String phoneNumber = String.format("tel: %s", editText.getText().toString());
154:         Log.d(TAG, getString(R.string.dial_number) + phoneNumber);
155:         Toast.makeText(this, getString(R.string.dial_number) + phoneNumber,
160:         callIntent.setData(Uri.parse(phoneNumber));
262:             mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
45:     private MyPhoneCallListener mListener;
66:             checkForPhonePermission();
68:             mListener = new MyPhoneCallListener();
164:             checkForPhonePermission();
github.com/google-developer-training/android-fundamentals-phone-sms:PhoneCallingSampleChallenge/app/src/main/java/com/example/android/phonecallingsamplechallenge/MainActivity.java: [ master, ] java
45:     private static final int MY_PERMISSIONS_REQUEST_CALL_PHONE = 1;
17: package com.example.android.phonecallingsamplechallenge;
99:     private void checkForPhonePermission() {
188:     private class MyPhoneCallListener extends PhoneStateListener {
39:  * This app accepts a phone number and makes a phone call.
40:  * For incoming calls, the app shows the phone number of the caller.
53:      *     Checks for phone permission.
68:             // Check for phone permission.
70:             // Register the PhoneStateListener to monitor phone activity.
97:      * Checks whether the app has phone-calling permission.
101:                 Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
104:             // MY_PERMISSIONS_REQUEST_CALL_PHONE is an
108:                     new String[]{Manifest.permission.CALL_PHONE},
109:                     MY_PERMISSIONS_REQUEST_CALL_PHONE);
129:             case MY_PERMISSIONS_REQUEST_CALL_PHONE: {
130:                 if (permissions[0].equalsIgnoreCase(Manifest.permission.CALL_PHONE)
148:      * Uses an implicit intent to make the phone call.
164:         // Use format with "tel:" and phone number to create phoneNumber.
166:         // Log the concatenated phone number for dialing.
172:         // Set the data for the intent as the phone number.
174:         // If package resolves to an app, check for phone permission,
185:      * Monitors and logs phone call activities, and shows the phone state
194:             String message = getString(R.string.phone_status);
204:                     // Phone call is active -- off the hook.
211:                     // Phone is idle before and after phone call.
213:                     // restart activity when phone call ends.
230:                     message = message + "Phone off";
239:      * Makes the call button (phone icon) invisible so that it can't be used,
243:         Toast.makeText(this, R.string.phone_disabled, Toast.LENGTH_LONG).show();
244:         ImageButton callButton = (ImageButton) findViewById(R.id.phone_icon);
253:      * Makes the call button (phone icon) visible so that it can be used.
256:         ImageButton callButton = (ImageButton) findViewById(R.id.phone_icon);
27: import android.telephony.PhoneNumberUtils;
28: import android.telephony.PhoneStateListener;
54:      *     Sets the PhoneStateListener.
72:             mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CALL_STATE);
162:                     PhoneNumberUtils.normalizeNumber(editText.getText().toString());
165:         String phoneNumber = String.format("tel: %s", normalizedPhoneNumber);
167:         Log.d(TAG, getString(R.string.dial_number) + phoneNumber);
168:         Toast.makeText(this, getString(R.string.dial_number) + phoneNumber,
173:         callIntent.setData(Uri.parse(phoneNumber));
273:             mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
48:     private MyPhoneCallListener mListener;
69:             checkForPhonePermission();
71:             mListener = new MyPhoneCallListener();
154:         String normalizedPhoneNumber;
159:             normalizedPhoneNumber = editText.getText().toString();
161:             normalizedPhoneNumber =
177:             checkForPhonePermission();
android.googlesource.com/platform/external/sqlite:android/PhoneNumberUtils.cpp: [ master, ] c++
281: static bool phone_number_compare_inter(const char* const org_a, const char* const org_b,
444: bool phone_number_compare_strict(const char* a, const char* b)
453: bool phone_number_stripped_reversed_inter(const char* in, char* out, const int len, int *outlen) {
138:  * digit to compare two phone numbers.
260:  * Compare phone numbers a and b, return true if they're identical
268:  * "the display language is English but the phone should be in Japan", but
270:  * in the country where the phone is used. More specifically, "880-1234-1234"
271:  * is not valid phone number in Japan since the trunk prefix in Japan is not 8
312:             // Different Country Calling Code. Must be different phone number.
380:                 return phone_number_compare_inter(org_a, org_b, false);
395:                 return phone_number_compare_inter(org_a, org_b, false);
446:     return phone_number_compare_inter(a, b, true);
450:  * Imitates the Java method PhoneNumberUtils.getStrippedReversed.
android.googlesource.com/platform/test/mlts/benchmark:src/com/android/nn/benchmark/evaluators/PhoneErrorRate.java: [ master, ] java
13:     static private final float PHONE_ERROR_RATE_LIMIT = 5f;  // 5%
12: public class PhoneErrorRate extends BaseSequenceEvaluator {
10:  * This validates that the Phone Error Rate (PER) is within the limit.
21:         if (per > PHONE_ERROR_RATE_LIMIT) {
22:             outValidationErrors.add("Phone error rate exceeded the limit: " + per);
29:         keys.add("max_phone_error_rate");
33:     /** Calculates Phone Error Rate in percent. */
36:         int[] outputPhones = new int[inferenceCount];
37:         int[] expectedOutputPhones = new int[inferenceCount];
39:             outputPhones[i] = SequenceUtils.indexOfLargest(outputs[i]);
40:             expectedOutputPhones[i] = SequenceUtils.indexOfLargest(expectedOutputs[i]);
42:         int errorCount = SequenceUtils.calculateEditDistance(outputPhones, expectedOutputPhones);
github.com/apache/incubator-milagro-mfa-sdk-android:mpin-sdk-core/ext/boost/boost/predef/platform/windows_phone.h: [ master, ] c++
25: #define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_NOT_AVAILABLE
29: #   define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_AVAILABLE
9: #define BOOST_PREDEF_PLAT_WINDOWS_PHONE_H
33: #   define BOOST_PLAT_WINDOWS_PHONE_AVALIABLE
37: #define BOOST_PLAT_WINDOWS_PHONE_NAME "Windows Phone"
8: #ifndef BOOST_PREDEF_PLAT_WINDOWS_PHONE_H
16: [heading `BOOST_PLAT_WINDOWS_PHONE`]
21:     [[`WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP`] [__predef_detection__]]
27: #if BOOST_OS_WINDOWS && defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
28: #   undef BOOST_PLAT_WINDOWS_PHONE
32: #if BOOST_PLAT_WINDOWS_PHONE
40: BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_PHONE,BOOST_PLAT_WINDOWS_PHONE_NAME)
android.googlesource.com/platform/frameworks/opt/chips:src/com/android/ex/chips/BaseRecipientAdapter.java: [ master, ] java
99:     public static final int QUERY_TYPE_PHONE = 1;
510:      * First, each destination (an email address or a phone number) with a valid contactId is
604:         } else if (queryMode == QUERY_TYPE_PHONE) {
605:             mQueryMode = Queries.PHONE;
android.googlesource.com/platform/external/tpm2:tpm_types.h: [ master, ] c++
345: #define TPM_PS_CELL_PHONE      0x00000003
android.googlesource.com/platform/test/mlts/benchmark:results/generate_result.py: [ master, ] python
644: PHONE_ERROR_RATE_BASELINE_TEMPLATE = """{val:.3f}"""
645: PHONE_ERROR_RATE_DIFF_TEMPLATE = \
190: def is_phone_error_rate_evaluator(evaluator_keys):
634: ACCURACY_HEADERS_PHONE_ERROR_RATE_TEMPLATE = """
639: ACCURACY_VALUES_PHONE_ERROR_RATE_TEMPLATE = """
193:           evaluator_keys[0] == 'max_phone_error_rate')
202:   elif is_phone_error_rate_evaluator(result.evaluator_keys):
203:     return ACCURACY_HEADERS_PHONE_ERROR_RATE_TEMPLATE
261:   elif is_phone_error_rate_evaluator(result.evaluator_keys):
265:       return ACCURACY_VALUES_PHONE_ERROR_RATE_TEMPLATE.format(
266:           max_phone_error_rate=PHONE_ERROR_RATE_BASELINE_TEMPLATE.format(
268:           max_single_error=PHONE_ERROR_RATE_BASELINE_TEMPLATE.format(
275:       v = [PHONE_ERROR_RATE_DIFF_TEMPLATE.format(
278:       return ACCURACY_VALUES_PHONE_ERROR_RATE_TEMPLATE.format(
279:           max_phone_error_rate=v[0],
635: <th>Max phone error rate</th>
640: <td>{max_phone_error_rate}</td>
191:   """Are these evaluator keys from PhoneErrorRate evaluator?"""
android.googlesource.com/platform/external/sl4a:Common/src/com/googlecode/android_scripting/facade/telephony/TelephonyConstants.java: [ master, ] java
173:     public static final String PHONE_TYPE_GSM = "GSM";
174:     public static final String PHONE_TYPE_NONE = "NONE";
175:     public static final String PHONE_TYPE_CDMA = "CDMA";
176:     public static final String PHONE_TYPE_SIP = "SIP";
137:     public static final String CALL_PRESENTATION_PAYPHONE = "PAYPHONE";
171:      * Constant for Phone Type
android.googlesource.com/platform/packages/providers/TelephonyProvider:src/com/android/providers/telephony/TelephonyBackupAgent.java: [ master, ] java
300:     private SparseArray<String> mSubId2phone = new SparseArray<String>();
145:     private static final String SELF_PHONE_KEY = "self_phone";
301:     private Map<String, Integer> mPhone2subId = new ArrayMap<String, Integer>();
80:  *  [{"self_phone":"+1234567891011","address":"+1234567891012","body":"Example sms",
82:  *  {"self_phone":"+1234567891011","address":"12345","body":"Example 2","date":"1451328022316",
86:  *  [{"self_phone":"+1234567891011","date":"1451322716","date_sent":"0","m_type":"128","v":"18",
90:  *  {"self_phone":"+1234567891011","sub":"MMS subject","date":"1451322955","date_sent":"0",
144:     // JSON key for phone number a message was sent from or received to.
286:         // If there is no sub_id with self phone number on restore set it to -1.
326:                     mSubId2phone.append(sub.getSubscriptionId(), phoneNumber);
340:     void setSubId(SparseArray<String> subId2Phone, Map<String, Integer> phone2subId) {
341:         mSubId2phone = subId2Phone;
342:         mPhone2subId = phone2subId;
725:                     final String selfNumber = mSubId2phone.get(subId);
727:                         jsonWriter.name(SELF_PHONE_KEY).value(selfNumber);
817:                 case SELF_PHONE_KEY:
868:                     final String selfNumber = mSubId2phone.get(subId);
870:                         jsonWriter.name(SELF_PHONE_KEY).value(selfNumber);
917:                 case SELF_PHONE_KEY:
45: import android.telephony.PhoneNumberUtils;
325:                     final String phoneNumber = getNormalizedNumber(sub);
327:                     mPhone2subId.put(phoneNumber, sub.getSubscriptionId());
709:         return PhoneNumberUtils.formatNumberToE164(subscriptionInfo.getNumber(),
818:                     final String selfPhone = jsonReader.nextString();
819:                     if (mPhone2subId.containsKey(selfPhone)) {
820:                         values.put(Telephony.Sms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
918:                     final String selfPhone = jsonReader.nextString();
919:                     if (mPhone2subId.containsKey(selfPhone)) {
920:                         mms.values.put(Telephony.Mms.SUBSCRIPTION_ID, mPhone2subId.get(selfPhone));
1339:     // NOTE: There are phones on which you can't get the recipients from the thread id for SMS
android.googlesource.com/platform/superproject:external/okhttp/website/static/bootstrap-combined.min.css: [ master, ] css
18: ...(335 bytes skipped)...-sizing:border-box}@-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden}.visible-phone...(369 bytes skipped)...h:767px){.hidden-desktop{display:inherit!important}.visible-desktop{display:none!important}.visible-phone{display:inherit!important}.hidden-phone{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:i...(15554 bytes skipped)...
9: ...(36628 bytes skipped)...x}.icon-lock{background-position:-287px -24px}.icon-flag{background-position:-312px -24px}.icon-headphones{background-position:-336px -24px}.icon-volume-off{background-position:-360px -24px}.icon-volume-do...(68876 bytes skipped)...
android.googlesource.com/platform/packages/apps/Exchange:src/com/android/exchange/adapter/Tags.java: [ master, ] java
432:     public static final int CONTACTS2_COMPANY_MAIN_PHONE = CONTACTS2_PAGE + 0xB;
549:     public static final int GAL_PHONE = GAL_PAGE + 6;
556:     public static final int GAL_HOME_PHONE = GAL_PAGE + 0xD;
557:     public static final int GAL_MOBILE_PHONE = GAL_PAGE + 0xE;
614:     public static final int SETTINGS_PHONE_NUMBER = SETTINGS_PAGE + 0x1C;
108:     public static final int CONTACTS_ASSISTANT_TELEPHONE_NUMBER = CONTACTS_PAGE + 7;
113:     public static final int CONTACTS_BUSINESS2_TELEPHONE_NUMBER = CONTACTS_PAGE + 0xC;
120:     public static final int CONTACTS_BUSINESS_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x13;
121:     public static final int CONTACTS_CAR_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x14;
133:     public static final int CONTACTS_HOME2_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x20;
140:     public static final int CONTACTS_HOME_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x27;
144:     public static final int CONTACTS_MOBILE_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x2B;
152:     public static final int CONTACTS_RADIO_TELEPHONE_NUMBER = CONTACTS_PAGE + 0x33;
860:             "CompanyMainPhone", "AccountName", "NickName", "MMS"
900:             "GalDisplayName", "GalPhone", "GalOffice", "GalTitle", "GalCompany", "GalAlias",
901:             "GalFirstName", "GalLastName", "GalHomePhone", "GalMobilePhone", "GalEmailAddress",
918:             "PhoneNumber", "UserInformation", "EmailAddress", "StmpAddress", "UserAgent",
761:             "Anniversary", "AssistantName", "AssistantTelephoneNumber", "Birthday", "ContactsBody",
762:             "ContactsBodySize", "ContactsBodyTruncated", "Business2TelephoneNumber",
765:             "BusinessAddressStreet", "BusinessFaxNumber", "BusinessTelephoneNumber",
766:             "CarTelephoneNumber", "ContactsCategories", "ContactsCategory", "Children", "Child",
768:             "FileAs", "FirstName", "Home2TelephoneNumber", "HomeAddressCity", "HomeAddressCountry",
770:             "HomeTelephoneNumber", "JobTitle", "LastName", "MiddleName", "MobileTelephoneNumber",
773:             "RadioTelephoneNumber", "Spouse", "Suffix", "Title", "Webpage", "YomiCompanyName",
android.googlesource.com/platform/external/libppp:src/command.c: [ master, ] c
119: #define	VAR_PHONE	12
1998:   case VAR_PHONE:
1999:     strncpy(cx->cfg.phone.list, argp, sizeof cx->cfg.phone.list - 1);
2000:     cx->cfg.phone.list[sizeof cx->cfg.phone.list - 1] = '\0';
2001:     cx->phone.alt = cx->phone.next = NULL;
2171:     *cx->cfg.cbcp.phone = '\0';
2174:       strncpy(cx->cfg.cbcp.phone, arg->argv[arg->argn],
2175:               sizeof cx->cfg.cbcp.phone - 1);
2176:       cx->cfg.cbcp.phone[sizeof cx->cfg.cbcp.phone - 1] = '\0';
2359:   "CBCP control", "set cbcp [*|phone[,phone...] [delay [timeout]]]",
2433:   {"phone", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX, "telephone number(s)",
2434:   "set phone phone1[:phone2[...]]", (const void *)VAR_PHONE},
android.googlesource.com/platform/frameworks/opt/telephony:proto/src/telephony.proto: [ master, ] protobuf
923:   optional int32 phone_id = 2;
1066:       PHONE_STATE_CHANGED = 20;
1229:     optional PhoneState phone_state = 8;
1276:   optional int32 phone_id = 2;
1438:   optional int32 phone_id = 2;
1125:     enum PhoneState {
221: // Contains phone state and service related information.
609:     // Phone state changed
1009:       // Phone state changed
1065:       // Notification about phone state changed.
1297:       // Phone state changed
android.googlesource.com/platform/external/qt:Mac-4.7.4/src/corelib/global/qnamespace.h: [ master, ] c++
1040:         Key_Phone = 0x010000e3,
android.googlesource.com/platform/external/okhttp:website/static/bootstrap-combined.min.css: [ master, ] css Duplicate result
android.googlesource.com/platform/prebuilt:ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/pci_ids.h: [ master, ] c++
40: #define PCI_CLASS_MULTIMEDIA_PHONE 0x0402
android.googlesource.com/platform/prebuilt:ndk/android-ndk-r7/platforms/android-9/arch-arm/usr/include/linux/pci_ids.h: [ master, ] c++ Duplicate result
android.googlesource.com/platform/system/metricsd:uploader/proto/system_profile.proto: [ master, ] protobuf
213:           DEVICE_PHONE = 2;
101:     // - iPhone OS
android.googlesource.com/platform/external/u-boot:include/pci_ids.h: [ master, ] c++
43: #define PCI_CLASS_MULTIMEDIA_PHONE	0x0402
android.googlesource.com/platform/superproject:external/u-boot/include/pci_ids.h: [ master, ] c++ Duplicate result
android.googlesource.com/platform/external/chromium_org:third_party/gtk+/gdk/gdkkeysyms.h: [ master, ] c++
2144: #define GDK_KEY_Phone 0x1008ff6e
1241: #define GDK_KEY_telephone 0xaf9
1242: #define GDK_KEY_telephonerecorder 0xafa
android.googlesource.com/platform/frameworks/opt/mailcommon:java/com/android/mailcommon/WebViewContextMenu.java: [ master, ] java
76:         PHONE_GROUP,
68:         COPY_PHONE_MENU,
181:         menu.setGroupVisible(getMenuGroupResId(MenuGroupType.PHONE_GROUP),
182:                 type == WebView.HitTestResult.PHONE_TYPE);
193:             case WebView.HitTestResult.PHONE_TYPE:
224:                 addIntent.putExtra(ContactsContract.Intents.Insert.PHONE, decodedPhoneExtra);
232:                 menu.findItem(getMenuResIdForMenuType(MenuType.COPY_PHONE_MENU)).
194:                 String decodedPhoneExtra;
196:                     decodedPhoneExtra = URLDecoder.decode(extra, Charset.defaultCharset().name());
200:                     decodedPhoneExtra = extra;
203:                 menu.setHeaderTitle(decodedPhoneExtra);
android.googlesource.com/platform/prebuilt:ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/pci_ids.h: [ master, ] c++ Duplicate result