/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 | 423 * @param adapter The BT adapter. 425 public void enable(BluetoothAdapter adapter) { argument 431 int state = adapter.getState(); 434 assertTrue(adapter.isEnabled()); 438 assertFalse(adapter.isEnabled()); 442 assertFalse(adapter.isEnabled()); 444 assertTrue(adapter.enable()); 448 assertTrue(adapter.enable()); 457 state = adapter 485 disable(BluetoothAdapter adapter) argument 545 discoverable(BluetoothAdapter adapter) argument 588 undiscoverable(BluetoothAdapter adapter) argument 631 startScan(BluetoothAdapter adapter) argument 669 stopScan(BluetoothAdapter adapter) argument 707 enablePan(BluetoothAdapter adapter) argument 725 disablePan(BluetoothAdapter adapter) argument 746 pair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 759 acceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin) argument 775 pairOrAcceptPair(BluetoothAdapter adapter, BluetoothDevice device, int passkey, byte[] pin, boolean shouldPair) argument 843 unpair(BluetoothAdapter adapter, BluetoothDevice device) argument 901 unpairAll(BluetoothAdapter adapter) argument 919 connectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 1000 disconnectProfile(BluetoothAdapter adapter, BluetoothDevice device, int profile, String methodName) argument 1077 connectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1088 incomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1101 connectPanOrIncomingPanConnection(BluetoothAdapter adapter, BluetoothDevice device, boolean connect) argument 1182 disconnectPan(BluetoothAdapter adapter, BluetoothDevice device) argument 1193 incomingPanDisconnection(BluetoothAdapter adapter, BluetoothDevice device) argument 1206 disconnectFromRemoteOrVerifyConnectNap(BluetoothAdapter adapter, BluetoothDevice device, boolean disconnect) argument 1286 startSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1297 stopSco(BluetoothAdapter adapter, BluetoothDevice device) argument 1308 startStopSco(BluetoothAdapter adapter, BluetoothDevice device, boolean isStart) argument 1452 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/base/telecomm/java/android/telecom/ |
H A D | ConnectionServiceAdapter.java | 50 void addAdapter(IConnectionServiceAdapter adapter) { argument 52 if (it.asBinder() == adapter.asBinder()) { 53 Log.w(this, "Ignoring duplicate adapter addition."); 57 if (mAdapters.add(adapter)) { 59 adapter.asBinder().linkToDeath(this, 0); 61 mAdapters.remove(adapter); 66 void removeAdapter(IConnectionServiceAdapter adapter) { argument 67 if (adapter != null) { 69 if (it.asBinder() == adapter.asBinder() && mAdapters.remove(it)) { 70 adapter [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ListRow.java | 30 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 D | DetailsOverviewRow.java | 66 * Called when DetailsOverviewRow has changed actions adapter. 167 * Notifies listeners for actions adapter changed on UI thread. 256 * Returns the actions adapter. Throws ClassCastException if the current 257 * actions adapter is not an instance of {@link ArrayObjectAdapter}. 265 * adapter is not an instance of {@link ArrayObjectAdapter}. Must be called on the UI thread. 276 * current actions adapter is not an instance of f{@link ArrayObjectAdapter}. Must be called 289 * actions adapter is not {@link ArrayObjectAdapter}. Must be called on UI thread. 301 * ClassCastException if current actions adapter is not {@link ArrayObjectAdapter}. Must be 320 * attached to the adapter if it doesn't have one. 322 * @param adapter Adapte 324 setActionsAdapter(ObjectAdapter adapter) argument [all...] |
H A D | ControlBarPresenter.java | 42 ObjectAdapter adapter; field in class:ControlBarPresenter.BoundData 45 * The presenter to be used for the adapter objects. 126 ObjectAdapter adapter = getDisplayedAdapter(); 127 int adapterSize = adapter == null ? 0 : adapter.size(); 132 mControlBar.getChildAt(adapter.size() - 1).requestFocus(); 139 bindControlToAction(position, adapter, presenter); 150 ObjectAdapter adapter, Presenter presenter) { 152 Object item = adapter.get(position); 176 * Returns the adapter currentl 149 bindControlToAction(final int position, ObjectAdapter adapter, Presenter presenter) argument [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/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothManager.java | 25 * if there is no Bluetooth adapter on this device, and callers must be 52 LocalBluetoothAdapter adapter = LocalBluetoothAdapter.getInstance(); 53 if (adapter == null) { 58 sInstance = new LocalBluetoothManager(adapter, appContext); 67 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { argument 69 mLocalAdapter = adapter;
|
H A D | LocalBluetoothAdapter.java | 31 * those related to state transitions of the adapter itself. 53 private LocalBluetoothAdapter(BluetoothAdapter adapter) { argument 54 mAdapter = adapter; 69 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 70 if (adapter != null) { 71 sInstance = new LocalBluetoothAdapter(adapter); 185 // get the adapter UUIDs in its constructor when it is.
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | AbsSpinnerBindingAdapter.java | 40 ArrayAdapter<CharSequence> adapter = 43 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 44 view.setAdapter(adapter);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/ |
H A D | CustomNamespaceAdapter.java | 16 package android.databinding.testapp.adapter;
|
H A D | WeirdListeners.java | 16 package android.databinding.testapp.adapter;
|
/frameworks/base/core/java/android/widget/ |
H A D | AdapterView.java | 55 * the adapter does not want the item's view recycled. 150 * The position within the adapter's data set of the item to select 162 * The position within the adapter's data set of the currently selected item. 178 * The number of items in the current adapter. 184 * The number of items in the adapter before a data changed event occurred. 190 * number of items in the current adapter. 269 * will be a view provided by the adapter) 270 * @param position The position of the view in the adapter. 301 * @param position The position of the view in the adapter. 382 * @param position The position of the view in the adapter 458 setAdapter(T adapter) argument [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);
|
/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);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
H A D | AbsSpinnerBindingAdapterTest.java | 54 SpinnerAdapter adapter = mView.getAdapter(); 56 assertEquals(adapter.getItem(i), entries[i]);
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/util/ |
H A D | SortedListAdapterCallback.java | 34 * @param adapter The Adapter instance which should receive events from the SortedList. 36 public SortedListAdapterCallback(RecyclerView.Adapter adapter) { argument 37 mAdapter = 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/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatSpinner.java | 375 public void setAdapter(SpinnerAdapter adapter) { argument 379 mTempAdapter = adapter; 383 super.setAdapter(adapter); 387 mPopup.setAdapter(new DropDownAdapter(adapter, popupContext.getTheme())); 522 private int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 523 if (adapter == null) { 538 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED); 542 final int positionType = adapter.getItemViewType(i); 547 itemView = adapter.getView(i, itemView, this); 577 * Creates a new ListAdapter wrapper for the specified adapter 583 DropDownAdapter(@ullable SpinnerAdapter adapter, @Nullable Resources.Theme dropDownTheme) argument 709 setAdapter(ListAdapter adapter) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ListViewCompat.java | 144 final ListAdapter adapter = getAdapter(); 145 if (adapter == null || isInTouchMode()) { 149 final int count = adapter.getCount(); 153 while (position < count && !adapter.isEnabled(position)) { 158 while (position >= 0 && !adapter.isEnabled(position)) { 239 * should be the last available child from the adapter. 266 final ListAdapter adapter = getAdapter(); 268 if (adapter == null) { 283 int count = adapter.getCount(); 285 int newType = adapter [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ExpandableListActivity.java | 92 * 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 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
|