/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/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 | 53 * the adapter does not want the item's view recycled. 148 * The position within the adapter's data set of the item to select 160 * The position within the adapter's data set of the currently selected item. 176 * The number of items in the current adapter. 182 * The number of items in the adapter before a data changed event occurred. 188 * number of items in the current adapter. 258 * will be a view provided by the adapter) 259 * @param position The position of the view in the adapter. 287 * @param position The position of the view in the adapter. 365 * @param position The position of the view in the adapter 440 setAdapter(T adapter) argument [all...] |
H A D | Spinner.java | 381 public void setAdapter(SpinnerAdapter adapter) { argument 382 super.setAdapter(adapter); 385 mPopup.setAdapter(new DropDownAdapter(adapter)); 387 mTempAdapter = new DropDownAdapter(adapter); 529 * by getting a new one from the adapter. If we are animating, make sure 550 // Nothing found in the recycler -- ask the adapter for a view 661 int measureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 662 if (adapter == null) { 677 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED); 681 final int positionType = adapter 781 DropDownAdapter(SpinnerAdapter adapter) argument 868 setAdapter(ListAdapter adapter) argument 915 setAdapter(ListAdapter adapter) argument 1001 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...] |
H A D | RemoteViewsAdapter.java | 48 * An adapter to a RemoteViewsService which fetches and caches RemoteViews 122 * @return whether the adapter was set or not. 140 * FrameLayouts in the adapter). 149 public RemoteViewsAdapterServiceConnection(RemoteViewsAdapter adapter) { argument 150 mAdapter = new WeakReference<RemoteViewsAdapter>(adapter); 156 RemoteViewsAdapter adapter; 159 && (adapter = mAdapter.get()) != null) { 161 new UserHandle(adapter.mUserId)); 177 RemoteViewsAdapter adapter; 180 && (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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothController.java | 59 final BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 60 if (adapter != null) { 61 handleAdapterStateChange(adapter.getState()); 62 handleConnectionStateChange(adapter.getConnectionState()); 101 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 102 if (adapter != null) { 103 Set<BluetoothDevice> devices = adapter.getBondedDevices();
|
/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/support/v4/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 40 * {@link PagerAdapter#getPageTitle(int)} in the adapter supplied to 251 final PagerAdapter adapter = pager.getAdapter(); 256 updateAdapter(mWatchingAdapter != null ? mWatchingAdapter.get() : null, adapter); 270 void updateText(int currentItem, PagerAdapter adapter) { argument 271 final int itemCount = adapter != null ? adapter.getCount() : 0; 275 if (currentItem >= 1 && adapter != null) { 276 text = adapter.getPageTitle(currentItem - 1); 280 mCurrText.setText(adapter != null && currentItem < itemCount ? 281 adapter [all...] |