summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
* [2/3]Bluetooth: add "Accept all files" option for incoming filesHamster Tian2016-12-301-36/+58
| | | | | | | | | | | | | | | | | | | | * Renamed some variable. * Re-organized the comment. * Reworded the commit message. This patch will make OBEX server respect the "accept all files" setting. If enabled, it will skip checking MIME type of incoming file, so the file types not present in whitelist can be accepted. Blacklist will be ignored as well. (There's nothing in blacklist in fact) If it's disabled, the check will be performed as usual. Change-Id: I3904a25914d16d040126de43f5e6ed51993494c4 Bluetooth : Move ACCEPT_ALL_FILES to CMSettings Change-Id: Ia07553e08e6f228c6082b80d0bb2732dcd3465dd Change-Id: I3904a25914d16d040126de43f5e6ed51993494c4
* bluetooth: Disable logspam from GattServiceSteve Kondik2016-12-301-1/+1
| | | | Change-Id: I3819edbad9172846f752f2da34f910ff758fd8f8
* Kill logspam during battery level eventsSteve Kondik2016-12-302-326/+328
| | | | Change-Id: I7c0f5b1fee68392414aa4b4b2cca80bc15631565
* bluetooth: Tone down the logspamChristopher R. Palmer2016-12-301-1/+1
| | | | Change-Id: I2d1c37c36429d7a3646fa05237027edda6a7730e
* bluetooth: Broadcast battery statusGavin Ni2016-12-301-0/+2
| | | | Change-Id: Ie2f10ee3e4276d05c8218af413ffb13b6b76c7c7
* Add epub to the list of filetypes to get and sendMarcos Marado2016-12-301-0/+1
| | | | | | | Since we do allow to send and receive PDF files via bluetooth, I don't see a reason why can't we do exactly the same for epub files. Change-Id: I10b7182ce1b6c36b693065de1e8bc61a90912d98
* Bluetooth: fix opp NPERoman Birg2016-12-302-2/+2
| | | | | | | Ticket: CYNGNOS-2866 Change-Id: I7ffd329564713adf25b2033291a21546321df5df Signed-off-by: Roman Birg <roman@cyngn.com>
* Bluetooth: handle opening incoming APK filesRoman Birg2016-12-301-1/+8
| | | | | | | Ticket: FEIJ-493 Change-Id: I991146482ae69acf02ada93aa6c71441e67927d7 Signed-off-by: Roman Birg <roman@cyngn.com>
* Bluetooth: The item disappears after open it in Bluetooth received.tao.pei2016-12-301-1/+0
| | | | | | | | | | Repro: - Recevived some files via BT - Go to "show received files" interface. - open a file(e.g. a picture) - Observe: The item disappeared Change-Id: I9597b829ac5f57c0ca3c7140e99d50f054a1b00d
* Bluetooth: Create Custom Intent to avoid Force close.Sravan Kumar V2016-12-301-1/+21
| | | | | | | | | | | | | | | | | | | | | Use Case: 1. Select a music file with Japanese charecters 2. Push to DUT. 3. Open received OPP file from inbound list. Failure: "Unfortunately, Bluetooth share has stopped" error comes. Root Cause: Android added "println_native method" to log events of interest in native library, this method not able to manipulate when message contains special characters. Fix: Add a condition in CustomIntenet.toString() to remove special characters, if it contains and return plain string to avoid force close. Change-Id: If1d66b635a8a237e16b0ee684266f2913ec422c9
* Bluetooth-OPP:Reduce Looper time to 100 MS .Sravan Kumar V2016-12-301-3/+3
| | | | | | | | This change ensure that Handler will send message after 100 milli seconds . Otherwise, DUT fails to update sent/receive file count precisely . Change-Id: I6c54dadd2a5e3244feca2d847ebcc5474ad44c77
* Compilation fix: N-MR1 merge.Lalit Kansara2016-12-081-24/+0
| | | | Change-Id: I70b78d99136341e5afe3ef85b83e7e354194c353
* Merge N-MR1 to remote branch.Naveen Kumar2016-12-0823-95/+411
|\ | | | | | | Change-Id: Idf2baa744755a6d567f83efb025229fe7da5055f
| * Merge commit '1c40f9218d815e4e67482fb8913fce6850e4fb1c' into remoteLalit Kansara2016-12-0623-95/+411
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: jni/com_android_bluetooth_hfp.cpp src/com/android/bluetooth/avrcp/Avrcp.java src/com/android/bluetooth/btservice/AdapterService.java src/com/android/bluetooth/btservice/RemoteDevices.java src/com/android/bluetooth/hfp/HeadsetStateMachine.java src/com/android/bluetooth/map/BluetoothMapContentObserver.java src/com/android/bluetooth/map/BluetoothMapService.java src/com/android/bluetooth/opp/BluetoothOppSendFileInfo.java src/com/android/bluetooth/pan/PanService.java src/com/android/bluetooth/pbap/BluetoothPbapReceiver.java Change-Id: I41068ac7787983519220fe6fee1e65ff66298db1
| | * Prevent bonded device from being removed from the property mapAjay Panicker2016-10-211-1/+6
| | | | | | | | | | | | | | | | | | Bug: 31947953 Test: Manual Change-Id: Ia2d25b305c07949a9251af83e855db4511ff887f
| | * Add additional logging for device propertiesAjay Panicker2016-10-201-2/+9
| | | | | | | | | | | | | | | | | | Bug: 31947953 Test: Manual Change-Id: I7e23b55c03e7f0382d59efe9a94221ed4bdf57ab
| | * Ensure LE scan clients are removed when the related app diesAndre Eisenbach2016-10-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use the passed in ScanClient in handleStopScan() to ensure that the client appDied flag is in the correct state to ensure proper removal of the client application reference. Bug: 30681588 Change-Id: I0e0067a8e21ebd5f89870a7054b1f4092fe63ae1
| | * Cleanup BluetoothPbapReceiver log messagesPavlin Radoslavov2016-09-281-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 31442739 Bug: 31457305 Test: manual - checked logcat output for (lack of) excessive logs Change-Id: I76f32dd950afd0a2949f38bfa6c0d4212b83357c (cherry picked from commit f36fc254ad196339a59c2ab00b555f4d8f601718)
| | * Limit number of stored device propertiesAndre Eisenbach2016-09-231-2/+18
| | | | | | | | | | | | | | | Bug: 31651689 Change-Id: I6e31b4f89d6ebf9e6a0c6df5ea4e1a7be61a125a
| | * Merge "Enable debug logs by default in BluetoothPbapReceiver" into nyc-mr1-devTreeHugger Robot2016-09-231-5/+7
| | |\
| | | * Enable debug logs by default in BluetoothPbapReceiverPavlin Radoslavov2016-09-211-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled more logs to help identify issues when Bluetooth is started because of PBAP. Bug: 31442739 Bug: 31457305 Test: manual - checked logcat output for (lack of) excessive logs Change-Id: I6348fe57a8b3546a8152416a5db95b8b2226e166 (cherry picked from commit beacc3b09d1192c70c6385c5666e5706f7662a75)
| | * | Enable debug logs for Bluetooth AdapterServicePavlin Radoslavov2016-09-211-8/+14
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled log messages that are useful to debug the AdapterService state. Remaining log messages are controlled by AdapterService.VERBOSE flag and are disabled by default. Bug: 31442739 Test: manual, and "frameworks/base/core/tests/bluetoothtests" unit tests Change-Id: I7d81fd605f64e64f29aee37314821384234b286d (cherry picked from commit 32a92489e9779d10c613a57d86135a7de6d3d7c4)
| | * Merge "Collect number of paired BT devices." into nyc-mr1-devTreeHugger Robot2016-09-212-0/+4
| | |\
| | | * Collect number of paired BT devices.pkanwar2016-09-212-0/+4
| | | | | | | | | | | | | | | | | | | | Bug: 31602591 Change-Id: I61adee8b20d57e2a1e284ed21a46d1766f059d4a
| | * | Fix setPairingConfirmation permissions issue (1/2) am: df3304a333 am: ↵Ajay Panicker2016-09-211-2/+2
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8a47ce8ee am: 3ea7d86110 am: ccca20484c am: 4a20ca7bae am: 8e9f9f4bd8 Change-Id: Iecae3b133a96b2195c64894f55a2330534834d5b
| | | * \ Fix setPairingConfirmation permissions issue (1/2) am: df3304a333 am: ↵Ajay Panicker2016-09-211-2/+2
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8a47ce8ee am: 3ea7d86110 am: ccca20484c am: 4a20ca7bae Change-Id: I4a9f4408bf601c7e06290210e8e199969af64420
| | | | * \ Fix setPairingConfirmation permissions issue (1/2) am: df3304a333 am: ↵Ajay Panicker2016-09-211-2/+2
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8a47ce8ee am: 3ea7d86110 am: ccca20484c Change-Id: I549bf83ae4a98257a45c0fee77257cebdbe67b4f
| | | | | * \ Fix setPairingConfirmation permissions issue (1/2) am: df3304a333 am: f8a47ce8eeAjay Panicker2016-09-211-2/+2
| | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ea7d86110 Change-Id: Iba991daf03a221a4fff7a575dcdffd7181a70861
| | | | | | * \ Fix setPairingConfirmation permissions issue (1/2) am: df3304a333Ajay Panicker2016-09-211-2/+2
| | | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f8a47ce8ee Change-Id: Ia73de9a88d22342fe27f5f1e965cc76b088a7a0d
| | | | | | | * \ Fix setPairingConfirmation permissions issue (1/2)Ajay Panicker2016-09-211-2/+2
| | | | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: df3304a333 Change-Id: Idc90fd17ec010ba786412d76496cd6f89df139b5
| | | | | | | | * | Fix setPairingConfirmation permissions issue (1/2)Ajay Panicker2016-09-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setPairingConfirmation was set to only require BLUETOOTH_ADMIN permission which shouldn't be able to set the confirmation itself. This is restricted to BLUETOOTH_PRIVILEGED permission. Bug: 29043989 Change-Id: Iae8e31b25795989446265fdcc5eb27e6ffaf29aa
| | | | | | | * | | Add guest mode functionality (3/3)Ajay Panicker2016-05-242-2/+4
| | | | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: af5b1764da * commit 'af5b1764daa3b212d471f000d7091ac07c040453': Add guest mode functionality (3/3) Change-Id: I2591d37bb52e2bda796200100f7f21bf00f55d7a
| | | | | | | | * | Add guest mode functionality (3/3)Ajay Panicker2016-05-042-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a flag to enable() to start Bluetooth in restricted mode. In restricted mode, all devices that are paired during restricted mode are deleted upon leaving restricted mode. Right now restricted mode is only entered while a guest user is active. Bug: 27410683 Change-Id: If4a8855faf362d7f6de509d7ddc7197d1ac75cee
| | | | | | * | | | DO NOT MERGE ANYWHERE GATT: Move connection parameters to config.xmlAlain Vongsouvanh2016-05-181-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier for OEMs to customize the high prioriy, balanced and low power mode connection parameters through overlays. Bug: 18013697 Change-Id: I8b486b772fdb871f2800238cb5e45c4ff0663952 (cherry-picked from d65009d591017319a429be1a920fdf763e71cebd)
| | | | | | * | | | DO NOT MERGE ANYWHERE Add missing null pointer check inside ↵Lianchao Song2016-05-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HeadSetClientService.stop() Bug: 28664857 Change-Id: I62abc4eb4127db2d4f0cde44eca618996f099b49 Signed-off-by: Lianchao Song <songlianchao@huawei.com>
| | | | | * | | | | "DO NOT MERGE" Add write SMS protection am: 64745b1 am: 9accc36Seven Shen2016-04-191-2/+10
| | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 6c32c81 * commit '6c32c815bfbe1058791c6dbee0a98c6b30792963': "DO NOT MERGE" Add write SMS protection Change-Id: I4cca8e8ac4b4659ce7dc28264ccd39a53d68098c
| | | | | | * | | | "DO NOT MERGE" Add write SMS protection am: 64745b1Seven Shen2016-04-191-2/+10
| | | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9accc36 * commit '9accc36b1a6a9779d31ea6edcc861a69167d37e5': "DO NOT MERGE" Add write SMS protection Change-Id: Id5bc27d73ed66c9f12ecf94ec2ef1dc727a6b5c4
| | | | | | | * | | "DO NOT MERGE" Add write SMS protectionSeven Shen2016-04-191-2/+10
| | | | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 64745b1 * commit '64745b114948ea0c774f74af5721b6283087247d': "DO NOT MERGE" Add write SMS protection Change-Id: Idb905753e4e4d711b11b7d5274e622df4e9c4251
| | | | | | | | * | "DO NOT MERGE" Add write SMS protectionSeven Shen2016-04-081-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 25138326 Change-Id: I9f418370b8725d49e3734406b6f435107bcff021
| | | | | | * | | | DO NOT MERGE ANYWHERE Implement new API for retrieving supported Bluetooth ↵Bryce Lee2016-02-292-11/+40
| | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | profiles. Bug: 26451648 Change-Id: Ice55556d64208656824d5a6f9b90230d17f0c3bc
| | | | | * | | | Merge "DO NOT MERGE Read Bluetooth interop database entries from settings ↵Andre Eisenbach2016-02-241-0/+58
| | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (2/2)" into mnc-dr-dev am: e836319052 * commit 'e8363190528d0d95a35ab265ab91c591eb17a7c3': DO NOT MERGE Read Bluetooth interop database entries from settings (2/2)
| | | | | | * | | Merge "DO NOT MERGE Read Bluetooth interop database entries from settings ↵Andre Eisenbach2016-02-241-0/+58
| | | | | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (2/2)" into mnc-dr-dev
| | | | | | | * | | DO NOT MERGE Read Bluetooth interop database entries from settings (2/2)Andre Eisenbach2016-02-231-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Interop database entries are stored in the system settings entry "BluetoothInteropDatabase". The format is a list of entries separated by ";". An entry consists of a BDA fragment, followed by a comma and an integer representing a feature from interop.h. Example: To disable LE secure connections for devices starting with BDA 11:22:33, use "11:22:33,0". Bug: 26548845 Change-Id: I5903930178b70d1eb52d64b1c6051ce8ee346da4
| | | | | | * | | | DO NOT MERGE Enhance AVRCP Absolute Volume control implementationLiejun Tao2016-02-233-33/+244
| | | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Remember the current local volume level, current remote volume level. When user adjusts the volume, compare the returned remote volume level with desired volume level, if they don't match, do retry. 2.Learn and remember the volume mapping between phone volume level and remote volume level as the user adjusts volume. When user adjusts to one remembered volume level, use the mapping directly. Otherwise calculate the remote volume level and try with method described in step one. 3. Blacklist device if remote device does not tell its initial volume. 4. Define optional threshold for initial volume level to avoid headset being too loud upon re-connection. Signed-off-by: Liejun Tao <baibai@motorola.com> Change-Id: I78112f5f401666f5a680561473a5c7f914071fbe
| | | | | | * | | [DO NOT MERGE ANYWHERE] Null terminate MAP instance informationAjay Panicker2016-02-121-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 26437927 Change-Id: I673de7f7c68b9a02b234bb99c6f89c7fc36f90c9
| | | | | * | | | DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issue am: ↵Ashwini Munigala2016-01-121-1/+80
| | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f81566bb85 am: ff7beb91be * commit 'ff7beb91bee0db50b4ce03aba1b39a3362f767c6': DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issue
| | | | | | * | | DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issueAshwini Munigala2016-01-121-1/+80
| | | | | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f81566bb85 * commit 'f81566bb85a1d0388b738dc5553d096591fc9030': DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issue
| | | | | | | * | DO NOT MERGE Fix SMS delivered successfully but stuck SENDING issueAshwini Munigala2015-12-301-1/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Receive and handle ACTION_MESSAGE_SENT intent for SMS type message to move it to SENT folder when pushMessage request from MCE is processed and SMS delivered successfully. Bug: 22343270 CRs-Fixed: 903561 Change-Id: I9dafffc737a34233ede2d10e22cd969f520a12cf
| | | | * | | | | Fix AVRCP crash, position and state trackingMarie Janssen2016-07-151-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the MediaController goes away (media stops) a NPE would cause a crash. Initialize the position so that an initial notification gets sent when position is requested, send it when the music is paused, and send play state whenever the app sends us a play state update. Bug: 30039744 Bug: 29416450 Change-Id: I44397b3dc40d328fa75a2c15875fad298a5090dd (cherry picked from commit 84d3f084d4d1a65eb7a481e5a7fe4a6ac827be7b)
| | | | * | | | | Refactor playback position trackingMarie Janssen2016-07-151-81/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use PlaybackState directly to track the position through time. Update the state when necessary (track changes, etc.) Remove complex logic and centralize sending of Play Position Notificaiton response and scheduling. Update dumpsys and add current package session. Bug: 29416450 Bug: 29606822 Change-Id: Ie82b48d6d7f9e1a05b64835731433d05a3a3a41a (cherry picked from commit eb9e6ef0ecde4929fa2df1aa4cc8954d88d3b452)