Lines Matching refs:name

90  * <a name="IntentStructure"></a>
147 * <li> <p><b>component</b> -- Specifies an explicit name of a component
198 * <a name="IntentResolution"></a>
261 * name with one specific to your own package.</p>
273 * &lt;action android:name="android.intent.action.MAIN" /&gt;
274 * &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
277 * &lt;action android:name="android.intent.action.VIEW" /&gt;
278 * &lt;action android:name="android.intent.action.EDIT" /&gt;
279 * &lt;action android:name="android.intent.action.PICK" /&gt;
280 * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
284 * &lt;action android:name="android.intent.action.GET_CONTENT" /&gt;
285 * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
292 * &lt;action android:name="android.intent.action.VIEW" /&gt;
293 * &lt;action android:name="android.intent.action.EDIT" /&gt;
294 * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
299 * &lt;action android:name="android.intent.action.INSERT" /&gt;
300 * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
309 * &lt;action android:name="<i>com.android.notepad.action.EDIT_TITLE</i>" /&gt;
310 * &lt;category android:name="android.intent.category.DEFAULT" /&gt;
311 * &lt;category android:name="android.intent.category.ALTERNATIVE" /&gt;
312 * &lt;category android:name="android.intent.category.SELECTED_ALTERNATIVE" /&gt;
327 * &lt;action android:name="{@link #ACTION_MAIN android.intent.action.MAIN}" /&gt;
328 * &lt;category android:name="{@link #CATEGORY_LAUNCHER android.intent.category.LAUNCHER}" /&gt;
336 * &lt;action android:name="{@link #ACTION_VIEW android.intent.action.VIEW}" /&gt;
337 * &lt;action android:name="{@link #ACTION_EDIT android.intent.action.EDIT}" /&gt;
338 * &lt;action android:name="{@link #ACTION_PICK android.intent.action.PICK}" /&gt;
339 * &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
340 * &lt;data mimeType:name="vnd.android.cursor.dir/<i>vnd.google.note</i>" /&gt;
352 * activity when its component name is not explicitly specified.</p>
355 * &lt;action android:name="{@link #ACTION_GET_CONTENT android.intent.action.GET_CONTENT}" /&gt;
356 * &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
404 * &lt;action android:name="{@link #ACTION_VIEW android.intent.action.VIEW}" /&gt;
405 * &lt;action android:name="{@link #ACTION_EDIT android.intent.action.EDIT}" /&gt;
406 * &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
417 * &lt;action android:name="{@link #ACTION_INSERT android.intent.action.INSERT}" /&gt;
418 * &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
455 * &lt;action android:name="<i>com.android.notepad.action.EDIT_TITLE</i>" /&gt;
456 * &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
457 * &lt;category android:name="{@link #CATEGORY_ALTERNATIVE android.intent.category.ALTERNATIVE}" /&gt;
458 * &lt;category android:name="{@link #CATEGORY_SELECTED_ALTERNATIVE android.intent.category.SELECTED_ALTERNATIVE}" /&gt;
478 * template here was also supply an explicit name for the template
715 * The name of the extra used to define the Intent of a shortcut.
721 * The name of the extra used to define the name of a shortcut.
727 * The name of the extra used to define the icon, as a Bitmap, of a shortcut.
733 * The name of the extra used to define the icon, as a ShortcutIconResource, of a shortcut.
751 * The package name of the application containing the icon.
756 * The resource name of the icon, including package, name and type.
766 * @return A new ShortcutIconResource with the specified's context package name
1175 * <p>Output: Class name of the activity that was selected.
1234 * An optional field on {@link #ACTION_ASSIST} containing the name of the current foreground
1362 * you can also use "package:<package-name>" to install an application for the
1379 * package. Specifies the installer package name; this package will receive the
1474 * the package name of the current installed package to be uninstalled.
1504 * For historical reasons, the name of this broadcast action refers to the power
1524 * For historical reasons, the name of this broadcast action refers to the power
1658 * device. The data contains the name of the package. Note that the
1675 * The data contains the name of the package.
1699 * the device. The data contains the name of the package. The package
1717 * removed from the device. The data contains the name of the package.
1735 * a component has been enabled or disabled). The data contains the name of
1739 * <li> {@link #EXTRA_CHANGED_COMPONENT_NAME_LIST} containing the class name
1740 * of the changed components (or the package name itself).
1753 * restart the given package. The data contains the name of the
1771 * The data contains the name of the package.
1786 * receive this broadcast. The data contains the name of the package.
1809 * is moved out of the stopped state). The data contains the name of the package.
2129 * The Intent contains an extra with name "read-only" and Boolean value to indicate if the
2744 * Callers can provide an initial display name through {@link #EXTRA_TITLE},
2835 * a specific name such as "com.android.camera.action.CROP. Only one
3173 * {@link #ACTION_CHOOSER}. Each key should be a package name. The package need not
3178 * the user selects from the chooser belongs to a package with its package name as
3356 * will contain only the first name in the list.
3365 * with the package name itself.
3952 * http/https URI being delivered to a specific package name. The format
3963 * will always have an explicit package name.</p>
4129 * <p><em>Note: scheme and host name matching in the Android framework is
4147 * intended to execute a hard-coded class name, rather than relying on the
4169 * <p><em>Note: scheme and host name matching in the Android framework is
4235 * @param selectorAction The action name of the Intent's selector.
4236 * @param selectorCategory The name of a category to add to the Intent's
4354 // loop over contents of Intent, all name=value;
4456 // Correctly formed android-app, first part is package name.
4459 // All we have is a package name.
4466 // Target the Intent at the given package name always.
4696 * Retrieve data this intent is operating on. This URI specifies the name
4874 * Returns true if an extra value is associated with the given name.
4875 * @param name the extra's name
4878 public boolean hasExtra(String name) {
4879 return mExtras != null && mExtras.containsKey(name);
4900 * @param name The name of the desired item.
4909 public Object getExtra(String name) {
4910 return getExtra(name, null);
4916 * @param name The name of the desired item.
4918 * type is stored with the given name.
4925 public boolean getBooleanExtra(String name, boolean defaultValue) {
4927 mExtras.getBoolean(name, defaultValue);
4933 * @param name The name of the desired item.
4935 * type is stored with the given name.
4942 public byte getByteExtra(String name, byte defaultValue) {
4944 mExtras.getByte(name, defaultValue);
4950 * @param name The name of the desired item.
4952 * type is stored with the given name.
4959 public short getShortExtra(String name, short defaultValue) {
4961 mExtras.getShort(name, defaultValue);
4967 * @param name The name of the desired item.
4969 * type is stored with the given name.
4976 public char getCharExtra(String name, char defaultValue) {
4978 mExtras.getChar(name, defaultValue);
4984 * @param name The name of the desired item.
4986 * type is stored with the given name.
4993 public int getIntExtra(String name, int defaultValue) {
4995 mExtras.getInt(name, defaultValue);
5001 * @param name The name of the desired item.
5003 * type is stored with the given name.
5010 public long getLongExtra(String name, long defaultValue) {
5012 mExtras.getLong(name, defaultValue);
5018 * @param name The name of the desired item.
5020 * type is stored with the given name.
5027 public float getFloatExtra(String name, float defaultValue) {
5029 mExtras.getFloat(name, defaultValue);
5035 * @param name The name of the desired item.
5037 * type is stored with the given name.
5044 public double getDoubleExtra(String name, double defaultValue) {
5046 mExtras.getDouble(name, defaultValue);
5052 * @param name The name of the desired item.
5059 public String getStringExtra(String name) {
5060 return mExtras == null ? null : mExtras.getString(name);
5066 * @param name The name of the desired item.
5073 public CharSequence getCharSequenceExtra(String name) {
5074 return mExtras == null ? null : mExtras.getCharSequence(name);
5080 * @param name The name of the desired item.
5087 public <T extends Parcelable> T getParcelableExtra(String name) {
5088 return mExtras == null ? null : mExtras.<T>getParcelable(name);
5094 * @param name The name of the desired item.
5101 public Parcelable[] getParcelableArrayExtra(String name) {
5102 return mExtras == null ? null : mExtras.getParcelableArray(name);
5108 * @param name The name of the desired item.
5115 public <T extends Parcelable> ArrayList<T> getParcelableArrayListExtra(String name) {
5116 return mExtras == null ? null : mExtras.<T>getParcelableArrayList(name);
5122 * @param name The name of the desired item.
5129 public Serializable getSerializableExtra(String name) {
5130 return mExtras == null ? null : mExtras.getSerializable(name);
5136 * @param name The name of the desired item.
5143 public ArrayList<Integer> getIntegerArrayListExtra(String name) {
5144 return mExtras == null ? null : mExtras.getIntegerArrayList(name);
5150 * @param name The name of the desired item.
5157 public ArrayList<String> getStringArrayListExtra(String name) {
5158 return mExtras == null ? null : mExtras.getStringArrayList(name);
5164 * @param name The name of the desired item.
5171 public ArrayList<CharSequence> getCharSequenceArrayListExtra(String name) {
5172 return mExtras == null ? null : mExtras.getCharSequenceArrayList(name);
5178 * @param name The name of the desired item.
5185 public boolean[] getBooleanArrayExtra(String name) {
5186 return mExtras == null ? null : mExtras.getBooleanArray(name);
5192 * @param name The name of the desired item.
5199 public byte[] getByteArrayExtra(String name) {
5200 return mExtras == null ? null : mExtras.getByteArray(name);
5206 * @param name The name of the desired item.
5213 public short[] getShortArrayExtra(String name) {
5214 return mExtras == null ? null : mExtras.getShortArray(name);
5220 * @param name The name of the desired item.
5227 public char[] getCharArrayExtra(String name) {
5228 return mExtras == null ? null : mExtras.getCharArray(name);
5234 * @param name The name of the desired item.
5241 public int[] getIntArrayExtra(String name) {
5242 return mExtras == null ? null : mExtras.getIntArray(name);
5248 * @param name The name of the desired item.
5255 public long[] getLongArrayExtra(String name) {
5256 return mExtras == null ? null : mExtras.getLongArray(name);
5262 * @param name The name of the desired item.
5269 public float[] getFloatArrayExtra(String name) {
5270 return mExtras == null ? null : mExtras.getFloatArray(name);
5276 * @param name The name of the desired item.
5283 public double[] getDoubleArrayExtra(String name) {
5284 return mExtras == null ? null : mExtras.getDoubleArray(name);
5290 * @param name The name of the desired item.
5297 public String[] getStringArrayExtra(String name) {
5298 return mExtras == null ? null : mExtras.getStringArray(name);
5304 * @param name The name of the desired item.
5311 public CharSequence[] getCharSequenceArrayExtra(String name) {
5312 return mExtras == null ? null : mExtras.getCharSequenceArray(name);
5318 * @param name The name of the desired item.
5325 public Bundle getBundleExtra(String name) {
5326 return mExtras == null ? null : mExtras.getBundle(name);
5332 * @param name The name of the desired item.
5343 public IBinder getIBinderExtra(String name) {
5344 return mExtras == null ? null : mExtras.getIBinder(name);
5350 * @param name The name of the desired item.
5352 * associated with the key 'name'
5363 public Object getExtra(String name, Object defaultValue) {
5366 Object result2 = mExtras.get(name);
5407 * Retrieve the application package name this Intent is limited to. When
5411 * @return The name of the application package for the Intent.
5426 * @return The name of the application component to handle the intent.
5501 info.activityInfo.name);
5512 * instead of just its class name.
5565 ri.serviceInfo.name);
5578 * @param action An action name, such as ACTION_VIEW. Application-specific
5579 * actions should be prefixed with the vendor's package name.
5842 "Can't set selector when package name is already set");
5889 * Add extended data to the intent. The name must include a package
5893 * @param name The name of the extra data, with package prefix.
5903 public Intent putExtra(String name, boolean value) {
5907 mExtras.putBoolean(name, value);
5912 * Add extended data to the intent. The name must include a package
5916 * @param name The name of the extra data, with package prefix.
5926 public Intent putExtra(String name, byte value) {
5930 mExtras.putByte(name, value);
5935 * Add extended data to the intent. The name must include a package
5939 * @param name The name of the extra data, with package prefix.
5949 public Intent putExtra(String name, char value) {
5953 mExtras.putChar(name, value);
5958 * Add extended data to the intent. The name must include a package
5962 * @param name The name of the extra data, with package prefix.
5972 public Intent putExtra(String name, short value) {
5976 mExtras.putShort(name, value);
5981 * Add extended data to the intent. The name must include a package
5985 * @param name The name of the extra data, with package prefix.
5995 public Intent putExtra(String name, int value) {
5999 mExtras.putInt(name, value);
6004 * Add extended data to the intent. The name must include a package
6008 * @param name The name of the extra data, with package prefix.
6018 public Intent putExtra(String name, long value) {
6022 mExtras.putLong(name, value);
6027 * Add extended data to the intent. The name must include a package
6031 * @param name The name of the extra data, with package prefix.
6041 public Intent putExtra(String name, float value) {
6045 mExtras.putFloat(name, value);
6050 * Add extended data to the intent. The name must include a package
6054 * @param name The name of the extra data, with package prefix.
6064 public Intent putExtra(String name, double value) {
6068 mExtras.putDouble(name, value);
6073 * Add extended data to the intent. The name must include a package
6077 * @param name The name of the extra data, with package prefix.
6087 public Intent putExtra(String name, String value) {
6091 mExtras.putString(name, value);
6096 * Add extended data to the intent. The name must include a package
6100 * @param name The name of the extra data, with package prefix.
6110 public Intent putExtra(String name, CharSequence value) {
6114 mExtras.putCharSequence(name, value);
6119 * Add extended data to the intent. The name must include a package
6123 * @param name The name of the extra data, with package prefix.
6133 public Intent putExtra(String name, Parcelable value) {
6137 mExtras.putParcelable(name, value);
6142 * Add extended data to the intent. The name must include a package
6146 * @param name The name of the extra data, with package prefix.
6156 public Intent putExtra(String name, Parcelable[] value) {
6160 mExtras.putParcelableArray(name, value);
6165 * Add extended data to the intent. The name must include a package
6169 * @param name The name of the extra data, with package prefix.
6179 public Intent putParcelableArrayListExtra(String name, ArrayList<? extends Parcelable> value) {
6183 mExtras.putParcelableArrayList(name, value);
6188 * Add extended data to the intent. The name must include a package
6192 * @param name The name of the extra data, with package prefix.
6202 public Intent putIntegerArrayListExtra(String name, ArrayList<Integer> value) {
6206 mExtras.putIntegerArrayList(name, value);
6211 * Add extended data to the intent. The name must include a package
6215 * @param name The name of the extra data, with package prefix.
6225 public Intent putStringArrayListExtra(String name, ArrayList<String> value) {
6229 mExtras.putStringArrayList(name, value);
6234 * Add extended data to the intent. The name must include a package
6238 * @param name The name of the extra data, with package prefix.
6248 public Intent putCharSequenceArrayListExtra(String name, ArrayList<CharSequence> value) {
6252 mExtras.putCharSequenceArrayList(name, value);
6257 * Add extended data to the intent. The name must include a package
6261 * @param name The name of the extra data, with package prefix.
6271 public Intent putExtra(String name, Serializable value) {
6275 mExtras.putSerializable(name, value);
6280 * Add extended data to the intent. The name must include a package
6284 * @param name The name of the extra data, with package prefix.
6294 public Intent putExtra(String name, boolean[] value) {
6298 mExtras.putBooleanArray(name, value);
6303 * Add extended data to the intent. The name must include a package
6307 * @param name The name of the extra data, with package prefix.
6317 public Intent putExtra(String name, byte[] value) {
6321 mExtras.putByteArray(name, value);
6326 * Add extended data to the intent. The name must include a package
6330 * @param name The name of the extra data, with package prefix.
6340 public Intent putExtra(String name, short[] value) {
6344 mExtras.putShortArray(name, value);
6349 * Add extended data to the intent. The name must include a package
6353 * @param name The name of the extra data, with package prefix.
6363 public Intent putExtra(String name, char[] value) {
6367 mExtras.putCharArray(name, value);
6372 * Add extended data to the intent. The name must include a package
6376 * @param name The name of the extra data, with package prefix.
6386 public Intent putExtra(String name, int[] value) {
6390 mExtras.putIntArray(name, value);
6395 * Add extended data to the intent. The name must include a package
6399 * @param name The name of the extra data, with package prefix.
6409 public Intent putExtra(String name, long[] value) {
6413 mExtras.putLongArray(name, value);
6418 * Add extended data to the intent. The name must include a package
6422 * @param name The name of the extra data, with package prefix.
6432 public Intent putExtra(String name, float[] value) {
6436 mExtras.putFloatArray(name, value);
6441 * Add extended data to the intent. The name must include a package
6445 * @param name The name of the extra data, with package prefix.
6455 public Intent putExtra(String name, double[] value) {
6459 mExtras.putDoubleArray(name, value);
6464 * Add extended data to the intent. The name must include a package
6468 * @param name The name of the extra data, with package prefix.
6478 public Intent putExtra(String name, String[] value) {
6482 mExtras.putStringArray(name, value);
6487 * Add extended data to the intent. The name must include a package
6491 * @param name The name of the extra data, with package prefix.
6501 public Intent putExtra(String name, CharSequence[] value) {
6505 mExtras.putCharSequenceArray(name, value);
6510 * Add extended data to the intent. The name must include a package
6514 * @param name The name of the extra data, with package prefix.
6524 public Intent putExtra(String name, Bundle value) {
6528 mExtras.putBundle(name, value);
6533 * Add extended data to the intent. The name must include a package
6537 * @param name The name of the extra data, with package prefix.
6551 public Intent putExtra(String name, IBinder value) {
6555 mExtras.putIBinder(name, value);
6624 public void removeExtra(String name) {
6626 mExtras.remove(name);
6702 * (Usually optional) Set an explicit application package name that limits
6708 * @param packageName The name of the application package to handle the
6720 "Can't set package name when selector is already set");
6737 * @param component The name of the application component to handle the
6756 * explicit class name.
6760 * @param className The name of a class inside of the application package
6776 * explicit application package name and class name.
6778 * @param packageName The name of the package implementing the desired
6780 * @param className The name of a class inside of the application package
6796 * name returned by a {@link Class} object.
6800 * @param cls The class name to set, equivalent to
6906 * <li> each top-level name in the associated extras.
6971 // for the same reason as the component name.
7293 "Intent must include an explicit package name to build an android-app: "
7541 * basic action, data, type, and package and class name will be
7543 * looking for <category android:name="xxx"> tags to add categories and
7544 * <extra android:name="xxx" android:value="yyy"> to attach extra data
7662 String name;
7666 name = in.getName();
7667 if (TAG_CATEGORIES.equals(name)) {
7673 Log.w("Intent", "restoreFromXml: unknown name=" + name);