Home | History | Annotate | Download | only in phone

Lines Matching refs:intent

19 import android.content.Intent;
46 * Intent extra to specify the package name of the gateway
57 * Intent extra to specify the URI of the provider to place the
61 * intent URL or in the EXTRA_PHONE_NUMBER extra.
87 * Intent parameter. If no such data exists, returns a Null-Object RawGatewayInfo.
88 * @param intent The intent from which to read gateway data.
91 public static RawGatewayInfo getRawGatewayInfo(Intent intent, String number) {
92 if (hasPhoneProviderExtras(intent)) {
93 return new RawGatewayInfo(intent.getStringExtra(EXTRA_GATEWAY_PROVIDER_PACKAGE),
94 getProviderGatewayUri(intent), number);
134 * Check if all the provider's info is present in the intent.
135 * @param intent Expected to have the provider's extra.
136 * @return true if the intent has all the extras to build the
139 public static boolean hasPhoneProviderExtras(Intent intent) {
140 if (null == intent) {
143 final String name = intent.getStringExtra(EXTRA_GATEWAY_PROVIDER_PACKAGE);
144 final String gatewayUri = intent.getStringExtra(EXTRA_GATEWAY_URI);
151 * used from the source intent to the destination one. Checks all
154 * @param src Intent which may contain the provider's extras.
155 * @param dst Intent where a copy of the extras will be added if applicable.
157 public static void checkAndCopyPhoneProviderExtras(Intent src, Intent dst) {
170 * Return the gateway uri from the intent.
171 * @param intent With the gateway uri extra.
174 public static Uri getProviderGatewayUri(Intent intent) {
175 final String uri = intent.getStringExtra(EXTRA_GATEWAY_URI);