/frameworks/ex/common/tests/src/com/android/common/widget/ |
CompositeCursorAdapterTest.java | 81 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 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(); local 93 adapter.addPartition(false, false); 94 adapter.addPartition(false, false); 96 adapter.changeCursor(0, makeCursor("a", 1)) 107 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 118 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 133 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 143 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 157 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 171 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 183 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 197 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 207 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 221 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 229 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local 237 TestCompositeCursorAdapter adapter = new TestCompositeCursorAdapter(); local [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/widget/ |
CompositeListAdapterTest.java | 112 CompositeListAdapter adapter = new CompositeListAdapter(); local 113 adapter.addAdapter(mAdapter1); 114 adapter.addAdapter(mAdapter2); 115 adapter.addAdapter(mAdapter3); 117 assertEquals(5, adapter.getCount()); 121 CompositeListAdapter adapter = new CompositeListAdapter(); local 122 assertEquals(0, adapter.getCount()); 124 adapter.addAdapter(mAdapter1); 125 assertEquals(2, adapter.getCount()); 127 adapter.addAdapter(mAdapter2) 135 CompositeListAdapter adapter = new CompositeListAdapter(); local 148 CompositeListAdapter adapter = new CompositeListAdapter(); local 161 CompositeListAdapter adapter = new CompositeListAdapter(); local 176 CompositeListAdapter adapter = new CompositeListAdapter(); local 195 CompositeListAdapter adapter = new CompositeListAdapter(); local 211 CompositeListAdapter adapter = new CompositeListAdapter(); local 238 CompositeListAdapter adapter = new CompositeListAdapter(); local 256 CompositeListAdapter adapter = new CompositeListAdapter(); local 274 CompositeListAdapter adapter = new CompositeListAdapter(); local 282 CompositeListAdapter adapter = new CompositeListAdapter(); local 296 CompositeListAdapter adapter = new CompositeListAdapter(); local 314 CompositeListAdapter adapter = new CompositeListAdapter(); local [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);
|
ClusteredSuggestionsView.java | 36 public void setSuggestionsAdapter(SuggestionsAdapter<ExpandableListAdapter> adapter) { 37 mSuggestionsAdapter = adapter; 38 super.setAdapter(adapter == null ? null : adapter.getListAdapter()); 63 ExpandableListAdapter adapter = mSuggestionsAdapter.getListAdapter(); local 64 for (int i = 0; i < adapter.getGroupCount(); ++i) {
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
BluetoothRebootStressTest.java | 54 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 55 mTestUtils.enable(adapter); 64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 66 assertTrue(adapter.isEnabled()); 75 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 77 assertTrue(adapter.isEnabled()); 79 mTestUtils.disable(adapter); 80 mTestUtils.enable(adapter); 88 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 90 assertTrue(adapter.isEnabled()) [all...] |
BluetoothStressTest.java | 64 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 65 mTestUtils.disable(adapter); 69 mTestUtils.enable(adapter); 70 mTestUtils.disable(adapter); 83 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 84 mTestUtils.disable(adapter); 85 mTestUtils.enable(adapter); 86 mTestUtils.undiscoverable(adapter); 90 mTestUtils.discoverable(adapter); 91 mTestUtils.undiscoverable(adapter); 106 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 128 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 155 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 181 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 208 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 241 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 274 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 307 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 337 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 371 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
CursorTreeAdapterTest.java | 150 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 151 assertSame(mGroupCursor, adapter.getCursor()); 153 adapter.changeCursor(null); 154 assertNull(adapter.getCursor()); 156 adapter.setGroupCursor(mGroupCursor); 157 assertSame(mGroupCursor, adapter.getCursor()); 161 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 162 assertSame(mGroupCursor, adapter.getCursor()); 164 adapter.setGroupCursor(null); 165 assertNull(adapter.getCursor()) 172 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 181 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 192 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 230 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 255 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 280 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 317 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 325 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 334 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 341 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 352 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 363 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 376 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 395 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 403 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 422 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 453 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); local 480 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 508 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local 527 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); local [all...] |
BaseExpandableListAdapterTest.java | 30 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 31 assertTrue(adapter.areAllItemsEnabled()); 35 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 37 long childID = adapter.getCombinedChildId(10, 100); 38 long groupID = adapter.getCombinedGroupId(10); 43 childID = adapter.getCombinedChildId(0, 0); 44 groupID = adapter.getCombinedGroupId(0); 49 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 50 assertTrue(adapter.isEmpty()); 51 adapter.setGroupCount(10) 56 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 66 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 76 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 82 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local 88 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); local [all...] |
/frameworks/base/core/java/android/nfc/ |
NfcManager.java | 47 NfcAdapter adapter; local 54 adapter = NfcAdapter.getNfcAdapter(context); 56 adapter = null; 58 mAdapter = adapter; 62 * Get the default NFC Adapter for this device. 64 * @return the default NFC Adapter
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
SeparatedFolderListAdapter.java | 22 import android.widget.Adapter; 34 public void addSection(FolderSelectorAdapter adapter) { 35 mSections.add(adapter); 40 for (FolderSelectorAdapter adapter : mSections) { 41 int size = adapter.getCount(); 45 return adapter.getItem(position); 57 for (FolderSelectorAdapter adapter : mSections) { 58 total += adapter.getCount(); 67 for (Adapter adapter : mSections [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
PostalAddressPickerFragment.java | 50 PostalAddressListAdapter adapter = (PostalAddressListAdapter)getAdapter(); local 51 pickPostalAddress(adapter.getDataUri(position)); 53 LegacyPostalAddressListAdapter adapter = (LegacyPostalAddressListAdapter)getAdapter(); local 54 pickPostalAddress(adapter.getContactMethodUri(position)); 61 PostalAddressListAdapter adapter = new PostalAddressListAdapter(getActivity()); local 62 adapter.setSectionHeaderDisplayEnabled(true); 63 adapter.setDisplayPhotos(true); 64 return adapter; 66 LegacyPostalAddressListAdapter adapter = local 68 adapter.setSectionHeaderDisplayEnabled(false) [all...] |
LegacyPhoneNumberPickerFragment.java | 40 final LegacyPhoneNumberListAdapter adapter = (LegacyPhoneNumberListAdapter) getAdapter(); local 41 return adapter.getPhoneUri(position); 46 LegacyPhoneNumberListAdapter adapter = new LegacyPhoneNumberListAdapter(getActivity()); local 47 adapter.setDisplayPhotos(true); 48 return adapter; 52 protected void setPhotoPosition(ContactEntryListAdapter adapter) {
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
BasicAdapterTest.java | 124 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 127 disable(adapter); 128 enable(adapter); 137 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 138 enable(adapter); 140 assertTrue(BluetoothAdapter.checkBluetoothAddress(adapter.getAddress())); 148 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 149 enable(adapter); 151 String name = adapter.getName(); 160 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter() local 176 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local 212 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); local [all...] |
/external/chromium_org/chrome/browser/extensions/api/bluetooth/ |
bluetooth_api_utils.cc | 25 void PopulateAdapterState(const device::BluetoothAdapter& adapter, 27 out->discovering = adapter.IsDiscovering(); 28 out->available = adapter.IsPresent(); 29 out->powered = adapter.IsPowered(); 30 out->name = adapter.GetName(); 31 out->address = adapter.GetAddress();
|
bluetooth_extension_function.h | 23 // bluetooth adapter and calls DoWork() implemented by individual bluetooth 36 void RunOnAdapterReady(scoped_refptr<device::BluetoothAdapter> adapter); 39 // automatically once |adapter| has been initialized. 40 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) = 0;
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
SmartDialSearchFragment.java | 38 SmartDialNumberListAdapter adapter = new SmartDialNumberListAdapter(getActivity()); local 39 adapter.setUseCallableUri(super.usesCallableUri()); 40 adapter.setQuickContactEnabled(true); 43 adapter.setShortcutEnabled(SmartDialNumberListAdapter.SHORTCUT_DIRECT_CALL, false); 44 return adapter; 56 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); local 58 adapter.configureLoader(loader); 70 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); local 71 return adapter.getDataUri(position);
|
SmartDialNumberPickerFragment.java | 42 SmartDialNumberListAdapter adapter = new SmartDialNumberListAdapter(getActivity()); local 43 adapter.setDisplayPhotos(true); 44 adapter.setUseCallableUri(super.usesCallableUri()); 45 return adapter; 59 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); local 61 adapter.configureLoader(loader); 73 final SmartDialNumberListAdapter adapter = (SmartDialNumberListAdapter) getAdapter(); local 74 return adapter.getDataUri(position);
|
/frameworks/opt/mailcommon/tests/src/com/android/mailcommon/ |
MergedAdapterTest.java | 108 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); local 110 adapter.setAdapters(mFirst, mSecond); 111 assertEquals(2, adapter.getSubAdapterCount()); 112 assertEquals(mFirst, adapter.getSubAdapter(0)); 113 assertEquals(mSecond, adapter.getSubAdapter(1)); 117 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); local 119 adapter.setAdapters(mFirst, mSecond); 120 LocalAdapterPosition<ListSpinnerAdapter> p = adapter.getAdapterOffsetForItem(13); 126 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); local 128 adapter.setAdapters(mFirst, mSecond) 136 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); local 146 MergedAdapter<ListSpinnerAdapter> adapter = new MergedAdapter<ListSpinnerAdapter>(); local [all...] |
/libcore/luni/src/test/java/tests/api/org/xml/sax/helpers/ |
ParserAdapterTest.java | 65 private ParserAdapter adapter = new ParserAdapter(parser); field in class:ParserAdapterTest 77 adapter.setContentHandler(handler); 78 adapter.setDTDHandler(handler); 79 adapter.setErrorHandler(handler); 100 ParserAdapter adapter = new ParserAdapter(parser); local 104 adapter = new ParserAdapter(null); 117 adapter.setFeature(s, true); 118 assertEquals(true, adapter.getFeature(s)); 120 adapter.setFeature(s, false); 121 assertEquals(false, adapter.getFeature(s)) [all...] |
XMLReaderAdapterTest.java | 55 private XMLReaderAdapter adapter = new XMLReaderAdapter(reader); field in class:XMLReaderAdapterTest 67 adapter.setDocumentHandler(handler); 68 adapter.setDTDHandler(handler); 69 adapter.setErrorHandler(handler); 90 XMLReaderAdapter adapter = new XMLReaderAdapter(reader); local 94 adapter = new XMLReaderAdapter(null); 104 adapter.setLocale(Locale.getDefault()); 115 adapter.setEntityResolver(resolver); 119 adapter.setEntityResolver(null); 128 adapter.setDTDHandler(null) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowViewPager.java | 14 private PagerAdapter adapter; field in class:ShadowViewPager 19 public void setAdapter(PagerAdapter adapter) { 20 this.adapter = adapter; 25 return adapter;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
HceEmulatorTestActivity.java | 38 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local 41 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_emulator_tests)); 42 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_emulator, 46 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_emulator, 50 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_emulator, 55 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_emulator, 59 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_emulator, 63 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_emulator, 67 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_throughput_emulator, 71 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_tap_test_emulator [all...] |
HceReaderTestActivity.java | 36 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); local 39 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_reader_tests)); 40 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_reader, 44 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_reader, 48 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_reader, 52 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_reader, 56 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_reader, 60 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_reader, 64 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_throughput_reader, 68 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_tap_test_reader [all...] |
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/swingui/parsers/ |
StGUnit.g | 49 public TestSuiteAdapter adapter ;; 53 : 'gunit' name=id {adapter.setGrammarName($name.text);} 64 {adapter.startRule($parserRule.text);} 66 {adapter.startRule($lexerRule.text);} 70 {adapter.endRule();} 75 {adapter.addTestCase($input.in, $expect.out);} 79 : OK {$out = adapter.createBoolOutput(true);} 80 | FAIL {$out = adapter.createBoolOutput(false);} 81 | 'returns' RETVAL {$out = adapter.createReturnOutput($RETVAL.text);} 82 | '->' output {$out = adapter.createStdOutput($output.text); [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
BaseAdapterTest.java | 18 BaseAdapter adapter = new TestBaseAdapter(); local 19 adapter.notifyDataSetChanged(); 20 assertTrue(shadowOf(adapter).wasNotifyDataSetChangedCalled()); 25 BaseAdapter adapter = new TestBaseAdapter(); local 26 adapter.notifyDataSetChanged(); 27 shadowOf(adapter).clearWasDataSetChangedCalledFlag(); 28 assertFalse(shadowOf(adapter).wasNotifyDataSetChangedCalled());
|