/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothTest.java | 43 private BluetoothAdapter mAdapter; field in BluetoothTest 48 mAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 49 assertNotNull(mAdapter); in setUp() 50 mBtWasEnabled = mAdapter.isEnabled(); in setUp() 54 if (mBtWasEnabled != mAdapter.isEnabled()) { in tearDown() 76 assertTrue(BluetoothAdapter.checkBluetoothAddress(mAdapter.getAddress())); in testGetAddress() 84 BluetoothServerSocket socket = mAdapter.listenUsingRfcommWithServiceRecord( in testListenUsingRfcommWithServiceRecord() 99 mAdapter.getRemoteDevice((String)null); in testGetRemoteDevice() 104 mAdapter.getRemoteDevice("00:00:00:00:00:00:00:00"); in testGetRemoteDevice() 109 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 …]
|
D | BluetoothLeAudioTest.java | 45 private BluetoothAdapter mAdapter; field in BluetoothLeAudioTest 62 mAdapter = manager.getAdapter(); in setUp() 63 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp() 78 mAdapter.getProfileProxy(getContext(), new BluetoothLeAudioServiceListener(), in setUp() 87 if (mAdapter != null && mBluetoothLeAudio != null) { in tearDown() 92 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown() 93 mAdapter = null; in tearDown() 103 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in testGetConnectedDevices() 116 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in testGetDevicesMatchingConnectionStates() 130 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in testGetConnectionState() [all …]
|
D | BluetoothDeviceTest.java | 32 private BluetoothAdapter mAdapter; field in BluetoothDeviceTest 45 mAdapter = manager.getAdapter(); in setUp() 46 assertTrue(BTAdapterUtils.enableAdapter(mAdapter, mContext)); in setUp() 54 assertTrue(BTAdapterUtils.disableAdapter(mAdapter, mContext)); in tearDown() 55 mAdapter = null; in tearDown() 69 BluetoothDevice device = mAdapter.getRemoteDevice(deviceAddress); in test_setAlias_getAlias()
|
/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() 105 mAdapter.setTestResult(testResult); in handleLaunchTestResult()
|
D | TestResultsReport.java | 70 private final TestListAdapter mAdapter; field in TestResultsReport 74 this.mAdapter = adapter; in TestResultsReport() 144 int count = mAdapter.getCount(displayMode); in getCaseResult() 146 TestListItem item = mAdapter.getItem(displayMode, i); in getCaseResult() 150 getTestResultStatus(mAdapter.getTestResult(displayMode, i)); in getCaseResult() 156 String details = mAdapter.getTestDetails(displayMode, i); in getCaseResult() 159 ReportLog reportLog = mAdapter.getReportLog(displayMode, i); in getCaseResult() 164 TestResultHistoryCollection historyCollection = mAdapter in getCaseResult()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
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 | 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 | ExpandableListBasic.java | 36 if (mAdapter != null) { in onCreateOptionsMenu() 37 ((BaseExpandableListAdapter) mAdapter).notifyDataSetChanged(); in onCreateOptionsMenu()
|
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()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/admin/ |
D | PolicySerializationTestActivity.java | 67 private PolicyAdapter mAdapter; field in PolicySerializationTestActivity 103 mAdapter = new PolicyAdapter(this); in onCreate() 104 setListAdapter(mAdapter); in onCreate() 111 mAdapter.clear(); in loadPolicy() 118 mAdapter.add(item); in loadPolicy() 127 mAdapter.clear(); in generateRandomPolicy() 132 mAdapter.add(item); in generateRandomPolicy() 197 mApplyPolicyButton.setEnabled(!mAdapter.isEmpty()); in updateWidgets() 200 boolean enablePass = !mAdapter.isEmpty(); in updateWidgets() 201 int numItems = mAdapter.getCount(); in updateWidgets() [all …]
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | NfcPreferredPaymentTest.java | 51 private NfcAdapter mAdapter; field in NfcPreferredPaymentTest 64 mAdapter = NfcAdapter.getDefaultAdapter(mContext); in setUp() 65 assertNotNull(mAdapter); in setUp() 66 mCardEmulation = CardEmulation.getInstance(mAdapter); in setUp()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/nfc/offhost/ |
D | SimpleOffhostReaderActivity.java | 56 NfcAdapter mAdapter; field in SimpleOffhostReaderActivity 78 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() 100 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onResume() 198 mAdapter.disableReaderMode(this); in onTagDiscovered() 289 mAdapter.disableReaderMode(this); in onItemSelected() 290 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_A | in onItemSelected() 297 mAdapter.disableReaderMode(this); in onItemSelected() 298 mAdapter.enableReaderMode(this, this, NfcAdapter.FLAG_READER_NFC_B | in onItemSelected()
|
/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/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/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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | BaseEmulatorActivity.java | 29 NfcAdapter mAdapter; field in BaseEmulatorActivity 58 mAdapter = NfcAdapter.getDefaultAdapter(this); in onCreate() 59 mCardEmulation = CardEmulation.getInstance(mAdapter); in onCreate()
|
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()
|
/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()
|