Home
last modified time | relevance | path

Searched refs:adapter (Results 1 – 25 of 65) sorted by relevance

123

/cts/tests/tests/widget/src/android/widget/cts/
DCursorTreeAdapterTest.java155 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 …]
DBaseExpandableListAdapterTest.java30 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 …]
DAbsSpinnerTest.java80 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 …]
DResourceCursorAdapterTest.java57 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()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBasicAdapterTest.java124 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/
DHceEmulatorTestActivity.java41 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()
82adapter.add(TestListItem.newTest(this, R.string.nfc_hce_conflicting_non_payment_emulator, in onCreate()
[all …]
DHceReaderTestActivity.java39 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/
DPrintDocumentAdapterContractTest.java72 final PrintDocumentAdapter adapter = createMockPrintDocumentAdapter( in testNoPrintOptionsOrPrinterChange() local
111 print(adapter); in testNoPrintOptionsOrPrinterChange()
135 InOrder inOrder = inOrder(adapter); in testNoPrintOptionsOrPrinterChange()
138 inOrder.verify(adapter).onStart(); in testNoPrintOptionsOrPrinterChange()
150 verifyLayoutCall(inOrder, adapter, firstOldAttributes, firstNewAttributes, true); in testNoPrintOptionsOrPrinterChange()
154 inOrder.verify(adapter).onWrite(eq(firstPages), any(ParcelFileDescriptor.class), in testNoPrintOptionsOrPrinterChange()
169 verifyLayoutCall(inOrder, adapter, secondOldAttributes, secondNewAttributes, true); in testNoPrintOptionsOrPrinterChange()
172 verifyLayoutCall(inOrder, adapter, secondNewAttributes, secondNewAttributes, false); in testNoPrintOptionsOrPrinterChange()
179 inOrder.verify(adapter).onFinish(); in testNoPrintOptionsOrPrinterChange()
182 verifyNoMoreInteractions(adapter); in testNoPrintOptionsOrPrinterChange()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcTestActivity.java54 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
56 adapter.add(TestListItem.newCategory(this, R.string.nfc_pee_2_pee)); in onCreate()
57 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_sender, in onCreate()
60 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef_push_receiver, in onCreate()
65 adapter.add(TestListItem.newTest(this, R.string.nfc_llcp_version_check, in onCreate()
69 adapter.add(TestListItem.newCategory(this, R.string.nfc_tag_verification)); in onCreate()
70 adapter.add(TestListItem.newTest(this, R.string.nfc_ndef, in onCreate()
73 adapter.add(TestListItem.newTest(this, R.string.nfc_mifare_ultralight, in onCreate()
78 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce)); in onCreate()
79 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_reader_tests, in onCreate()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodFlowTestActivity.java179 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
388 adapter.add(mProfileOwnerInstalled); in setupTests()
391 adapter.add(mWorkAppVisibleTest); in setupTests()
392 adapter.add(mWorkNotificationBadgedTest); in setupTests()
393 adapter.add(mWorkStatusBarIconTest); in setupTests()
394 adapter.add(mWorkStatusBarToastTest); in setupTests()
397 adapter.add(mProfileAccountVisibleTest); in setupTests()
398 adapter.add(mDeviceAdminVisibleTest); in setupTests()
399 adapter.add(mCredSettingsVisibleTest); in setupTests()
400 adapter.add(mAppSettingsVisibleTest); in setupTests()
[all …]
DKeyguardDisabledFeaturesActivity.java101 protected void setupDisableTrustAgentsTest(ArrayTestListAdapter adapter) { in setupDisableTrustAgentsTest() argument
102 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_trust_agents, in setupDisableTrustAgentsTest()
108 protected void setupDisableUnredactedWorkNotification(ArrayTestListAdapter adapter) { in setupDisableUnredactedWorkNotification() argument
109 adapter.add(new DialogTestListItemWithIcon(this, in setupDisableUnredactedWorkNotification()
117 protected void setupFingerprintTests(ArrayTestListAdapter adapter) { in setupFingerprintTests() argument
120 adapter.add(new DialogTestListItem(this, in setupFingerprintTests()
125 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_fingerprint, in setupFingerprintTests()
133 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
134 setupDisableTrustAgentsTest(adapter); in setupTests()
135 setupDisableUnredactedWorkNotification(adapter); in setupTests()
[all …]
DDisallowAppsControlActivity.java93 private void setupCheckDisabledUninstallButtonTest(ArrayTestListAdapter adapter) { in setupCheckDisabledUninstallButtonTest() argument
94 adapter.add(new DialogTestListItem(this, in setupCheckDisabledUninstallButtonTest()
101 private void setupCheckDisabledForceStopTest(ArrayTestListAdapter adapter) { in setupCheckDisabledForceStopTest() argument
102 adapter.add(new DialogTestListItem(this, in setupCheckDisabledForceStopTest()
109 private void setupCheckDisabledAppStorageButtonsTest(ArrayTestListAdapter adapter) { in setupCheckDisabledAppStorageButtonsTest() argument
110 adapter.add(new DialogTestListItem(this, in setupCheckDisabledAppStorageButtonsTest()
118 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
119 setupCheckDisabledUninstallButtonTest(adapter); in setupTests()
120 setupCheckDisabledForceStopTest(adapter); in setupTests()
121 setupCheckDisabledAppStorageButtonsTest(adapter); in setupTests()
DDeviceOwnerPositiveTestActivity.java96 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
97 adapter.add(TestListItem.newCategory(this, R.string.device_owner_positive_category)); in onCreate()
99 addTestsToAdapter(adapter); in onCreate()
101 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
108 setTestListAdapter(adapter); in onCreate()
138 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
139 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, in addTestsToAdapter()
145 adapter.add(createInteractiveTestItem(this, DEVICE_ADMIN_SETTINGS_ID, in addTestsToAdapter()
155 adapter.add(createTestItem(this, WIFI_LOCKDOWN_TEST_ID, in addTestsToAdapter()
160 adapter.add(createInteractiveTestItem(this, DISALLOW_CONFIG_WIFI_ID, in addTestsToAdapter()
[all …]
DDeviceOwnerRequestingBugreportTestActivity.java88 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
89 adapter.add(TestListItem.newCategory(this, in onCreate()
92 addTestsToAdapter(adapter); in onCreate()
94 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
101 setTestListAdapter(adapter); in onCreate()
130 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
131 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, in addTestsToAdapter()
137 adapter.add(createInteractiveTestItem(this, BUGREPORT_SHARING_DECLINED_WHILE_BEING_TAKEN, in addTestsToAdapter()
145 adapter.add(createInteractiveTestItem(this, BUGREPORT_SHARING_ACCEPTED_WHILE_BEING_TAKEN, in addTestsToAdapter()
153 adapter.add(createInteractiveTestItem(this, in addTestsToAdapter()
[all …]
DTurnOffWorkActivity.java95 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
98 adapter.add(new DialogTestListItem(this, in setupTests()
114 adapter.add(mTurnOffWorkTest); in setupTests()
116 adapter.add(new DialogTestListItem(this, in setupTests()
122 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_off_work_icon, in setupTests()
127 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_off_work_launcher, in setupTests()
142 adapter.add(mTurnOnWorkTest); in setupTests()
144 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_on_work_icon, in setupTests()
149 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_turn_on_work_launcher, in setupTests()
DWifiLockdownTestActivity.java68 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()
134 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
135 adapter.add(Utils.createInteractiveTestItem(this, in addTestsToAdapter()
140 adapter.add(Utils.createInteractiveTestItem(this, in addTestsToAdapter()
145 adapter.add(Utils.createInteractiveTestItem(this, in addTestsToAdapter()
150 adapter.add(Utils.createInteractiveTestItem(this, in addTestsToAdapter()
DDeviceOwnerNegativeTestActivity.java56 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
57 adapter.add(TestListItem.newCategory(this, R.string.device_owner_provisioning_category)); in onCreate()
69 adapter.add(TestListItem.newTest(this, deviceOwnerNegativeTestInfo.getTitle(), in onCreate()
72 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
79 setTestListAdapter(adapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DP2pTestListActivity.java68 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 …]
DRequesterTestListActivity.java78 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/streamquality/
DStreamingVideoActivity.java181 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/admin/
DDeviceAdminKeyguardDisabledFeaturesActivity.java55 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
56 setupFingerprintTests(adapter); in setupTests()
57 setupDisableTrustAgentsTest(adapter); in setupTests()
58 adapter.add(new DialogTestListItem(this, R.string.device_admin_keyguard_disable_camera, in setupTests()
63 adapter.add(new DialogTestListItem(this, R.string.device_admin_disable_notifications, in setupTests()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
DHceFReaderTestActivity.java37 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
41 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_f_reader_tests)); in onCreate()
43 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_f_reader, in onCreate()
49 setTestListAdapter(adapter); in onCreate()
DHceFEmulatorTestActivity.java40 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
46 adapter.add(TestListItem.newCategory(this, R.string.nfc_hce_f_emulator_tests)); in onCreate()
48 adapter.add(TestListItem.newTest(this, R.string.nfc_hce_f_emulator, in onCreate()
53 setTestListAdapter(adapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/
DDeskClockTestsActivity.java136 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/
DBleAdvertiserTestActivity.java38 BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() local
40 if (adapter == null || !adapter.isOffloadedFilteringSupported()) { in onCreate()

123