Граф коммитов

1828 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 113003e824 Backed out 8 changesets (bug 1207649) for bustage on a CLOSED TREE
Backed out changeset df09a48144a5 (bug 1207649)
Backed out changeset fcbf5852361f (bug 1207649)
Backed out changeset d63567af5fa2 (bug 1207649)
Backed out changeset 02928720b1a0 (bug 1207649)
Backed out changeset b906ed92f33a (bug 1207649)
Backed out changeset f03f71a3de8a (bug 1207649)
Backed out changeset 9c647b56f37c (bug 1207649)
Backed out changeset a336f5041c27 (bug 1207649)
2015-09-29 15:54:21 +02:00
Thomas Zimmermann 8e6619a06b Bug 1207649: Remove obsolete string/address conversion from Bluetooth backend, r=brsun
The code in Bluetooth's current backend doesn't use address strings any
longer. This patch removes the related conversion functions.
2015-09-29 14:07:02 +02:00
Thomas Zimmermann eabddbb140 Bug 1207649: Convert Bluetooth GATT backend to |BluetoothAddress|, r=joliu
This patch converts all methods in Bluetooth's GATT interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 0d139b5990 Bug 1207649: Convert Bluetooth AVRCP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's AVRCP interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 06468d6f08 Bug 1207649: Convert Bluetooth A2DP backend to |BluetoothAddress|, r=shuang
This patch converts all methods in Bluetooth's A2DP interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 2fe419c963 Bug 1207649: Convert Bluetooth Handsfree backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Handsfree interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 0172a482fd Bug 1207649: Convert Bluetooth Socket backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Socket interface to
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann e7c7b92f10 Bug 1207649: Convert Bluetooth Core backend to |BluetoothAddress|, r=brsun
This patch converts all methods in Bluetooth's Core interface to use
|BluetoothAddress|.
2015-09-29 14:07:01 +02:00
Thomas Zimmermann 5606525d6e Bug 1207649: Prepare |BluetoothAddress| for general use throughout Bluetooth code, r=brsun
This patch moves |BluetoothAddress| to BluetoothCommon.h, where it is
available for general use. New utility function convert between strings
and addresses. A new hash-key class allowes for using |BluetoothAddress|
as the key in a hash table.
2015-09-29 14:07:01 +02:00
Bruce Sun a8b089a2b8 Bug 1181483: Implement GATT server characteristic notification; r=jocelyn, r=mrbkap 2015-09-23 14:18:01 +08:00
Jocelyn Liu 1832bcbeea Bug 1181482 - Patch3: Implement |sendResponse| and BluetoothGattAttributeEvent for GATT server read/write requests. r=btian, r=bz 2015-09-23 14:16:27 +08:00
Jocelyn Liu 831adbfe19 Bug 1181482 - Patch2: Revise read/write characteristic/descriptor value to cover both GATT client and GATT server role. r=btian, r=bz 2015-09-23 14:16:05 +08:00
Jocelyn Liu 08e25742a0 Bug 1181482 - Patch1: Refine some data types in gecko backend for GATT server read/write request APIs. r=btian 2015-09-23 14:15:55 +08:00
Bruce Sun ecebfa45d5 Bug 1181479: Sync the coding style; r=jocelyn 2015-09-21 14:41:02 +08:00
Bruce Sun e03fb4f7d3 Bug 1181479: Implement GATT Server service management; r=jocelyn, r=mrbkap 2015-08-24 16:58:13 +08:00
Bruce Sun 0743c11d2e Bug 1181479: Refine GenerateUuid(); r=jocelyn 2015-09-21 14:40:11 +08:00
Bruce Sun 0b06af747b Bug 1181479: Refine StringToUuid; r=jocelyn 2015-09-21 14:39:44 +08:00
Thomas Zimmermann cd10495a59 Bug 1206686: Use |BluetoothUuid| throughout Bluetooth backend interfaces, r=btian
This patch converts all public interfaces of the Bluetooth backend code
to take UUIDs as |BluetoothUuid|. The code currently uses a mixture of
|BluetoothUuid| and arrays/pointers.
2015-09-22 13:04:05 +02:00
Thomas Zimmermann 420a083cd5 Bug 1204497: Complete AVRCP connect/disconnect from separate runnables, r=shuang
A2DP connects and disconnects are completed from a separate result-handler
runnable. Dispatching runnables to complete AVRCP (dis-)connects implements
the same behavior for AVRCP.
2015-09-21 11:30:52 +02:00
Thomas Zimmermann 48a8903713 Bug 1204497: Interpret AVRCP remote features as bitmask, r=shuang
The current IPC parsing code is incorrect. AVRCP remote features are
specified as bitmask, but the current IPC code treats them as values.
This patch fixes this.
2015-09-21 11:30:52 +02:00
Thomas Zimmermann 8bdf56f23b Bug 1205635: Don't define methods of Bluetooth backend interfaces in header, r=btian
Except the d'tors, we usually don't call any interfaces of the Bluetooth
backend interfaces. All methods are overriden in child classes.

This patch move the methods from the interface's header file to the source
file. Only the result handlers' d'tors are located in the header, as they
can be inlined.
2015-09-21 11:18:11 +02:00
Thomas Zimmermann 4afaf44ef6 Bug 1205577: Use enum constants for Bluetooth Socket module, r=btian 2015-09-17 14:46:18 +02:00
Thomas Zimmermann 9da2d90e28 Bug 1205253: Use enum constants for Bluetooth Core module, r=btian 2015-09-17 10:08:47 +02:00
Thomas Zimmermann 86fcc7a88d Bug 1205253: Move |BluetoothDaemonCoreModule| into separate compilation unit, r=btian
This patch moves |BluetoothDaemonCoreModule| into its own compilation
unit. The notifications handlers are not set via getter/setter methods
o fthis class. No further code changes are made.
2015-09-17 10:08:47 +02:00
Wes Kocher ebdcf9fc9e Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-16 11:00:55 -07:00
Thomas Zimmermann 7cf66612c7 Bug 1204801: Use enum constants for Bluetooth Service module, r=btian 2015-09-16 10:37:58 +02:00
Thomas Zimmermann 83d246f318 Bug 1204801: Move |BlutoothSetupResultHandler| to generic backend interface, r=btian
|BluetoothSetupResultHandler| is independent from the Bluetooth backend
code. This patch moves it to the other backend interfaces.
2015-09-16 10:37:58 +02:00
Thomas Zimmermann 066d035d3d Bug 1204801: Move |BluetoothDaemonSetupModule| into separate compilation unit, r=btian 2015-09-16 10:37:58 +02:00
Will Wang 2a1c15bc8c Bug 1203046 - Call |NRECNotification| once RFCOMM is connected. r=shuang 2015-09-15 18:19:25 +08:00
Thomas Zimmermann 948e27e61b Bug 1203092: Remove void pointers from Bluetooth's daemon backend, r=shuang 2015-09-15 12:55:02 +02:00
Thomas Zimmermann 832d543167 Bug 1203092: Inherit Bluetooth result handlers from |DaemonSocketResultHandler|, r=shuang 2015-09-15 12:55:02 +02:00
Nigel Babu 3028272315 Backed out changeset e682d4ccb6a5 (bug 1203092) 2015-09-15 15:17:33 +05:30
Nigel Babu 7a16edd7a4 Backed out changeset bed325ace368 (bug 1203092) 2015-09-15 15:17:30 +05:30
Thomas Zimmermann 22f375913e Bug 1203092: Remove void pointers from Bluetooth's daemon backend, r=shuang 2015-09-15 10:38:13 +02:00
Thomas Zimmermann 4fabbf2de8 Bug 1203092: Inherit Bluetooth result handlers from |DaemonSocketResultHandler|, r=shuang 2015-09-15 10:38:13 +02:00
Thomas Zimmermann 29e1acda61 Bug 1204506: Set 'override' attribute for overloaded Bluetooth backend methods, r=btian 2015-09-15 09:48:26 +02:00
Wes Kocher 3eef2f434b Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Boris Zbarsky f17bf212bc Bug 1255818. Switch from JS_ClearPendingException to AutoJSAPI::ClearException for cases when we have an AutoJSAPI around. r=bholley 2016-03-11 16:43:31 -05:00
Louis Chang 4662cafd4a Bug 1252787 - Patch : Add HID profile when device is remote, r=shawnjohnjr 2016-03-07 15:05:49 +08:00
Tom Tung 6a022181ea Bug 1238845 - Implement UUID helper - dom/bluetooth & dom/webidl & layout/build change. r=jocelyn, r=bz 2016-01-15 19:30:46 +08:00
Thomas Zimmermann 0fc8c3e5a1 Bug 1251541: Replace |nsAutoArrayPtr<>| with |UniquePtr<[]>| in Bluetooth interfaces, r=shuang
This patch replaces all instances of |nsAutoArrayPtr<>| in the Bluetooth
interfaces with |UniquePtr<[]>|.

