Home
last modified time | relevance | path

Searched refs:mAdapter (Results 1 – 25 of 27) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothTest.java44 private BluetoothAdapter mAdapter; field in BluetoothTest
49 mAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp()
50 assertNotNull(mAdapter); in setUp()
51 mBtWasEnabled = mAdapter.isEnabled(); in setUp()
55 if (mBtWasEnabled != mAdapter.isEnabled()) { in tearDown()
77 assertTrue(BluetoothAdapter.checkBluetoothAddress(mAdapter.getAddress())); in testGetAddress()
85 BluetoothServerSocket socket = mAdapter.listenUsingRfcommWithServiceRecord( in testListenUsingRfcommWithServiceRecord()
100 mAdapter.getRemoteDevice((String)null); in testGetRemoteDevice()
105 mAdapter.getRemoteDevice("00:00:00:00:00:00:00:00"); in testGetRemoteDevice()
110 mAdapter.getRemoteDevice((byte[])null); in testGetRemoteDevice()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java33 protected TestListAdapter mAdapter; field in AbstractTestListActivity
36 mAdapter = adapter; in setTestListAdapter()
37 setListAdapter(mAdapter); in setTestListAdapter()
38 mAdapter.loadTestResults(); in setTestListAdapter()
42 TestListItem item = mAdapter.getItem(position); in getIntent()
77 mAdapter.setTestResult(testResult); in handleLaunchTestResult()
DTestResultsReport.java77 private final TestListAdapter mAdapter; field in TestResultsReport
81 this.mAdapter = adapter; in TestResultsReport()
117 int count = mAdapter.getCount(); in getContents()
119 TestListItem item = mAdapter.getItem(i); in getContents()
124 xml.attribute(null, "result", getTestResultString(mAdapter.getTestResult(i))); in getContents()
126 String details = mAdapter.getTestDetails(i); in getContents()
134 ReportLog reportLog = mAdapter.getReportLog(i); in getContents()
DReportExporter.java44 private final TestListAdapter mAdapter; field in ReportExporter
48 this.mAdapter = adapter; in ReportExporter()
59 TestResultsReport report = new TestResultsReport(mContext, mAdapter); in doInBackground()
DTestListActivity.java129 mAdapter.clearTestResults(); in handleClearItemSelected()
135 TestResultsReport report = new TestResultsReport(this, mAdapter); in handleViewItemSelected()
146 new ReportExporter(this, mAdapter).execute(); in handleExportItemSelected()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java32 private final ExpandableListAdapter mAdapter; field in ExpandableListTester
47 mAdapter = mExpandableListView.getExpandableListAdapter(); in ExpandableListTester()
84 int groupCount = mAdapter.getGroupCount(); in testContextMenus()
101 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testContextMenus()
136 Assert.assertTrue("Not enough groups", groupIndex < mAdapter.getGroupCount()); in expandAGroup()
152 final int groupCount = mAdapter.getGroupCount(); in testConvertionBetweenFlatAndPackedOnGroups()
178 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testConvertionBetweenFlatAndPackedOnChildren()
207 final int groupCount = mAdapter.getGroupCount(); in testSelectedPositionOnGroups()
232 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testSelectedPositionOnChildren()
DExpandableListViewBasicTest.java37 private ExpandableListAdapter mAdapter; field in ExpandableListViewBasicTest
56 mAdapter = mExpandableListView.getExpandableListAdapter(); in setUp()
117 mAdapter instanceof BaseExpandableListAdapter); in testExpandedGroupMovement()
118 final BaseExpandableListAdapter adapter = (BaseExpandableListAdapter) mAdapter; in testExpandedGroupMovement()
DAutoCompleteTextViewTest.java66 ArrayAdapter<String> mAdapter; field in AutoCompleteTextViewTest
101 mAdapter = new ArrayAdapter<String>(mActivity, in setUp()
183 Filter filter = mAdapter.getFilter(); in testAccessAdapter()
185 autoCompleteTextView.setAdapter(mAdapter); in testAccessAdapter()
186 assertSame(mAdapter, autoCompleteTextView.getAdapter()); in testAccessAdapter()
241 autoCompleteTextView.setAdapter(mAdapter); in testConvertSelectionToString()
389 mAutoCompleteTextView.setAdapter(mAdapter); in testOnFilterComplete()
448 mAutoCompleteTextView.setAdapter(mAdapter); in testPerformFiltering()
526 mAutoCompleteTextView.setAdapter(mAdapter); in testPerformCompletion()
625 mAutoCompleteTextView.setAdapter(mAdapter); in testAccessListSelection()
DExpandableListSimple.java38 ((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged(); in onCreateOptionsMenu()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DSimpleReaderActivity.java37 NfcAdapter mAdapter; field in SimpleReaderActivity
56 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
78 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onResume()
171 mAdapter.disableReaderMode(this); in onItemSelected()
172 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onItemSelected()
179 mAdapter.disableReaderMode(this); in onItemSelected()
180 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_B | in onItemSelected()
DProtocolParamsReaderActivity.java21 NfcAdapter mAdapter; field in ProtocolParamsReaderActivity
33 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
41 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onResume()
DBaseEmulatorActivity.java29 NfcAdapter mAdapter; field in BaseEmulatorActivity
56 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
57 mCardEmulation = CardEmulation.getInstance(mAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
DHceFEmulatorActivity.java33 NfcAdapter mAdapter; field in HceFEmulatorActivity
53 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
54 mNfcFCardEmulation = NfcFCardEmulation.getInstance(mAdapter); in onCreate()
DHceFReaderActivity.java39 NfcAdapter mAdapter; field in HceFReaderActivity
48 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate()
54 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_F | in onResume()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DPolicySerializationTestActivity.java63 private PolicyAdapter mAdapter; field in PolicySerializationTestActivity
100 mAdapter = new PolicyAdapter(this); in onCreate()
101 setListAdapter(mAdapter); in onCreate()
108 mAdapter.clear(); in loadPolicy()
114 mAdapter.add(item); in loadPolicy()
121 mAdapter.clear(); in generateRandomPolicy()
125 mAdapter.add(item); in generateRandomPolicy()
183 mApplyPolicyButton.setEnabled(!mAdapter.isEmpty()); in updateWidgets()
186 boolean enablePass = !mAdapter.isEmpty(); in updateWidgets()
187 int numItems = mAdapter.getCount(); in updateWidgets()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DRequesterTestListActivity.java46 protected TestListAdapter mAdapter; field in RequesterTestListActivity
69 mAdapter = getTestListAdapter(); in onCreate()
70 setTestListAdapter(mAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerHardwareScanFilterActivity.java45 private MapAdapter mAdapter; field in BleScannerHardwareScanFilterActivity
56 mAdapter = new MapAdapter(); in onCreate()
57 mScanResultListView.setAdapter(mAdapter); in onCreate()
102 mAdapter.addItem(uuid + " : " + data);
DBluetoothChatService.java68 private final BluetoothAdapter mAdapter; field in BluetoothChatService
89 mAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothChatService()
285 tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME_SECURE, mUuid); in AcceptThread()
287 tmp = mAdapter.listenUsingInsecureRfcommWithServiceRecord(NAME_INSECURE, mUuid); in AcceptThread()
387 mAdapter.cancelDiscovery(); in run()
DBleScannerService.java81 private BluetoothAdapter mAdapter; field in BleScannerService
96 mAdapter = mBluetoothManager.getAdapter(); in onCreate()
97 mScanner = mAdapter.getBluetoothLeScanner(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java59 private SuidFilesAdapter mAdapter; field in SuidFilesActivity
70 mAdapter = new SuidFilesAdapter(); in onCreate()
71 setListAdapter(mAdapter); in onCreate()
121 File file = mAdapter.getItem(position); in onListItemClick()
258 mAdapter.add(result); in onPostExecute()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupAccessibilityTestActivity.java115 private BackupAdapter mAdapter; field in BackupAccessibilityTestActivity
125 mAdapter = new BackupAdapter(this); in onCreate()
126 setListAdapter(mAdapter); in onCreate()
196 mAdapter.clear(); in onPostExecute()
197 mAdapter.addAll(result); in onPostExecute()
DBackupTestActivity.java75 private BackupAdapter mAdapter; field in BackupTestActivity
85 mAdapter = new BackupAdapter(this); in onCreate()
86 setListAdapter(mAdapter); in onCreate()
175 mAdapter.clear(); in onPostExecute()
176 mAdapter.addAll(result); in onPostExecute()
/cts/tests/tests/widget/src/android/widget/cts/util/
DExpandableListScenario.java42 protected ExpandableListAdapter mAdapter; field in ExpandableListScenario
57 ((ExpandableListView) listView).setAdapter(mAdapter = createAdapter()); in setAdapter()
278 final ExpandableListAdapter adapter = mAdapter; in findGroupWithNumChildren()
296 return mAdapter; in getAdapter()
/cts/tests/app/app/src/android/app/stubs/
DExpandableListTestActivity.java44 private ExpandableListAdapter mAdapter; field in ExpandableListTestActivity
69 mAdapter = new SimpleExpandableListAdapter(this, groupData, in onCreate()
74 setListAdapter(mAdapter); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java70 private ArrayAdapter<SelectableResolution> mAdapter; field in PhotoCaptureActivity
223 mAdapter = new ArrayAdapter<SelectableResolution>( in onResume()
226 mResolutionSpinner.setAdapter(mAdapter); in onResume()
320 mAdapter.notifyDataSetChanged(); in onActivityResult()

12