/frameworks/ex/common/tests/src/com/android/common/widget/ |
H A D | CompositeCursorAdapterTest.java | 81 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 D | BluetoothRebootStressTest.java | 54 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 D | BluetoothStressTest.java | 64 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 D | BluetoothTestUtils.java | 421 * @param adapter The BT adapter. 423 public void enable(BluetoothAdapter adapter) { argument 429 int state = adapter.getState(); 432 assertTrue(adapter.isEnabled()); 436 assertFalse(adapter.isEnabled()); 440 assertFalse(adapter.isEnabled()); 442 assertTrue(adapter.enable()); 446 assertTrue(adapter.enable()); 455 state = adapter 483 disable(BluetoothAdapter adapter) argument 543 discoverable(BluetoothAdapter adapter) argument 586 undiscoverable(BluetoothAdapter adapter) argument 629 startScan(BluetoothAdapter adapter) argument 667 stopScan(BluetoothAdapter adapter) argument 705 enablePan(BluetoothAdapter adapter) argument 723 disablePan(BluetoothAdapter adapter) argument 744 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 757 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 773 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument 841 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument 906 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 987 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 1064 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1075 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1088 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument 1169 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1180 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1193 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument 1273 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1284 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1295 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument 1439 connectProxy(BluetoothAdapter adapter, int profile) argument [all...] |
/frameworks/base/core/java/android/nfc/ |
H A D | NfcManager.java | 47 NfcAdapter adapter; 54 adapter = NfcAdapter.getNfcAdapter(context); 56 adapter = null; 58 mAdapter = adapter;
|
/frameworks/opt/mailcommon/tests/src/com/android/mailcommon/ |
H A D | MergedAdapterTest.java | 108 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); 110 adapter.setAdapters(mFirst, mSecond); 111 assertEquals(2, adapter.getSubAdapterCount()); 112 assertEquals(mFirst, adapter.getSubAdapter(0)); 113 assertEquals(mSecond, adapter.getSubAdapter(1)); 117 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); 119 adapter.setAdapters(mFirst, mSecond); 120 LocalAdapterPosition<ListSpinnerAdapter> p = adapter.getAdapterOffsetForItem(13); 126 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); 128 adapter [all...] |
/frameworks/base/nfc-extras/java/com/android/nfc_extras/ |
H A D | NfcAdapterExtras.java | 76 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/opt/mailcommon/java/com/android/mailcommon/ |
H A D | MergedAdapter.java | 32 * An adapter that combines items from multiple provided adapters into a single list. 34 * @param <T> the class of each constituent adapter 42 * A Mergeable adapter must implement both ListAdapter and SpinnerAdapter to be useful in lists 52 public LocalAdapterPosition(T adapter, int offset) { argument 53 mAdapter = adapter; 69 for (T adapter : mAdapters) { 70 adapter.unregisterDataSetObserver(mObserver); 76 for (T adapter : mAdapters) { 77 adapter.registerDataSetObserver(mObserver); 92 for (T adapter [all...] |
H A D | MultiAdapterSpinner.java | 43 * adapter (which prevents setting multiple item types) and hides access to its popup, which is 65 * A basic adapter with some callbacks added so clients can be involved in spinner behavior. 112 public void setSelectedItem(final FancySpinnerAdapter adapter, final int position) { argument 118 if (a == adapter) { 126 if (adapter.canSelect(position)) { 128 View itemView = adapter.getView(position, null, this); 133 if (position < adapter.getCount()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothController.java | 49 final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 50 if (adapter != null) { 51 handleAdapterStateChange(adapter.getState()); 80 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 81 if (adapter != null) { 82 Set<BluetoothDevice> devices = adapter.getBondedDevices();
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AdapterViewICS.java | 54 * the adapter does not want the item's view recycled. 149 * The position within the adapter's data set of the item to select 161 * The position within the adapter's data set of the currently selected item. 177 * The number of items in the current adapter. 183 * The number of items in the adapter before a data changed event occurred. 189 * number of items in the current adapter. 254 * will be a view provided by the adapter) 255 * @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...] |
H A D | SpinnerICS.java | 222 public void setAdapter(SpinnerAdapter adapter) { argument 223 super.setAdapter(adapter); 226 mPopup.setAdapter(new DropDownAdapter(adapter)); 228 mTempAdapter = new DropDownAdapter(adapter); 361 * by getting a new one from the adapter. If we are animating, make sure 382 // Nothing found in the recycler -- ask the adapter for a view 478 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 479 if (adapter == null) { 494 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED); 498 final int positionType = adapter 535 DropDownAdapter(SpinnerAdapter adapter) argument 623 setAdapter(ListAdapter adapter) argument 663 setAdapter(ListAdapter adapter) argument 720 setAdapter(ListAdapter adapter) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | AdapterView.java | 52 * 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. 257 * will be a view provided by the adapter) 258 * @param position The position of the view in the adapter. 288 * @param position The position of the view in the adapter. 366 * @param position The position of the view in the adapter 441 setAdapter(T adapter) argument [all...] |
H A D | RemoteViewsAdapter.java | 51 * An adapter to a RemoteViewsService which fetches and caches RemoteViews 127 * @return whether the adapter was set or not. 145 * FrameLayouts in the adapter). 154 public RemoteViewsAdapterServiceConnection(RemoteViewsAdapter adapter) { argument 155 mAdapter = new WeakReference<RemoteViewsAdapter>(adapter); 161 RemoteViewsAdapter adapter; 163 if ((adapter = mAdapter.get()) != null) { 164 checkInteractAcrossUsersPermission(context, adapter.mUserId); 166 new UserHandle(adapter.mUserId)); 168 Slog.w(TAG, "bind: adapter wa [all...] |
H A D | Spinner.java | 412 public void setAdapter(SpinnerAdapter adapter) { argument 413 super.setAdapter(adapter); 418 mPopup.setAdapter(new DropDownAdapter(adapter)); 420 mTempAdapter = new DropDownAdapter(adapter); 570 * by getting a new one from the adapter. If we are animating, make sure 591 // Nothing found in the recycler -- ask the adapter for a view 709 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 710 if (adapter == null) { 725 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED); 729 final int positionType = adapter 829 DropDownAdapter(SpinnerAdapter adapter) argument 916 setAdapter(ListAdapter adapter) argument 963 setAdapter(ListAdapter adapter) argument 1052 setAdapter(ListAdapter adapter) argument [all...] |
H A D | ExpandableListConnector.java | 43 * itself, this adapter has no data and is a connector to a 84 * @param expandableListAdapter the adapter that supplies us with data/Views 470 HeterogeneousExpandableList adapter = 473 retValue = adapter.getGroupType(pos.groupPos); 475 final int childType = adapter.getChildType(pos.groupPos, pos.childPos); 476 retValue = adapter.getGroupTypeCount() + childType; 494 HeterogeneousExpandableList adapter = 496 return adapter.getGroupTypeCount() + adapter.getChildTypeCount(); 729 ExpandableListAdapter adapter [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListWithHeaders.java | 54 final ListAdapter adapter = listView.getAdapter(); 55 listView.setAdapter(adapter);
|
H A D | ListManagedCursor.java | 42 ListAdapter adapter = new SimpleCursorAdapter(this, 51 setListAdapter(adapter);
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
H A D | AutoCompleteTextViewActivityPortrait.java | 46 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, 49 textView.setAdapter(adapter);
|
H A D | AutoCompleteTextViewActivityLandscape.java | 52 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, 55 textView.setAdapter(adapter);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | ListViewTest.java | 45 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 D | ListActivity.java | 156 * // 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 D | ExpandableListActivity.java | 93 * 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);
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerListHelper.java | 53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor);
54 mActivity.setListAdapter(adapter);
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
H A D | ListViewAddRemoveNoTransition.java | 48 final StableArrayAdapter adapter = new StableArrayAdapter(this, 50 listview.setAdapter(adapter); 64 adapter.notifyDataSetChanged();
|