summaryrefslogtreecommitdiffstats
path: root/core/java/android/bluetooth/BluetoothAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* BT: Set persiste Bluetooth State during enable timeout caseGurpreet Ghai2016-07-021-1/+3
| | | | | | | | | | | | | | | | | | | | | Use case: When enable timeout occurs during S&S testing and Bluetooth state is moved from Turning On to Off. Steps: Changes related to enable timeout case, to test the changes, S&S testing can be done. Failure: Changes done to handle Bluetooth enable timeout case when Bluetooth state changes from Turning On to Off. Root cause: Setting Bluetooth Persist state to handle the enable timeout case so that Bluetooth doesnot self enable after enable timeout case is handled. Fix: Setting the Bluetooth Persist State to Off when enable timeout occurs. Change-Id: I17b3b05020eb7469666e6d8c88c86df7764b4024 CRs-Fixed: 1006444
* BluetoothAdapter: disable logspewAlexander Martinz2016-02-081-1/+1
| | | | | Change-Id: I3156d135c6b49c58a7f4c69ac7d64bd088bf0f14 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* Udpate instrumentation codeWilliam Clark2015-11-301-10/+10
| | | | | | Added changes to support new features in QSSP Change-Id: I92c0a4eb3cb5363fbf08185f25644a3202c38788
* AppOps: Add Bluetooth enable control into AppOpsShashank Mittal2015-10-291-2/+5
| | | | | | Check user permission before enabling bluetooth. Change-Id: I9af341157df05104d3c5a52874538eefdbe14c4b
* SEEMP: Add more framework instrumentationWilliam Clark2015-10-061-0/+10
| | | | | | | | | Instrument framework files to log events of interest. Conflicts: core/java/android/accounts/AccountManager.java Change-Id: Ia45651e6352586f910039b51cac2356f65f80010
* PBAP-C: Add support for dynamic SDP record creationHemant Gupta2015-10-061-1/+29
| | | | | | | | | | This patch adds support for dynamic creation of PBAP Client SDP record. Without this patch it is not possible to add pbap client sdp record when pbap client test application is launched, leading to BT spec violation and resulting in PTS IOPT test case TP/SDSS/BV-02 to fail. Change-Id: I420063c17637ec6c55af7ab23b267fc18f9b03ac
* Bluetooth: Add support for Map client over L2capNitin Shivpure2015-10-061-0/+54
| | | | | | | | | | | | | | - Adding the support for Map client(MAP1.2). - Add support to create & remove MNS sdp records. - Add support to enable & disable srm, Fews Message Access Profile opreations don't require SRM header in their pdu. Eg. UpdateInbox, SetMessageStatus. SetNotificationRegistration. - If obex based profile explicitly sets GET with final flag, then GET should always be sent as single packet request with final flag set. Change-Id: I89f51ecf8b7834f0b131d043a5f49811914e9635 CRs-Fixed: 754956
* Bluetooth: Expose l2cap api's to support bluetooth opp 1.2 featurePradeep Panigrahi2015-10-061-0/+29
| | | | | | | | | Add change to expose l2cap api's to create an insecure l2cap socket and api to listen on insecure l2cap socket to support OPP 1.2 CRs-fixed: 878140 Change-Id: I21ed672afb4ed5d2355ff0a0f9691af220921c1f
* Bluetooth: DUN: Add framework changes to support DUNNitin Shivpure2015-10-061-0/+7
| | | | | | | | | | | | | | | | Bluetooth DUN profile APIs added to the framework APIs. As DUN server supports only disconnection of DUN profile level connection this API is implemeted along with other APIs. It registers bluetooth state changed callback with the adapter service,once there is a change in the bluetooth state,it will bind/unbind the DUN service which is implemented in BluetoothExt.APK. DUN service, and other DUN Application layer are implemented in BluetoothExt.APK. CRs-Fixed: 557180 Change-Id: I6ce1204ac6138e28ad7486f2855f0f7444ad3886
* Bluetooth: Add support for HID Device Role (3/4)Hemant Gupta2015-10-061-0/+7
| | | | | | | | | | This patch adds the HID Device Role support in Bluetooth framework. Also AIDL and callback related files for HID Device role are added to provide interface for third party applications to communicate with HID device Service. Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2 CRs-Fixed: 573086
* Implement Bluetooth settings factory reset (2/5)Ajay Panicker2015-08-051-0/+19
| | | | | | | Implemented the factory reset function to be used to reset all bluetooth settings on device to factory default Bug: 16161518
* SAP: Make it possible to enforce a 16-digit pin code (4/5)Casper Bonde2015-06-091-6/+11
| | | | | | | | | | This change enable the posibility to enforce using a 16-digit pin or MITM for a RFCOMM or L2CAP connection. This is needed for the SIM access profile. Change-Id: I3205013f9e758c353381442a86845dab467780f8 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Add support for MITM for BluetoothSockets (1/4)Casper Bonde2015-06-031-4/+44
| | | | | | | | | This change adds an option to enforce Man-in-the-middle protection for the authentication process. This feature is needed for the Sim Access Profile. Change-Id: Ia3ef0caeb750f88608c9fa6bf6367d1c77de4cf3 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Expose a few system APIs for BLE scan only mode.Wei Wang2015-06-021-11/+15
| | | | | Bug: 21562349 Change-Id: Ifc58efcf01edac5b4f9e5266adb966e7bc492209
* Do not report WiFi and Bluetooth MAC addresses - framework.Svet Ganov2015-05-181-0/+8
| | | | | | | | | | | | As a part of the new runtime permissions work we are limiting the PII apps can access. BT and WiFi MAC addresses are PII and based on our research there is no valid use case for app dev to get these addresses aside of user tracking which we are trying to limit. bug:21078858 Change-Id: Ib48223b272c0fd4f5c36acc889d4f44df204b309
* Add bluetooth permission annotationsTor Norbye2015-05-151-1/+38
| | | | Change-Id: I5bc86f8ec6ea5c873f1e14dab0e0c47c5c9df7f7
* Allow obtaining BLE capabilities in BLE scan only mode.Wei Wang2015-05-071-7/+4
| | | | | Bug:20923734 Change-Id: I7f3e5fd4410da39922be4512e4ba6ccdeb32887d
* BluetoothSap class should not be publicAndre Eisenbach2015-05-041-1/+2
| | | | | Bug: 20823932 Change-Id: I87dfa10b994f7a14c123bb384925c08b34bfbe67
* Merge "Honor Ble scanning settings from Settings UI." into mnc-devWei Wang2015-05-011-22/+9
|\
| * Honor Ble scanning settings from Settings UI.Wei Wang2015-04-301-22/+9
| | | | | | | | | | | | Bug:20643039 Change-Id: Ib1465108e26b8537c9da1bfbb31a99d2e33da910
* | Fix typo.tturney2015-04-291-1/+1
|/ | | | | | bug: b/20610710 Change-Id: I7b8e0331daddadcb31f45650f5cd937b1f4f90ff
* Fix documentation - non-public API.Etan Cohen2015-04-241-3/+0
| | | | Change-Id: I418bf47b197936b2f50b231425312d5b6d272df8
* Bluetooth document fix: remove reference from open API to hidden entitiesEtan Cohen2015-04-241-4/+1
| | | | Change-Id: I183ae1083727d2e2b96aa503d0e90d81ce3b1a82
* Merge commit 'db1dbb8' into merge2Etan Cohen2015-04-241-2/+5
|\
| * Manage onfound/lost resources (1/2)Prerepa Viswanadham2015-04-211-2/+5
| | | | | | | | | | | | | | Provide error callback to app if advertisement tracking resources can't be reserved Change-Id: Ie66b2ec7a64b24bbdf3bb22003a4a7eb46623792
| * Fix make update-apiYorke Lee2015-04-151-6/+0
| | | | | | | | Change-Id: Iaee002c64096fbd6ba05d6484cc50840146a4af0
| * Add support for Bluetooth Sim Access Profile (2/4)Casper Bonde2015-04-151-0/+7
| | | | | | | | Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
* | Merge commit '6ddbb5e' into merge2Etan Cohen2015-04-241-0/+6
|\ \ | |/
| * Bluetooth LE background operation mode (2/2)Nitin Arora2015-04-151-8/+304
| | | | | | | | | | | | | | | | Changes include new framework APIs to enable and disable Bluetooth LE separately from Bluetooth Classic. Along with handling the new states in the Bluetooth manager service. Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
* | Reduce log spam in BluetoothAdapter for getState.Prerepa Viswanadham2015-04-231-1/+0
| | | | | | | | Change-Id: I38995fc55f12b000d58a769ed67aff623865169b
* | Fix make update-apiYorke Lee2015-04-151-6/+0
| | | | | | | | Change-Id: Iaee002c64096fbd6ba05d6484cc50840146a4af0
* | Add support for Bluetooth Sim Access Profile (2/4)Casper Bonde2015-04-151-0/+7
| | | | | | | | Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
* | Bluetooth LE background operation mode (2/2)Nitin Arora2015-04-151-8/+304
| | | | | | | | | | | | | | | | Changes include new framework APIs to enable and disable Bluetooth LE separately from Bluetooth Classic. Along with handling the new states in the Bluetooth manager service. Change-Id: Idf667981f48fcbcb6dfda1aa77ea8bab1b2361f0
* | am b5e0cfb..557d2f5 from mirror-m-wireless-internal-releaseVinit Deshpande2015-04-141-1/+47
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 557d2f5 Merge "Add ConnectivityManager.reportNetworkConnectivity() API" into m-wireless-dev ab5267a Fix onLost/onFound logic in isSettingsAndFilterComboAllowed bfd17b7 Add ConnectivityManager.reportNetworkConnectivity() API 238e0f9 OBEX Over L2CAP + SDP search API for BT profiles 31a94f4 Add ConnectivityManager.getActiveNetwork(). Rework NetID allocation in ConnectivityService so registerNetworkAgent() can return the allocated NetID. bf18bed Merge "Non-functional code cleanup of ConnectivityService." into m-wireless-dev db8784e Merge "Cleanup of Video Call pause functionality." into m-wireless-dev e75b9e3 Non-functional code cleanup of ConnectivityService. e593d0a Onfound onlost feature. 0326f58 Merge "API for config app." into m-wireless-dev e9b056f API for config app. d5351e7 RTT framework interface update 582b868 Unhide Network.openConnection(URL, Proxy). 0d719ca Fix typos in ConnectivityManager documentation. Change-Id: Ib4c88f6d7ad1b24227b032555c62a5804194384b
| * OBEX Over L2CAP + SDP search API for BT profilesCasper Bonde2015-04-111-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated OBEX to support SRM - Added support for OBEX over l2cap and SRM. - Minor bugfixes, and reduce CPU load ALOT - Added support to send responses without body data. - Extend BluetoothSocket to support L2CAP - Added functionality to get the channel number needed to be able to create an SDP record with the channel number. - Added interface to get socket type and max packet sizes. - Added interface to perform SDP search and get the resulting SDP record data. Change-Id: I9d37a00ce73dfffc0e3ce03eab5511ba3a86e5b8
* | Merge commit 'e593d0a' into merge_workPrerepa Viswanadham2015-04-101-0/+18
|\ \ | |/ | | | | Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
| * Onfound onlost feature.Prerepa Viswanadham2015-04-071-0/+18
| | | | | | | | | | Change-Id: I5475cb21183abab8cf04af486ff7692396801b92 Signed-off-by: Prerepa Viswanadham <dham@google.com>
* | Merge commit 'd91f193' into merge2Etan Cohen2015-04-011-0/+34
|\ \ | |/
| * Add API for BLE_SCAN_ALWAYS_AVAILABLE feature.Wei Wang2015-03-271-0/+34
| | | | | | | | Change-Id: I83e966d4db076db367ded71bfb50c39e57568156
* | Remove unused imports in frameworks/base.John Spurlock2015-02-281-3/+0
|/ | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Separate the protection of mProxyServiceStateCallbacks from that of mServiceMatthew Xie2015-02-061-19/+23
| | | | | | | The overuse of mManagerCallback caused a deaklock. Bug: 19264190 Change-Id: Iff20019ff0c99bb5f36435feb15e43e280a8e102
* Fix crash during Bluetooth on/off stress testAndre Eisenbach2014-10-291-1/+1
| | | | | Bug: 18106938 Change-Id: Icdeb736d89d5926264f2043455ccbc3760fd5d29
* am 248edc3e: Update javadoc comments for getBluetoothLeAdvertiser()Prerepa Viswanadham2014-10-161-2/+3
|\ | | | | | | | | * commit '248edc3e969217aec1fcce7f324cbae6c46da0a3': Update javadoc comments for getBluetoothLeAdvertiser()
| * Update javadoc comments for getBluetoothLeAdvertiser()Prerepa Viswanadham2014-10-161-2/+3
| | | | | | | | | | | | | | To clarify that BluetoothLeAdvertiser object will return null when BT is off OR if the hw doesn't support these capabilities bug: 18006072 Change-Id: I635d7971711a3cae7c58f7a0636faf9a03f19970
* | Add support of advertising through standard instance.(1/4)Wei Wang2014-10-091-1/+17
|/ | | | | | | Use config overlay to check whether peripheral mode is supported. Bug: 17552672 Change-Id: I1081bc84da9fe033426f82ece2ec74c2d663e3aa
* Clean up advertise and scan clients upon bluetooth down.Wei Wang2014-08-131-0/+3
| | | | | | | | | | | Fixes b/16528460 This allows Advertiser and Scanner to be reused after bluetooth recycle, which follows same behavior for BluetoothAdapter. Also prints manufacturer data array for ScanRecord. Change-Id: I78bca40ac294433782a054bf2a00a775dac02d96
* Use Scanner for legacy LE scans(1/2).Wei Wang2014-07-241-273/+91
| | | | | | | Also removed different scan methods from IBluetoothGatt and make BluetoothLeScanner and BluetoothLEAdvertiser singleton. Change-Id: Ifa2e950b50f100f5507a6dace3bd70db18d7f9ca
* cleanup : delete BLE advertising related hidden state references in ↵Prerepa Viswanadham2014-07-241-18/+0
| | | | | | Bluetooth Adapter Change-Id: Ia58a46392157e274f8fc4696e8e25af480eb2d2a
* Bug 15564216: Report Bluetooth tx/rx/idle activity info and energy reportingPrerepa Viswanadham2014-07-231-0/+43
| | | | Change-Id: I66fd83d8d59fbd93dec8886dfd313a81575e38a5
* Remove MR2 BLE Advertising hidden API from L codebase (1/2).Wei Wang2014-07-141-246/+7
| | | | Change-Id: I78bb8b89de56bddb7422da1d1d4468c88a68ea11