HomeSort by relevance Sort by last modified time
    Searched full:adapter (Results 501 - 525 of 3250) sorted by null

<<21222324252627282930>>

  /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/
test_parameters.py 159 class Adapter(object):
163 func.argtypes = (Adapter(),)
167 class Adapter(object):
171 func.argtypes = (Adapter(),)
176 class Adapter(object):
180 func.argtypes = (Adapter(),)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_parameters.py 159 class Adapter(object):
163 func.argtypes = (Adapter(),)
167 class Adapter(object):
171 func.argtypes = (Adapter(),)
176 class Adapter(object):
180 func.argtypes = (Adapter(),)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_parameters.py 159 class Adapter(object):
163 func.argtypes = (Adapter(),)
167 class Adapter(object):
171 func.argtypes = (Adapter(),)
176 class Adapter(object):
180 func.argtypes = (Adapter(),)
  /frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
PlaybackOverlayTestFragment.java 211 ArrayObjectAdapter adapter = new ArrayObjectAdapter( local
213 getControlsRow().setSecondaryActionsAdapter(adapter);
215 adapter.add(mThumbsDownAction);
218 adapter.add(mPipAction);
220 adapter.add(mRepeatAction);
222 adapter.add(mThumbsUpAction);
231 SparseArrayObjectAdapter adapter = new SparseArrayObjectAdapter(presenterSelector); local
233 adapter.set(PlaybackControlGlue.ACTION_CUSTOM_LEFT_FIRST, mThumbsUpAction);
234 adapter.set(PlaybackControlGlue.ACTION_CUSTOM_RIGHT_FIRST, mThumbsDownAction);
236 return adapter;
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SearchActivity.java 373 protected SuggestionPosition getCurrentSuggestions(SuggestionsAdapter<?> adapter, long id) {
374 SuggestionPosition pos = adapter.getSuggestion(id);
406 private boolean launchSuggestion(SuggestionsAdapter<?> adapter, long id) {
407 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id);
429 protected void refineSuggestion(SuggestionsAdapter<?> adapter, long id) {
431 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id);
492 public void onSuggestionClicked(SuggestionsAdapter<?> adapter, long id) {
493 launchSuggestion(adapter, id);
497 public void onSuggestionQueryRefineClicked(SuggestionsAdapter<?> adapter, long id) {
498 refineSuggestion(adapter, id)
    [all...]
  /hardware/libhardware/include/hardware/
bluetooth.h 68 /** Bluetooth Adapter Visibility Modes*/
75 /** Bluetooth Adapter State */
122 /** Bluetooth Adapter Discovery state */
176 /* Bluetooth Adapter and Remote Device property types */
178 /* Properties common to both adapter and remote device */
181 * Access mode - Adapter name can be GET/SET. Remote device can be GET
216 /* Properties unique to adapter */
218 * Description - Bluetooth Adapter scan mode
231 * Description - Bluetooth Adapter Discovery timeout (in seconds)
268 /** Bluetooth Adapter Property data structure *
    [all...]
  /packages/services/Car/car-support-lib/src/android/support/car/ui/
PagedListView.java 68 private RecyclerView.Adapter<? extends RecyclerView.ViewHolder> mAdapter;
74 * Interface for a {@link android.support.v7.widget.RecyclerView.Adapter} to cap the
76 * <p>NOTE: it is still up to the adapter to use maxItems in
77 * {@link android.support.v7.widget.RecyclerView.Adapter#getItemCount()}.
91 * Sets the maximum number of items available in the adapter. A value less than '0'
200 * Sets the adapter for the list.
205 @NonNull RecyclerView.Adapter<? extends RecyclerView.ViewHolder> adapter) {
206 if (!(adapter instanceof ItemCap)) {
207 throw new IllegalArgumentException("ERROR: adapter "
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
RecyclerView.java 77 * <li><em>Adapter:</em> A subclass of {@link Adapter} responsible for providing views
79 * <li><em>Position:</em> The position of a data item within an <em>Adapter</em>.</li>
83 * to a <em>position</em> within the adapter.</li>
84 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter
91 * by the adapter if the view was considered <em>dirty</em>.</li>
92 * <li><em>Dirty (view):</em> A child view that must be rebound by the adapter before
98 * RecyclerView introduces an additional level of abstraction between the {@link Adapter} and
100 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
108 * <li>adapter position: Position of an item in the adapter. This is the position fro
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/
SimpleCursorAdapterTest.java 94 // Now see if we can pull 2 rows from the adapter
105 // The adapter should report zero rows
116 // Now see if we can pull 2 rows from the adapter
124 // Now see if we can pull 5 rows from the adapter
135 // Now see if we can pull 2 rows from the adapter
141 // The adapter should report zero rows
146 * Test changeCursor() with differing column layout. This confirms that the Adapter can
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
FrameworkActionBar.java 143 OverflowMenuAdapter adapter = new OverflowMenuAdapter(menu, mActionBar.getPopupContext()); local
148 measureContentWidth(adapter), LayoutParams.WRAP_CONTENT);
159 listView.setAdapter(adapter);
195 private int measureContentWidth(@NonNull ListAdapter adapter) {
204 final int count = adapter.getCount();
206 final int positionType = adapter.getItemViewType(i);
216 itemView = adapter.getView(i, itemView, mMeasureParent);
  /packages/apps/Contacts/src/com/android/contacts/interactions/
ExportDialogFragment.java 95 // Adapter that shows a list of string resources
96 final ArrayAdapter<AdapterEntry> adapter = new ArrayAdapter<AdapterEntry>(getActivity(), local
113 adapter.add(new AdapterEntry(getString(R.string.export_to_vcf_file),
119 adapter.add(new AdapterEntry(getString(R.string.share_favorite_contacts),
124 adapter.add(new AdapterEntry(getString(R.string.share_contacts),
134 final int resId = adapter.getItem(which).mChoiceResourceId;
167 .setSingleChoiceItems(adapter, -1, clickListener)
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
MiniDrawerView.java 85 final ListAdapter adapter = mController.getMiniDrawerAccountsAdapter(); local
86 adapter.registerDataSetObserver(new Observer());
102 final ListAdapter adapter = local
105 if (adapter.getCount() > 0) {
110 final View newCurrentAccountView = adapter.getView(0, oldCurrentAccountView, this);
125 final int adapterCount = Math.min(adapter.getCount(), NUM_RECENT_ACCOUNTS + 1);
128 final View accountView = adapter.getView(accountIndex, recycleView, this);
  /system/bt/service/
low_energy_client.cc 21 #include "service/adapter.h"
35 LowEnergyClient::LowEnergyClient(Adapter& adapter, const UUID& uuid,
37 : adapter_(adapter),
199 LowEnergyClientFactory::LowEnergyClientFactory(Adapter& adapter)
200 : adapter_(adapter) {
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
RecyclerViewCacheTest.java 142 RecyclerView.Adapter mockAdapter = mock(RecyclerView.Adapter.class);
179 RecyclerView.Adapter mockAdapter = mock(RecyclerView.Adapter.class);
231 RecyclerView.Adapter mockAdapter = mock(RecyclerView.Adapter.class);
274 RecyclerView.Adapter mockAdapter = mock(RecyclerView.Adapter.class);
312 RecyclerView.Adapter adapter = new RecyclerView.Adapter() local
371 RecyclerView.Adapter adapter = new RecyclerView.Adapter() { local
429 RecyclerView.Adapter adapter = new RecyclerView.Adapter() { local
606 final RecyclerView.Adapter adapter = new RecyclerView.Adapter() { local
    [all...]
RecyclerViewAccessibilityLifecycleTest.java 78 TestAdapter adapter = new TestAdapter(10) { local
88 recyclerView.setAdapter(adapter);
95 adapter.deleteAndNotify(2, 2);
190 final TestAdapter adapter = new TestAdapter(100) { local
207 recyclerView.setAdapter(adapter);
236 adapter.dispatchDataSetChanged();
278 final TestAdapter adapter = new TestAdapter(100); local
287 recyclerView.setAdapter(adapter);
313 adapter.resetItemsTo(new ArrayList());
  /frameworks/support/v7/recyclerview/src/android/support/v7/widget/
RecyclerView.java 93 * <li><em>Adapter:</em> A subclass of {@link Adapter} responsible for providing views
95 * <li><em>Position:</em> The position of a data item within an <em>Adapter</em>.</li>
99 * to a <em>position</em> within the adapter.</li>
100 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter
107 * by the adapter if the view was considered <em>dirty</em>.</li>
108 * <li><em>Dirty (view):</em> A child view that must be rebound by the adapter before
114 * RecyclerView introduces an additional level of abstraction between the {@link Adapter} and
116 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations.
124 * <li>adapter position: Position of an item in the adapter. This is the position fro
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
AdapterViewTest.java 160 // After setAdapter, the count should be the value return by adapter.
168 // If there is no adapter has been set, emptyView hasn't been set, there will be no
172 // If the adapter is 0 count, emptyView has been set, the emptyView should be returned by
184 // If the adapter is not empty, the emptyView should also be returned by
195 // null adapter should also show empty view
209 // If no adapter has been set, the value should be -1;
214 // LastVisiblePosition should be adapter's getCount - 1,by mocking method
228 // no adapter set
232 // after adapter set
324 * Get the position within the adapter's data set for the view, where view is a an adapter ite
    [all...]
ListViewTest.java 180 private void setAdapter(final ArrayAdapter<String> adapter) throws Throwable {
182 () -> mListView.setAdapter(adapter));
377 final ArrayAdapter adapter = new ArrayAdapter<String>(mActivity, local
404 () -> mListView.setAdapter(adapter));
407 adapter::notifyDataSetChanged);
643 MockAdapter<String> adapter = new MockAdapter<>(mActivity, 0, items); local
644 mListView.setAdapter(adapter);
648 adapter.notifyDataSetChanged();
669 MockAdapter<String> adapter = new MockAdapter<>(mActivity, 0, items); local
670 mListView.setAdapter(adapter);
824 final DummyAdapter adapter = new DummyAdapter(2, view); local
849 final DummyAdapter adapter = new DummyAdapter(50, spacer); local
917 final TemporarilyDetachableMockViewAdapter<String> adapter = local
946 ArrayAdapterWithMockDrawable adapter = new ArrayAdapterWithMockDrawable(mActivity); local
1106 final ArrayAdapter<String> adapter = new ArrayAdapter<String>(mActivity, local
1133 final StableArrayAdapter<String> adapter = new StableArrayAdapter<>(mActivity, local
1245 final ArrayAdapter<String> adapter = new PositionArrayAdapter<>(mActivity, local
    [all...]
  /external/autotest/client/cros/bluetooth/
bluetooth_semiauto_helper.py 16 _ADAPTER_INTERFACE = 'org.bluez.Adapter1' # Name of adapter in DBus interface
26 such as accessing the state of Bluetooth adapter/devices via dbus,
59 """Return the adapter interface objects, or None if not found."""
77 """Return True/False if adapter power status matches given value."""
80 self._err('No adapter found!')
105 """Set adapter power status to match given value via dbus call.
109 @param adapter_power_status: True to turn adapter on; False for off.
114 self._err('No adapter found!')
123 """Raise error if adapter is not found after some time."""
129 self._err('No adapter found after polling!'
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ListViewTest.java 245 final ArrayAdapter<String> adapter = new ArrayAdapter<String>(null, android.R.layout.simple_list_item_1, adapterFileList); local
246 listView.setAdapter(adapter);
252 transcript.add("clicked on item " + adapter.getItem(position));
273 ListAdapter adapter = prepareWithListAdapter(); local
274 adapter.items.remove(0);
280 ListAdapter adapter = prepareWithListAdapter(); local
281 adapter.items.add("x");
287 ListAdapter adapter = prepareWithListAdapter(); local
288 adapter.items.remove(2);
289 adapter.items.add("x")
478 ListAdapter adapter = new ListAdapter("a", "b", "c"); local
    [all...]
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
EntryListFragment.java 57 * adapter assumes data exists in the provider once a sync has run. If your app doesn't work like
61 * <p>The ActionBar displays a "Refresh" button. When the user clicks "Refresh", the sync adapter
71 * Cursor adapter for controlling ListView results.
111 * List of Cursor columns to read from when preparing an adapter to populate the ListView.
207 * triggered when data in the content provider changes. When the sync adapter updates the
224 * Move the Cursor returned by the query into the ListView adapter. This refreshes the existing
234 * changed. The ContentObserver resets the loader, and then re-runs the loader. In the adapter,
323 /** Callback invoked with the sync adapter status changes. */
344 // Test the ContentResolver to see if the sync adapter is active or pending.
  /developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
EntryListFragment.java 57 * adapter assumes data exists in the provider once a sync has run. If your app doesn't work like
61 * <p>The ActionBar displays a "Refresh" button. When the user clicks "Refresh", the sync adapter
71 * Cursor adapter for controlling ListView results.
111 * List of Cursor columns to read from when preparing an adapter to populate the ListView.
207 * triggered when data in the content provider changes. When the sync adapter updates the
224 * Move the Cursor returned by the query into the ListView adapter. This refreshes the existing
234 * changed. The ContentObserver resets the loader, and then re-runs the loader. In the adapter,
323 /** Callback invoked with the sync adapter status changes. */
344 // Test the ContentResolver to see if the sync adapter is active or pending.
  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
EntryListFragment.java 57 * adapter assumes data exists in the provider once a sync has run. If your app doesn't work like
61 * <p>The ActionBar displays a "Refresh" button. When the user clicks "Refresh", the sync adapter
71 * Cursor adapter for controlling ListView results.
111 * List of Cursor columns to read from when preparing an adapter to populate the ListView.
207 * triggered when data in the content provider changes. When the sync adapter updates the
224 * Move the Cursor returned by the query into the ListView adapter. This refreshes the existing
234 * changed. The ContentObserver resets the loader, and then re-runs the loader. In the adapter,
323 /** Callback invoked with the sync adapter status changes. */
344 // Test the ContentResolver to see if the sync adapter is active or pending.
  /frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
FrameworkPerfActivity.java 166 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, local
168 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
169 mFgSpinner.setAdapter(adapter);
172 adapter = new ArrayAdapter<String>(this,
174 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
175 mBgSpinner.setAdapter(adapter);
178 adapter = new ArrayAdapter<String>(this,
180 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
181 mLimitSpinner.setAdapter(adapter);
  /packages/apps/Gallery2/src/com/android/photos/
MultiSelectGridFragment.java 127 public void setAdapter(ListAdapter adapter) {
129 mAdapter = adapter;
131 mGrid.setAdapter(adapter);
134 // adapter. It is now time to show it.
142 * adapter's data
199 * shown, only showing it once an adapter is given with
309 ListAdapter adapter = mAdapter; local
311 setAdapter(adapter);
313 // We are starting without an adapter, so assume we won't

Completed in 1386 milliseconds

<<21222324252627282930>>