Searched refs:adapter (Results 1 - 25 of 146) sorted by relevance

123456

/frameworks/ex/common/tests/src/com/android/common/widget/
H A DCompositeCursorAdapterTest.java81 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter();
82 adapter.addPartition(false, false);
83 adapter.addPartition(false, false);
85 adapter.changeCursor(0, makeCursor("a", 2));
86 adapter.changeCursor(1, makeCursor("b", 3));
88 assertEquals(5, adapter.getCount());
92 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter();
93 adapter.addPartition(false, false);
94 adapter.addPartition(false, false);
96 adapter
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothRebootStressTest.java54 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
55 mTestUtils.enable(adapter);
64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
66 assertTrue(adapter.isEnabled());
75 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
77 assertTrue(adapter.isEnabled());
79 mTestUtils.disable(adapter);
80 mTestUtils.enable(adapter);
88 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
90 assertTrue(adapter
[all...]
H A DBluetoothStressTest.java64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
65 mTestUtils.disable(adapter);
69 mTestUtils.enable(adapter);
70 mTestUtils.disable(adapter);
83 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
84 mTestUtils.disable(adapter);
85 mTestUtils.enable(adapter);
86 mTestUtils.undiscoverable(adapter);
90 mTestUtils.discoverable(adapter);
91 mTestUtils.undiscoverable(adapter);
[all...]
H A DBluetoothTestUtils.java422 * @param adapter The BT adapter.
424 public void enable(BluetoothAdapter adapter) { argument
430 int state = adapter.getState();
433 assertTrue(adapter.isEnabled());
437 assertFalse(adapter.isEnabled());
441 assertFalse(adapter.isEnabled());
443 assertTrue(adapter.enable());
447 assertTrue(adapter.enable());
456 state = adapter
484 disable(BluetoothAdapter adapter) argument
544 discoverable(BluetoothAdapter adapter) argument
587 undiscoverable(BluetoothAdapter adapter) argument
630 startScan(BluetoothAdapter adapter) argument
668 stopScan(BluetoothAdapter adapter) argument
706 enablePan(BluetoothAdapter adapter) argument
724 disablePan(BluetoothAdapter adapter) argument
745 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
758 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument
774 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument
842 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument
900 unpairAll(BluetoothAdapter adapter) argument
918 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
999 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument
1076 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1087 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1100 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument
1181 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument
1192 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument
1205 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument
1285 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1296 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument
1307 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument
1451 connectProxy(BluetoothAdapter adapter, int profile) argument
[all...]
/frameworks/base/core/java/android/nfc/
H A DNfcManager.java47 NfcAdapter adapter;
54 adapter = NfcAdapter.getNfcAdapter(context);
56 adapter = null;
58 mAdapter = adapter;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DListRow.java30 public ListRow(HeaderItem header, ObjectAdapter adapter) { argument
32 mAdapter = adapter;
36 public ListRow(long id, HeaderItem header, ObjectAdapter adapter) { argument
38 mAdapter = adapter;
42 public ListRow(ObjectAdapter adapter) { argument
44 mAdapter = adapter;
H A DControlBarPresenter.java42 ObjectAdapter adapter; field in class:ControlBarPresenter.BoundData
45 * The presenter to be used for the adapter objects.
124 ObjectAdapter adapter = getDisplayedAdapter();
125 int adapterSize = adapter == null ? 0 : adapter.size();
130 mControlBar.getChildAt(adapter.size() - 1).requestFocus();
137 bindControlToAction(position, adapter, presenter);
148 ObjectAdapter adapter, Presenter presenter) {
150 Object item = adapter.get(position);
174 * Returns the adapter currentl
147 bindControlToAction(final int position, ObjectAdapter adapter, Presenter presenter) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DConnectionServiceAdapter.java49 void addAdapter(IConnectionServiceAdapter adapter) { argument
50 if (mAdapters.add(adapter)) {
52 adapter.asBinder().linkToDeath(this, 0);
54 mAdapters.remove(adapter);
59 void removeAdapter(IConnectionServiceAdapter adapter) { argument
60 if (adapter != null && mAdapters.remove(adapter)) {
61 adapter.asBinder().unlinkToDeath(this, 0);
70 IConnectionServiceAdapter adapter = it.next();
71 if (!adapter
[all...]
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
H A DNfcAdapterExtras.java76 private static void initService(NfcAdapter adapter) { argument
77 final INfcAdapterExtras service = adapter.getNfcAdapterExtrasInterface();
90 * @param adapter a {@link NfcAdapter}, must not be null
93 public static NfcAdapterExtras get(NfcAdapter adapter) { argument
94 Context context = adapter.getContext();
102 initService(adapter);
104 NfcAdapterExtras extras = sNfcExtras.get(adapter);
106 extras = new NfcAdapterExtras(adapter);
107 sNfcExtras.put(adapter, extras);
113 private NfcAdapterExtras(NfcAdapter adapter) { argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAdapterViewCompat.java56 * the adapter does not want the item's view recycled.
151 * The position within the adapter's data set of the item to select
163 * The position within the adapter's data set of the currently selected item.
179 * The number of items in the current adapter.
185 * The number of items in the adapter before a data changed event occurred.
191 * number of items in the current adapter.
256 * will be a view provided by the adapter)
257 * @param position The position of the view in the adapter.
299 * @param position The position of the view in the adapter.
377 * @param position The position of the view in the adapter
452 setAdapter(T adapter) argument
[all...]
H A DSpinnerCompat.java359 public void setAdapter(SpinnerAdapter adapter) { argument
360 super.setAdapter(adapter);
366 && adapter != null && adapter.getViewTypeCount() != 1) {
367 throw new IllegalArgumentException("Spinner adapter view type count must be 1");
370 mPopup.setAdapter(new DropDownAdapter(adapter));
372 mTempAdapter = new DropDownAdapter(adapter);
516 * from the adapter. If we are animating, make sure there is enough information in the view's
537 // Nothing found in the recycler -- ask the adapter for a view
638 int measureContentWidth(SpinnerAdapter adapter, Drawabl argument
762 DropDownAdapter(SpinnerAdapter adapter) argument
851 setAdapter(ListAdapter adapter) argument
910 setAdapter(ListAdapter adapter) argument
1002 setAdapter(ListAdapter adapter) argument
[all...]
H A DListViewCompat.java137 final ListAdapter adapter = getAdapter();
138 if (adapter == null || isInTouchMode()) {
142 final int count = adapter.getCount();
146 while (position < count && !adapter.isEnabled(position)) {
151 while (position >= 0 && !adapter.isEnabled(position)) {
232 * should be the last available child from the adapter.
259 final ListAdapter adapter = getAdapter();
261 if (adapter == null) {
276 int count = adapter.getCount();
278 int newType = adapter
[all...]
/frameworks/base/core/java/android/widget/
H A DAdapterView.java52 * the adapter does not want the item's view recycled.
147 * The position within the adapter's data set of the item to select
159 * The position within the adapter's data set of the currently selected item.
175 * The number of items in the current adapter.
181 * The number of items in the adapter before a data changed event occurred.
187 * number of items in the current adapter.
266 * will be a view provided by the adapter)
267 * @param position The position of the view in the adapter.
297 * @param position The position of the view in the adapter.
375 * @param position The position of the view in the adapter
450 setAdapter(T adapter) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListWithHeaders.java54 final ListAdapter adapter = listView.getAdapter();
55 listView.setAdapter(adapter);
H A DListManagedCursor.java42 ListAdapter adapter = new SimpleCursorAdapter(this,
51 setListAdapter(adapter);
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
H A DAutoCompleteTextViewActivityPortrait.java46 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
49 textView.setAdapter(adapter);
H A DAutoCompleteTextViewActivityLandscape.java52 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
55 textView.setAdapter(adapter);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java45 Adapter<String> adapter = new Adapter<String>(context, 0, items);
46 listView.setAdapter(adapter);
50 adapter.notifyDataSetChanged();
75 Adapter<String> adapter = new Adapter<String>(context, 0, items);
76 listView.setAdapter(adapter);
82 adapter.notifyDataSetChanged();
88 adapter.notifyDataSetChanged();
/frameworks/base/core/java/android/app/
H A DExpandableListActivity.java92 * for each row. This adapter has separate methods for providing the group
239 * Provide the adapter for the expandable list.
241 public void setListAdapter(ExpandableListAdapter adapter) { argument
244 mAdapter = adapter;
245 mList.setAdapter(adapter);
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
/frameworks/base/telecomm/java/com/android/internal/telecom/
H A DIConnectionService.aidl34 void addConnectionServiceAdapter(in IConnectionServiceAdapter adapter);
36 void removeConnectionServiceAdapter(in IConnectionServiceAdapter adapter);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewAnimationsTest.java142 TestAdapter adapter = new TestAdapter(50) {
149 adapter.setHasStableIds(true);
150 setupBasic(50, 3, 5, adapter);
339 final TestAdapter adapter = new TestAdapter(1000) {
347 setupBasic(1000, 10, 20, adapter);
370 adapter.addAndNotify(15, 1);
408 final TestAdapter adapter = new TestAdapter(itemCount) {
414 adapter.setHasStableIds(true);
415 initialSet.addAll(adapter.mItems);
416 positionStatesTest(itemCount, 5, 5, adapter, ne
828 positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount,TestAdapter adapter, AdapterOps adapterChanges, final PositionConstraint... constraints) argument
1277 run(TestAdapter adapter) argument
1308 adapter, enum constant in enum:RecyclerViewAnimationsTest.PositionConstraint.Type
1340 public static PositionConstraint adapter(int position) { method in class:RecyclerViewAnimationsTest.PositionConstraint
[all...]
H A DRecyclerViewLayoutTest.java77 TestAdapter adapter = new TestAdapter(100);
78 recyclerView.setAdapter(adapter);
203 TestAdapter adapter = new TestAdapter(100);
204 recyclerView.setAdapter(adapter);
269 TestAdapter adapter = new TestAdapter(100);
270 recyclerView.setAdapter(adapter);
371 final TestAdapter adapter = new TestAdapter(10);
379 recyclerView.setAdapter(adapter);
388 assertNotSame("adapter positions should not be undefined",
392 adapter
2268 run(TestAdapter adapter) argument
[all...]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerListHelper.java53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor);
54 mActivity.setListAdapter(adapter);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DFrameworkActionBar.java142 OverflowMenuAdapter adapter = new OverflowMenuAdapter(menu, mActionBar.getPopupContext());
147 measureContentWidth(adapter), LayoutParams.WRAP_CONTENT);
158 listView.setAdapter(adapter);
192 private int measureContentWidth(@NonNull ListAdapter adapter) { argument
201 final int count = adapter.getCount();
203 final int positionType = adapter.getItemViewType(i);
213 itemView = adapter.getView(i, itemView, mMeasureParent);

Completed in 3547 milliseconds

123456