public BundleBuilder putCharSequenceArray(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
when(bundle.getFloatArray(anyString())).thenAnswer(get); doAnswer(put).when(bundle).putCharSequenceArray(anyString(), any(CharSequence[].class)); when(bundle.getCharSequenceArray(anyString())).thenAnswer(get);
/** * Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing any * existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null * @return this bundler instance to chain method calls */ public Bundler put(String key, CharSequence[] value) { delegate.putCharSequenceArray(key, value); return this; }
/** * Inserts a CharSequence array value into the mapping of this Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null */ @TargetApi(8) public Bundler putCharSequenceArray(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
/** * Inserts a CharSequence array value into the mapping of this Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null */ @TargetApi(8) public Bundler putCharSequenceArray(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
/** * 附加到Intent的Extra */ public DefaultUriRequest putExtra(String name, CharSequence[] value) { extra().putCharSequenceArray(name, value); return this; }
/** * Inserts a CharSequence array value into the mapping of the underlying Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null * @return this bundler instance to chain method calls */ public Bundler put(String key, CharSequence[] value) { delegate.putCharSequenceArray(key, value); return this; }
/** * Inserts a CharSequence array value into the mapping of this Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null */ public Bundler add(String key, CharSequence[] value) { mBundle.putCharSequenceArray(key, value); return this; }
@Override public void put(Bundle bundle, String paramName, Object arg) { bundle.putCharSequenceArray(paramName, (CharSequence[]) arg); } });
public BundleBuilder add(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
public void putCharSequenceArray(Bundle state, String key, CharSequence[] x) { state.putCharSequenceArray(key + mBaseKey, x); }
/** * Inserts a CharSequence array value into the mapping of this Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null */ @TargetApi(8) public Bundler putCharSequenceArray(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
/** * Inserts a CharSequence array value into the mapping of this Bundle, replacing * any existing value for the given key. Either key or value may be null. * * @param key a String, or null * @param value a CharSequence array object, or null */ @TargetApi(8) public Bundler putCharSequenceArray(String key, CharSequence[] value) { bundle.putCharSequenceArray(key, value); return this; }
public Builder withCharSequenceArray(String key, CharSequence[] val){ if(mArgBundle == null){ mArgBundle = new Bundle(); } mArgBundle.putCharSequenceArray(key, val); return this; }
public Builder withCharSequenceArray(String key, CharSequence[] val){ if(mArgBundle == null){ mArgBundle = new Bundle(); } mArgBundle.putCharSequenceArray(key, val); return this; }
public static void putToBundle(@NonNull Bundle bundle, String key, @Nullable CharSequence[] value) { bundle.putCharSequenceArray(key, value); } public static void putToBundle(@NonNull Bundle bundle, String key, @Nullable byte[] value) {
@Override public final void onSaveInstanceState(@NonNull final Bundle outState) { outState.putInt(ITEM_COLOR_EXTRA, getItemColor()); if (items != null) { outState.putCharSequenceArray(ITEMS_EXTRA, items); } else if (singleChoiceItems != null) { outState.putCharSequenceArray(SINGLE_CHOICE_ITEMS_EXTRA, singleChoiceItems); outState.putBooleanArray(CHECKED_ITEMS_EXTRA, getCheckedItems()); } else if (multiChoiceItems != null) { outState.putCharSequenceArray(MULTI_CHOICE_ITEMS_EXTRA, multiChoiceItems); outState.putBooleanArray(CHECKED_ITEMS_EXTRA, getCheckedItems()); } }
static Bundle toBundle(RemoteInputCompatBase.RemoteInput remoteInput) { Bundle data = new Bundle(); data.putString(KEY_RESULT_KEY, remoteInput.getResultKey()); data.putCharSequence(KEY_LABEL, remoteInput.getLabel()); data.putCharSequenceArray(KEY_CHOICES, remoteInput.getChoices()); data.putBoolean(KEY_ALLOW_FREE_FORM_INPUT, remoteInput.getAllowFreeFormInput()); data.putBundle(KEY_EXTRAS, remoteInput.getExtras()); return data; }
@Override protected Bundle prepareArguments() { Bundle args = new Bundle(); args.putCharSequence(TabDialogFragment.ARG_MESSAGE, mMessage); args.putCharSequence(TabDialogFragment.ARG_TITLE, mTitle); args.putCharSequence(TabDialogFragment.ARG_SUB_TITLE, mSubTitle); args.putCharSequence(TabDialogFragment.ARG_POSITIVE_BUTTON, mPositiveButtonText); args.putCharSequence(TabDialogFragment.ARG_NEGATIVE_BUTTON, mNegativeButtonText); args.putCharSequence(TabDialogFragment.ARG_NEUTRAL_BUTTON, mNeutralButtonText); args.putCharSequenceArray(TabDialogFragment.ARG_TAB_BUTTON, mTabButtonText); return args; } }
@Override public void onSaveInstanceState(Bundle outState){ super.onSaveInstanceState(outState); //Store actual data from service adapter View serviceView = getActivity().findViewById(R.id.txt_service); if(serviceView != null) { ListAdapter serviceAdapter = ((AutoCompleteTextView) serviceView).getAdapter(); if (serviceAdapter != null) { int count = serviceAdapter.getCount(); String[] services = new String[count]; for (int i = 0; i < count; i++) { services[i] = (String) serviceAdapter.getItem(i); } outState.putCharSequenceArray("services", services); } } }