In contrast to |nsAutoArrayPtr<>|, |UniquePtr<[]>| doesn't convert to the
underlying pointer type implicitly. This is a problem for the daemon-socket
runnable, which depend on this feature when calling their operations. To
solve this issue, the patch adds |ConvertArg| for each arguemnt, which does
the conversion explicitly.
2016-02-29 12:15:08 +01:00
Thomas Zimmermann 83da4d603d Bug 1251541: Pass arguments to AVRCP passthrough command as uint8_t, r=shuang
The AVRCP passthough-command notification doesn't require |int| type
arguments. Using |uint8_t| is sufficient. This change is required to
prepare replacing |nsAutoArrayPtr<>| with |UniquePtr<[]>|.
2016-02-29 12:15:08 +01:00
Thomas Zimmermann d8cb801b6f Bug 1251541: Replace |nsAutoArrayPtr<>| with |UniquePtr<[]>| in Bluetooth managers, r=shuang 2016-02-29 12:15:08 +01:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Wes Kocher f75a43f2af Merge b2ginbound to central, a=merge 2015-09-14 17:23:34 -07:00
Thomas Zimmermann c8e8ca8ec6 Bug 1202060: Store Bluetooth profile controller while (dis-)connecting AVRCP, r=shuang
AVRCP connect and disconnects can currently not be completed, because the
profile controller is not know to the manager at the time of completion.
The patch fixes this bug.
2015-09-14 16:01:45 +02:00
Shawn Huang e6170a1977 Bug 1195710 - [MAP]Implement PushMessage function, r=btian 2015-09-13 19:03:23 +08:00
Phil Ringnalda f79d829bdf Merge b-i to m-c, a=merge 2015-09-11 20:27:20 -07:00
Carsten "Tomcat" Book 1a0ce23fe9 merge mozilla-inbound to mozilla-central a=merge 2015-09-11 16:36:35 +02:00
Shawn Huang 55be2eae10 Bug 1186836 - Implement SetMessageStatus function, r=btian 2015-09-11 22:45:18 +08:00
Shawn Huang 07b0126629 Bug 1166679 - Implement GetMessage function, r=btian 2015-09-11 21:21:19 +08:00
Jocelyn Liu b144643f0d Bug 1203900 - Fix cycle collection and array buffer creation bug in the implementation of MediaKeyMessageEvent, MediaEncryptedEvent, and BluetoothLeDeviceEvent. r=bz 2015-09-11 21:05:00 +02:00
Phil Ringnalda 9565dedf7d Merge m-c to m-i
CLOSED TREE
2015-09-10 15:30:31 -07:00
Thomas Zimmermann 7e6c6ef201 Bug 1202386: Output clear Bluetooth IPC errors, r=shuang
This patch improves error logging in the Bluetooth IPC code.
2015-09-10 11:32:26 +02:00
Shawn Huang 4d58fd2b5f Bug 1203023 - Do not call Reset() for BluetoothMapSmsManager, r=tzimmermann 2015-09-10 17:10:04 +08:00
Jocelyn Liu d2e1fc818b Bug 1199653 - Correctly set |sInShutdown| in BluetoothService for content processes. f=tzimmermann, r=shuang 2015-09-10 10:55:02 +08:00
Thomas Zimmermann 369854d84e Bug 1202704: Move Bluetooth's |UnpackPDUInitOp| to generic HAL IPC code, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann 5621b29006 Bug 1202704: Move Bluetooth IPC unpack functions to generic HAL IPC, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann 551c2206d6 Bug 1202704: Move Bluetooth IPC pack functions to generic HAL IPC, r=shuang 2015-09-09 13:40:26 +02:00
Thomas Zimmermann 8dc1fa85d9 Bug 1141616: Lookup service channel in Bluedroid's OPP manager, r=btian
Bluedroid's |BluetoothOppManager| now retrieves the OBEX service's
channel from the remote device. Previously this was done by the
Bluedroid driver internally, but having this functionality in the
manager itself will allow for future code sharing with the BlueZ
backend.
2015-09-09 13:20:57 +02:00
Thomas Zimmermann de849c6fe0 Bug 1141616: Support SDP lookups in |BluetoothServiceBluedroid|, r=btian
This patch adds support for SDP lookups to Bluedroid's service
manager |BluetoothServiceBluedroid|. The class now implements
looking up a remote device's services.
2015-09-09 13:20:54 +02:00
Thomas Zimmermann 1123c4730a Bug 1141616: Implement |BluetoothService::GetServiceChannel|, r=btian
This patch adds support for reading a service channel from a remote
device.
2015-09-09 13:20:45 +02:00
Ben Tian 5e46603952 Bug 1195685 - Transform macro |BT_APPEND_NAMED_VALUE| into function, r=shuang 2015-09-09 10:59:36 +08:00
Ben Tian c29bbe56c0 Bug 1200124 - Pass order and search key with uint32_t instead of nsString to avoid string mismatch error, r=shuang 2015-09-07 10:53:40 +08:00
Ben Tian 6a1d0e9828 Bug 1200124 - Correct PBAP order mapping, r=shuang, r=mrbkap 2015-09-09 10:17:58 +08:00
Shawn Huang 691ea61dca Bug 1166645 - Implement MAP profile manager connection related function, r=btian 2015-09-08 11:39:13 +08:00
Ben Tian 6576fbda41 Bug 1191715 - Store local pointer of thread to shutdwon to avoid reentry crash, f=jesup, r=shuang 2015-09-08 11:15:49 +08:00
Ben Tian 8137ba3e28 Bug 1199548 - Do not append vCard Body payload in PBAP replies when |MaxListCount| is zero, r=shuang 2015-09-04 15:47:22 +08:00
Ben Tian 6f22aefd8f Bug 1199107 - Replace BT_WARNING with BT_LOGR in PBAP manager, r=shuang 2015-09-04 12:04:38 +08:00
Ben Tian 5db4031b4c Bug 1199107 - Access PBAP vCard input stream directly instead of passing it as input parameter, r=shuang 2015-09-04 12:04:37 +08:00
Andrea Marchesini cd4473d62f Bug 1203426 - Rename StructuredCloneIPCHelper to StructuredCloneData, r=smaug
--HG--
rename : dom/ipc/StructuredCloneIPCHelper.cpp => dom/ipc/StructuredCloneData.cpp
rename : dom/ipc/StructuredCloneIPCHelper.h => dom/ipc/StructuredCloneData.h
2015-09-10 21:50:58 +01:00
Ben Tian e610a0254c Bug 1189315 - Add daemon interface for HFP WBS callback. r=tzimmermann
--HG--
extra : rebase_source : b47a3bc53aacedec82859d44a9fcedfd069e5bd4
2015-07-31 15:55:28 +08:00
Ryan VanderMeulen 0f38752ebc Merge inbound to m-c. a=merge 2015-08-31 15:21:02 -04:00
Thomas Zimmermann f0d5f8b3dc Bug 1199110: Remove AVRCP support from |BluetoothA2dpManager| and convert callers, r=shuang
This patch removes AVRCP support from |BluetoothA2dpManager| and
converts all callers to use |BluetoothAvrcpManager| instead.
2015-08-31 17:27:47 +02:00
Thomas Zimmermann 1d5487d615 Bug 1199110: Add |BluetoothAvrcpManager| to Bluedroid and BlueZ backends, r=shuang
The new |BluetoothAvrcpManager| classes are copies of |BluetoothA2dpManager|
without the A2DP bits.

