/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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 33 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()
|
D | TestResultsReport.java | 71 private final TestListAdapter mAdapter; field in TestResultsReport 75 this.mAdapter = adapter; in TestResultsReport() 120 int count = mAdapter.getCount(); in generateResult() 123 TestListItem item = mAdapter.getItem(i); in generateResult() 126 TestStatus resultStatus = getTestResultStatus(mAdapter.getTestResult(i)); in generateResult() 134 ReportLog reportLog = mAdapter.getReportLog(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()
|
D | ReportExporter.java | 71 private final TestListAdapter mAdapter; field in ReportExporter 75 this.mAdapter = adapter; in ReportExporter() 86 TestResultsReport report = new TestResultsReport(mContext, mAdapter); in doInBackground()
|
/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 | 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/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/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/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/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/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 | 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 | BleConnectionPriorityClientBaseActivity.java | 268 private BluetoothAdapter mAdapter; field in BleConnectionPriorityClientBaseActivity.BluetoothPowerSwitcher 271 if (mAdapter == null) { in executeSwitching() 273 mAdapter = btMgr.getAdapter(); in executeSwitching() 283 mAdapter.disable(); in executeSwitching() 298 mAdapter.enable(); in onReceive()
|
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()
|
D | BleScannerService.java | 79 private BluetoothAdapter mAdapter; field in BleScannerService 94 mAdapter = mBluetoothManager.getAdapter(); in onCreate() 95 mScanner = mAdapter.getBluetoothLeScanner(); in onCreate()
|
D | BleClientTestBaseActivity.java | 429 private BluetoothAdapter mAdapter; field in BleClientTestBaseActivity.BluetoothPowerSwitcher 432 if (mAdapter == null) { in executeSwitching() 434 mAdapter = btMgr.getAdapter(); in executeSwitching() 444 mAdapter.disable(); in executeSwitching() 459 mAdapter.enable(); in onReceive()
|
/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/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()
|