/frameworks/ex/common/tests/src/com/android/common/widget/ |
H A D | CompositeCursorAdapterTest.java | 81 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); 82 adapter.addPartition(false, false); 83 adapter.addPartition(false, false); 85 adapter.changeCursor(0, makeCursor("a", 2)); 86 adapter.changeCursor(1, makeCursor("b", 3)); 88 assertEquals(5, adapter.getCount()); 92 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); 93 adapter.addPartition(false, false); 94 adapter.addPartition(false, false); 96 adapter [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothRebootStressTest.java | 54 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 55 mTestUtils.enable(adapter); 64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 66 assertTrue(adapter.isEnabled()); 75 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 77 assertTrue(adapter.isEnabled()); 79 mTestUtils.disable(adapter); 80 mTestUtils.enable(adapter); 88 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 90 assertTrue(adapter [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/media/ |
H A D | PlayerAdapter.java | 35 public void onPlayStateChanged(PlayerAdapter adapter) { argument 40 * @param adapter The adapter that has changed ready state. 42 public void onPreparedStateChanged(PlayerAdapter adapter) { argument 47 * @param adapter The adapter that has just finished current media. 49 public void onPlayCompleted(PlayerAdapter adapter) { argument 54 * @param adapter The adapter whose {@link #getCurrentPosition()} changed. 56 public void onCurrentPositionChanged(PlayerAdapter adapter) { argument 63 onBufferedPositionChanged(PlayerAdapter adapter) argument 71 onDurationChanged(PlayerAdapter adapter) argument 80 onVideoSizeChanged(PlayerAdapter adapter, int width, int height) argument 89 onError(PlayerAdapter adapter, int errorCode, String errorMessage) argument 97 onBufferingStateChanged(PlayerAdapter adapter, boolean start) argument 104 onMetadataChanged(PlayerAdapter adapter) argument [all...] |
/frameworks/base/core/java/android/nfc/ |
H A D | NfcManager.java | 48 NfcAdapter adapter; 55 adapter = NfcAdapter.getNfcAdapter(context); 57 adapter = null; 59 mAdapter = adapter;
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | RemoteAnimationDefinitionCompat.java | 28 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/base/telecomm/java/android/telecom/ |
H A D | ConnectionServiceAdapter.java | 50 void addAdapter(IConnectionServiceAdapter adapter) { argument 52 if (it.asBinder() == adapter.asBinder()) { 53 Log.w(this, "Ignoring duplicate adapter addition."); 57 if (mAdapters.add(adapter)) { 59 adapter.asBinder().linkToDeath(this, 0); 61 mAdapters.remove(adapter); 66 void removeAdapter(IConnectionServiceAdapter adapter) { argument 67 if (adapter != null) { 69 if (it.asBinder() == adapter.asBinder() && mAdapters.remove(it)) { 70 adapter [all...] |
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
H A D | ListRow.java | 31 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;
|
H A D | GuidedActionAdapterGroup.java | 56 public GuidedActionAdapter getNextAdapter(GuidedActionAdapter adapter) { argument 59 if (pair.first == adapter) { 70 boolean focusToNextAction(GuidedActionAdapter adapter, GuidedAction action, long nextActionId) { argument 74 index = adapter.indexOf(action); 83 int size = adapter.getCount(); 85 while (index < size && !adapter.getItem(index).isFocusable()) { 89 while (index < size && adapter.getItem(index).getId() != nextActionId) { 95 (GuidedActionsStylist.ViewHolder) adapter.getGuidedActionsStylist() 101 openIme(adapter, vh); 113 adapter 122 openIme(GuidedActionAdapter adapter, GuidedActionsStylist.ViewHolder avh) argument 151 fillAndStay(GuidedActionAdapter adapter, TextView v) argument 160 fillAndGoNext(GuidedActionAdapter adapter, TextView v) argument [all...] |
/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
H A D | BluetoothCommand.java | 43 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); 45 if (adapter == null) { 51 adapter.enable(); 53 adapter.disable();
|
H A D | NfcCommand.java | 45 INfcAdapter adapter = INfcAdapter.Stub.asInterface( 48 if (adapter == null) { 55 adapter.enable(); 58 adapter.disable(true);
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
H A D | ListRowDataAdapterTest.java | 64 ArrayObjectAdapter adapter = new ArrayObjectAdapter(presenterSelector); 65 adapter.add(new SectionRow("section 1")); 68 adapter.add(new ListRow(headerItem, createListRowAdapter())); 71 ListRowDataAdapter listRowDataAdapter = new ListRowDataAdapter(adapter); 74 adapter.replace(0, sectionRow); 84 ArrayObjectAdapter adapter = new ArrayObjectAdapter(presenterSelector); 85 adapter.add(new SectionRow("section 1")); 88 adapter.add(new ListRow(headerItem, createListRowAdapter())); 91 ListRowDataAdapter listRowDataAdapter = new ListRowDataAdapter(adapter); 97 adapter [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PendingRemoteAnimationRegistry.java | 46 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardItemsLayout.java | 43 final ListAdapter adapter = super.getAdapter(); 44 if (adapter instanceof ItemAdapter) { 45 return (ItemAdapter) adapter;
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | ItemAdapterTest.java | 62 ItemAdapter adapter = new ItemAdapter(mItemGroup); 63 assertEquals("Adapter should have 5 items", 5, adapter.getCount()); 64 assertEquals("Adapter should return the first item", mItems[0], adapter.getItem(0)); 65 assertEquals("ID should be same as position", 2, adapter.getItemId(2)); 68 assertEquals("Should have 3 different view types", 3, adapter.getViewTypeCount()); 70 viewTypes.add(adapter.getItemViewType(0)); 71 viewTypes.add(adapter.getItemViewType(1)); 72 viewTypes.add(adapter.getItemViewType(2)); 80 ItemAdapter adapter = new ItemAdapter(mItemGroup); 81 ItemHierarchy root = adapter [all...] |
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/ |
H A D | TestItemKeyProvider.java | 31 public TestItemKeyProvider(@Scope int scope, TestAdapter<K> adapter) { argument 33 checkArgument(adapter != null); 34 mAdapter = adapter;
|
H A D | SelectionTrackers.java | 31 TestAdapter<String> adapter = new TestAdapter<>(TestData.createStringData(numItems)); 33 new TestItemKeyProvider<>(ItemKeyProvider.SCOPE_MAPPED, adapter); 40 EventBridge.install(adapter, tracker, keyProvider); 46 TestAdapter<Long> adapter = new TestAdapter<>(TestData.createLongData(numItems)); 48 new TestItemKeyProvider<>(ItemKeyProvider.SCOPE_MAPPED, adapter); 55 EventBridge.install(adapter, tracker, keyProvider);
|
/frameworks/base/nfc-extras/java/com/android/nfc_extras/ |
H A D | NfcAdapterExtras.java | 76 private static void initService(NfcAdapter adapter) { argument 77 final INfcAdapterExtras service = adapter.getNfcAdapterExtrasInterface(); 90 * @param adapter a {@link NfcAdapter}, must not be null 93 public static NfcAdapterExtras get(NfcAdapter adapter) { argument 94 Context context = adapter.getContext(); 102 initService(adapter); 104 NfcAdapterExtras extras = sNfcExtras.get(adapter); 106 extras = new NfcAdapterExtras(adapter); 107 sNfcExtras.put(adapter, extras); 113 private NfcAdapterExtras(NfcAdapter adapter) { argument [all...] |
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | BrowseAnimationFragment.java | 97 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 99 int index = adapter.indexOf(item); 103 adapter.removeItems(index, 1); 112 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 114 int index = adapter.indexOf(item); 116 if (index < adapter.size() - 1) 118 adapter.removeItems(index, 1); 127 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 129 int index = adapter.indexOf(item); 131 adapter [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
H A D | BrowseAnimationFragment.java | 97 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 99 int index = adapter.indexOf(item); 103 adapter.removeItems(index, 1); 112 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 114 int index = adapter.indexOf(item); 116 if (index < adapter.size() - 1) 118 adapter.removeItems(index, 1); 127 ArrayObjectAdapter adapter = ((ArrayObjectAdapter) ((ListRow) row) 129 int index = adapter.indexOf(item); 131 adapter [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothManager.java | 25 * if there is no Bluetooth adapter on this device, and callers must be 52 LocalBluetoothAdapter adapter = LocalBluetoothAdapter.getInstance(); 53 if (adapter == null) { 58 sInstance = new LocalBluetoothManager(adapter, appContext); 67 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { argument 69 mLocalAdapter = adapter;
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | TitleViewAdapterTest.java | 67 TitleViewAdapter adapter = t.getTitleViewAdapter(); 68 adapter.setTitle("title"); 69 adapter.setBadgeDrawable(new GradientDrawable()); 71 adapter.setOnSearchClickedListener(listener); 72 adapter.getSearchAffordanceView().performClick();
|
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/ |
H A D | MultiPagePresenter.java | 61 * Associates the given {@code adapter} with this {@link Ui}. 63 void setNavigationPagerAdapter(WearableNavigationDrawerAdapter adapter); argument 92 public void onNewAdapter(WearableNavigationDrawerAdapter adapter) { argument 93 if (adapter == null) { 94 throw new IllegalArgumentException("Received null adapter."); 96 mAdapter = adapter; 98 mUi.setNavigationPagerAdapter(adapter);
|
/frameworks/base/core/java/android/view/ |
H A D | RemoteAnimationDefinition.java | 49 * @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/opt/telephony/src/java/com/android/internal/telephony/ims/ |
H A D | ImsServiceControllerCompat.java | 74 MmTelFeatureCompatAdapter adapter = mMmTelCompatAdapters.get(slotId); 75 if (adapter == null) { 76 Log.w(TAG, "enableIms: adapter null for slot :" + slotId); 80 adapter.enableIms(); 91 MmTelFeatureCompatAdapter adapter = mMmTelCompatAdapters.get(slotId); 92 if (adapter == null) { 93 Log.w(TAG, "enableIms: adapter null for slot :" + slotId); 97 adapter.disableIms(); 108 ImsRegistrationCompatAdapter adapter = mRegCompatAdapters.get(slotId); 109 if (adapter [all...] |
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | EventBridge.java | 48 * 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
|