Home | History | Annotate | Download | only in phone

Lines Matching defs:uri

20 import android.net.Uri;
57 * Intent extra to specify the URI of the provider to place the
63 // TODO: Should the value be a Uri (Parcelable)? Need to make sure
64 // MMI code '#' don't get confused as URI fragments.
170 * Return the gateway uri from the intent.
171 * @param intent With the gateway uri extra.
172 * @return The gateway URI or null if not found.
174 public static Uri getProviderGatewayUri(Intent intent) {
175 final String uri = intent.getStringExtra(EXTRA_GATEWAY_URI);
176 return TextUtils.isEmpty(uri) ? null : Uri.parse(uri);
180 * Return a formatted version of the uri's scheme specific
182 * @param uri A 'tel:' URI with the gateway phone number.
183 * @return the provider's address (from the gateway uri) formatted
184 * for user display. null if uri was null or its scheme was not 'tel:'.
186 public static String formatProviderUri(Uri uri) {
187 if (uri != null) {
188 if (PhoneAccount.SCHEME_TEL.equals(uri.getScheme())) {
189 return PhoneNumberUtils.formatNumber(uri.getSchemeSpecificPart());
191 return uri.toString();
199 public Uri gatewayUri;
202 public RawGatewayInfo(String packageName, Uri gatewayUri,