/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/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | ItemAdapterTest.java | 50 ItemAdapter adapter = new ItemAdapter(mItemGroup); 51 assertEquals("Adapter should have 5 items", 5, adapter.getCount()); 52 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); 53 assertEquals("ID should be same as position", 2, adapter.getItemId(2)); 56 assertEquals("Should have 3 different view types", 3, adapter.getViewTypeCount()); 58 viewTypes.add(adapter.getItemViewType(0)); 59 viewTypes.add(adapter.getItemViewType(1)); 60 viewTypes.add(adapter.getItemViewType(2)); 68 ItemAdapter adapter = new ItemAdapter(mItemGroup); 69 ItemHierarchy root = adapter [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ListRow.java | 31 public ListRow(HeaderItem header, ObjectAdapter adapter) { argument 33 mAdapter = adapter; 37 public ListRow(long id, HeaderItem header, ObjectAdapter adapter) { argument 39 mAdapter = adapter; 43 public ListRow(ObjectAdapter adapter) { argument 45 mAdapter = adapter;
|
H A D | GuidedActionAdapterGroup.java | 56 public GuidedActionAdapter getNextAdapter(GuidedActionAdapter adapter) { argument 59 if (pair.first == adapter) { 70 boolean focusToNextAction(GuidedActionAdapter adapter, GuidedAction action, long nextActionId) { argument 74 index = adapter.indexOf(action); 83 int size = adapter.getCount(); 85 while (index < size && !adapter.getItem(index).isFocusable()) { 89 while (index < size && adapter.getItem(index).getId() != nextActionId) { 95 (GuidedActionsStylist.ViewHolder) adapter.getGuidedActionsStylist() 101 openIme(adapter, vh); 113 adapter 122 openIme(GuidedActionAdapter adapter, GuidedActionsStylist.ViewHolder avh) argument 151 fillAndStay(GuidedActionAdapter adapter, TextView v) argument 160 fillAndGoNext(GuidedActionAdapter adapter, TextView v) argument [all...] |
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/ |
H A D | RecyclerItemAdapterTest.java | 52 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); 53 assertEquals("Adapter should have 5 items", 5, adapter.getItemCount()); 54 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); 55 assertEquals("ID should be same as position", 2, adapter.getItemId(2)); 58 assertEquals("Second item should have view type 21", 21, adapter.getItemViewType(2)); 63 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); 64 ItemHierarchy root = adapter.getRootItemHierarchy();
|
/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;
|
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
H A D | ICallScreeningService.aidl | 29 void screenCall(in ICallScreeningAdapter adapter, in ParcelableCall call);
|
/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 | NameClashAdapter.java | 16 package android.databinding.testapp.adapter;
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
H A D | AbsSpinnerBindingAdapterTest.java | 69 SpinnerAdapter adapter = mView.getAdapter(); 71 assertEquals(adapter.getItem(i), entries[i]); 77 SpinnerAdapter adapter = mBinder.view2.getAdapter(); 78 assertEquals(entries.size(), adapter.getCount()); 80 assertEquals(adapter.getItem(i), entries.get(i));
|
/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/java/com/android/internal/view/menu/ |
H A D | MenuPopup.java | 126 // Use the position from the outer adapter so that if a header view was added, we don't get 137 protected static int measureIndividualMenuWidth(ListAdapter adapter, ViewGroup parent, argument 146 final int count = adapter.getCount(); 148 final int positionType = adapter.getItemViewType(i); 158 itemView = adapter.getView(i, itemView, parent); 174 * the possibility of the parameter adapter actually wrapping the MenuAdapter. (That could 177 * @param adapter 180 protected static MenuAdapter toMenuAdapter(ListAdapter adapter) { argument 181 if (adapter instanceof HeaderViewListAdapter) { 182 return (MenuAdapter) ((HeaderViewListAdapter) 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);
|
/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/support/v7/appcompat/src/android/support/v7/view/menu/ |
H A D | MenuPopup.java | 124 // Use the position from the outer adapter so that if a header view was added, we don't get 135 protected static int measureIndividualMenuWidth(ListAdapter adapter, ViewGroup parent, argument 144 final int count = adapter.getCount(); 146 final int positionType = adapter.getItemViewType(i); 156 itemView = adapter.getView(i, itemView, parent); 172 * the possibility of the parameter adapter actually wrapping the MenuAdapter. (That could 175 * @param adapter 178 protected static MenuAdapter toMenuAdapter(ListAdapter adapter) { argument 179 if (adapter instanceof HeaderViewListAdapter) { 180 return (MenuAdapter) ((HeaderViewListAdapter) adapter) [all...] |
/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/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | StaggeredGridLayoutManagerWrapContentTest.java | 64 WrapContentAdapter adapter = new WrapContentAdapter( 76 layoutAndCheck(lp, adapter, expected, 60, 20); 84 WrapContentAdapter adapter = new WrapContentAdapter( 96 layoutAndCheck(lp, adapter, expected, 20, 60); 104 WrapContentAdapter adapter = new WrapContentAdapter( 116 layoutAndCheck(lp, adapter, expected, 6000, 20); 124 WrapContentAdapter adapter = new WrapContentAdapter( 136 layoutAndCheck(lp, adapter, expected, 60, 5500);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | AbsSpinnerBindingAdapter.java | 42 ArrayAdapter<CharSequence> adapter = 45 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 46 view.setAdapter(adapter);
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceRecyclerViewAccessibilityDelegate.java | 53 RecyclerView.Adapter adapter = mRecyclerView.getAdapter(); 54 if (!(adapter instanceof PreferenceGroupAdapter)) { 58 PreferenceGroupAdapter preferenceGroupAdapter = (PreferenceGroupAdapter) adapter;
|