--HG--
rename : dom/bluetooth/bluedroid/BluetoothA2dpManager.cpp => dom/bluetooth/bluedroid/BluetoothAvrcpManager.cpp
rename : dom/bluetooth/bluedroid/BluetoothA2dpManager.h => dom/bluetooth/bluedroid/BluetoothAvrcpManager.h
rename : dom/bluetooth/bluez/BluetoothA2dpManager.cpp => dom/bluetooth/bluez/BluetoothAvrcpManager.cpp
rename : dom/bluetooth/bluez/BluetoothA2dpManager.h => dom/bluetooth/bluez/BluetoothAvrcpManager.h
2015-08-31 17:27:47 +02:00
Thomas Zimmermann df94c725aa Bug 1199110: Use mPlayStatus to determine track selection, r=shuang
This change removes AVRCP's dependency on the A2DP state.
2015-08-31 17:27:47 +02:00
Ben Tian f9389ddddf Bug 1193379 - Create dom/bluetooth/common/webapi folder. r=joliu
--HG--
rename : dom/bluetooth/common/BluetoothAdapter.cpp => dom/bluetooth/common/webapi/BluetoothAdapter.cpp
rename : dom/bluetooth/common/BluetoothAdapter.h => dom/bluetooth/common/webapi/BluetoothAdapter.h
rename : dom/bluetooth/common/BluetoothClassOfDevice.cpp => dom/bluetooth/common/webapi/BluetoothClassOfDevice.cpp
rename : dom/bluetooth/common/BluetoothClassOfDevice.h => dom/bluetooth/common/webapi/BluetoothClassOfDevice.h
rename : dom/bluetooth/common/BluetoothDevice.cpp => dom/bluetooth/common/webapi/BluetoothDevice.cpp
rename : dom/bluetooth/common/BluetoothDevice.h => dom/bluetooth/common/webapi/BluetoothDevice.h
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth/common/BluetoothDiscoveryHandle.h => dom/bluetooth/common/webapi/BluetoothDiscoveryHandle.h
rename : dom/bluetooth/common/BluetoothGatt.cpp => dom/bluetooth/common/webapi/BluetoothGatt.cpp
rename : dom/bluetooth/common/BluetoothGatt.h => dom/bluetooth/common/webapi/BluetoothGatt.h
rename : dom/bluetooth/common/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth/common/BluetoothGattCharacteristic.h => dom/bluetooth/common/webapi/BluetoothGattCharacteristic.h
rename : dom/bluetooth/common/BluetoothGattDescriptor.cpp => dom/bluetooth/common/webapi/BluetoothGattDescriptor.cpp
rename : dom/bluetooth/common/BluetoothGattDescriptor.h => dom/bluetooth/common/webapi/BluetoothGattDescriptor.h
rename : dom/bluetooth/common/BluetoothGattServer.cpp => dom/bluetooth/common/webapi/BluetoothGattServer.cpp
rename : dom/bluetooth/common/BluetoothGattServer.h => dom/bluetooth/common/webapi/BluetoothGattServer.h
rename : dom/bluetooth/common/BluetoothGattService.cpp => dom/bluetooth/common/webapi/BluetoothGattService.cpp
rename : dom/bluetooth/common/BluetoothGattService.h => dom/bluetooth/common/webapi/BluetoothGattService.h
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.cpp
rename : dom/bluetooth/common/BluetoothLeDeviceEvent.h => dom/bluetooth/common/webapi/BluetoothLeDeviceEvent.h
rename : dom/bluetooth/common/BluetoothManager.cpp => dom/bluetooth/common/webapi/BluetoothManager.cpp
rename : dom/bluetooth/common/BluetoothManager.h => dom/bluetooth/common/webapi/BluetoothManager.h
rename : dom/bluetooth/common/BluetoothPairingHandle.cpp => dom/bluetooth/common/webapi/BluetoothPairingHandle.cpp
rename : dom/bluetooth/common/BluetoothPairingHandle.h => dom/bluetooth/common/webapi/BluetoothPairingHandle.h
rename : dom/bluetooth/common/BluetoothPairingListener.cpp => dom/bluetooth/common/webapi/BluetoothPairingListener.cpp
rename : dom/bluetooth/common/BluetoothPairingListener.h => dom/bluetooth/common/webapi/BluetoothPairingListener.h
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.cpp
rename : dom/bluetooth/common/BluetoothPbapRequestHandle.h => dom/bluetooth/common/webapi/BluetoothPbapRequestHandle.h
2015-08-21 15:15:41 +08:00
Ben Tian 8ddbe69e4f Bug 1193379 - Move backend-neutral files into dom/bluetooth/common. r=joliu
--HG--
rename : dom/bluetooth/BluetoothCommon.h => dom/bluetooth/common/BluetoothCommon.h
rename : dom/bluetooth/BluetoothHfpManagerBase.h => dom/bluetooth/common/BluetoothHfpManagerBase.h
rename : dom/bluetooth/BluetoothHidManager.cpp => dom/bluetooth/common/BluetoothHidManager.cpp
rename : dom/bluetooth/BluetoothHidManager.h => dom/bluetooth/common/BluetoothHidManager.h
rename : dom/bluetooth/BluetoothInterface.cpp => dom/bluetooth/common/BluetoothInterface.cpp
rename : dom/bluetooth/BluetoothInterface.h => dom/bluetooth/common/BluetoothInterface.h
rename : dom/bluetooth/BluetoothPbapRequestHandle.cpp => dom/bluetooth/common/BluetoothPbapRequestHandle.cpp
rename : dom/bluetooth/BluetoothPbapRequestHandle.h => dom/bluetooth/common/BluetoothPbapRequestHandle.h
rename : dom/bluetooth/BluetoothProfileManagerBase.h => dom/bluetooth/common/BluetoothProfileManagerBase.h
rename : dom/bluetooth/BluetoothRilListener.cpp => dom/bluetooth/common/BluetoothRilListener.cpp
rename : dom/bluetooth/BluetoothRilListener.h => dom/bluetooth/common/BluetoothRilListener.h
rename : dom/bluetooth/BluetoothSocketObserver.h => dom/bluetooth/common/BluetoothSocketObserver.h
rename : dom/bluetooth/BluetoothUtils.cpp => dom/bluetooth/common/BluetoothUtils.cpp
rename : dom/bluetooth/BluetoothUtils.h => dom/bluetooth/common/BluetoothUtils.h
rename : dom/bluetooth/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuid.cpp
rename : dom/bluetooth/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuid.h
rename : dom/bluetooth/ObexBase.cpp => dom/bluetooth/common/ObexBase.cpp
rename : dom/bluetooth/ObexBase.h => dom/bluetooth/common/ObexBase.h
2015-08-21 15:17:44 +08:00
Ben Tian 44c939383c Bug 1193379 - Rename bluetooth2 folder to common. r=joliu
--HG--
rename : dom/bluetooth/bluetooth2/BluetoothAdapter.cpp => dom/bluetooth/common/BluetoothAdapter.cpp
rename : dom/bluetooth/bluetooth2/BluetoothAdapter.h => dom/bluetooth/common/BluetoothAdapter.h
rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.cpp => dom/bluetooth/common/BluetoothClassOfDevice.cpp
rename : dom/bluetooth/bluetooth2/BluetoothClassOfDevice.h => dom/bluetooth/common/BluetoothClassOfDevice.h
rename : dom/bluetooth/bluetooth2/BluetoothDevice.cpp => dom/bluetooth/common/BluetoothDevice.cpp
rename : dom/bluetooth/bluetooth2/BluetoothDevice.h => dom/bluetooth/common/BluetoothDevice.h
rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.cpp => dom/bluetooth/common/BluetoothDiscoveryHandle.cpp
rename : dom/bluetooth/bluetooth2/BluetoothDiscoveryHandle.h => dom/bluetooth/common/BluetoothDiscoveryHandle.h
rename : dom/bluetooth/bluetooth2/BluetoothGatt.cpp => dom/bluetooth/common/BluetoothGatt.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGatt.h => dom/bluetooth/common/BluetoothGatt.h
rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.cpp => dom/bluetooth/common/BluetoothGattCharacteristic.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattCharacteristic.h => dom/bluetooth/common/BluetoothGattCharacteristic.h
rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.cpp => dom/bluetooth/common/BluetoothGattDescriptor.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattDescriptor.h => dom/bluetooth/common/BluetoothGattDescriptor.h
rename : dom/bluetooth/bluetooth2/BluetoothGattServer.cpp => dom/bluetooth/common/BluetoothGattServer.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattServer.h => dom/bluetooth/common/BluetoothGattServer.h
rename : dom/bluetooth/bluetooth2/BluetoothGattService.cpp => dom/bluetooth/common/BluetoothGattService.cpp
rename : dom/bluetooth/bluetooth2/BluetoothGattService.h => dom/bluetooth/common/BluetoothGattService.h
rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.cpp => dom/bluetooth/common/BluetoothLeDeviceEvent.cpp
rename : dom/bluetooth/bluetooth2/BluetoothLeDeviceEvent.h => dom/bluetooth/common/BluetoothLeDeviceEvent.h
rename : dom/bluetooth/bluetooth2/BluetoothManager.cpp => dom/bluetooth/common/BluetoothManager.cpp
rename : dom/bluetooth/bluetooth2/BluetoothManager.h => dom/bluetooth/common/BluetoothManager.h
rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.cpp => dom/bluetooth/common/BluetoothPairingHandle.cpp
rename : dom/bluetooth/bluetooth2/BluetoothPairingHandle.h => dom/bluetooth/common/BluetoothPairingHandle.h
rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.cpp => dom/bluetooth/common/BluetoothPairingListener.cpp
rename : dom/bluetooth/bluetooth2/BluetoothPairingListener.h => dom/bluetooth/common/BluetoothPairingListener.h
rename : dom/bluetooth/bluetooth2/BluetoothProfileController.cpp => dom/bluetooth/common/BluetoothProfileController.cpp
rename : dom/bluetooth/bluetooth2/BluetoothProfileController.h => dom/bluetooth/common/BluetoothProfileController.h
rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.cpp => dom/bluetooth/common/BluetoothReplyRunnable.cpp
rename : dom/bluetooth/bluetooth2/BluetoothReplyRunnable.h => dom/bluetooth/common/BluetoothReplyRunnable.h
rename : dom/bluetooth/bluetooth2/BluetoothService.cpp => dom/bluetooth/common/BluetoothService.cpp
rename : dom/bluetooth/bluetooth2/BluetoothService.h => dom/bluetooth/common/BluetoothService.h
2015-08-21 15:19:12 +08:00
Ben Tian f1367d5c1e Bug 1193379 - Move ipc and tests folders out from dom/bluetooth/bluetooth2. r=joliu
--HG--
rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.cpp => dom/bluetooth/ipc/BluetoothChild.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothChild.h => dom/bluetooth/ipc/BluetoothChild.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothMessageUtils.h => dom/bluetooth/ipc/BluetoothMessageUtils.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.cpp => dom/bluetooth/ipc/BluetoothParent.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothParent.h => dom/bluetooth/ipc/BluetoothParent.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.cpp => dom/bluetooth/ipc/BluetoothServiceChildProcess.cpp
rename : dom/bluetooth/bluetooth2/ipc/BluetoothServiceChildProcess.h => dom/bluetooth/ipc/BluetoothServiceChildProcess.h
rename : dom/bluetooth/bluetooth2/ipc/BluetoothTypes.ipdlh => dom/bluetooth/ipc/BluetoothTypes.ipdlh
rename : dom/bluetooth/bluetooth2/ipc/PBluetooth.ipdl => dom/bluetooth/ipc/PBluetooth.ipdl
rename : dom/bluetooth/bluetooth2/ipc/PBluetoothRequest.ipdl => dom/bluetooth/ipc/PBluetoothRequest.ipdl
rename : dom/bluetooth/bluetooth2/tests/marionette/head.js => dom/bluetooth/tests/marionette/head.js
rename : dom/bluetooth/bluetooth2/tests/marionette/manifest.ini => dom/bluetooth/tests/marionette/manifest.ini
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_discovery_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_discovery.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_enable_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_enable.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_pair_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_pair.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothAdapter_setters_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothAdapter_setters.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothDevice_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothDevice.js
rename : dom/bluetooth/bluetooth2/tests/marionette/test_dom_BluetoothManager_API2.js => dom/bluetooth/tests/marionette/test_dom_BluetoothManager.js
2015-08-25 17:57:09 +08:00
Thomas Zimmermann 8b05a4caa1 Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 17:06:51 +02:00
Nigel Babu b5f476b707 Backed out changeset adb6cdbdd2ed for emulator build bustage (Bug 1197815) 2015-08-25 17:59:18 +05:30
Thomas Zimmermann 72056dd1ea Bug 1197815: Add missing |BluetoothHfpManager::IsNrecEnabled|, r=shuang 2015-08-25 13:18:00 +02:00
Thomas Zimmermann 10a11a892a Bug 1197877: Remove |INIT_AT| macro from Bluetooth, r=btian
|INIT_AT| works around missing compiler features for gcc before
version 4.7. All B2G targets have been lifted to gcc 4.8, so the
workaround is not required any longer.
2015-08-25 10:00:56 +02:00
Thomas Zimmermann 4d09b89836 Bug 1197877: Remove |CONVERT| macro from Bluetooth, r=btian
The macro |CONVERT| implements a workaround for GCC compilers
before version 4.7. All targets of B2G have been lifted to GCC
4.8, so |CONVERT| is not required any longer.
2015-08-25 10:00:56 +02:00
Fernando Jimenez 5710b7f89d Bug 1162281 - Invalid system message handler in an App Manifest can break the entire system. r=fabrice 2015-07-02 11:00:23 +02:00
Thomas Zimmermann 0a134355e7 Bug 1195729: Fix ref-counting of Bluetooth result handlers for failed send operations, r=brsun
Usually references to Bluetooth result handlers are kept until the
command's response has been received and the result handler ran. If
sending the command fails, the extra reference has to be dropped.
With this patch, Gecko will correctly dereference Bluetooth result
handlers when send operations fail.

