Home
last modified time | relevance | path

Searched refs:mAdapter (Results 1 – 25 of 106) sorted by relevance

12345

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java38 private BluetoothAdapter mAdapter; field in BluetoothStressTest
46 mAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp()
50 if (mAdapter.isEnabled()) { in setUp()
51 mTestUtils.disable(mAdapter); in setUp()
72 mTestUtils.enable(mAdapter); in testEnable()
73 mTestUtils.disable(mAdapter); in testEnable()
86 mTestUtils.enable(mAdapter); in testDiscoverable()
87 mTestUtils.undiscoverable(mAdapter); in testDiscoverable()
91 mTestUtils.discoverable(mAdapter); in testDiscoverable()
92 mTestUtils.undiscoverable(mAdapter); in testDiscoverable()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothAdapter.java46 private final BluetoothAdapter mAdapter; field in LocalBluetoothAdapter
59 mAdapter = adapter; in LocalBluetoothAdapter()
86 mAdapter.cancelDiscovery(); in cancelDiscovery()
90 return mAdapter.enable(); in enable()
94 return mAdapter.disable(); in disable()
98 return mAdapter.getAddress(); in getAddress()
103 mAdapter.getProfileProxy(context, listener, profile); in getProfileProxy()
107 return mAdapter.getBondedDevices(); in getBondedDevices()
111 return mAdapter.getName(); in getName()
115 return mAdapter.getScanMode(); in getScanMode()
[all …]
/frameworks/base/core/java/android/widget/
DHeaderViewListAdapter.java36 private final ListAdapter mAdapter; field in HeaderViewListAdapter
57 mAdapter = adapter; in HeaderViewListAdapter()
86 return mAdapter == null || mAdapter.isEmpty(); in isEmpty()
135 if (mAdapter != null) { in getCount()
136 return getFootersCount() + getHeadersCount() + mAdapter.getCount(); in getCount()
143 if (mAdapter != null) { in areAllItemsEnabled()
144 return mAreAllFixedViewsSelectable && mAdapter.areAllItemsEnabled(); in areAllItemsEnabled()
160 if (mAdapter != null) { in isEnabled()
161 adapterCount = mAdapter.getCount(); in isEnabled()
163 return mAdapter.isEnabled(adjPosition); in isEnabled()
[all …]
DActivityChooserView.java75 private final ActivityChooserViewAdapter mAdapter; field in ActivityChooserView
130 mAdapter.notifyDataSetChanged();
135 mAdapter.notifyDataSetInvalidated();
293 mAdapter = new ActivityChooserViewAdapter(); in ActivityChooserView()
294 mAdapter.registerDataSetObserver(new DataSetObserver() { in ActivityChooserView()
311 mAdapter.setDataModel(dataModel); in setActivityChooserModel()
377 if (mAdapter.getDataModel() == null) { in showPopupUnchecked()
386 final int activityCount = mAdapter.getActivityCount(); in showPopupUnchecked()
390 mAdapter.setShowFooterView(true); in showPopupUnchecked()
391 mAdapter.setMaxActivityCount(maxActivityCount - 1); in showPopupUnchecked()
[all …]
DDayPickerView.java53 private final DayPickerPagerAdapter mAdapter; field in DayPickerView
106 mAdapter = new DayPickerPagerAdapter(context, in DayPickerView()
108 mAdapter.setMonthTextAppearance(monthTextAppearanceResId); in DayPickerView()
109 mAdapter.setDayOfWeekTextAppearance(dayOfWeekTextAppearanceResId); in DayPickerView()
110 mAdapter.setDayTextAppearance(dayTextAppearanceResId); in DayPickerView()
111 mAdapter.setDaySelectorColor(daySelectorColor); in DayPickerView()
130 mViewPager.setAdapter(mAdapter); in DayPickerView()
170 mAdapter.setOnDaySelectedListener(new DayPickerPagerAdapter.OnDaySelectedListener() { in DayPickerView()
182 final boolean hasNext = position < (mAdapter.getCount() - 1); in updateButtonVisibility()
248 mAdapter.setDayOfWeekTextAppearance(resId);
[all …]
DYearPickerView.java34 private final YearAdapter mAdapter; field in YearPickerView
62 final int year = mAdapter.getYearForPosition(position); in YearPickerView()
63 mAdapter.setSelection(year); in YearPickerView()
71 mAdapter = new YearAdapter(getContext()); in YearPickerView()
72 setAdapter(mAdapter); in YearPickerView()
85 mAdapter.setSelection(year); in setYear()
90 final int position = mAdapter.getPositionForYear(year); in setYear()
104 mAdapter.setRange(min, max); in setRange()
DSpinner.java561 } else if (mAdapter != null && mAdapter.getCount() > 0) { in getBaseline()
671 if (mAdapter != null) { in layout()
724 child = mAdapter.getView(position, null, this); in makeView()
815 if (mAdapter != null) { in onInitializeAccessibilityNodeInfoInternal()
964 private SpinnerAdapter mAdapter; field in Spinner.DropDownAdapter
976 mAdapter = adapter; in DropDownAdapter()
991 return mAdapter == null ? 0 : mAdapter.getCount(); in getCount()
995 return mAdapter == null ? null : mAdapter.getItem(position); in getItem()
999 return mAdapter == null ? -1 : mAdapter.getItemId(position); in getItemId()
1007 … return (mAdapter == null) ? null : mAdapter.getDropDownView(position, convertView, parent); in getDropDownView()
[all …]
DAdapterViewAnimator.java113 Adapter mAdapter; field in AdapterViewAnimator
303 if (mAdapter != null) { in setDisplayedChild()
367 if (relativeIndex >= 0 && relativeIndex <= getNumActiveViews() - 1 && mAdapter != null) { in getViewAtRelativeIndex()
377 if (mAdapter != null) { in getNumActiveViews()
385 if (mAdapter != null) { in getWindowSize()
415 if (mAdapter == null) return; in refreshChildren()
421 final View updatedChild = mAdapter.getView(modulo(i, adapterCount), null, this); in refreshChildren()
461 if (mAdapter == null) return; in showOnly()
548 View newView = mAdapter.getView(adapterPosition, null, this); in showOnly()
549 long itemId = mAdapter.getItemId(adapterPosition); in showOnly()
[all …]
DAbsSpinner.java43 SpinnerAdapter mAdapter; field in AbsSpinner
115 if (null != mAdapter) { in setAdapter()
116 mAdapter.unregisterDataSetObserver(mDataSetObserver); in setAdapter()
120 mAdapter = adapter; in setAdapter()
125 if (mAdapter != null) { in setAdapter()
127 mItemCount = mAdapter.getCount(); in setAdapter()
131 mAdapter.registerDataSetObserver(mDataSetObserver); in setAdapter()
201 if (selectedPosition >= 0 && mAdapter != null && selectedPosition < mAdapter.getCount()) { in onMeasure()
206 view = mAdapter.getView(selectedPosition, null, this); in onMeasure()
339 return mAdapter; in getAdapter()
/frameworks/base/telecomm/java/android/telecom/
DInCallAdapter.java43 private final IInCallAdapter mAdapter; field in InCallAdapter
49 mAdapter = adapter; in InCallAdapter()
60 mAdapter.answerCall(callId, videoState); in answerCall()
73 mAdapter.deflectCall(callId, address); in deflectCall()
87 mAdapter.rejectCall(callId, rejectWithMessage, textMessage); in rejectCall()
100 mAdapter.rejectCallWithReason(callId, rejectReason); in rejectCall()
116 mAdapter.transferCall(callId, targetNumber, isConfirmationRequired); in transferCall()
129 mAdapter.consultativeTransfer(callId, otherCallId); in transferCall()
141 mAdapter.disconnectCall(callId); in disconnectCall()
153 mAdapter.holdCall(callId); in holdCall()
[all …]
/frameworks/ex/common/tests/src/com/android/common/widget/
DGroupingListAdapterTests.java51 private GroupingListAdapter mAdapter = new GroupingListAdapter(null) { field in GroupingListAdapterTests
118 mAdapter.changeCursor(mCursor); in testGroupingWithoutGroups()
120 assertEquals(3, mAdapter.getCount()); in testGroupingWithoutGroups()
128 mAdapter.changeCursor(mCursor); in testGroupingWithCollapsedGroupAtTheBeginning()
130 assertEquals(2, mAdapter.getCount()); in testGroupingWithCollapsedGroupAtTheBeginning()
137 mAdapter.changeCursor(mCursor); in testGroupingWithExpandedGroupAtTheBeginning()
138 mAdapter.toggleGroup(0); in testGroupingWithExpandedGroupAtTheBeginning()
140 assertEquals(4, mAdapter.getCount()); in testGroupingWithExpandedGroupAtTheBeginning()
149 mAdapter.changeCursor(mCursor); in testGroupingWithExpandCollapseCycleAtTheBeginning()
150 mAdapter.toggleGroup(0); in testGroupingWithExpandCollapseCycleAtTheBeginning()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsLayoutTest.java51 private TestAdapter mAdapter; field in GlobalActionsLayoutTest
149 mAdapter = spy(new TestAdapter()); in setUp()
150 mLayout.setAdapter(mAdapter); in setUp()
161 doReturn(0).when(mAdapter).countSeparatedItems(); in testOnUpdateList_noItems()
162 doReturn(0).when(mAdapter).countListItems(); in testOnUpdateList_noItems()
173 doReturn(1).when(mAdapter).countSeparatedItems(); in testOnUpdateList_oneSeparatedOneList()
174 doReturn(1).when(mAdapter).countListItems(); in testOnUpdateList_oneSeparatedOneList()
178 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_oneSeparatedOneList()
179 doReturn(true).when(mAdapter).shouldBeSeparated(0); in testOnUpdateList_oneSeparatedOneList()
181 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_oneSeparatedOneList()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPendingRemoteAnimationRegistryTest.java46 @Mock RemoteAnimationAdapter mAdapter; field in PendingRemoteAnimationRegistryTest
62 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testOverrideActivityOptions()
65 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions()
70 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testOverrideActivityOptions_null()
73 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions_null()
79 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout()
87 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout_overridenEntry()
90 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout_overridenEntry()
94 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testTimeout_overridenEntry()
DAnimatingAppWindowTokenRegistryTest.java49 AnimationAdapter mAdapter; field in AnimatingAppWindowTokenRegistryTest
70 window1.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */); in testDeferring() local
71 window2.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */); in testDeferring() local
93 window1.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */); in testContainerRemoved() local
94 window2.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */); in testContainerRemoved() local
DRemoteAnimationControllerTest.java71 private RemoteAnimationAdapter mAdapter; field in RemoteAnimationControllerTest
81 mAdapter = new RemoteAnimationAdapter(mMockRunner, 100, 50, true /* changeNeedsSnapshot */); in setUp()
82 mAdapter.setCallingPidUid(123, 456); in setUp()
84 mController = new RemoteAnimationController(mWm, mAdapter, mHandler); in setUp()
93 new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testRun()
126 new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testCancel()
139 new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testTimeout()
157 win.mAppToken, new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testTimeout_scaled()
198 new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testOneNotStarted()
215 new Point(50, 100), new Rect(50, 100, 150, 150), null).mAdapter; in testRemovedBeforeStarted()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothManager.java59 private final BluetoothAdapter mAdapter; field in BluetoothManager
72 mAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothManager()
76 mAdapter = new BluetoothAdapter(IBluetoothManager.Stub.asInterface(b)); in BluetoothManager()
79 mAdapter = null; in BluetoothManager()
84 if (mAdapter != null) { in BluetoothManager()
85 mAdapter.setContext(context); in BluetoothManager()
95 return mAdapter; in getAdapter()
149 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in getConnectedDevices()
191 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in getDevicesMatchingConnectionStates()
244 IBluetoothManager managerService = mAdapter.getBluetoothManager(); in openGattServer()
/frameworks/base/core/java/com/android/internal/view/menu/
DListMenuPresenter.java52 MenuAdapter mAdapter; field in ListMenuPresenter
92 if (mAdapter != null) { in initForMenu()
93 mAdapter.notifyDataSetChanged(); in initForMenu()
102 if (mAdapter == null) { in getMenuView()
103 mAdapter = new MenuAdapter(); in getMenuView()
105 mMenuView.setAdapter(mAdapter); in getMenuView()
119 if (mAdapter == null) { in getAdapter()
120 mAdapter = new MenuAdapter(); in getAdapter()
122 return mAdapter; in getAdapter()
127 if (mAdapter != null) mAdapter.notifyDataSetChanged(); in updateMenuView()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoSizingList.java39 private ListAdapter mAdapter; field in AutoSizingList
54 if (mAdapter != null) { in setAdapter()
55 mAdapter.unregisterDataSetObserver(mDataObserver); in setAdapter()
57 mAdapter = adapter; in setAdapter()
83 return mAdapter != null ? mAdapter.getCount() : 0; in getDesiredCount()
91 if (mAdapter == null) { in rebindChildren()
96 View newView = mAdapter.getView(i, v, this); in rebindChildren()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListWithEmptyView.java55 private CarefulAdapter<String> mAdapter; field in ListWithEmptyView
64 mAdapter = new CarefulAdapter<String>(this, in onCreate()
67 setListAdapter(mAdapter); in onCreate()
88 mAdapter.add(str); in onOptionsItemSelected()
91 if (mAdapter.getCount() > 0) { in onOptionsItemSelected()
92 mAdapter.remove(mAdapter.getItem(0)); in onOptionsItemSelected()
/frameworks/base/services/core/java/com/android/server/wm/
DRemoteAnimationController.java152 mPendingAnimations.get(i).mAdapter.dump(pw, ""); in writeStartDebugStatement()
173 if (wrappers.mAdapter != null in createAnimations()
174 && wrappers.mAdapter.mCapturedFinishCallback != null) { in createAnimations()
175 wrappers.mAdapter.mCapturedFinishCallback in createAnimations()
176 .onAnimationFinished(wrappers.mAdapter); in createAnimations()
202 if (adapters.mAdapter != null) { in onAnimationFinished()
203 adapters.mAdapter.mCapturedFinishCallback in onAnimationFinished()
204 .onAnimationFinished(adapters.mAdapter); in onAnimationFinished()
317 RemoteAnimationAdapterWrapper mAdapter; field in RemoteAnimationController.RemoteAnimationRecord
326 mAdapter = new RemoteAnimationAdapterWrapper(this, endPos, endBounds); in RemoteAnimationRecord()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListWithFooterViewAndNewLabelsTest.java31 private ListAdapter mAdapter; field in ListWithFooterViewAndNewLabelsTest
48 mAdapter = a.getListAdapter(); in setUp()
55 assertNotNull(mAdapter); in FAILING_testPreconditions()
60 1, mAdapter.getCount()); in FAILING_testPreconditions()
/frameworks/base/core/java/com/android/internal/globalactions/
DActionsDialog.java32 private final ActionsAdapter mAdapter; field in ActionsDialog
38 mAdapter = (ActionsAdapter) params.mAdapter; in ActionsDialog()
68 for (int i = 0; i < mAdapter.getCount(); ++i) { in dispatchPopulateAccessibilityEvent()
70 mAdapter.getItem(i).getLabelForAccessibility(getContext()); in dispatchPopulateAccessibilityEvent()
/frameworks/base/core/java/android/app/
DListFragment.java169 ListAdapter mAdapter; field in ListFragment
242 boolean hadAdapter = mAdapter != null; in setListAdapter()
243 mAdapter = adapter; in setListAdapter()
382 return mAdapter; in getListAdapter()
426 if (mAdapter != null) { in ensureList()
427 ListAdapter adapter = mAdapter; in ensureList()
428 mAdapter = null; in ensureList()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java112 protected ResolveListAdapter mAdapter; field in ResolverActivity
239 mAdapter.handlePackagesChanged(); in createPackageMonitor()
369 MetricsLogger.action(this, mAdapter.hasFilteredItem()
377 final DisplayResolveInfo dri = mAdapter.getOtherProfile();
436 mAdapter.handlePackagesChanged();
469 final Option[] options = new Option[mAdapter.getCount()];
471 TargetInfo target = mAdapter.getItem(i);
518 final DisplayResolveInfo dri = mAdapter.getOtherProfile();
570 final boolean named = mAdapter.getFilteredPosition() >= 0;
579 mAdapter.getFilteredItem().getDisplayLabel());
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java119 private PagerAdapter mAdapter; field in ViewPager
395 if (mAdapter != null) { in setAdapter()
396 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter()
397 mAdapter.startUpdate(this); in setAdapter()
400 mAdapter.destroyItem(this, ii.position, ii.object); in setAdapter()
402 mAdapter.finishUpdate(this); in setAdapter()
409 final PagerAdapter oldAdapter = mAdapter; in setAdapter()
410 mAdapter = adapter; in setAdapter()
413 if (mAdapter != null) { in setAdapter()
417 mAdapter.registerDataSetObserver(mObserver); in setAdapter()
[all …]

12345