/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/items/ |
RecyclerItemAdapterTest.java | 70 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); local 71 assertEquals("Adapter should have 5 items", 5, adapter.getItemCount()); 72 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); 73 assertEquals("ID should be same as position", 2, adapter.getItemId(2)); 76 assertEquals("Second item should have view type 21", 21, adapter.getItemViewType(2)); 81 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); local 82 ItemHierarchy root = adapter.getRootItemHierarchy(); 110 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup) local 126 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); local 137 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); local [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ArrayObjectAdapter.java | 29 * Constructs an adapter with the given {@link PresenterSelector}. 36 * Constructs an adapter that uses the given {@link Presenter} for all items. 43 * Constructs an adapter. 60 * Returns the index for the first occurrence of item in the adapter, or -1 if 64 * @return Index of the first occurrence of the item in the adapter, or -1 83 * Adds an item to the end of the adapter. 85 * @param item The item to add to the end of the adapter. 92 * Inserts an item into this adapter at the specified index. 96 * @param item The item to insert into the adapter. 104 * Adds the objects in the given collection to the adapter, starting at th [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/template/ |
RecyclerMixin.java | 28 import android.support.v7.widget.RecyclerView.Adapter; 109 final RecyclerItemAdapter adapter = new RecyclerItemAdapter(inflated); local 110 adapter.setHasStableIds(a.getBoolean( 112 setAdapter(adapter); 155 * Gets the adapter of the recycler view in this layout. If the adapter includes a header, 156 * this method will unwrap it and return the underlying adapter. 158 * @return The adapter, or {@code null} if the recycler view has no adapter. 160 public Adapter<? extends ViewHolder> getAdapter() 162 final RecyclerView.Adapter<? extends ViewHolder> adapter = mRecyclerView.getAdapter(); local [all...] |
/system/bt/service/test/ |
adapter_unittest.cc | 20 #include "service/adapter.h" 43 adapter_ = Adapter::Create(); 55 std::unique_ptr<Adapter> adapter_; 61 class TestObserver final : public bluetooth::Adapter::Observer { 63 explicit TestObserver(bluetooth::Adapter* adapter) 64 : adapter_(adapter), 85 // bluetooth::Adapter::Observer override: 86 void OnAdapterStateChanged(bluetooth::Adapter* adapter, [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
TurnOffWorkActivity.java | 95 protected void setupTests(ArrayTestListAdapter adapter) { 98 adapter.add(new DialogTestListItem(this, 114 adapter.add(mTurnOffWorkTest); 116 adapter.add(new DialogTestListItem(this, 122 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_off_work_icon, 127 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_off_work_launcher, 142 adapter.add(mTurnOnWorkTest); 144 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_on_work_icon, 149 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_on_work_launcher,
|
EnterprisePrivacyTestListActivity.java | 85 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local 86 addTestsToAdapter(adapter); 87 adapter.registerDataSetObserver(new DataSetObserver() { 93 setTestListAdapter(adapter); 132 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { 133 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_PAGE, 137 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_NETWORK_LOGGING, 142 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_BUG_REPORT, 147 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_SECURITY_LOGGING, 152 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_ENTERPRISE_INSTALLED_APPS [all...] |
DeviceOwnerPositiveTestActivity.java | 104 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local 105 adapter.add(TestListItem.newCategory(this, R.string.device_owner_positive_category)); 107 addTestsToAdapter(adapter); 109 adapter.registerDataSetObserver(new DataSetObserver() { 116 setTestListAdapter(adapter); 146 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { 147 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, 153 adapter.add(createInteractiveTestItem(this, DEVICE_ADMIN_SETTINGS_ID, 163 adapter.add(createTestItem(this, WIFI_LOCKDOWN_TEST_ID, 168 adapter.add(createInteractiveTestItem(this, DISALLOW_CONFIG_WIFI_ID [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayAdapter.java | 27 * A display adapter makes zero or more display devices available to the system 63 * Gets the object that the display adapter should synchronize on when handling 71 * Gets the display adapter's context. 78 * Gets a handler that the display adapter may use to post asynchronous messages. 85 * Gets the display adapter name for debugging purposes. 92 * Registers the display adapter with the display manager. 94 * The display adapter should register any built-in display devices as soon as possible. 102 * Dumps the local state of the display adapter. 108 * Sends a display device event to the display adapter listener asynchronously.
|
/external/autotest/server/site_tests/bluetooth_Sanity_DefaultState/ |
bluetooth_Sanity_DefaultState.py | 14 Verify that the Bluetooth adapter has correct state. 67 # Reset the adapter to the powered off state. 78 # Read the initial state of the adapter. Verify that it is powered down. 85 raise error.TestFail('Bluetooth adapter is powered') 93 raise error.TestFail('Bluetooth adapter would be discoverable ' 107 raise error.TestFail('Bluetooth daemon believes adapter is ' 110 # Compare with the raw HCI state of the adapter as well, this should 119 # Power on the adapter, then read the state again. Verify that it is 126 raise error.TestFail('Bluetooth adapter is not powered') 128 raise error.TestFail('Bluetooth adapter is not pairable' [all...] |
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
StGUnit.g | 49 public TestSuiteAdapter adapter ;; 53 : 'gunit' name=id {adapter.setGrammarName($name.text);} 64 {adapter.startRule($parserRule.text);} 66 {adapter.startRule($lexerRule.text);} 70 {adapter.endRule();} 75 {adapter.addTestCase($input.in, $expect.out);} 79 : OK {$out = adapter.createBoolOutput(true);} 80 | FAIL {$out = adapter.createBoolOutput(false);} 81 | 'returns' RETVAL {$out = adapter.createReturnOutput($RETVAL.text);} 82 | '->' output {$out = adapter.createStdOutput($output.text); [all...] |
/external/autotest/server/site_tests/bluetooth_AdapterPairing/ |
bluetooth_AdapterPairing.py | 5 """Server side bluetooth tests on adapter pairing and connecting to a bluetooth 19 """Server side bluetooth adapter pairing and connecting to bluetooth device 21 This test tries to verify that the adapter of the DUT could 37 """Running Bluetooth adapter tests about pairing to a device. 59 # Reset the adapter to forget previously paired devices if any. 62 # The adapter must be set to the pairable state. 65 # Test if the adapter could discover the target device. 81 # Verify that the adapter could pair with the device. 86 # Verify that the adapter could connect to the device. 98 # Verify that the adapter could disconnect the device [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
GridLayoutManagerWrapContentTest.java | 98 WrapContentAdapter adapter = new WrapContentAdapter( local 104 layoutAndCheck(lp, adapter, expected, 30, 25); 118 WrapContentAdapter adapter = new WrapContentAdapter( local 124 layoutAndCheck(lp, adapter, expected, 75, 10); 133 WrapContentAdapter adapter = new WrapContentAdapter( local 145 layoutAndCheck(lp, adapter, expected, 30, 20); 152 WrapContentAdapter adapter = new WrapContentAdapter( local 164 layoutAndCheck(lp, adapter, expected, 60, 20); 171 WrapContentAdapter adapter = new WrapContentAdapter( local 184 layoutAndCheck(lp, adapter, expected, 60, 20) 191 WrapContentAdapter adapter = new WrapContentAdapter( local 206 WrapContentAdapter adapter = new WrapContentAdapter( local [all...] |
/frameworks/base/core/java/android/widget/ |
Adapter.java | 25 * An Adapter object acts as a bridge between an {@link AdapterView} and the 26 * underlying data for that view. The Adapter provides access to the data items. 27 * The Adapter is also responsible for making a {@link android.view.View} for 34 public interface Adapter { 36 * Register an observer that is called when changes happen to the data used by this adapter. 44 * adapter via {@link #registerDataSetObserver}. 51 * How many items are in the data set represented by this Adapter. 60 * @param position Position of the item whose data we want within the adapter's 69 * @param position The position of the item within the adapter's data set whose row id we want. 89 * @param position The position of the item within the adapter's data set of the item whose vie [all...] |
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
loc_eng_xtra.cpp | 42 inline LocEngRequestXtraServer(LocEngAdapter* adapter) : 43 LocMsg(), mAdapter(adapter) 62 inline LocEngInjectXtraData(LocEngAdapter* adapter, 64 LocMsg(), mAdapter(adapter), 88 inline LocEngSetXtraVersionCheck(LocEngAdapter* adapter, 90 mAdapter(adapter), mCheck(check) {} 160 LocEngAdapter* adapter = loc_eng_data.adapter; local 161 adapter->sendMsg(new LocEngInjectXtraData(adapter, data, length)) 184 LocEngAdapter* adapter = loc_eng_data.adapter; local 210 LocEngAdapter *adapter = loc_eng_data.adapter; local [all...] |
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
loc_eng_xtra.cpp | 42 inline LocEngRequestXtraServer(LocEngAdapter* adapter) : 43 LocMsg(), mAdapter(adapter) 62 inline LocEngInjectXtraData(LocEngAdapter* adapter, 64 LocMsg(), mAdapter(adapter), 88 inline LocEngSetXtraVersionCheck(LocEngAdapter* adapter, 90 mAdapter(adapter), mCheck(check) {} 160 LocEngAdapter* adapter = loc_eng_data.adapter; local 161 adapter->sendMsg(new LocEngInjectXtraData(adapter, data, length)) 184 LocEngAdapter* adapter = loc_eng_data.adapter; local 210 LocEngAdapter *adapter = loc_eng_data.adapter; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Spinner1.java | 45 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( local 47 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 48 s1.setAdapter(adapter); 62 adapter = ArrayAdapter.createFromResource(this, R.array.planets, 64 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 65 s2.setAdapter(adapter);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
LocalBluetoothManager.java | 25 * if there is no Bluetooth adapter on this device, and callers must be 52 LocalBluetoothAdapter adapter = LocalBluetoothAdapter.getInstance(); local 53 if (adapter == null) { 58 sInstance = new LocalBluetoothManager(adapter, appContext); 67 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { 69 mLocalAdapter = adapter;
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
CallLogAlertManager.java | 30 private final CallLogAdapter adapter; field in class:CallLogAlertManager 36 public CallLogAlertManager(CallLogAdapter adapter, LayoutInflater inflater, ViewGroup parent) { 37 this.adapter = adapter; 67 adapter.notifyItemRemoved(CallLogAdapter.ALERT_POSITION); 78 adapter.notifyItemInserted(CallLogAdapter.ALERT_POSITION);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AdapterViewBehavior.java | 106 CountingAdapter adapter = new CountingAdapter(2); local 107 adapterView.setAdapter(adapter); 110 adapter.setCount(0); 146 CountingAdapter adapter = new CountingAdapter(0); local 147 adapterView.setAdapter(adapter); 155 adapter.setCount(1); 164 CountingAdapter adapter = new CountingAdapter(1); local 165 adapterView.setAdapter(adapter); 173 adapter.setCount(0); 183 CountingAdapter adapter = new CountingAdapter(2) local [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
RowsFragmentTest.java | 56 static void loadData(ArrayObjectAdapter adapter, int numRows, int repeatPerRow) { 71 adapter.add(new ListRow(header, listRowAdapter)); 80 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 81 setAdapter(adapter); 82 loadData(adapter, 10, 1); 124 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); 125 setAdapter(adapter); 126 loadData(adapter, 10, 1); 148 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 149 setAdapter(adapter); 182 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 216 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 262 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local [all...] |
RowsSupportFragmentTest.java | 59 static void loadData(ArrayObjectAdapter adapter, int numRows, int repeatPerRow) { 74 adapter.add(new ListRow(header, listRowAdapter)); 83 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 84 setAdapter(adapter); 85 loadData(adapter, 10, 1); 127 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); 128 setAdapter(adapter); 129 loadData(adapter, 10, 1); 151 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 152 setAdapter(adapter); 185 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 219 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local 265 ArrayObjectAdapter adapter = new ArrayObjectAdapter(lrp); local [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/SnpDxe/ |
SnpDxe.uni | 5 // Identifier Protocol, to provide a packet level interface to a network adapter.
22 #string STR_MODULE_DESCRIPTION #language en-US "This module produces Simple Network Protocol upon EFI Network Interface Identifier Protocol to provide a packet level interface to a network adapter."
|
/external/autotest/server/cros/multimedia/ |
bluetooth_hid_facade_adapter.py | 5 """An adapter to remotely access the bluetooth hid facade on DUT.""" 11 """This is an adapter to remotely control DUT bluetooth hid.
|
bluetooth_le_facade_adapter.py | 5 """An adapter to remotely access the bluetooth le facade on a DUT.""" 11 """An adapter to remotely control DUT bluetooth low-energy (le) device.
|
/external/guice/extensions/dagger-adapter/ |
pom.xml | 10 <artifactId>guice-dagger-adapter</artifactId> 11 <name>Google Guice - Extensions - Dagger Adapter</name>
|