Thanks to Bruce Sun for finding this bug.
2015-08-24 15:21:38 +02:00
Jamin Liu 400ba4913c CLOSED TREE Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian
Conflicts:

	dom/bluetooth/bluedroid/BluetoothPbapManager.cpp
2015-08-24 10:30:07 +08:00
Jamin Liu abf6b30110 CLOSED TREE Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-24 10:30:03 +08:00
Jamin Liu c20b04c87a CLOSED TREE Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-24 10:29:56 +08:00
Sebastian Hengst d696b604ec Backed out 3 changesets (131251625ee8 for bug 1180556, 5bdcc058e6d6 for bug 1180555, f7e0cd74c082 for bug 1180554) for B"G ICS Emulator opt M8 and debug M19 failures. r=backout
Backed out changeset 131251625ee8 (bug 1180556)
Backed out changeset 5bdcc058e6d6 (bug 1180555)
Backed out changeset f7e0cd74c082 (bug 1180554)
2015-08-21 11:19:41 +02:00
Jocelyn Liu a81cf1b3e6 Bug 1181480 - Add and implement GATT server connection related Web APIs. r=btian, r=mrbkap 2015-08-21 17:11:14 +08:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Jamin Liu 2682f19ec9 Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian 2015-08-21 09:52:04 +08:00
Jamin Liu 2c7a6e9d19 Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-21 09:51:50 +08:00
Jamin Liu 704ef5eefd Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-21 09:51:41 +08:00
Jocelyn Liu ed3e351a68 Bug 1181512 - Use a single GATT interface, result handler, and notification handler for both GATT client and server operations in bluetooth daemon backend as bluez ipc protocol. r=tzimmermann 2015-08-19 14:28:06 -07:00
Ryan VanderMeulen a10daa3bd6 Backed out 3 changesets (bug 1180556, bug 1180555, bug 1180554) for test_interfaces.html failures.
Backed out changeset 3210b4a21f50 (bug 1180556)
Backed out changeset d08f41259fb9 (bug 1180555)
Backed out changeset ad74716bf6e7 (bug 1180554)
2015-08-19 07:26:50 -04:00
Jamin Liu 93c02de5fb Bug 1180556 - Pack PBAP replies to OBEX response message and reply to remote device. r=btian 2015-08-19 11:41:24 +08:00
Jamin Liu 8e7f9405fb Bug 1180555 - Handle PBAP replies and pass the results through IPC to PbapManager. r=btian 2015-08-19 11:41:01 +08:00
Jamin Liu fc7f5eef9a Bug 1180554 - Dispatch events to PBAP event handlers when the PBAP requests comes. r=btian, r=mrbkap 2015-08-19 11:40:36 +08:00
Ben Tian d4e5970e84 Bug 1195608 - [cleanup] Fix too long lines and revise some comments under dom/bluetooth, r=joliu 2015-08-18 11:29:45 +08:00
Ben Tian 758a5e9af8 Bug 1195604 - [cleanup] Integrate similar BluetoothResultHandlers into basic one, r=tzimmermann 2015-08-18 15:53:41 +08:00
Ben Tian 9c177c52d4 Bug 1055434 - Do not inform gaia of current blob's sending failure before assigning it, r=shuang 2015-08-18 17:31:41 +08:00
Ben Tian 9636b618b1 Bug 1192693 - [03] Remove bluetooth1 code from backend, r=tzimmermann 2015-08-17 15:30:37 +08:00
Ben Tian a0a229d80d Bug 1192693 - [02] Remove bluetooth1 folder and rename webidl files, r=joliu, r=mrbkap
--HG--
rename : dom/webidl/BluetoothAdapter2.webidl => dom/webidl/BluetoothAdapter.webidl
rename : dom/webidl/BluetoothDevice2.webidl => dom/webidl/BluetoothDevice.webidl
rename : dom/webidl/BluetoothManager2.webidl => dom/webidl/BluetoothManager.webidl
2015-08-17 15:30:34 +08:00
Aryeh Gregor 0ccef27b6a Bug 1179451 - Part 1: Rewrite some ternary operators as if/else. r=froydnj
--HG--
extra : rebase_source : 161e415b6f518bf2b82e45b6f7f8d21298712d81
2015-08-13 15:22:48 +03:00
Jamin Liu 8ce6e533bb Bug 1192695 - Use pref instead of pre-defined C string as origin of bluetooth app. r=btian 2015-08-13 12:56:09 +08:00
Aryeh Gregor 5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Will Wang 9fd88cded3 Bug 825149 - Support HFP NREC feature. r=shuang 2015-08-10 04:51:00 -04:00
Will Wang 80bbaca7f1 Bug 825149 - Add NREC feature bit in bluetooth stack. r=shuang 2015-08-07 03:15:00 -04:00
Birunthan Mohanathas e00f212825 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-02-02 17:36:31 +02:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Ben Tian ba68749da3 Bug 1190730 - Patch 5/5: Wrap get device related variables into get device request, r=joliu 2015-08-07 14:43:44 +08:00
Ben Tian f465f5fca3 Bug 1190730 - Patch 4/5: Make runnable arrays member variables, r=joliu 2015-08-07 10:38:21 +08:00
Ben Tian 0764f341f9 Bug 1190730 - Patch 3/5: Make address-name mapping table member variable, r=joliu 2015-08-07 10:31:42 +08:00
Ben Tian 195a54c7fa Bug 1190730 - Patch 2/5: Make backend recovery variables member ones, r=joliu 2015-08-07 10:29:16 +08:00
Ben Tian 5662156042 Bug 1190730 - Patch 1/5: Make adapter properties member variables, r=joliu 2015-08-07 10:31:27 +08:00
Ben Tian e5a7ce7584 Bug 1173266 - [cleanup] Remove unused |isConnected| from bluetooth2, r=tzimmermann 2015-08-05 15:19:43 +08:00
Ben Tian a67db0a86c Bug 1106007 - Cleanup include guards. r=tzimmermann 2015-08-04 17:39:30 +08:00
Thomas Zimmermann 0358354bf5 Bug 1187904: Remove |BluetoothDaemonConnector| and random-address creator, r=shuang 2015-08-03 13:17:02 +02:00
Thomas Zimmermann 55f1cb92b7 Bug 1187904: Convert |BluetoothDaemonInterface| to use |DaemonSocketConnector|, r=shuang 2015-08-03 13:17:02 +02:00
Bruce Sun bdf2608dfb Bug 1181478 - Expose BluetoothGattServer object in BluetoothAdapter. r=btian, r=mrbkap, a=me
--HG--
extra : amend_source : d12e5a977854f40855e15de393b0499c6df4356a
extra : histedit_source : 1aec0f3cc99814111843cde3e082de5ac4d31542
2015-07-24 16:32:35 +08:00
Thomas Zimmermann 66fa98429a Bug 1187249: Cleanup BluetoothInterfaceHelpers.{cpp,h}, r=shuang
This patch moves the last conversion function to Bluetooth's daemon
backend and removes the files BluetoothInterfaceHelpers.{cpp,h}.
2015-07-30 10:34:51 +02:00
Thomas Zimmermann 518504fa87 Bug 1187249: Move Bluetooth init operators to ipc/hal, r=shuang 2015-07-30 10:34:51 +02:00
Thomas Zimmermann 59844436d8 Bug 1183249: Move PDU helper functions to ipc/hal, r=shuang 2015-07-30 10:34:51 +02:00
Thomas Zimmermann 2a71f700c8 Bug 1187249: Move |DaemonSocketPDUHeader| to hal/ipc, r=shuang 2015-07-30 10:34:51 +02:00
Thomas Zimmermann 2f7aeaeba9 Bug 1187872: Remove HAL backend from Bluetooth, r=shuang
Bluedroid's HAL backend has been superseded by the Bluetooth daemon, and
already been unused in current releases. This patch removes the code from
Gecko.
2015-07-30 09:09:26 +02:00
Ben Tian bf72269e00 Bug 1127701 - Fix warning: NS_ENSURE_TRUE(value.isNumber()) failed, r=joliu 2015-07-29 16:40:39 +08:00
Ben Tian e6c5b6e3a5 Bug 1188394 - Fix warning: NS_ENSURE_TRUE(aTypes.Length()) failed, r=joliu 2015-07-29 16:39:02 +08:00
Ryan VanderMeulen c78e298211 Backed out changeset beed8e3e86d9 (bug 1181478) for B2G test_interfaces.html failures. 2015-07-27 15:51:54 -04:00
Bruce Sun 08645287bd Bug 1181478 - Expose BluetoothGattServer object in BluetoothAdapter. r=btian, r=mrbkap 2015-07-24 16:32:35 +08:00
Thomas Zimmermann f378aed204 Bug 1187230: Remove obsolete Bluetooth daemon runnables, r=shuang 2015-07-27 13:33:18 +02:00
Thomas Zimmermann d360346df2 Bug 1187230: Convert Bluetooth to use daemon runnables, r=shuang
With this patch, Bluetooth uses the generic daemon runnables.
2015-07-27 13:33:17 +02:00
Ben Tian ec7a3fd8bc Bug 1181827 - [Aries-L] Store remote device address and name mapping for pairing, r=shuang 2015-07-22 10:23:45 +08:00
Carsten "Tomcat" Book bfa6c9a51b Backed out changeset 83cd70d2b0bb (bug 1187230) 2015-07-24 15:42:08 +02:00
Carsten "Tomcat" Book 46e8760390 Backed out changeset fffe2fc4b8ab (bug 1187230) 2015-07-24 15:42:02 +02:00
Thomas Zimmermann abca31827c Bug 1187230: Remove obsolete Bluetooth daemon runnables, r=shuang 2015-07-24 14:50:06 +02:00
Thomas Zimmermann 1c60aeafa6 Bug 1187230: Convert Bluetooth to use daemon runnables, r=shuang
With this patch, Bluetooth uses the generic daemon runnables.
2015-07-24 14:50:06 +02:00
Thomas Zimmermann 664b02a26f Bug 1186331: Check for \0 when parsing Bluetooth device names, r=btian
This patch adds an explicit check for the terminal \0 character to
the parser that reads Bluetooth device names from bluetoothd. There's
a maximum length of 249 characters per name. If we don't find \0 we
interpret the whole range to contain the device name.
2015-07-24 11:24:47 +02:00
Ben Tian adae4f295b Bug 1186317 - [cleanup] Remove unused macros and unnecessary logs, r=shuang 2015-07-21 18:05:44 +08:00
Bruce Sun 4eac95e011 Bug 1176898 - Remove redundant DisconnectFromOwner of BluetoothDiscoveryHandle. r=btian
--HG--
extra : rebase_source : 3275e369491f07e67d0678d8655c4fcd8f65dca4
2015-07-21 14:09:53 +08:00
Thomas Zimmermann 2eb3afa0bc Bug 1185478: Remove strong references from socket I/O class to socket classes
The shutdown procedure for socket classes ensures that the I/O class is
deleted independently from its socket class. If the socket class has been
deleted, no I/O is performed and no socket events are forwarded. The I/O
class therefore doesn't require a strong reference to its socket class.

