Searched defs:adapter (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/core/java/android/app/
H A DListActivity.java156 * // Now create a new list adapter bound to the cursor.
158 * ListAdapter adapter = new SimpleCursorAdapter(
166 * // Bind to our new adapter.
167 * setListAdapter(adapter);
261 public void setListAdapter(ListAdapter adapter) { argument
264 mAdapter = adapter;
265 mList.setAdapter(adapter);
271 * position with the adapter's data
H A DExpandableListActivity.java93 * for each row. This adapter has separate methods for providing the group
240 * Provide the adapter for the expandable list.
242 public void setListAdapter(ExpandableListAdapter adapter) { argument
245 mAdapter = adapter;
246 mList.setAdapter(adapter);
H A DAlertDialog.java490 * @param adapter The {@link ListAdapter} to supply the list of items
495 public Builder setAdapter(final ListAdapter adapter, final OnClickListener listener) { argument
496 P.mAdapter = adapter;
681 * @param adapter The {@link ListAdapter} to supply the list of items
689 public Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, final OnClickListener listener) { argument
690 P.mAdapter = adapter;
/frameworks/base/core/java/android/widget/
H A DHeaderViewListAdapter.java52 ListAdapter adapter) {
53 mAdapter = adapter;
54 mIsFilterable = adapter instanceof Filterable;
50 HeaderViewListAdapter(ArrayList<ListView.FixedViewInfo> headerViewInfos, ArrayList<ListView.FixedViewInfo> footerViewInfos, ListAdapter adapter) argument
H A DAbsSpinner.java75 ArrayAdapter<CharSequence> adapter =
78 adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);
79 setAdapter(adapter);
97 * @param adapter The SpinnerAdapter to use for this Spinner
100 public void setAdapter(SpinnerAdapter adapter) { argument
106 mAdapter = adapter;
263 * Jump directly to a specific item in the adapter data.
H A DSpinner.java170 * by getting a new one from the adapter. If we are animating, make sure
191 // Nothing found in the recycler -- ask the adapter for a view
254 final DropDownAdapter adapter = new DropDownAdapter(getAdapter());
260 mPopup = builder.setSingleChoiceItems(adapter, getSelectedItemPosition(), this).show();
304 * <p>Creates a new ListAdapter wrapper for the specified adapter.</p>
306 * @param adapter the Adapter to transform into a ListAdapter
308 public DropDownAdapter(SpinnerAdapter adapter) { argument
309 this.mAdapter = adapter;
310 if (adapter instanceof ListAdapter) {
311 this.mListAdapter = (ListAdapter) adapter;
[all...]
H A DAdapterView.java46 * the adapter does not want the item's view recycled.
141 * The position within the adapter's data set of the item to select
153 * The position within the adapter's data set of the currently selected item.
169 * The number of items in the current adapter.
175 * The number of items in the adapter before a data changed event occured.
181 * number of items in the current adapter.
247 * will be a view provided by the adapter)
248 * @param position The position of the view in the adapter.
276 * @param position The position of the view in the adapter.
349 * @param position The position of the view in the adapter
424 setAdapter(T adapter) argument
[all...]
H A DExpandableListView.java427 public void setAdapter(ListAdapter adapter) { argument
460 * Sets the adapter that provides data to this view.
461 * @param adapter The adapter that provides data to this view.
463 public void setAdapter(ExpandableListAdapter adapter) { argument
465 mAdapter = adapter;
467 if (adapter != null) {
469 mConnector = new ExpandableListConnector(adapter);
479 * Gets the adapter that provides data to this view.
480 * @return The adapter tha
[all...]
H A DGridView.java114 * @param adapter the adapter providing the grid's data
117 public void setAdapter(ListAdapter adapter) { argument
124 mAdapter = adapter;
160 final ListAdapter adapter = mAdapter;
161 if (adapter == null || isInTouchMode()) {
H A DAutoCompleteTextView.java53 * <p>The list of suggestions is obtained from a data adapter and appears
66 * ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
70 * textView.setAdapter(adapter);
434 * to show up in the adapter sometime in the future.
570 * <p>Returns a filterable list adapter used for auto completion.</p>
572 * @return a data adapter used for auto completion
580 * must be a filterable list adapter.</p>
582 * <p>The caller is still responsible for managing any resources used by the adapter.
583 * Notably, when the AutoCompleteTextView is closed or released, the adapter is not notified.
591 * @param adapter th
597 setAdapter(T adapter) argument
[all...]
H A DListView.java408 * Returns the adapter currently in use in this ListView. The returned adapter
409 * might not be the same adapter passed to {@link #setAdapter(ListAdapter)} but
412 * @return The adapter currently used to display data in this ListView.
424 * The adapter passed to this method may be wrapped by a {@link WrapperListAdapter},
426 * headers and/or footers will cause the adapter to be wrapped.
428 * @param adapter The ListAdapter which is responsible for maintaining the
435 public void setAdapter(ListAdapter adapter) { argument
444 mAdapter = new HeaderViewListAdapter(mHeaderViewInfos, mFooterViewInfos, adapter);
446 mAdapter = adapter;
[all...]
/frameworks/base/core/jni/
H A Dandroid_bluetooth_common.h43 // but this is only possible when the adapter is up (and hcid is running).
44 // It is much easier just to hardcode bluetooth adapter to hci0
71 const char *adapter; member in struct:android::event_loop_native_data_t
H A Dandroid_server_BluetoothService.cpp60 const char *adapter; // dbus object name of the local adapter member in struct:android::__anon36
96 /* Returns true on success (even if adapter is present but disabled).
131 return event_nat->adapter;
137 // This function is called when the adapter is enabled.
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
H A DNfcAdapterExtras.java80 * @param adapter a {@link NfcAdapter}, must not be null
83 public static NfcAdapterExtras get(NfcAdapter adapter) { argument
87 sAdapter = adapter;
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAudioGateway.java57 public BluetoothAudioGateway(BluetoothAdapter adapter) { argument
58 this(adapter, DEFAULT_HF_AG_CHANNEL, DEFAULT_HS_AG_CHANNEL);
61 public BluetoothAudioGateway(BluetoothAdapter adapter, int handsfreeAgRfcommChannel, argument
63 mAdapter = adapter;
80 IncomingConnectionInfo(BluetoothAdapter adapter, BluetoothDevice remoteDevice, argument
82 mAdapter = adapter;
H A DHeadsetBase.java77 public HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, argument
81 mAdapter = adapter;
93 public HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device, argument
97 mAdapter = adapter;
/frameworks/base/core/java/android/server/
H A DBluetoothEventLoop.java103 /* package */ BluetoothEventLoop(Context context, BluetoothAdapter adapter, argument
109 mAdapter = adapter;
/frameworks/base/media/libeffects/testlibs/
H A DEffectEqualizer.cpp108 FormatAdapter adapter; member in struct:android::__anon407::EqualizerContext
250 pContext->adapter.configure(*pContext->pEqualizer, channelCount,
594 pContext->adapter.process(inBuffer->raw, outBuffer->raw, outBuffer->frameCount);
/frameworks/base/core/java/android/webkit/
H A DWebTextView.java625 public void setAdapterCustom(AutoCompleteAdapter adapter) { argument
626 if (adapter != null) {
629 adapter.setTextView(this);
631 super.setAdapter(adapter);
929 AutoCompleteAdapter adapter = null;
930 setAdapterCustom(adapter);
/frameworks/base/core/tests/coretests/src/android/bluetooth/
H A DBluetoothTestUtils.java398 public void enable(BluetoothAdapter adapter) { argument
403 int state = adapter.getState();
406 assertTrue(adapter.isEnabled());
410 assertFalse(adapter.isEnabled());
411 assertTrue(adapter.enable());
414 assertFalse(adapter.isEnabled());
423 state = adapter.getState();
425 assertTrue(adapter.isEnabled());
433 assertFalse(adapter.isEnabled());
445 public void disable(BluetoothAdapter adapter) { argument
495 discoverable(BluetoothAdapter adapter) argument
534 undiscoverable(BluetoothAdapter adapter) argument
573 startScan(BluetoothAdapter adapter) argument
604 stopScan(BluetoothAdapter adapter) argument
637 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
641 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
646 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean pair) argument
703 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument
755 connectA2dp(BluetoothAdapter adapter, BluetoothDevice device) argument
822 disconnectA2dp(BluetoothAdapter adapter, BluetoothDevice device) argument
883 connectHeadset(BluetoothAdapter adapter, BluetoothDevice device) argument
947 disconnectHeadset(BluetoothAdapter adapter, BluetoothDevice device) argument
[all...]
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp579 LOG_API("nAllocation1DSubData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
590 LOG_API("nAllocation1DSubData_s, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
601 LOG_API("nAllocation1DSubData_b, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
612 LOG_API("nAllocation1DSubData_f, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
623 LOG_API("nAllocation2DSubData_i, con(%p), adapter(%p), xoff(%i), yoff(%i), w(%i), h(%i), len(%i)", con, (RsAllocation)alloc, xoff, yoff, w, h, len);
634 LOG_API("nAllocation2DSubData_i, con(%p), adapter(%p), xoff(%i), yoff(%i), w(%i), h(%i), len(%i)", con, (RsAllocation)alloc, xoff, yoff, w, h, len);
707 nAdapter1DBindAllocation(JNIEnv *_env, jobject _this, jint adapter, jint alloc) argument
710 LOG_API("nAdapter1DBindAllocation, con(%p), adapter(%p), alloc(%p)", con, (RsAdapter1D)adapter, (RsAllocation)alloc);
711 rsAdapter1DBindAllocation(con, (RsAdapter1D)adapter, (RsAllocatio
715 nAdapter1DSetConstraint(JNIEnv *_env, jobject _this, jint adapter, jint dim, jint value) argument
723 nAdapter1DData_i(JNIEnv *_env, jobject _this, jint adapter, jintArray data) argument
734 nAdapter1DSubData_i(JNIEnv *_env, jobject _this, jint adapter, jint offset, jint count, jintArray data) argument
745 nAdapter1DData_f(JNIEnv *_env, jobject _this, jint adapter, jfloatArray data) argument
756 nAdapter1DSubData_f(JNIEnv *_env, jobject _this, jint adapter, jint offset, jint count, jfloatArray data) argument
777 nAdapter2DBindAllocation(JNIEnv *_env, jobject _this, jint adapter, jint alloc) argument
785 nAdapter2DSetConstraint(JNIEnv *_env, jobject _this, jint adapter, jint dim, jint value) argument
793 nAdapter2DData_i(JNIEnv *_env, jobject _this, jint adapter, jintArray data) argument
804 nAdapter2DData_f(JNIEnv *_env, jobject _this, jint adapter, jfloatArray data) argument
815 nAdapter2DSubData_i(JNIEnv *_env, jobject _this, jint adapter, jint xoff, jint yoff, jint w, jint h, jintArray data) argument
827 nAdapter2DSubData_f(JNIEnv *_env, jobject _this, jint adapter, jint xoff, jint yoff, jint w, jint h, jfloatArray data) argument
[all...]

Completed in 357 milliseconds