Home
last modified time | relevance | path

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

1234

/cts/tests/tests/widget/src/android/widget/cts/
DCursorTreeAdapterTest.java174 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); in testGetCursor() local
175 assertSame(mGroupCursor, adapter.getCursor()); in testGetCursor()
177 adapter.changeCursor(null); in testGetCursor()
178 assertNull(adapter.getCursor()); in testGetCursor()
180 adapter.setGroupCursor(mGroupCursor); in testGetCursor()
181 assertSame(mGroupCursor, adapter.getCursor()); in testGetCursor()
187 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); in testSetGroupCursor() local
188 assertSame(mGroupCursor, adapter.getCursor()); in testSetGroupCursor()
190 adapter.setGroupCursor(null); in testSetGroupCursor()
191 assertNull(adapter.getCursor()); in testSetGroupCursor()
[all …]
DBaseExpandableListAdapterTest.java48 BaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testDefaults() local
49 assertEquals(1, adapter.getGroupTypeCount()); in testDefaults()
50 assertEquals(0, adapter.getGroupType(0)); in testDefaults()
51 assertEquals(1, adapter.getChildTypeCount()); in testDefaults()
52 assertEquals(0, adapter.getChildType(0, 0)); in testDefaults()
57 BaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testAreAllItemsEnabled() local
58 assertTrue(adapter.areAllItemsEnabled()); in testAreAllItemsEnabled()
63 BaseExpandableListAdapter adapter = new MockBaseExpandableListAdapter(); in testGetCombinedId() local
65 long childID = adapter.getCombinedChildId(10, 100); in testGetCombinedId()
66 long groupID = adapter.getCombinedGroupId(10); in testGetCombinedId()
[all …]
DAbsSpinnerTest.java92 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testSetSelectionIntBoolean() local
94 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean()
95 mAbsSpinner.setAdapter(adapter); in testSetSelectionIntBoolean()
115 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testSetSelectionInt() local
117 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt()
118 mAbsSpinner.setAdapter(adapter); in testSetSelectionInt()
137 ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(mActivity, in testAccessAdapter() local
139 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter()
141 mAbsSpinner.setAdapter(adapter); in testAccessAdapter()
142 assertSame(adapter, mAbsSpinner.getAdapter()); in testAccessAdapter()
[all …]
/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/animation/src/android/animation/cts/
DAnimatorListenerAdapterTest.java37 AnimatorListenerAdapter adapter = new MyAdapter(); in testNullOk() local
38 adapter.onAnimationStart(null); in testNullOk()
39 adapter.onAnimationEnd(null); in testNullOk()
40 adapter.onAnimationRepeat(null); in testNullOk()
41 adapter.onAnimationCancel(null); in testNullOk()
42 adapter.onAnimationPause(null); in testNullOk()
43 adapter.onAnimationResume(null); in testNullOk()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DTestListActivity.java65 ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
67 adapter.add(TestListAdapter.TestListItem.newCategory(this, in onCreate()
69 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
73 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
77 adapter.add(TestListAdapter.TestListItem.newCategory(this, in onCreate()
79 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
83 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
87 adapter.add(TestListAdapter.TestListItem.newCategory(this, in onCreate()
89 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
93 adapter.add(TestListAdapter.TestListItem.newTest(this, in onCreate()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionListenerAdapterTest.java37 TransitionListenerAdapter adapter = new MyAdapter(); in testNullOk() local
38 adapter.onTransitionStart(null); in testNullOk()
39 adapter.onTransitionEnd(null); in testNullOk()
40 adapter.onTransitionCancel(null); in testNullOk()
41 adapter.onTransitionPause(null); in testNullOk()
42 adapter.onTransitionResume(null); in testNullOk()
/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/
DDisallowAppsControlActivity.java90 private void setupCheckDisabledUninstallButtonTest(ArrayTestListAdapter adapter) { in setupCheckDisabledUninstallButtonTest() argument
91 adapter.add(new DialogTestListItem(this, in setupCheckDisabledUninstallButtonTest()
98 private void setupCheckDisabledForceStopTest(ArrayTestListAdapter adapter) { in setupCheckDisabledForceStopTest() argument
99 adapter.add(new DialogTestListItem(this, in setupCheckDisabledForceStopTest()
106 private void setupCheckDisabledAppStorageButtonsTest(ArrayTestListAdapter adapter) { in setupCheckDisabledAppStorageButtonsTest() argument
107 adapter.add(new DialogTestListItem(this, in setupCheckDisabledAppStorageButtonsTest()
115 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
116 setupCheckDisabledUninstallButtonTest(adapter); in setupTests()
117 setupCheckDisabledForceStopTest(adapter); in setupTests()
118 setupCheckDisabledAppStorageButtonsTest(adapter); in setupTests()
DByodFlowTestActivity.java203 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
451 adapter.add(mProfileOwnerInstalled); in setupTests()
452 adapter.add(mDiskEncryptionTest); in setupTests()
456 adapter.add(mWorkAppVisibleTest); in setupTests()
459 adapter.add(mWorkNotificationBadgedTest); in setupTests()
460 adapter.add(mWorkStatusBarIconTest); in setupTests()
461 adapter.add(mWorkStatusBarToastTest); in setupTests()
464 adapter.add(mProfileAccountVisibleTest); in setupTests()
465 adapter.add(mDeviceAdminVisibleTest); in setupTests()
466 adapter.add(mCredSettingsVisibleTest); in setupTests()
[all …]
DKeyguardDisabledFeaturesActivity.java105 protected void setupDisableTrustAgentsTest(ArrayTestListAdapter adapter) { in setupDisableTrustAgentsTest() argument
106 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_trust_agents, in setupDisableTrustAgentsTest()
112 protected void setupDisableUnredactedWorkNotification(ArrayTestListAdapter adapter) { in setupDisableUnredactedWorkNotification() argument
113 adapter.add(new DialogTestListItemWithIcon(this, in setupDisableUnredactedWorkNotification()
121 protected void setupFingerprintTests(ArrayTestListAdapter adapter) { in setupFingerprintTests() argument
124 adapter.add(new DialogTestListItem(this, in setupFingerprintTests()
129 adapter.add(new DialogTestListItem(this, R.string.provisioning_byod_disable_fingerprint, in setupFingerprintTests()
137 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
139 setupDisableTrustAgentsTest(adapter); in setupTests()
141 setupDisableUnredactedWorkNotification(adapter); in setupTests()
[all …]
DDeviceOwnerPositiveTestActivity.java109 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
110 adapter.add(TestListItem.newCategory(this, R.string.device_owner_positive_category)); in onCreate()
112 addTestsToAdapter(adapter); in onCreate()
114 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
121 setTestListAdapter(adapter); in onCreate()
151 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
152 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, in addTestsToAdapter()
158 adapter.add(createInteractiveTestItem(this, DEVICE_ADMIN_SETTINGS_ID, in addTestsToAdapter()
168 adapter.add(createTestItem(this, WIFI_LOCKDOWN_TEST_ID, in addTestsToAdapter()
173 adapter.add(createInteractiveTestItem(this, DISALLOW_CONFIG_WIFI_ID, in addTestsToAdapter()
[all …]
DDeviceOwnerNegativeTestActivity.java57 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
58 adapter.add(TestListItem.newCategory(this, R.string.device_owner_negative_category)); in onCreate()
60 addTestsToAdapter(adapter); in onCreate()
62 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
69 setTestListAdapter(adapter); in onCreate()
72 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
89 adapter.add(TestListItem.newTest(this, provisioningNegativeTestInfo.getTitle(), in addTestsToAdapter()
91 adapter.add(TestListItem.newTest(this, R.string.enterprise_privacy_quick_settings_negative, in addTestsToAdapter()
101 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_KEYGUARD_NEGATIVE, in addTestsToAdapter()
105 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_ADD_ACCOUNT_NEGATIVE, in addTestsToAdapter()
DEnterprisePrivacyTestListActivity.java85 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
86 addTestsToAdapter(adapter); in onCreate()
87 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
93 setTestListAdapter(adapter); in onCreate()
132 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
133 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_PAGE, in addTestsToAdapter()
137 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_NETWORK_LOGGING, in addTestsToAdapter()
142 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_BUG_REPORT, in addTestsToAdapter()
147 adapter.add(buildCommandTest(ENTERPRISE_PRIVACY_SECURITY_LOGGING, in addTestsToAdapter()
152 adapter.add(createInteractiveTestItem(this, ENTERPRISE_PRIVACY_ENTERPRISE_INSTALLED_APPS, in addTestsToAdapter()
[all …]
DDeviceOwnerRequestingBugreportTestActivity.java91 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
92 adapter.add(TestListItem.newCategory(this, in onCreate()
95 addTestsToAdapter(adapter); in onCreate()
97 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
104 setTestListAdapter(adapter); in onCreate()
133 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
134 adapter.add(createTestItem(this, CHECK_DEVICE_OWNER_TEST_ID, in addTestsToAdapter()
140 adapter.add(createInteractiveTestItem(this, BUGREPORT_SHARING_DECLINED_WHILE_BEING_TAKEN, in addTestsToAdapter()
148 adapter.add(createInteractiveTestItem(this, BUGREPORT_SHARING_ACCEPTED_WHILE_BEING_TAKEN, in addTestsToAdapter()
156 adapter.add(createInteractiveTestItem(this, in addTestsToAdapter()
[all …]
DManagedUserPositiveTestActivity.java75 final ArrayTestListAdapter adapter = new ArrayTestListAdapter(this); in onCreate() local
76 adapter.add(TestListItem.newCategory(this, R.string.managed_user_positive_category)); in onCreate()
78 addTestsToAdapter(adapter); in onCreate()
80 adapter.registerDataSetObserver(new DataSetObserver() { in onCreate()
87 setTestListAdapter(adapter); in onCreate()
103 private void addTestsToAdapter(final ArrayTestListAdapter adapter) { in addTestsToAdapter() argument
104 adapter.add(createTestItem(this, CHECK_AFFILIATED_PROFILE_OWNER_TEST_ID, in addTestsToAdapter()
110 adapter.add(createInteractiveTestItem(this, DEVICE_ADMIN_SETTINGS_ID, in addTestsToAdapter()
119 adapter.add(createInteractiveTestItem(this, DISABLE_STATUS_BAR_TEST_ID, in addTestsToAdapter()
136 adapter.add(createInteractiveTestItem(this, DISABLE_KEYGUARD_TEST_ID, in addTestsToAdapter()
[all …]
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()
/cts/tests/tests/content/src/android/content/cts/
DDeferSyncTest.java108 AbstractThreadedSyncAdapter adapter = NotAlwaysSyncableSyncService.getInstance( in deferSyncAndMakeSyncable() local
110 when(adapter.onUnsyncableAccount()).thenReturn(false); in deferSyncAndMakeSyncable()
113 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onUnsyncableAccount(); in deferSyncAndMakeSyncable()
120 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndMakeSyncable()
133 AbstractThreadedSyncAdapter adapter = NotAlwaysSyncableSyncService.getInstance( in deferSyncAndReportIsReady() local
135 when(adapter.onUnsyncableAccount()).thenReturn(false); in deferSyncAndReportIsReady()
138 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onUnsyncableAccount(); in deferSyncAndReportIsReady()
141 when(adapter.onUnsyncableAccount()).thenReturn(true); in deferSyncAndReportIsReady()
143 verify(adapter, atLeast(1)).onUnsyncableAccount(); in deferSyncAndReportIsReady()
146 verify(adapter, timeout(SYNC_TIMEOUT_MILLIS)).onPerformSync(any(), in deferSyncAndReportIsReady()
[all …]
/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/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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminKeyguardDisabledFeaturesActivity.java58 protected void setupTests(ArrayTestListAdapter adapter) { in setupTests() argument
59 setupFingerprintTests(adapter); in setupTests()
61 setupDisableTrustAgentsTest(adapter); in setupTests()
65 adapter.add(new DialogTestListItem(this, R.string.device_admin_keyguard_disable_camera, in setupTests()
71 adapter.add(new DialogTestListItem(this, R.string.device_admin_disable_notifications, in setupTests()

1234