This patch removes the remaining ref-counted pointers from the socket I/O
classes. The socket class clears the weak reference in its socket I/O class
when closing the socket.
2015-07-21 08:06:29 +02:00
Thomas Zimmermann 7a8e54aa54 Bug 1185478: Add leak checks to socket I/O classes 2015-07-21 08:06:29 +02:00
Carsten "Tomcat" Book 0f1d4e6541 Merge mozilla-central to mozilla-inbound 2016-01-12 11:56:10 +01:00
Boris Chiou 55464e68da Bug 1238424 - Fix a missing header in Bluetooth module. r=brsun 2016-01-10 19:07:00 +01:00
Thomas Zimmermann 8270c9b2f7 Bug 1180965: Don't disable BT before daemon has been shut down, r=btian
The current shutdown code for Bluetooth contains a race condition
between closing the daemon sockets and re-opening them for the next
instance of the daemon.

This patch fixes the problem by not disabling the Bluetooth adapter
before the sockets have been closed. During the shutdown, no new
instances of the daemon can be started.
2015-07-14 13:28:18 +02:00
Jamin Liu fbd26faa80 Bug 1179713 - fix the manifest of bluetooth2 marionette test set. r=btian 2015-07-14 18:37:49 +08:00
Ben Tian 355b56d87b Bug 1203819 - Fix loop condition in BluetoothPbapManager::PackPropertiesMask, r=shuang 2015-09-11 11:14:26 +08:00
Shawn Huang 42dbe610fe Bug 1166675 - Implement GetMessagesListing function, r=btian 2015-09-11 02:08:41 +08:00
Tom Tung 1b66b77231 Bug 1238842 - Add error codes to Gecko by following W3C spec. r=brsun 2016-02-24 17:56:22 +08:00
Bruce Sun 7d2e3a3d9e Bug 1222956: Use |BluetoothUuid| in |BluetoothDiscoveryHandle|, r=tzimmermann 2016-02-22 11:41:07 +08:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Nicholas Nethercote fbdfd97e75 Bug 1187151 (part 16) - Replace nsBaseHashtable::Enumerate() calls in dom/ with iterators. r=mccr8.
--HG--
extra : rebase_source : 5aceb8e5542d5fa319273eccebded46f6e4730ff
2016-01-28 14:38:38 -08:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas b00cdd6088 Bug 1235261 - Part 6: Rename AutoInfallibleTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Xidorn Quan 7268d4783f Bug 1241901 part 2 - Use intptr_t to pass bluetooth service class instead of a pointer to heap. r=shawnjohnjr
--HG--
extra : source : aae164785cd4d7468588518ef379daf4c73faaac
2016-01-30 10:33:41 +11:00
Bill McCloskey c663839ade Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Carsten "Tomcat" Book 7038334f60 Merge mozilla-central to mozilla-inbound 2016-03-10 11:52:58 +01:00
Tom Tung 8d0ccf2497 Bug 1253217 - Change filename from BluetoothUuid to BluetoothUuidHelper. r=jocelyn
--HG--
rename : dom/bluetooth/common/BluetoothUuid.cpp => dom/bluetooth/common/BluetoothUuidHelper.cpp
rename : dom/bluetooth/common/BluetoothUuid.h => dom/bluetooth/common/BluetoothUuidHelper.h
2016-03-09 10:57:35 +08:00
Jocelyn Liu 539e9fd925 Bug 1170071 - Part 4: Add Gatt server interfaces for Bluetooth daemon. r=shuang
CLOSED TREE
2015-07-08 04:34:00 -04:00
Jocelyn Liu 9fc0663fab Bug 1170071 - Part 3: Add gatt server support to GATT module for Bluetooth daemon. r=shuang 2015-07-08 04:33:00 -04:00
Jocelyn Liu a1b39d5a02 Bug 1170071 - Part 2: Add helpers for Bluetooth daemon GATT server support. r=shuang 2015-07-08 04:31:00 -04:00
Jocelyn Liu ba11710dae Bug 1170071 - Part 1: Revise BluetoothGattInterface, result handler, and interface helper for daemon support of gatt server. r=shuang 2015-07-08 04:30:00 -04:00
Bruce Sun e3ecdbc77a Bug 1161991: Gatt server neutral-backend interface; r=jocelyn 2015-07-06 13:43:54 +08:00
Shawn Huang 758af86f5a Bug 1160126 - Restart bluetoothd daemon automatically for API V2, r=jocelyn 2015-07-07 15:16:57 +08:00
Phil Ringnalda 900c693e30 Merge m-c to m-i 2015-07-03 19:15:06 -07:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ben Tian 45733c0be3 Bug 1179682 - Remove |mName| from BluetoothReplyRunnable, r=joliu 2015-07-02 17:55:54 +08:00
Jocelyn Liu 301ab5a5e7 Bug 1178654 - Fix the uuid length when parsing bluetooth low energy advertisement data. r=btian 2015-07-03 12:39:23 +08:00
Bruce Sun d4a4b4f0a1 Bug 1164387 - Use |btgatt_client_interface_t.get_device_type| to get the device type. r=jocelyn 2015-07-02 12:07:43 +08:00
Ben Tian da8ddddc60 Bug 1179141 - Remove macro |BT_API2_LOGR|, r=joliu 2015-07-02 15:13:41 +08:00
Jan de Mooij 2c2b7af49c Bug 1177892 part 4 - Remove INT_TO_JSVAL. r=evilpie 2015-06-30 21:10:04 -07:00
Jan de Mooij 155b1afd35 Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie 2015-06-30 11:20:56 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Jamin Liu b092e9d032 Bug 1175067 - Switch Bluetooth marionette test set to BT API v2 and disable unsupported tests. r=joliu 2015-06-17 18:00:26 +08:00
Thomas Zimmermann 8fc78fed3e Bug 1172914: Merge duplicated code in |BluetoothServiceBluedroid| for simple cases, r=btian 2015-06-16 17:28:07 +02:00
Thomas Zimmermann 584df01b4a Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.cpp, r=btian 2015-06-16 17:28:07 +02:00
Thomas Zimmermann 91bea80ee8 Bug 1172914: Minimize Bluetooth v1/v2 duplication in BluetoothServiceBluedroid.h, r=btian 2015-06-16 17:28:07 +02:00
Jocelyn Liu 0d4e05f63a Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-16 09:38:50 +08:00
Jocelyn Liu 51e64c0d2c Bug 1174717 - Passing fallible when calling AppendElement method for Sequence types in bluetooth2. r=shuang 2015-06-15 08:41:00 -04:00
Thomas Zimmermann 3126a07df4 Bug 1171017: Move classes from ipc/bluetooth to ipc/hal, r=shuang
The class |DaemonSocket| and its helpers implement a service-
neutral connection to a HAL daemon. This patch moves the code
to an appropriate directory and breaks up the code into smaller
pieces.

