HomeSort by relevance Sort by last modified time
    Searched full:adapter (Results 26 - 50 of 2956) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/support/v7/recyclerview/src/android/support/v7/widget/util/
SortedListAdapterCallback.java 24 * {@link RecyclerView.Adapter}.
28 final RecyclerView.Adapter mAdapter;
32 * Adapter.
34 * @param adapter The Adapter instance which should receive events from the SortedList.
36 public SortedListAdapterCallback(RecyclerView.Adapter adapter) {
37 mAdapter = adapter;
  /packages/apps/TV/src/com/android/tv/menu/
ItemListRow.java 26 * A list will be displayed by a HorizontalGridView with cards, so an adapter
34 ItemListAdapter adapter) {
35 this(context, menu, context.getString(titleResId), itemHeightResId, adapter);
39 ItemListAdapter adapter) {
41 mAdapter = adapter;
45 * Returns the adapter.
51 public void setAdapter(ItemListAdapter<?> adapter) {
52 mAdapter = adapter;
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
GuidedActionAdapterGroup.java 60 public GuidedActionAdapter getNextAdapter(GuidedActionAdapter adapter) {
63 if (pair.first == adapter) {
74 boolean focusToNextAction(GuidedActionAdapter adapter, GuidedAction action, long nextActionId) {
78 index = adapter.indexOf(action);
82 // start from next, if reach end, will go next Adapter below
87 int size = adapter.getCount();
89 while (index < size && !adapter.getItem(index).isFocusable()) {
93 while (index < size && adapter.getItem(index).getId() != nextActionId) {
99 (GuidedActionsStylist.ViewHolder) adapter.getGuidedActionsStylist()
105 openIme(adapter, vh)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
SuggestionClickListener.java 27 * @param adapter Adapter that contains the clicked suggestion.
31 void onSuggestionClicked(SuggestionsAdapter<?> adapter, long suggestionId);
36 * @param adapter Adapter that contains the clicked suggestion.
40 void onSuggestionQueryRefineClicked(SuggestionsAdapter<?> adapter, long suggestionId);
  /system/bt/service/
adapter.h 31 // Represents the local Bluetooth adapter.
32 class Adapter {
34 // The default values returned before the Adapter is fully initialized and
44 // All methods take in an |adapter| argument which points to the Adapter
51 // |adapter| from |prev_state| to |new_state|.
52 virtual void OnAdapterStateChanged(Adapter* adapter,
57 // |adapter| and a remote device with address |device_address|. If the ACL
61 Adapter* adapter, const std::string& device_address, bool connected)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NfcTestActivity.java 54 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local
56 adapter.add(TestListItem.newCategory(this, R.string.nfc_pee_2_pee));
57 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_sender,
60 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_receiver,
65 adapter.add(TestListItem.newTest(this, R.string.nfc_llcp_version_check,
69 adapter.add(TestListItem.newCategory(this, R.string.nfc_tag_verification));
70 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef,
73 adapter.add(TestListItem.newTest(this, R.string.nfc_mifare_ultralight,
78 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce));
79 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_reader_tests
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
HceEmulatorTestActivity.java 41 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local
46 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_emulator_tests));
50 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_default_route_emulator,
54 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_emulator,
58 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_emulator,
62 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_emulator,
66 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_emulator,
70 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_emulator,
74 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_emulator,
78 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_emulator
    [all...]
HceReaderTestActivity.java 39 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local
42 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_reader_tests));
44 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_reader,
48 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_reader,
52 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_reader,
56 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_reader,
60 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_reader,
64 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_reader,
68 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_reader,
72 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_reader
    [all...]
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/
ClassProbesAdapterTest.java 77 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); local
78 assertEquals(0, adapter.nextId());
79 assertEquals(1, adapter.nextId());
80 assertEquals(2, adapter.nextId());
81 adapter.visitEnd();
94 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); local
95 adapter.visit(Opcodes.V1_5, 0, "Foo", null, "java/lang/Object", null);
96 writeMethod(adapter);
97 writeMethod(adapter);
98 writeMethod(adapter);
108 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); local
127 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, true); local
143 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); local
    [all...]
  /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
BrowseAnimationFragment.java 95 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row)
97 int index = adapter.indexOf(item);
101 adapter.removeItems(index, 1);
110 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row)
112 int index = adapter.indexOf(item);
114 if (index < adapter.size() - 1)
116 adapter.removeItems(index, 1);
125 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row)
127 int index = adapter.indexOf(item);
129 adapter.removeItems(index, 1)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
RequesterTestListActivity.java 44 * Test list view adapter
74 * Get test list view adapter
78 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local
81 addTestCase(adapter, testcase);
84 adapter.registerDataSetObserver(new DataSetObserver() {
91 return adapter;
95 * Add test case to test list view adapter.
96 * @param adapter
99 private void addTestCase(ArrayTestListAdapter adapter, TestCase testcase) {
103 adapter.add(TestListItem.newTest(testcase.getTestName(), testcase.getTestId()
    [all...]
  /external/mesa3d/src/gallium/state_trackers/d3d1x/dxgid3d10/
dxgid3d10.cpp 34 IDXGIAdapter *adapter,
45 if(!adapter)
54 adapter = adapter_to_release.p;
57 hr = adapter->QueryInterface(IID_IGalliumAdapter, (void**)&gallium_adapter);
74 hr = GalliumD3D10DeviceCreate1(screen, context, TRUE, flags, adapter, &device);
86 IDXGIAdapter* adapter,
99 hr = D3D10CreateDevice1(adapter, driver_type, software, flags, hardware_level, sdk_version, &dev);
106 ComPtr<IDXGIAdapter> adapter; local
111 hr = dxgi_device->GetAdapter(&adapter);
115 adapter->GetParent(IID_IDXGIFactory, (void**)&factory)
    [all...]
  /developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/
AttractionsRecyclerView.java 26 * is displayed when the adapter has no data and hidden otherwise).
52 * Designate a view as the empty view. When the backing adapter has no
61 public void setAdapter(RecyclerView.Adapter adapter) {
65 if (adapter != null) {
66 adapter.registerAdapterDataObserver(mDataObserver);
68 super.setAdapter(adapter);
  /developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/ui/
AttractionsRecyclerView.java 26 * is displayed when the adapter has no data and hidden otherwise).
52 * Designate a view as the empty view. When the backing adapter has no
61 public void setAdapter(RecyclerView.Adapter adapter) {
65 if (adapter != null) {
66 adapter.registerAdapterDataObserver(mDataObserver);
68 super.setAdapter(adapter);
  /development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
AttractionsRecyclerView.java 26 * is displayed when the adapter has no data and hidden otherwise).
52 * Designate a view as the empty view. When the backing adapter has no
61 public void setAdapter(RecyclerView.Adapter adapter) {
65 if (adapter != null) {
66 adapter.registerAdapterDataObserver(mDataObserver);
68 super.setAdapter(adapter);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
XMLReaderAdapterTest.java 54 private XMLReaderAdapter adapter = new XMLReaderAdapter(reader); field in class:XMLReaderAdapterTest
66 adapter.setDocumentHandler(handler);
67 adapter.setDTDHandler(handler);
68 adapter.setErrorHandler(handler);
89 XMLReaderAdapter adapter = new XMLReaderAdapter(reader); local
93 adapter = new XMLReaderAdapter(null);
103 adapter.setLocale(Locale.getDefault());
114 adapter.setEntityResolver(resolver);
118 adapter.setEntityResolver(null);
127 adapter.setDTDHandler(null)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/list/
LegacyPhoneNumberPickerFragment.java 40 final LegacyPhoneNumberListAdapter adapter = (LegacyPhoneNumberListAdapter) getAdapter(); local
41 return adapter.getPhoneUri(position);
46 // There is no lookup key for the legacy adapter.
52 LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity()); local
53 adapter.setDisplayPhotos(true);
54 return adapter;
58 protected void setPhotoPosition(ContactEntryListAdapter adapter) {
  /system/bt/service/ipc/
ipc_handler.h 25 class Adapter;
34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
47 bluetooth::Adapter* adapter() const { return adapter_; } function in class:ipc::IPCHandler
53 // Weak reference to the global Adapter instance.
54 bluetooth::Adapter* adapter_;
  /frameworks/base/core/tests/coretests/src/android/widget/
ListViewTest.java 47 Adapter<String> adapter = new Adapter<String>(context, 0, items); local
48 listView.setAdapter(adapter);
52 adapter.notifyDataSetChanged();
77 Adapter<String> adapter = new Adapter<String>(context, 0, items); local
78 listView.setAdapter(adapter);
84 adapter.notifyDataSetChanged()
    [all...]
  /frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
RecyclerItemAdapterTest.java 52 RecyclerItemAdapter adapter = new RecyclerItemAdapter(mItemGroup); local
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); local
64 ItemHierarchy root = adapter.getRootItemHierarchy();
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAutoCompleteTextView.java 18 private ListAdapter adapter; field in class:ShadowAutoCompleteTextView
24 return adapter;
28 public <T extends ListAdapter & Filterable> void setAdapter(T adapter) {
29 this.adapter = adapter;
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ListActivityTest.java 24 ListAdapter adapter = new CountingAdapter(5); local
25 listActivity.setListAdapter(adapter);
48 ListAdapter adapter = new CountingAdapter(5); local
51 listActivity.setListAdapter(adapter);
52 assertThat(listView.getAdapter(), sameInstance(adapter));
  /external/testng/src/main/java/org/testng/remote/adapter/
IMasterAdapter.java 1 package org.testng.remote.adapter;
9 * This interface should be implemented by the Master-Slave transport adapter.
19 * Initializes the Master adapter.
21 * @throws Exception adapter might throw any exception on initialization, which will abort this adapter.
IWorkerAdapter.java 1 package org.testng.remote.adapter;
10 * This interface should be implemented by the Master-Slave transport adapter.
20 * Initializes the worker adapter.
22 * @throws Exception adapter might throw any exception on initialization, which will abort this adapter.
  /frameworks/base/docs/html/training/sync-adapters/
creating-sync-adapter.jd 1 page.title=Creating a Sync Adapter
13 >Create the Sync Adapter Class</a>
16 <a href="#CreateSyncAdapterService">Bind the Sync Adapter to the Framework</a>
23 <a href="#CreateSyncAdapterMetadata">Add the Sync Adapter Metadata File</a>
26 <a href="#DeclareSyncAdapterManifest">Declare the Sync Adapter in the Manifest</a>
53 The sync adapter component in your app encapsulates the code for the tasks that transfer
55 your app, the sync adapter framework runs the code in the sync adapter component. To add a
56 sync adapter component to your app, you need to add the following pieces:
59 Sync adapter class
    [all...]

Completed in 1976 milliseconds

12 3 4 5 6 7 8 91011>>