/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothTest.java | 44 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/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | LeL2capSocketTest.java | 30 private BluetoothAdapter mAdapter = null; field in LeL2capSocketTest 38 mAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 40 + "Does this device have a Bluetooth adapter?", mAdapter); in setUp() 41 if (!mAdapter.isEnabled()) { in setUp() 42 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp() 51 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown() 52 mAdapter = null; in tearDown() 62 assertTrue("Bluetooth is not enabled", mAdapter.isEnabled()); in testOpenInsecureLeL2capServerSocketOnce() 64 final BluetoothServerSocket serverSocket = mAdapter.listenUsingInsecureL2capChannel(); in testOpenInsecureLeL2capServerSocketOnce() 77 assertTrue("Bluetooth is not enabled", mAdapter.isEnabled()); in testOpenInsecureLeL2capServerSocketRepeatedly() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AutoCompleteTextViewTest.java | 106 private ArrayAdapter<String> mAdapter; field in AutoCompleteTextViewTest 155 mAdapter = new ArrayAdapter<>(mActivity, in setup() 233 mAutoCompleteTextView.setAdapter(mAdapter); in testAccessAdapter() 234 assertSame(mAdapter, mAutoCompleteTextView.getAdapter()); in testAccessAdapter() 253 Filter filter = mAdapter.getFilter(); in testAccessFilter() 255 autoCompleteTextView.setAdapter(mAdapter); in testAccessFilter() 256 assertSame(mAdapter, autoCompleteTextView.getAdapter()); in testAccessFilter() 318 autoCompleteTextView.setAdapter(mAdapter); in testConvertSelectionToString() 382 mAutoCompleteTextView.setAdapter(mAdapter); in testDropDownMetrics() 409 mActivityRule.runOnUiThread(() -> mAutoCompleteTextView.setAdapter(mAdapter)); in testDropDownBackground() [all …]
|
D | ExpandableListTester.java | 37 private final ExpandableListAdapter mAdapter; field in ExpandableListTester 47 mAdapter = mExpandableListView.getExpandableListAdapter(); in ExpandableListTester() 88 int groupCount = mAdapter.getGroupCount(); in testContextMenus() 105 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testContextMenus() 140 Assert.assertTrue("Not enough groups", groupIndex < mAdapter.getGroupCount()); in expandAGroup() 156 final int groupCount = mAdapter.getGroupCount(); in testConversionBetweenFlatAndPackedOnGroups() 182 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testConversionBetweenFlatAndPackedOnChildren() 211 final int groupCount = mAdapter.getGroupCount(); in testSelectedPositionOnGroups() 236 final int childrenCount = mAdapter.getChildrenCount(groupIndex); in testSelectedPositionOnChildren()
|
D | ExpandableListViewBasicTest.java | 54 private ExpandableListAdapter mAdapter; field in ExpandableListViewBasicTest 67 mAdapter = mExpandableListView.getExpandableListAdapter(); in setup() 132 mAdapter instanceof BaseExpandableListAdapter); in testExpandedGroupMovement() 133 final BaseExpandableListAdapter adapter = (BaseExpandableListAdapter) mAdapter; in testExpandedGroupMovement()
|
D | ExpandableListBasic.java | 36 if (mAdapter != null) { in onCreateOptionsMenu() 37 ((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged(); in onCreateOptionsMenu()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 37 protected TestListAdapter mAdapter; field in AbstractTestListActivity 50 mAdapter = adapter; in setTestListAdapter() 51 setListAdapter(mAdapter); in setTestListAdapter() 52 mAdapter.loadTestResults(); in setTestListAdapter() 57 TestListItem item = mAdapter.getItem(position); in getIntent() 98 mAdapter.setTestResult(testResult); in handleLaunchTestResult()
|
D | TestResultsReport.java | 79 private final TestListAdapter mAdapter; field in TestResultsReport 83 this.mAdapter = adapter; in TestResultsReport() 128 int count = mAdapter.getCount(); in generateResult() 131 TestListItem item = mAdapter.getItem(i); in generateResult() 134 TestStatus resultStatus = getTestResultStatus(mAdapter.getTestResult(i)); in generateResult() 140 String details = mAdapter.getTestDetails(i); in generateResult() 143 ReportLog reportLog = mAdapter.getReportLog(i); in generateResult() 148 TestResultHistoryCollection historyCollection = mAdapter.getHistoryCollection(i); in generateResult()
|
D | TestListActivity.java | 134 mAdapter.clearTestResults(); in handleClearItemSelected() 147 TestResultsReport report = new TestResultsReport(this, mAdapter); in handleViewItemSelected() 154 new ReportExporter(this, mAdapter).execute(); in handleExportItemSelected()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/ |
D | SimpleOffhostReaderActivity.java | 56 NfcAdapter mAdapter; field in SimpleOffhostReaderActivity 77 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() 99 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onResume() 152 mAdapter.disableReaderMode(this); in onTagDiscovered() 198 mAdapter.disableReaderMode(this); in onItemSelected() 199 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onItemSelected() 206 mAdapter.disableReaderMode(this); in onItemSelected() 207 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_B | in onItemSelected()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 64 private PolicyAdapter mAdapter; field in PolicySerializationTestActivity 102 mAdapter = new PolicyAdapter(this); in onCreate() 103 setListAdapter(mAdapter); in onCreate() 110 mAdapter.clear(); in loadPolicy() 116 mAdapter.add(item); in loadPolicy() 123 mAdapter.clear(); in generateRandomPolicy() 127 mAdapter.add(item); in generateRandomPolicy() 185 mApplyPolicyButton.setEnabled(!mAdapter.isEmpty()); in updateWidgets() 188 boolean enablePass = !mAdapter.isEmpty(); in updateWidgets() 189 int numItems = mAdapter.getCount(); in updateWidgets() [all …]
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | NfcPreferredPaymentTest.java | 43 private NfcAdapter mAdapter; field in NfcPreferredPaymentTest 54 mAdapter = NfcAdapter.getDefaultAdapter(InstrumentationRegistry.getContext()); in setUp() 55 assertNotNull(mAdapter); in setUp() 56 mCardEmulation = CardEmulation.getInstance(mAdapter); in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | SimpleReaderActivity.java | 37 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()
|
D | ProtocolParamsReaderActivity.java | 21 NfcAdapter mAdapter; field in ProtocolParamsReaderActivity 33 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() 41 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onResume()
|
D | BaseEmulatorActivity.java | 29 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/bluetooth/ |
D | BluetoothChatService.java | 68 private final BluetoothAdapter mAdapter; field in BluetoothChatService 92 mAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothChatService() 106 mAdapter = BluetoothAdapter.getDefaultAdapter(); in BluetoothChatService() 340 tmp = mAdapter.listenUsingL2capChannel(); in AcceptThread() 342 tmp = mAdapter.listenUsingInsecureL2capChannel(); in AcceptThread() 346 tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME_SECURE, mUuid); in AcceptThread() 348 … tmp = mAdapter.listenUsingInsecureRfcommWithServiceRecord(NAME_INSECURE, mUuid); in AcceptThread() 484 mAdapter.cancelDiscovery(); in run()
|
D | BleConnectionPriorityClientBaseActivity.java | 229 private BluetoothAdapter mAdapter; field in BleConnectionPriorityClientBaseActivity.BluetoothPowerSwitcher 232 if (mAdapter == null) { in executeSwitching() 234 mAdapter = btMgr.getAdapter(); in executeSwitching() 244 mAdapter.disable(); in executeSwitching() 259 mAdapter.enable(); in onReceive()
|
D | BleScannerHardwareScanFilterActivity.java | 45 private MapAdapter mAdapter; field in BleScannerHardwareScanFilterActivity 56 mAdapter = new MapAdapter(); in onCreate() 57 mScanResultListView.setAdapter(mAdapter); in onCreate() 102 mAdapter.addItem(uuid + " : " + data);
|
D | BleEncryptedClientBaseActivity.java | 260 private BluetoothAdapter mAdapter; field in BleEncryptedClientBaseActivity.BluetoothPowerSwitcher 263 if (mAdapter == null) { in executeSwitching() 265 mAdapter = btMgr.getAdapter(); in executeSwitching() 275 mAdapter.disable(); in executeSwitching() 289 mAdapter.enable(); in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/ |
D | HceFEmulatorActivity.java | 33 NfcAdapter mAdapter; field in HceFEmulatorActivity 53 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() 54 mNfcFCardEmulation = NfcFCardEmulation.getInstance(mAdapter); in onCreate()
|
D | HceFReaderActivity.java | 39 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/tests/tests/widget/src/android/widget/cts/util/ |
D | ExpandableListScenario.java | 42 protected ExpandableListAdapter mAdapter; field in ExpandableListScenario 57 mAdapter = createAdapter(); in setAdapter() 58 if (mAdapter != null) { in setAdapter() 59 ((ExpandableListView) listView).setAdapter(mAdapter); in setAdapter() 281 if (mAdapter == null) { in findGroupWithNumChildren() 285 final ExpandableListAdapter adapter = mAdapter; in findGroupWithNumChildren()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
D | RequesterTestListActivity.java | 46 protected TestListAdapter mAdapter; field in RequesterTestListActivity 69 mAdapter = getTestListAdapter(); in onCreate() 70 setTestListAdapter(mAdapter); in onCreate()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesChangeTest.java | 73 private PrintDocumentAdapter mAdapter; field in PrinterCapabilitiesChangeTest 183 mAdapter = createMockPrintDocumentAdapter( in setUpPrinting() 223 makeDefaultPrinter(mAdapter, PRINTER_NAME); in setUpPrinting() 236 print(mAdapter); in changeCapabilities()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | ExpandableListTestActivity.java | 47 private ExpandableListAdapter mAdapter; field in ExpandableListTestActivity 72 mAdapter = new SimpleExpandableListAdapter(this, groupData, in onCreate() 77 setListAdapter(mAdapter); in onCreate()
|