--HG--
rename : ipc/bluetooth/BluetoothDaemonConnection.cpp => ipc/hal/DaemonSocket.cpp
rename : ipc/bluetooth/BluetoothDaemonConnection.h => ipc/hal/DaemonSocket.h
rename : ipc/bluetooth/BluetoothDaemonConnectionConsumer.cpp => ipc/hal/DaemonSocketConsumer.cpp
rename : ipc/bluetooth/BluetoothDaemonConnectionConsumer.h => ipc/hal/DaemonSocketConsumer.h
rename : ipc/bluetooth/moz.build => ipc/hal/moz.build
2015-06-15 14:44:03 +02:00
Thomas Zimmermann 41d8f3ac72 Bug 1171017: Rename |BluetoothDaemonConnection| to |DaemonSocket|, r=shuang 2015-06-15 14:44:03 +02:00
Thomas Zimmermann 160760d61d Bug 1171017: Rename |BluetoothSocketPDU| to |DaemonSocketPDU|, r=shuang 2015-06-15 14:44:03 +02:00
Thomas Zimmermann 4a2cc0e217 Bug 1171017: Rename |BluetoothDaemonPDUConsumer| to |DaemonSocketIOConsumer|, r=shuang 2015-06-15 14:44:03 +02:00
Thomas Zimmermann de38317b09 Bug 1171017: Rename |BluetoothDaemonConnectionConsumer| to |DaemonSocketConsumer|, r=shuang 2015-06-15 14:44:03 +02:00
Shawn Huang 434fcb6904 Backed out changesets 0832ffdd8144 for Bug 1167064 2015-06-15 19:05:03 +08:00
Jocelyn Liu 3ded2db982 Bug 1167064 - Patch1: Switch to bluetooth APIv2. r=shuang 2015-06-15 17:11:35 +08:00
Jocelyn Liu 79a8bee656 Bug 1174071 - Remove 'required' keyword for Bluetooth*EventInit dictionary members. r=btian, r=bz 2015-06-15 17:11:18 +08:00
Bruce Sun b47876dbca Bug 1161945 - Fix empty characteristics and descriptors after searching services. f=elin, r=jocelyn 2015-06-12 10:44:57 +08:00
Bruce Sun 31d53bb99d Bug 1171868 - Remove GeneratePathFromGattId(aId, aPath, aUuidStr); r=jocelyn 2015-06-11 18:06:43 +08:00
Bruce Sun 7eb3205b86 Bug 1171866 - Remove ReversedUuidToString; f=tzimmermann, r=jocelyn 2015-06-11 18:01:00 +08:00
Thomas Zimmermann da8f73f148 Bug 1172479: Replace |nsIThread| by |MessageLoop| in socket I/O code, r=kmachulis
Dispatching events via |nsIThread| doesn't work with worker threads. This
patch replaces all uses of |nsIThread| in the socket code by equivalent
uses of |MessageLoop|.
2015-06-09 09:50:10 +02:00
Ryan VanderMeulen c0c862683b Backed out changeset 150544a28405 (bug 1167064) for B2G mochitest failures. 2015-06-08 15:41:26 -04:00
Jocelyn Liu cbe97e5b2b Bug 1167064 - Switch to bluetooth APIv2. r=shuang 2015-06-04 02:59:00 -04:00
Jocelyn Liu d4ad97113a Bug 1171100 - Fix incorrect logic of handling Bluetooth Gatt Responses in daemon backend. r=tzimmermann 2015-06-04 02:53:00 -04:00
Jocelyn Liu 51e5ac94e1 Bug 1170971 - Part 2: Fix BluetoothGattAdvData unpacking in daemon backend. r=tzimmermann 2015-06-04 02:56:00 -04:00
Jocelyn Liu 9445ea0e91 Bug 1170971 - Part 1: Fix BluetoothGattReadParam unpacking in daemon backend. r=tzimmermann 2015-06-04 02:55:00 -04:00
Bruce Sun 75cb2ea259 Bug 1161956 - Fix crashes while using GATT client functions. r=jocelyn 2015-06-03 18:19:43 +08:00
Jocelyn Liu fc8c6db4a0 Bug 1170076 - Use snprintf instead of sprintf when parsing bluetooth GATT advertisement data. r=shuang 2015-06-02 19:58:00 -04:00
Thomas Zimmermann 974a0b5beb Bug 1168806: Use 'consumer thread' in socket interface, r=kmachulis
The socket IPC interfaces still use 'main thread' in a number of
places. This patch changes all such interfaces and documentation
to speak of 'consumer thread' instead.
2015-06-02 10:01:58 +02:00
Thomas Zimmermann 7c1faa403c Bug 1168806: Configurable consumer thread for socket IPC classes, r=kmachulis
The consumer thread handles socket creation, destruction, and
data processing for socket IPC. Traditionally this has been
done on the main thread.

