summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Proper fix of contact_id in bluetoothTony Mak2015-10-211-10/+27
| | | | | | Instead of checking null, explictly state which column(s) we need. Change-Id: I9780930d8c3457cc8e11ae78cd448f3ffa724183
* SAP: Make it possible to enforce a 16-digit pin code (3/5)Casper Bonde2015-06-091-0/+4
| | | | | | | | | | 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: I42ada9b36d24d43697a2010eccbc0103f15af77d Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* SAP: Fix exception at shutdownCasper Bonde2015-06-021-7/+19
| | | | | | | | | | Restructures the disconnect/shutdown code, to avoid exception. Also ensure cleanup of notifications and profile public state. This also fixes the bug introduced when handling ACL_disconnect intent, where the rfcomm-listener was not restarted. Change-Id: I3b4561f610abc77011689b7cfb67a4b54c41500c Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Add support for MITM for BluetoothSockets (2/4)Casper Bonde2015-06-021-0/+35
| | | | | | | | This change enables use of the option to enforce Man-in-the-middle protection for the authentication process for the Sim Acces Profile. Change-Id: I98244d5e822c25f3f8f51833f38c79e13bb60e63 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* SAP: Change to use new SDP Api (2/4)Casper Bonde2015-06-023-32/+92
| | | | | | | | | Added support for Sim Access Profile (SAP) in the SDPManager. To make it easier to test, both SDP record creation and seach is added. Change-Id: I871eb762389e3717b8bd6bc37a8ffc09fff6f589 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Merge "Add unit test for commit "Support work contacts in HFP, PBAP, MAP"" ↵Tony Mak2015-06-014-0/+382
|\ | | | | | | into mnc-dev
| * Add unit test for commit "Support work contacts in HFP, PBAP, MAP"Tony Mak2015-06-014-0/+382
| | | | | | | | | | | | | | | | | | | | | | | | 1. In ag/674009, entire bluetooth is diabled temporarily. This commits enable the test and just comment out test case that need the removed dependency. 2. Fixed a potential NPE in composeAndSendPhonebookOneVcard 3. Refactor the code a bit to allow testing Bug: 19551175 Change-Id: I20e17d38cebdccc39c14e960503ac7d23a9bd928
* | Add unit test for bluetooth contacts sharing policyVictor Chang2015-05-192-1/+116
|/ | | | | Bug: 19990980 Change-Id: Iacd7a53f21500cd809759f5498d54ffd87a8c242
* Enable back bluetooth test casesTony Mak2015-04-232-11/+2
| | | | | | | | | Removed testHeaderEncode as mmm-common is not used anymore and this function is testing a third party library instead of bluetooth related function. Bug: 20515454 Change-Id: Ib6a4a04b46f09db2b277ac23ffb038ea80f0f03e
* Add support for Bluetooth Sim Access Profile (3/4)Casper Bonde2015-04-163-1/+758
| | | | | | | | | | | | | | Server side of the Sim Access Profile. Enables a Bluetooth device to take over control of the SIM. This is usefull in cars where the internal antenna in the phone can have a low signal level. For this profile to work, the RIL driver must allow for this feature to be used, and it must provide the API needed. The API is based on protoBuf. This change includes some SAP test cases. Change-Id: Ia46493383efed6b8a89ca270bdafa60fc1a150c1
* Fix build issues after the mergeVinit Deshpande2015-04-151-1/+1
| | | | | | | | This change temporarily disables bluetooth test because we have code that depends upon mms-common which is removed from the build. Change-Id: Ia856311187a0b2168cb859bd8b2300ff59df6569
* am bbb4110..165d7fa from mirror-m-wireless-internal-releaseVinit Deshpande2015-04-1428-90/+4760
|\ | | | | | | | | | | | | | | | | | | | | 165d7fa MAP: Errata service release 8 changes 5a60e47 Update to Bluetooth MAP 1.2 (server) 0dcecb2 MAP: fix exception when Email in SMS list request a8873ca Merge "Handle response to AT+NREC command" into m-wireless-dev 345f1ee Add UUIDs to SDP JNI d1fadc3 Handle response to AT+NREC command Change-Id: If24e414fe3fd0c2f47147f2535296b92e8066d76
| * Update to Bluetooth MAP 1.2 (server)kschulz2015-04-1024-501/+3110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change folder name lookup to a map Replaced the arrays used to convert mailbox ID/msg type to a folder name with a static map. This is to avoid null pointer exception for unknown values, and to catch any changes in the ID/type values at compile time in stead of runtime. Bug-id:16874441 - Added Instance Information support and Extended Event support. Still missing integration wiht SDP MAP feature bit mask support - Adding Abstract implementation to support conversations - added IM account handling, IM type definition, Application paramenters. - addedgetConversactionList functionality - added method to strip encoding in headers - Fixed messagelist showing both email address and name in the name fields. - Fixed Index out of bounds exception was hit when the subject contained invalid chars. - Added functionality to support the getConversationListReq Works for SMS/MMS, Email and IM For Email/IM it depends on the convoContact table in the contract. For SMS/MMS it uses the contact number+ name if available in contact database. - Added new parameters to msgListing also in contract class - Added Test framework for "near system level" tests Currently only includes an entry point for single device tests. - Added support for setOwnerStatus - Added support for vcard type X-BT-UID - Introduced type SignedLongLong to handle 128 bit values which needs to be handled as hex-strings. - Added convocontact notification events for IM - Added support for IM getMessage - Added setEventFilter function. - Added event filtering before enquing an event to be send. - Added selective observers, depending on the active filter. - Fixed timestamp to be from seconds to seconds (not from milisec) - Fixed version number in bMessage if remote featurebit is set for v 1.1 - Added content encoding to QP for text that are not USACII - Corrected the addresses in to/from for IM messages - Added btuid and btuci to vcard - Fixed (some) longlines - Added extendedData support (empty when sending, just logging when receiving) - Fixed Email folderName compairison changed to ignore case - Fixed problem with names containing "null" - BluetoothMapbMessageMms changed to BluetoothMapbMessageMime - Fixrf addOriginator in getMessage request - Add missing subjects in events for SMS - Don't send ReadStatusChanged when pushing a message - Temp way of adding names/uci to IM msg listing - Added messageHandle filtering in msgListing - Convolisting parameter mask support - Added support for using handle when filtering in root folder during msgLising - Added subject to event in sms - Fixed so attribute_mime_type is only sent when parameter is requested - Fixed feature bit check to messageListing version - Fixed leaking cursors - Added support for database identifier - Added folder and conversation version counters Change-Id: I4d2954b795aa7ed2a41dd034384da30f240b518f
| * Obex over L2CAP + SDP search APICasper Bonde2015-04-0910-1/+2059
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each profile had its own implementation of ObexTransport. These implementations were implemented very similar, and could easily be merged into a common implementation. Additionally it will make it easier to adopt the transport to support L2CAP. The SDP functionality is implemented in a way that is scalable, hence adding new record types is easy. Intents are currently used to distribute the SDP search results, as we have observed that the new client side profiles have been located outside the Bluetooth package. We strongly recommend to keep all bluetooth profiles within the Bluetooth package, to acoid the need for exposing all bluetooth interfaces through the Android framework. For instance this new SDP create API is internal to Bluetooth, hence cannot be used by the external profiles - hence they cannot use OBEX over L2CAP. The SDP search currently supports: - MAP both sides - OPP server (only the server needs an SDP record) - PBAP server (only the server needs SDP record) The SDP create record currently supports: - MAP both sides - OPP server - PBAP server The new l2cap sockets introduces a new wrapper class for a rfcomm and an l2cap socket. The wrapper design: - Creates two accept threads running while bluetooth is turned on. - When a connection is accepted the owner is asked wether or not to accept the connection if rejected, the connection will be rejected at obex level, else it will be accepted and the state is changed to busy. - Any further connections will be rejected at Obex level, until the state is changed back to idle. Notes tor executing the test cases: Test OBEX using local pipes(no BT) or two bluetooth enabled devices. Test SDP using two Bluetooth enabled devices Start server testcase first on one device, then start the matching client test on the other device. You cannot run all tests in one go, as they need to run on multiple devices. Edit the test sequesce to add/remove/modify the sequence of OBEX operations to perform. Use the new SDP record create interface. Change-Id: I3941793f9843abf4afa5ffbee40d1d01c118b29b Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* | Remove dependency on mms-commonYing Wang2015-03-271-1/+1
| | | | | | | | | | | | mms-common is esentially empty. Change-Id: Iaca2efff56128b38b48fed7d6bc749491760bccb
* | Remove bogus apache-http dependency.Narayan Kamath2014-12-151-11/+0
| | | | | | | | | | | | | | | | | | | | Wasn't really being used for much of anything. bug: 18027885 (cherry picked from commit 74d126e2f790c5946c7be0e087cdcbabc22468d7) Change-Id: I04c8eeb05bef98176b1c523dd255948b42184867
* | Fix broken Bluetooth tests.Wei Wang2014-12-022-7/+14
|/ | | | Change-Id: Ia8c5ffc58a1154289011aaed628a0e23994b2aa3
* Fix batch timestamp parsing error.Wei Wang2014-10-292-0/+65
| | | | | Bug:18166784 Change-Id: I4817a1410c570bd1fa59425c257fb4a3d96e9e1f
* BT MAP: added support for email sharing over BTCasper Bonde2014-08-063-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added support for Emails - added activity to do setup of the email accounts to share - added improved handling of MMS, SMS and Email - Many optimizations to speed (especially getMessageListing) - fixed wakelock problem - fixed user timeout problem when user do not react to msg access request - added missing privileges - support for Quoted Printable format - added accountId in test case URIs - fixed problem with service numbers being strings - fixed problem with read flag in getMessage - added support for transparent flag in Email Push - added missing send-event for non-imap accounts - set attachment size to 0 if text-only message - fixed double send for sms messages with retry - removed secondary phone numbers from recipient/originator - removed insert-address-token in MMS messages - fixed null-pointer exception in settings (missing extra in intent) - send text-only mms as sms (workaround to make it cheaper) - fixed rejection of native and fraction requests - better handling of unknown message types in push - fixed problem with possible illigal xml chars in message listing - added missing WRITE_APN_SETTINGS permission to manifest - fixed problem with notifications when pushing to folders other than OUTBOX - removed debugging code - added support for threadId - fixed permission problems - changed to use ContentProviderClients for Email app access - fixed names for member vars UPDATE: Moved the MAP E-mail API to the bluetooth package. UPDATE: Added check for the presense of MMS parts. This is needed due to a change in the MMS app/subsystem, where deleted messages gets corrupted. Signed-off-by: Casper Bonde <c.bonde@samsung.com> Change-Id: Ib5dbe7c2d5c0ba8d978ae843d840028592e3cab4
* Merge "Making Bluetooth OPP file transfer intent generic"Andres Morales2014-06-251-1/+1
|\
| * Making Bluetooth OPP file transfer intent genericAndres Morales2014-04-031-1/+1
| | | | | | | | | | | | | | | | | | In the process of adding Wifi as a transport for Beam, the only consumer of this code as of yet. Need to decouple the file transfer events from the bluetooth stack to be able to cleanly reuse them in the wifi code. Change-Id: I9dafe4f6756bf429b4770826c46d41330a334493
* | Revert Ying's fix for ub-mail-master snapped projectsGeoff Mendal2014-06-171-1/+1
| | | | | | | | Bug: 15593367
* | Exclude only the test, not the jni.Ying Wang2014-06-131-2/+1
|/ | | | | Bug: 15593367 Change-Id: Iee1eccbd15cc79c9571c7cf8781c2ec8ccf3c64f
* Use pathPrefix filter instead of path for /btopp contentMatthew Xie2014-01-151-1/+1
| | | | | | Update tests/AndroidManifest.xml to match the filter of the main app Change-Id: Ife4278f34a588f77f6b00bd3f06aa69c6c83ac7a
* Use pathPrefix filter instead of path for /btopp contentMatthew Xie2013-12-061-1/+1
| | | | | | | path is doing a full path match. It did not guard /btopp/ also fix a minor problem in tests/AndroidManifest.xml bug 11148516 Change-Id: I8f4a614f999e643e8ae122baf0bf898b2b3008d5
* Merge "Fix build." into klp-devYing Wang2013-09-141-2/+2
|\
| * Fix build.Ying Wang2013-09-131-2/+2
| | | | | | | | Change-Id: I02a9d4dfa84c5778a1136d39b7bb14a2e523a9ca
* | disable broken testsGuang Zhu2013-09-131-1/+1
|/ | | | | | | | tests are causing build breakage Bug: 10692365 Change-Id: Ieb4b8c6946cf2de4230f1320d940c89de53b100c
* Fixes to the google review comments + spec 1.1Kim Schulz2013-09-134-0/+692
- updated code to comply with MAP spec 1.1 - removed activity + strings.xml - removed unused notification code - fixed TODOs - added more string validation and case insensitivity - fixed internal+google review comments - Added dump of incoming bMessages to /sdcard/bluetooth/log when verbose debug in enabled. Only the latest received message will be stored - Fix functions msgListingSize and msgListingHasUnread to also consider mms filter message type - Fix wrong tag length define for notification status parameter - Re-added shutdown code to interupt the MNS - removed map activity - Added initial bluetooth map unit tests - Fix map event report xml start tag to uppercase 'MAP' - added support for using ProfileService class - changed the way the Broadcast Receiver was implemented - Fixed minor bugs found during Automotive Test Event - FilterPeriod application parameters can be present, but with zero length - For MMS the end-boundary were added too early - The FOLDER entry in bMessage can be empty for a message push - Wrong error value returned for a set status operation with a wrong handle - In getMessage() exclude all binary content and smil.xml if the appParam attachment is set to "no". - Set correct content id and content location for mms. Fix mms mime parser bug. - moved disconnect to Handler thread - fixed multipart-message split bug. - added a few Unit tests for multi-part messages - MMS parser optimized - fixed exception in MNS obex Client - fixed problem with Native PDUs not getting correct timestamp - corrected mixup in ordinator/recipient for MMS Change-Id: I3875762822a7f8ce0132065e0da5d0257e3850a1 Bug:10692365