/cts/tests/tests/widget/src/android/widget/cts/ |
D | CursorTreeAdapterTest.java | 155 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); in testGetCursor() local 156 assertSame(mGroupCursor, adapter.getCursor()); in testGetCursor() 158 adapter.changeCursor(null); in testGetCursor() 159 assertNull(adapter.getCursor()); in testGetCursor() 161 adapter.setGroupCursor(mGroupCursor); in testGetCursor() 162 assertSame(mGroupCursor, adapter.getCursor()); in testGetCursor() 167 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); in testSetGroupCursor() local 168 assertSame(mGroupCursor, adapter.getCursor()); in testSetGroupCursor() 170 adapter.setGroupCursor(null); in testSetGroupCursor() 171 assertNull(adapter.getCursor()); in testSetGroupCursor() [all …]
|
D | BaseExpandableListAdapterTest.java | 30 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testAreAllItemsEnabled() local 31 assertTrue(adapter.areAllItemsEnabled()); in testAreAllItemsEnabled() 35 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testGetCombinedId() local 37 long childID = adapter.getCombinedChildId(10, 100); in testGetCombinedId() 38 long groupID = adapter.getCombinedGroupId(10); in testGetCombinedId() 43 childID = adapter.getCombinedChildId(0, 0); in testGetCombinedId() 44 groupID = adapter.getCombinedGroupId(0); in testGetCombinedId() 49 MockBaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testIsEmpty() local 50 assertTrue(adapter.isEmpty()); in testIsEmpty() 51 adapter.setGroupCount(10); in testIsEmpty() [all …]
|
D | AbsSpinnerTest.java | 80 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mContext, in testSetSelectionIntBoolean() local 82 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean() 83 absSpinner.setAdapter(adapter); in testSetSelectionIntBoolean() 103 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mContext, in testSetSelectionInt() local 105 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt() 106 absSpinner.setAdapter(adapter); in testSetSelectionInt() 125 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mContext, in testAccessAdapter() local 127 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter() 129 absSpinner.setAdapter(adapter); in testAccessAdapter() 130 assertSame(adapter, absSpinner.getAdapter()); in testAccessAdapter() [all …]
|
D | ResourceCursorAdapterTest.java | 57 MockResourceCursorAdapter adapter = new MockResourceCursorAdapter(mContext, -1, null); in testConstructor() local 59 assertTrue(adapter.isAutoRequery()); in testConstructor() 60 assertNull(adapter.getCursor()); in testConstructor() 62 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor() 64 assertTrue(adapter.isAutoRequery()); in testConstructor() 65 assertSame(mCursor, adapter.getCursor()); in testConstructor() 67 adapter = new MockResourceCursorAdapter(mContext, in testConstructor() 69 assertFalse(adapter.isAutoRequery()); in testConstructor() 70 assertSame(mCursor, adapter.getCursor()); in testConstructor()
|
D | ListViewTest.java | 130 private void setAdapter(final ArrayAdapter<String> adapter) { in setAdapter() argument 133 mListView.setAdapter(adapter); in setAdapter() 367 final ArrayAdapter adapter = new ArrayAdapter<String>(mActivity, in testHeaderFooterType() local 395 mListView.setAdapter(adapter); in testHeaderFooterType() 403 adapter.notifyDataSetChanged(); in testHeaderFooterType() 730 Adapter<String> adapter = new Adapter<String>(mActivity, 0, items); in testRequestLayout() local 731 listView.setAdapter(adapter); in testRequestLayout() 735 adapter.notifyDataSetChanged(); in testRequestLayout() 755 Adapter<String> adapter = new Adapter<String>(mActivity, 0, items); in testNoSelectableItems() local 756 listView.setAdapter(adapter); in testNoSelectableItems() [all …]
|
D | GalleryCtsActivity.java | 40 ImageAdapter adapter = new ImageAdapter(this); in onCreate() local 41 gallery.setAdapter(adapter); in onCreate()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BasicAdapterTest.java | 124 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in test_enableDisable() local 127 disable(adapter); in test_enableDisable() 128 enable(adapter); in test_enableDisable() 137 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in test_getAddress() local 138 enable(adapter); in test_getAddress() 140 assertTrue(BluetoothAdapter.checkBluetoothAddress(adapter.getAddress())); in test_getAddress() 148 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in test_getName() local 149 enable(adapter); in test_getName() 151 String name = adapter.getName(); in test_getName() 160 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in test_getBondedDevices() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | HceEmulatorTestActivity.java | 41 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 46 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_emulator_tests)); in onCreate() 54 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_emulator, in onCreate() 58 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_emulator, in onCreate() 62 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_emulator, in onCreate() 66 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_emulator, in onCreate() 70 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_emulator, in onCreate() 74 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_emulator, in onCreate() 78 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_emulator, in onCreate() 82 … adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_emulator, in onCreate() [all …]
|
D | HceReaderTestActivity.java | 39 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 42 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_reader_tests)); in onCreate() 44 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_protocol_params_reader, in onCreate() 48 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_payment_reader, in onCreate() 52 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_payment_reader, in onCreate() 56 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_change_default_reader, in onCreate() 60 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_foreground_payment_reader, in onCreate() 64 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_single_non_payment_reader, in onCreate() 68 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_dual_non_payment_reader, in onCreate() 72 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_reader, in onCreate() [all …]
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrintDocumentAdapterContractTest.java | 72 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testNoPrintOptionsOrPrinterChange() local 111 print(adapter); in testNoPrintOptionsOrPrinterChange() 132 InOrder inOrder = inOrder(adapter); in testNoPrintOptionsOrPrinterChange() 135 inOrder.verify(adapter).onStart(); in testNoPrintOptionsOrPrinterChange() 146 verifyLayoutCall(inOrder, adapter, firstOldAttributes, firstNewAttributes, true); in testNoPrintOptionsOrPrinterChange() 150 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in testNoPrintOptionsOrPrinterChange() 165 verifyLayoutCall(inOrder, adapter, secondOldAttributes, secondNewAttributes, true); in testNoPrintOptionsOrPrinterChange() 168 verifyLayoutCall(inOrder, adapter, secondNewAttributes, secondNewAttributes, false); in testNoPrintOptionsOrPrinterChange() 175 inOrder.verify(adapter).onFinish(); in testNoPrintOptionsOrPrinterChange() 178 verifyNoMoreInteractions(adapter); in testNoPrintOptionsOrPrinterChange() [all …]
|
D | PageRangeAdjustmentTest.java | 96 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testAllPagesWantedAndAllPagesWritten() local 135 print(adapter); in testAllPagesWantedAndAllPagesWritten() 201 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testSomePagesWantedAndAllPagesWritten() local 241 print(adapter); in testSomePagesWantedAndAllPagesWritten() 316 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testSomePagesWantedAndSomeMorePagesWritten() local 369 print(adapter); in testSomePagesWantedAndSomeMorePagesWritten() 429 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testSomePagesWantedAndNotWritten() local 475 print(adapter); in testSomePagesWantedAndNotWritten() 536 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testWantedPagesAlreadyWrittenForPreview() local 581 print(adapter); in testWantedPagesAlreadyWrittenForPreview()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcTestActivity.java | 52 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 54 adapter.add(TestListItem.newCategory(this, R.string.nfc_pee_2_pee)); in onCreate() 55 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_sender, in onCreate() 58 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_receiver, in onCreate() 63 adapter.add(TestListItem.newTest(this, R.string.nfc_llcp_version_check, in onCreate() 67 adapter.add(TestListItem.newCategory(this, R.string.nfc_tag_verification)); in onCreate() 68 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef, in onCreate() 71 adapter.add(TestListItem.newTest(this, R.string.nfc_mifare_ultralight, in onCreate() 76 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce)); in onCreate() 77 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_reader_tests, in onCreate() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
D | P2pTestListActivity.java | 68 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 70 adapter.add(TestListItem.newCategory(this, R.string.p2p_group_formation)); in onCreate() 71 adapter.add(TestListItem.newTest(this, in onCreate() 75 adapter.add(TestListItem.newTest(this, in onCreate() 80 adapter.add(TestListItem.newCategory(this, R.string.p2p_join)); in onCreate() 81 adapter.add(TestListItem.newTest(this, in onCreate() 85 adapter.add(TestListItem.newTest(this, in onCreate() 90 adapter.add(TestListItem.newCategory(this, R.string.p2p_service_discovery)); in onCreate() 91 adapter.add(TestListItem.newTest(this, in onCreate() 95 adapter.add(TestListItem.newTest(this, in onCreate() [all …]
|
D | RequesterTestListActivity.java | 78 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in getTestListAdapter() local 81 addTestCase(adapter, testcase); in getTestListAdapter() 84 adapter.registerDataSetObserver(new DataSetObserver() { in getTestListAdapter() 91 return adapter; in getTestListAdapter() 99 private void addTestCase(ArrayTestListAdapter adapter, TestCase testcase) { in addTestCase() argument 103 adapter.add(TestListItem.newTest(testcase.getTestName(), testcase.getTestId(), in addTestCase()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodFlowTestActivity.java | 164 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument 322 adapter.add(mProfileOwnerInstalled); in setupTests() 325 adapter.add(mWorkAppVisibleTest); in setupTests() 326 adapter.add(mWorkNotificationBadgedTest); in setupTests() 327 adapter.add(mWorkStatusBarIconTest); in setupTests() 328 adapter.add(mWorkStatusBarToastTest); in setupTests() 331 adapter.add(mProfileAccountVisibleTest); in setupTests() 332 adapter.add(mDeviceAdminVisibleTest); in setupTests() 333 adapter.add(mCredSettingsVisibleTest); in setupTests() 334 adapter.add(mAppSettingsVisibleTest); in setupTests() [all …]
|
D | DeviceOwnerPositiveTestActivity.java | 91 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 92 adapter.add(TestListItem.newCategory(this, R.string.device_owner_positive_category)); in onCreate() 94 addTestsToAdapter(adapter); in onCreate() 96 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate() 103 setTestListAdapter(adapter); in onCreate() 136 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument 137 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, in addTestsToAdapter() 144 adapter.add(createInteractiveTestItem(this, DEVICE_ADMIN_SETTINGS_ID, in addTestsToAdapter() 154 adapter.add(createTestItem(this, WIFI_LOCKDOWN_TEST_ID, in addTestsToAdapter() 159 adapter.add(createInteractiveTestItem(this, DISALLOW_CONFIG_WIFI_ID, in addTestsToAdapter() [all …]
|
D | WifiLockdownTestActivity.java | 68 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 92 addTestsToAdapter(adapter); in onCreate() 94 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate() 101 setTestListAdapter(adapter); in onCreate() 136 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument 137 adapter.add(DeviceOwnerPositiveTestActivity.createInteractiveTestItem(this, in addTestsToAdapter() 142 adapter.add(DeviceOwnerPositiveTestActivity.createInteractiveTestItem(this, in addTestsToAdapter() 147 adapter.add(DeviceOwnerPositiveTestActivity.createInteractiveTestItem(this, in addTestsToAdapter() 152 adapter.add(DeviceOwnerPositiveTestActivity.createInteractiveTestItem(this, in addTestsToAdapter()
|
D | DeviceOwnerNegativeTestActivity.java | 58 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 59 adapter.add(TestListItem.newCategory(this, R.string.device_owner_provisioning_category)); in onCreate() 72 adapter.add(TestListItem.newTest(this, DEVICE_OWNER_NEGATIVE_TEST_INFO.getTitle(), in onCreate() 75 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate() 82 setTestListAdapter(adapter); in onCreate()
|
D | KeyguardDisabledFeaturesActivity.java | 91 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument 92 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_trust_agents, in setupTests() 96 adapter.add(new DialogTestListItemWithIcon(this, in setupTests() 104 adapter.add(new DialogTestListItem(this, in setupTests() 109 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_fingerprint, in setupTests()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
D | StreamingVideoActivity.java | 181 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); 183 adapter.add(TestListItem.newCategory("RTSP")); 185 adapter, "H263 Video, AMR Audio", "rtsp_h263_amr", 13, ITAG_13_SIGNATURE); 187 adapter, "MPEG4 SP Video, AAC Audio", "rtsp_mpeg4_aac", 17, ITAG_17_SIGNATURE); 189 adapter, "H264 Base Video, AAC Audio", "rtsp_h264_aac", 18, ITAG_18_SIGNATURE); 191 adapter.add(TestListItem.newCategory("HTTP Progressive")); 193 addStreamToTests(adapter, stream); 196 adapter.registerDataSetObserver(new DataSetObserver() { 203 return adapter; 207 ArrayTestListAdapter adapter, String name, String code, int itag, String signature) { [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/ |
D | DeskClockTestsActivity.java | 136 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 138 adapter.add(TestListItem.newCategory(this, R.string.deskclock_group_alarms)); in onCreate() 139 addTests(adapter, ALARM_TESTS); in onCreate() 141 adapter.add(TestListItem.newCategory(this, R.string.deskclock_group_timers)); in onCreate() 142 addTests(adapter, TIMER_TESTS); in onCreate() 144 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate() 151 setTestListAdapter(adapter); in onCreate() 154 private void addTests(ArrayTestListAdapter adapter, TestInfo[] tests) { in addTests() argument 158 adapter.add(TestListItem.newTest(this, title, info.getTestId(), in addTests()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerTestActivity.java | 38 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local 40 if (adapter == null || !adapter.isOffloadedFilteringSupported()) { in onCreate()
|
D | BleAdvertiserTestActivity.java | 38 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local 40 if (adapter == null || !adapter.isOffloadedFilteringSupported()) { in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | DialogTestListActivity.java | 73 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local 75 setupTests(adapter); in onCreate() 77 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate() 84 setTestListAdapter(adapter); in onCreate() 99 protected abstract void setupTests(ArrayTestListAdapter adapter); in setupTests() argument
|
D | AbstractTestListActivity.java | 35 protected void setTestListAdapter(TestListAdapter adapter) { in setTestListAdapter() argument 36 mAdapter = adapter; in setTestListAdapter()
|