This patch extends the socket IPC classes to support arbitrary
consumer threads. The thread is configured when establishing a
connection, and performs all of the above operations until the
socket is closed.
2015-06-02 10:01:57 +02:00
Thomas Zimmermann 100bf3cb9c Bug 1168806: Configurable I/O thread for socket IPC classes, r=kmachulis
The I/O thread sends and receives data on a file descriptor. This
has traditionally been performed on a single I/O thread.

This patch extends the socket IPC classes to support arbitrary I/O
threads. The thread is configured when a connection is established
and used until the socket gets closed.
2015-06-02 10:01:57 +02:00
Jamin Liu 1fc46c5d1a Bug 1170086 - Fix the parameter type of DispatchReplyError() in StartLeScan result handler. r=joliu 2015-06-02 13:55:12 +08:00
Thomas Zimmermann be105911a1 Bug 1168446: Don't store connection parameters in |BluetoothSocket|, r=shuang 2015-06-01 10:42:29 +02:00
Thomas Zimmermann c058d1866f Bug 1168446: Change |BluetoothSocket::{ListenSocket,ConnectSocket}| interface, r=shuang
This patch changes |BluetoothSocket::{ListenSocket,ConnectSocket}| to
be similar to the corresponding interfaces in ipc/unixsocket.
2015-06-01 10:42:29 +02:00
Thomas Zimmermann af2cdafd65 Bug 1168446: Remove |BluetoothSocket::GetSocketAddr|, r=shuang 2015-06-01 10:42:29 +02:00
Thomas Zimmermann 8cfafc9225 Bug 1168446: Remove |Disconnect| from BlueZ's |BluetoothSocket|, r=shuang
The method |BluetoothSocket::Disconnect| is just a wrapper around
|Close|. This patch replaces all invocations of |Disconnect| with
|Close| and removes the method.
2015-06-01 10:42:29 +02:00
Jocelyn Liu 3ed8787538 Bug 1163499 - Part 5: Support GATT profile when using Bluetooth daemon. r=tzimmermann 2015-05-27 00:05:00 -04:00
Jocelyn Liu 73919eb14b Bug 1163499 - Part 4: Add GATT and GATT client interfaces for Bluetooth daemon. r=tzimmermann 2015-05-27 04:53:00 -04:00
Jocelyn Liu 61acad2278 Bug 1163499 - Part 3: Add GATT module for Bluetooth daemon. r=tzimmermann 2015-05-27 04:52:00 -04:00
Jocelyn Liu d524ff2ee1 Bug 1163499 - Part 2: Add helpers for Bluetooth daemon GATT client support. r=tzimmermann 2015-05-27 00:03:00 -04:00
Jocelyn Liu 18919dda88 Bug 1163499 - Part 1: Revise BluetoothGattInterface and result handler for daemon support. r=tzimmermann 2015-05-27 04:50:00 -04:00
Bevis Tseng 791acb3ff2 Bug 1114938 - Part 2.1: (Gonk) Refactor Stk Proactive Commands from IccProvider to IccService. r=echen 2015-04-27 16:01:56 +08:00
Thomas Zimmermann 621428ac80 Bug 1167210: Replace |union sockaddr_any| with |struct sockaddr_storage|, r=kmachulis
Both types, |union sockaddr_any| and |struct sockaddr_storage|, provide
a sockaddr type that can hold any address. The latter is standardized by
POSIX, so we prefer it.
2015-05-27 13:49:07 +02:00
Jamin Liu 18cfa5abf8 Bug 1168343 - Remove the improper MOZ_ASSERT in |BluetoothServiceBluedroid::BondStateChangedNotification|. r=shuang 2015-05-27 13:38:21 +08:00
Jamin Liu 8471b57f5f Bug 1168266 - Add few member functions of ObexHeaderSet for PBAP. r=shuang 2015-05-27 09:48:02 +08:00
Thomas Zimmermann f6aa576d06 Bug 1167207: Remove |BluetoothDaemonChannel|, r=shuang
This patch integrates the functionality of |BluetoothDaemonChannel|
into |BluetoothDaemonConnection|. All users are adapted, the former
class is removed.
2015-05-26 18:29:02 +02:00
Thomas Zimmermann f9ce4741fd Bug 1166638: Use |ListenSocketConsumer| in |ListenSocket|, r=kmachulis, dlee, chucklee, shuang
This patch converts |ListenSocket| to forward events to an instance
of |ListenSocketConsumer|. All users are converted and the related
listener and consumer classes are removed.
2015-05-26 13:24:20 +02:00
Jamin Liu bbd9c05ae1 Bug 1165182 - Stop LE scans when Bluetooth adapter is disconnected from its owner. r=joliu 2015-05-26 10:33:47 +08:00
Jocelyn Liu b6e89a6aac Bug 1167070 - Overwrite BLE related flags to enable BLE functionalities in bluedroid for both bluetooth1 and bluetooth2. r=shuang 2015-05-22 20:07:00 -04:00
Shawn Huang 90b0cf89c5 Bug 1166469 - Add HandleBackendError for hfp-fallback product, r=btian 2015-05-22 11:45:54 +08:00
Carsten "Tomcat" Book 92162b368c Merge mozilla-central to b2g-inbound 2015-05-21 15:19:27 +02:00
Carsten "Tomcat" Book b4dc8a79b7 merge mozilla-inbound to mozilla-central a=merge 2015-05-21 14:56:34 +02:00
Thomas Zimmermann 70a7cf2bf2 Bug 1164417: Add |ConnectionOrientedSocket::PrepareAccept| for accepting socket connections, r=kmachulis
With this patch, stream and listening sockets handle the setup of
accepted sockets internally. Sub-classes of |StreamSocket| don't
have to overload StreamSocket's |GetIO| any longer.
2015-05-21 13:34:37 +02:00
Thomas Zimmermann 38232bed0f Bug 1164417: Store PDU consumer in |BluetoothDaemonConnection|, r=kmachulis 2015-05-21 13:34:37 +02:00
Thomas Zimmermann 5689bc8e15 Bug 1164417: Add |UnixSocketConnector::Duplicate|, r=kmachulis
The new method |UnixSocketConnector::Duplicate| allows a socket
connector to duplicate itself. Listening sockets will used this
feature to create socket connectors for accepted connections.
2015-05-21 13:34:37 +02:00
Ben Tian ea0745da15 Bug 1166587 - Check OBEX packet length before accessing it, r=shuang 2015-05-21 14:11:20 +08:00
Ben Hsu 0dcea7919b Bug 1147736 - Part 4: Deprecate NotifyError(Bluetooth). r=btian
--HG--
extra : rebase_source : cfc91c6c0941584f9fe9ff707ec85dda7a78add2
extra : source : 80ad8826d772983bb479ace951fa2395f6a26e80
2015-05-08 00:21:00 -04:00
Wes Kocher ac1c135457 Merge m-c to inbound, a=merge 2015-05-20 18:30:33 -07:00
Bobby Holley 3b6ba803a8 Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking
We also provide an opt-out for the original behavior, and use it in various
consumers that look like they need fixing up. Most of the usage here is in
code with persistence considerations, where we may need some sort of migration
path.
2015-05-20 17:11:49 -07:00
Cameron McCormack c7b07bee01 Bug 1166575 - Silence uninitialized variable error in BluetoothHALInterface.cpp when building a debug B2G build. r=tzimmermann 2015-05-21 10:01:59 +10:00
Carsten "Tomcat" Book 12f69af823 merge mozilla-inbound to mozilla-central a=merge 2015-05-20 15:52:31 +02:00
Thomas Zimmermann 840f154d6b Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 10:50:43 +02:00
Thomas Zimmermann 1237cad18c Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis 2015-05-20 10:50:43 +02:00
Carsten "Tomcat" Book 1aa07d706a Backed out changeset 1e93024c9fec (bug 1164425) for bustage 2015-05-20 10:31:55 +02:00
Carsten "Tomcat" Book 1a15bd1430 Backed out changeset 17bd0777339a (bug 1164425) 2015-05-20 10:30:55 +02:00
Thomas Zimmermann 6a46c5c7cf Bug 1164425: Cleanup interfaces of |ListenSocket|, r=kmachulis
This patch removes |ListenSocket::GetSocketAddr|, which is unused
and not thread-safe. The |Listen| methods now return error codes.
2015-05-20 09:54:27 +02:00
Thomas Zimmermann 533d048a4b Bug 1164425: Rename |SocketBase::CloseSocket| to |SocketBase::Close|, r=kmachulis 2015-05-20 09:54:27 +02:00
Ben Tian 478901b821 Bug 1162902 - Implement PBAP SetPhoneBook function, r=shuang 2015-05-20 14:40:01 +08:00
Jamin Liu cf0fd0d19c Bug 1166215 - Cast 'BluetoothTypeOfDevice' to uint32_t before the BT signal is distributed to BluetoothAdapter. r=joliu 2015-05-20 14:29:25 +08:00
Ben Tian 8aa4af6efd Bug 1166176 - [cleanup] Simplify volume related code in OPP manager, r=shuang 2015-05-19 17:09:56 +08:00
Ben Tian 2248c8f63a Bug 1166180 - [cleanup] Remove function |EnsureBluetoothHalLoad| in BluetoothServiceBluedroid, r=shuang 2015-05-19 17:02:01 +08:00
Thomas Zimmermann a4face3b55 Bug 1161020: Remove old interface and implementation from socket-connector classes, r=kmachulis 2015-05-19 13:28:46 +02:00
Thomas Zimmermann cd0d102a9b Bug 1161020: Use new socket-connector interface in socket classes, r=kmachulis
This patch converts the socket I/O classes to use the new interface
of the socket-connector classes. All sockets are now created and set
up by a socket connector.
2015-05-19 13:28:46 +02:00
Thomas Zimmermann 7066f2b6f0 Bug 1161020: Implement new socket-connector interface for Bluetooth sockets, r=btian 2015-05-19 13:28:46 +02:00
Thomas Zimmermann 34117f6140 Bug 1161020: Implement new socket-connector interface for Bluetooth daemon socket, r=shuang
This patch moves |BluetoothDaemonSocketConnector| into its own file,
renames it to |BluetoothDaemonConnector| and implements the new socket-
connector interface.
2015-05-19 13:28:46 +02:00