Searched defs:adapter (Results 1 - 25 of 188) sorted by relevance

12345678

/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
H A DCustomNamespaceAdapter.java16 package android.databinding.testapp.adapter;
H A DGenericConverter.java16 package android.databinding.testapp.adapter;
H A DNameClashAdapter.java16 package android.databinding.testapp.adapter;
H A DGenericAdapter.java16 package android.databinding.testapp.adapter;
H A DWeirdListeners.java16 package android.databinding.testapp.adapter;
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java131 * @throws IllegalStateException If {@code adapter} is null or Bluetooth state is not {@link
134 static void checkAdapterStateOn(BluetoothAdapter adapter) { argument
135 if (adapter == null || !adapter.isLeEnabled()) {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DRemoteAnimationDefinitionCompat.java28 public void addRemoteAnimation(int transition, RemoteAnimationAdapterCompat adapter) { argument
29 mWrapped.addRemoteAnimation(transition, adapter.getWrapped());
33 RemoteAnimationAdapterCompat adapter) {
34 mWrapped.addRemoteAnimation(transition, activityTypeFilter, adapter.getWrapped());
32 addRemoteAnimation(int transition, int activityTypeFilter, RemoteAnimationAdapterCompat adapter) argument
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DListRow.java31 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;
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
H A DTestItemKeyProvider.java31 public TestItemKeyProvider(@Scope int scope, TestAdapter<K> adapter) { argument
33 checkArgument(adapter != null);
34 mAdapter = adapter;
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DEventBridge.java48 * Installs the event bridge for on the supplied adapter/helper.
50 * @param adapter
57 @NonNull RecyclerView.Adapter<?> adapter,
61 // setup bridges to relay selection and adapter events
62 new TrackerToAdapterBridge<>(selectionTracker, keyProvider, adapter);
63 adapter.registerAdapterDataObserver(selectionTracker.getAdapterDataObserver());
75 @NonNull RecyclerView.Adapter<?> adapter) {
80 checkArgument(adapter != null);
83 mAdapter = adapter;
56 install( @onNull RecyclerView.Adapter<?> adapter, @NonNull SelectionTracker<K> selectionTracker, @NonNull ItemKeyProvider<K> keyProvider) argument
72 TrackerToAdapterBridge( @onNull SelectionTracker<K> selectionTracker, @NonNull ItemKeyProvider<K> keyProvider, @NonNull RecyclerView.Adapter<?> adapter) argument
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAdapterListUpdateCallback.java22 * ListUpdateCallback that dispatches update events to the given adapter.
31 * Creates an AdapterListUpdateCallback that will dispatch update events to the given adapter.
33 * @param adapter The Adapter to send updates to.
35 public AdapterListUpdateCallback(@NonNull RecyclerView.Adapter adapter) { argument
36 mAdapter = adapter;
H A DSortedListAdapterCallback.java31 * @param adapter The Adapter instance which should receive events from the SortedList.
33 public SortedListAdapterCallback(RecyclerView.Adapter adapter) { argument
34 mAdapter = adapter;
H A DAsyncListDiffer.java31 * adapter of changes between sumbitted lists.
35 * adapter base class to support asynchronous List diffing isn't convenient.
38 * data simply for an adapter. It computes differences in list contents via {@link DiffUtil} on a
67 * UserAdapter adapter = new UserAdapter();
68 * viewModel.usersList.observe(this, list -> adapter.submitList(list));
69 * recyclerView.setAdapter(adapter);
116 * {@code AsyncListDiffer(new AdapterListUpdateCallback(adapter),
119 * @param adapter Adapter to dispatch position updates to.
124 public AsyncListDiffer(@NonNull RecyclerView.Adapter adapter, argument
126 mUpdateCallback = new AdapterListUpdateCallback(adapter);
[all...]
/frameworks/base/core/java/android/view/
H A DRemoteAnimationDefinition.java49 * @param adapter The adapter that described how to run the remote animation.
52 @ActivityType int activityTypeFilter, RemoteAnimationAdapter adapter) {
54 new RemoteAnimationAdapterEntry(adapter, activityTypeFilter));
62 * @param adapter The adapter that described how to run the remote animation.
64 public void addRemoteAnimation(@TransitionType int transition, RemoteAnimationAdapter adapter) { argument
65 addRemoteAnimation(transition, ACTIVITY_TYPE_UNDEFINED, adapter);
86 * @return The remote animation adapter for the specified transition.
96 return entry.adapter;
51 addRemoteAnimation(@ransitionType int transition, @ActivityType int activityTypeFilter, RemoteAnimationAdapter adapter) argument
151 final RemoteAnimationAdapter adapter; field in class:RemoteAnimationDefinition.RemoteAnimationAdapterEntry
159 RemoteAnimationAdapterEntry(RemoteAnimationAdapter adapter, int activityTypeFilter) argument
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DPendingRemoteAnimationRegistry.java46 void addPendingAnimation(String packageName, RemoteAnimationAdapter adapter) { argument
47 mEntries.put(packageName, new Entry(packageName, adapter));
61 options = ActivityOptions.makeRemoteAnimation(entry.adapter);
63 options.setRemoteAnimationAdapter(entry.adapter);
71 final RemoteAnimationAdapter adapter; field in class:PendingRemoteAnimationRegistry.Entry
73 Entry(String packageName, RemoteAnimationAdapter adapter) { argument
75 this.adapter = adapter;
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvCompatListActivity.java35 RecyclerView.Adapter adapter; field in class:RvCompatListActivity.RecyclerViewFragment
44 recyclerView.setAdapter(adapter);
57 fragment.adapter = createAdapter();
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DAlphaJumpOverlayView.java46 void init(PagedListView plv, IAlphaJumpAdapter adapter) { argument
48 mAdapter = adapter;
49 mBuckets = adapter.getAlphaJumpBuckets();
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DHeadersFragmentTest.java44 static void loadData(ArrayObjectAdapter adapter, int numRows) { argument
48 adapter.add(new ListRow(header, listRowAdapter));
58 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(mPresenter);
59 setAdapter(adapter);
60 loadData(adapter, 10);
80 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(new ListRowPresenter());
81 setAdapter(adapter);
82 loadData(adapter, 10);
112 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(new ListRowPresenter());
113 setAdapter(adapter);
[all...]
H A DHeadersSupportFragmentTest.java41 static void loadData(ArrayObjectAdapter adapter, int numRows) { argument
45 adapter.add(new ListRow(header, listRowAdapter));
55 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(mPresenter);
56 setAdapter(adapter);
57 loadData(adapter, 10);
77 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(new ListRowPresenter());
78 setAdapter(adapter);
79 loadData(adapter, 10);
109 final ArrayObjectAdapter adapter = new ArrayObjectAdapter(new ListRowPresenter());
110 setAdapter(adapter);
[all...]
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
H A DMediaRouteDialogHelper.java106 * @param adapter An array adapter which contains an array of items.
110 ArrayAdapter<E> adapter) {
115 E item = adapter.getItem(position);
129 * @param adapter An array adapter which contains an array of items.
133 ListView listView, ArrayAdapter<E> adapter) {
138 E item = adapter.getItem(position);
109 getItemBoundMap(ListView listView, ArrayAdapter<E> adapter) argument
132 getItemBitmapMap(Context context, ListView listView, ArrayAdapter<E> adapter) argument
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/
H A DWearableNavigationDrawerPresenter.java45 * Indicates to the presenter that the drawer has a new adapter.
48 public abstract void onNewAdapter(WearableNavigationDrawerAdapter adapter); argument
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouteDialogHelper.java108 * @param adapter An array adapter which contains an array of items.
112 ArrayAdapter<E> adapter) {
117 E item = adapter.getItem(position);
131 * @param adapter An array adapter which contains an array of items.
135 ListView listView, ArrayAdapter<E> adapter) {
140 E item = adapter.getItem(position);
111 getItemBoundMap(ListView listView, ArrayAdapter<E> adapter) argument
134 getItemBitmapMap(Context context, ListView listView, ArrayAdapter<E> adapter) argument
/frameworks/base/core/java/android/app/
H A DListActivity.java156 * // 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
/frameworks/base/core/java/android/nfc/cardemulation/
H A DNfcFCardEmulation.java63 * @param adapter A reference to an NfcAdapter object.
66 public static synchronized NfcFCardEmulation getInstance(NfcAdapter adapter) { argument
67 if (adapter == null) throw new NullPointerException("NfcAdapter is null");
68 Context context = adapter.getContext();
93 INfcFCardEmulation service = adapter.getNfcFCardEmulationService();
474 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mContext);
475 sService = adapter.getNfcFCardEmulationService();
/frameworks/base/core/java/android/nfc/dta/
H A DNfcDta.java47 * @param adapter A reference to an NfcAdapter object.
50 public static synchronized NfcDta getInstance(NfcAdapter adapter) { argument
51 if (adapter == null) throw new NullPointerException("NfcAdapter is null");
52 Context context = adapter.getContext();
60 INfcDta service = adapter.getNfcDtaInterface();

Completed in 164 milliseconds

12345678