Ed Morley
d0a6230a88
Merge mozilla-central and b2g-inbound
2013-08-02 13:51:22 +01:00
Ed Morley
a9606b2dba
Merge latest green b2g-inbound changeset and mozilla-central
2013-08-02 13:30:22 +01:00
Thomas Zimmermann
25d75a02dd
Bug 892933: Replace AddServiceRecordsInternal by non-blocking implementation, r=echou,gyeh
...
AddServiceRecordsInternal blocks the Bluetooth command thread while
waiting for a DBus reply. This patch replaces the function by a DBus
reply handler that runs asynchrounously on the DBus thread.
2013-08-02 09:30:55 +02:00
Mike Hommey
d01b5df996
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Gina Yeh
2d4b9278a9
Bug 853221 - Patch 2: Distribute events from BluetoothAdapter, r=smaug, sr=mrbkap
2013-08-02 18:33:15 +08:00
Gina Yeh
6a7c0fc791
Bug 853221 - Patch 1: Distribute connection/pair status to BluetoothAdapter, r=echou
2013-08-02 18:32:57 +08:00
Eric Chou
94d685e575
Bug 892392 - Execute BluetoothService::StartInternal() at startup, r=gyeh
2013-08-02 11:58:01 +08:00
Eric Chou
e1578b7f3f
Bug 899711 - Notify file change after receiving an one-packet-size file, r=gyeh
2013-08-01 12:32:18 +08:00
Kyle Machulis
18ad4d3df5
Bug 899734: Fix bluetooth compile errors on desktop b2g; r=echou
2013-07-31 18:10:16 -07:00
Gina Yeh
c7f0c9d4d1
Bug 899949 - Failed to disconnect A2DP when turning off Bluetooth, r=echou
2013-07-31 19:06:50 +08:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Gina Yeh
a32e46ab24
Bug 842934 - Patch 1: Add topic for hfp status changed and notify observers with device address, r=echou
2013-07-30 17:34:56 +08:00
Ms2ger
0726a5ce03
Bug 897484 - followup: root newly added code to fix bustage on a CLOSED TREE.
2013-07-29 18:27:04 +02:00
Ed Morley
c02ed6a62f
Merge mozilla-central and inbound
2013-07-29 15:42:41 +01:00
Gina Yeh
cb1dd152e8
Bug 842948 - Patch 6: Implement dictionaries, r=echou
2013-07-29 17:32:35 +08:00
Gina Yeh
e2b3ad28c1
Bug 842948 - Patch 5: Implement UpdateNotification, r=echou
2013-07-29 17:32:34 +08:00
Gina Yeh
e2b601ffc3
Bug 842948 - Patch 4: Handle signal "GetPlayStatus", r=echou
2013-07-29 17:32:34 +08:00
Gina Yeh
4c98db78ae
Bug 842948 - Patch 3: Cache AVRCP data in BluetoothA2dpManager, r=echou
2013-07-29 17:32:34 +08:00
Gina Yeh
41d806ac30
Bug 842948 - Patch 2: Handle control signal "PropertyChanged" and add IsConnected() in BluetoothProfileManagerBase, r=echou
2013-07-29 17:32:34 +08:00
Gina Yeh
a07f368f4e
Bug 842948 - Patch 1: Implement API for AVRCP 1.3, r=echou, sr=mrbkap
2013-07-29 17:32:34 +08:00
Jon Coppeard
8278efd42a
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
8c89deb65b
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Jon Coppeard
1463e7df5b
Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz
2013-07-26 10:00:38 +01:00
Ryan VanderMeulen
bc61d30573
Merge m-c to inbound.
2013-07-25 21:59:02 -04:00
Alive Kuo
b2f4623018
Bug 887650 - Append extra information about activity caller in system message. r=gene
2013-07-25 13:18:24 -04:00
Jon Coppeard
477e4df5c5
Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz
2013-07-25 13:57:00 +01:00
Thomas Zimmermann
cd5cc34c31
Bug 891866: Implement RegisterAgent with asyncronous functions, r=echou,gyeh
...
RegisterAgent currently blocks the Bluetooth command thread while
waiting for DBus. This patch moves the result-handling code into a
DBusReplyHandler, and executes an asyncronous DBus call.
--HG--
extra : rebase_source : 42a5dcc5425555040c7e10b7e68f44da3e39bfc5
2013-07-22 13:30:47 +02:00
Thomas Zimmermann
e997c2f1ce
Bug 891866: Support nsRefPtr<RawDBusConnection>, r=qdot
...
Instances of RawDBusConnection can now be contained in nsRefPtr. This
allows to share the DBus connection among multiple threads.
--HG--
extra : rebase_source : fb24472b3b55e77abc7354f17ef679661f62b7fb
2013-07-22 13:30:22 +02:00
Thomas Zimmermann
5ecc50b289
Bug 891866: Cleanup RegisterLocalAgent, r=echou,gyeh
...
RegisterLocalAgent builds is own DBus message. This patch cleans up
the function to use the utility function from DBusUtils.
--HG--
extra : rebase_source : d8615285f75f8bb444accc9aa371df43a3371a4a
2013-07-22 13:29:25 +02:00
Ben Tian
4367251a81
Bug 895325 - [Bluetooth][Cleanup] Revise BluetoothOppManager constructor and BluetoothOppManager::Get(), r=echou
2013-07-19 10:27:07 +08:00
Ryan VanderMeulen
0439786998
Merge m-c to inbound on a CLOSED TREE.
2013-07-18 14:53:05 -04:00
Eric Chou
602adf6071
Bug 893546 - Fix memory leakage in BluetoothHfpManager.cpp, r=mrbkap
2013-07-18 10:52:20 +08:00
Ben Tian
50bd48742d
Bug 891210 - [Bluetooth][OPP cleanup] Move file-transfer related static variables into class BluetoothOppManager, r=echou
2013-07-15 12:10:32 +08:00
Boris Zbarsky
9af6d565fa
Bug 893004 part 2. Remove various no-longer-used XPCOM bits from Navigator, except the ones from nsIDOMNavigator. r=smaug
...
--HG--
rename : dom/network/interfaces/nsIDOMNavigatorNetwork.idl => dom/network/interfaces/nsIMozNavigatorNetwork.idl
2013-07-17 23:23:52 -04:00
Brian O'Keefe
a2b1403eb0
Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps
2013-07-04 08:28:43 -04:00
Boris Zbarsky
684d4a0f3a
Bug 838146 part 6. Implement gamepad, bluetooth, time, audiochannel WebIDL APIs on Navigator. r=smaug, sr=sicking
2013-07-12 10:36:32 -04:00
Szu-Yu Chen [:aknow]
b91ec053d3
Bug 881142 - Part 3: Remove call state busy (bluetooth dom). r=gyeh
2013-07-15 08:54:07 -04:00
Ben Tian
76d20d977d
Bug 891202 - [Bluetooth][OPP cleanup] Unify obex data sending function, r=echou
2013-07-10 11:20:13 +08:00
Ryan VanderMeulen
2cca46b24a
Merge m-c to birch.
2013-07-12 13:31:17 -04:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Edgar Chen
4fbd36568e
Bug 875721 - Part 4: Bluetooth changes for iccInfo. r=echou
2013-05-30 18:56:11 +08:00
Thomas Zimmermann
ae493b99c9
Bug 891276: Cleanup *ServiceRecords functions, r=echou
...
AddServiceRecords and RemoveServiceRecords are unused. This patch
removes any related code.
2013-07-11 09:58:26 +02:00
Thomas Zimmermann
79b015cfa0
Bug 884840: Reimplement GetServiceChannel without Bluetooth command thread, r=echou
...
The method BluetoothDBusService::GetServiceChannel currently blocks the
Bluetooth command thread while waiting for a DBus message, before it
dispatches a runnable to the main thread.
With this patch, the DBus message is processed asyncronously, and the
runnable gets dispatched from the DBus reply handler.
--HG--
extra : rebase_source : 24519b7dd8d59fcbbf78436092610c8db195f6a2
2013-07-09 09:56:14 +02:00
David Zbarsky
b2b3004e5d
Bug 885804: Renaming in content/dom r=jlebar
2013-07-08 11:48:39 -04:00
Phil Ringnalda
4021dafa78
Merge birch and inbound to central
2013-07-04 18:11:28 -07:00
Eric Chou
e5c03e1344
Bug 884253 - Define new error messages for Bluetooth profiles, r=gyeh
2013-07-04 17:45:06 +08:00
Mike Shal
edeb7caf7a
Bug 868536 - Move ipdl.mk files to moz.build; r=gps
...
Author: Mike Shal <mshal@mozilla.com>
2013-07-01 09:56:28 -04:00
Ryan VanderMeulen
2f32b96e0b
Merge m-c and inbound.
2013-07-03 09:14:15 -04:00
Ben Tian
fec3f51600
Bug 889231 - [Bluetooth] Lock-up occurs when you make a call in no signal network state, r=echou
2013-07-02 16:53:21 +08:00
Ben Tian
6db44eeec5
Bug 884190 - [Bluetooth] Rename commands from dom bluetooth to Dialer app (in dom bluetooth), r=echou
2013-07-01 11:04:02 +08:00
Trevor Saunders
795144e55a
bug 887854 - remove most useage of pratom.h r=mounir, mcmanus, jrmuizel
2013-06-16 03:09:07 -04:00
Justin Lebar
6c46d0633d
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
75c400493b
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Mike Shal
590ea3f8c1
Bug 875013 - Eliminate VPATH usage (part 1 - EXPORTS); r=joey
2013-06-26 14:51:06 -04:00
Thomas Zimmermann
1163770feb
Bug 880168: Replace RemoveDeviceTask by non-blocking implementation, r=echou,gyeh
...
This patch replaces RemoveDeviceTask by a non-blocking implementation
that does not use the Bluetooth command thread. The request gets send
directly to the DBus, and its reply gets processed in the DBus thread
itself.
--HG--
rename : netwerk/protocol/http/HttpLog.h => netwerk/protocol/http/nsHttp.h
extra : rebase_source : a99a9d6561d94df77d8d9cd53e39371aa1f6386d
2013-04-16 16:46:10 +02:00
Ben Tian
5e6adb36d9
Bug 883619 - No busy tone on Bluetooth Car kit, r=gyeh
2013-06-24 12:10:07 +08:00
Gina Yeh
205ca1a67c
Bug 873919 - Remove old system messages for Bluetooth pairing requests, r=echou
2013-06-20 12:14:09 +08:00
Gina Yeh
d8ae704353
Bug 882551 - Patch 5: Change return type of internal functions, r=qdot, r=mrbkap, r=echou
2013-06-20 09:20:16 +08:00
Gina Yeh
2c1d010243
Bug 882551 - Patch 4: Remove BluetoothA2dpManagerObserver, r=qdot, r=mrbkap, r=echou
2013-06-20 09:20:02 +08:00
Gina Yeh
ed2a4cfcfe
Bug 882551 - Patch 3: Remove BluetoothOppManagerObserver, r=qdot, r=mrbkap, r=echou
2013-06-20 09:19:46 +08:00
Gina Yeh
e1a7a2500d
Bug 882551 - Patch 2: Remove BluetoothHfpManagerObserver, r=qdot, r=mrbkap, r=echou
2013-06-20 09:19:31 +08:00
Gina Yeh
8ccaecc148
Bug 882551 - Patch 1: BluetoothProfileManagerBase inherits nsIObserver, r=qdot, r=mrbkap, r=echou
2013-06-20 09:19:15 +08:00
Thomas Zimmermann
e72204009e
Bug 880167: Replace SendDiscoveryTask by non-blocking implementation r=echou,gyeh
...
This patch replaces SendDiscoveryTask by a non-blocking implementation
that does not use the Bluetooth command thread. The request gets send
directly to the DBus, and its reply gets processed in the DBus thread
itself.
2013-04-16 16:42:35 +02:00
Ben Tian
f0e4b1fc60
Bug 883505 - [Bluetooth] Support for CHLD=0 of HFP, r=echou
2013-06-18 15:42:10 +08:00
Jon Coppeard
586c7b4514
Bug 877762 - GC: Post-barrier cycle collector participants - 7 Convert most JSObect to use Heap<T> (ex. XBL) r=bz
2013-06-18 11:00:38 +01:00
Kyle Machulis
e5ce876fd2
Bug 882443: Check for connection before asserting in BluetoothA2dpManager::Disconnect; r=gyeh r=shuang
2013-06-14 18:29:20 -07:00
Ben Tian
dfbf757ac3
Bug 879635 - [Bluetooth] [Hfp] Implement HFP 1.6 indicators activation and deactivation, r=echou
2013-06-07 16:54:13 +08:00
Eric Chou
0adbf805bd
Bug 876823 - Fire DOMRequest.onerror event when Bluetooth*Manager.Connect() fails, r=gyeh
2013-06-11 18:24:19 +08:00
Gina Yeh
4f77f431bf
Bug 881606 - BluetoothA2dpManager doesn't receive any sink property changed, r=echou
2013-06-11 14:47:48 +08:00
Gina Yeh
8b954097d7
Bug 878745 - followup patch, r=vyang
2013-06-10 19:17:25 +08:00
Gina Yeh
1d2d5b22e3
Bug 878745 - BluetoothService cleanup, r=echou
2013-06-10 12:18:00 +08:00
Gina Yeh
9b9e96c828
Bug 872907 - Patch 5: Handle A2DP status changed in AudioManager, r=echou, r=mwu
2013-06-08 23:26:28 +08:00
Gina Yeh
a6765ae76d
Bug 872907 - Patch 4: Implement NotifyStatusChagned() and NotifyAudioManager(), r=echou, r=mrbkap
2013-06-08 23:26:01 +08:00
Gina Yeh
e7d0099af2
Bug 872907 - Patch 3: Handle Sink property change, r=echou, r=mrbkap
2013-06-08 23:25:41 +08:00
Gina Yeh
406431e0fa
Bug 872907 - Patch 2: Implement SendSinkMessage in BluetoothService, r=echou, r=mrbkap
2013-06-08 23:25:18 +08:00
Gina Yeh
17b3651391
Bug 872907 - Patch 1: Implement BluetoothA2dpManager, r=echou, r=mrbkap
2013-06-08 23:24:29 +08:00
Shawn Huang
96b1ed8a43
Bug 869259 - Get a mount lock to prevent the sdcard from being shared with the PC, r=echou
2013-06-07 15:10:24 +08:00
Ben Tian
cc5d97396f
Bug 878728 - Support in-band ringtone, r=echou
2013-06-05 16:53:22 +08:00
Arnaud Sourioux
4f029c7b82
Bug 877746 - Annotate ~230 methods with MOZ_OVERRIDE in /dom. r=Ms2ger
2013-06-05 12:15:48 -04:00
Thomas Zimmermann
2003d4265a
Bug 875273 - Re-introduce assertion in RunDBusCallback. r=echou
...
With the landing of bug 830290, no DBus callback should ever run in
the main thread. This patch therefore re-introduces the corresponding
assertion statement.
2013-06-04 08:07:29 -04:00
Ben Tian
c75cbc3e85
Bug 878672 - Remove extra CRLF of result codes, r=echou
2013-06-03 15:04:10 +08:00
Shawn Huang
5e7aee1ad8
Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou
2013-06-01 10:07:24 +08:00
Thomas Zimmermann
d31cb1d146
Bug 830290: Replace calls to dbus_connection_send_with_reply_and_block r=bent,qdot
...
There is one call to dbus_connection_send_with_reply_and_block in
the Bluetooth code. This patch replaces the call by a call to the
helper function dbus_func_send_and_block, which executes the DBus
operation within the DBus thread.
2013-03-11 15:22:50 +01:00
Thomas Zimmermann
dc0b14aedc
Bug 830290: Replace dbus_connection_send by dbus_func_send r=bent,qdot
...
The Bluetooth system now uses dbus_func_send for sending DBus
messages where dbus_connection_send use used before. The former
function is similar to the latter one, but sends messages from
within the DBus thread; thus avoiding concurrency issues within
DBus.
2013-03-01 13:53:30 +01:00
Eric Chou
c9b60cd79e
Bug 878005 - Send system message 'ATD>' to Gaia instead of sending 'BLDN' when receive 'ATD>' from headset, r=gyeh
2013-05-31 20:43:18 +08:00
Eric Chou
0b00c94948
Bug 875677 - Modify the logic of sending 'callheld' indicator to fit HFP 1.6, r=gyeh
...
According to HFP spec 1.6, we should update callheld status very carefully when
the status of other calls are changed.
2013-05-31 21:49:42 +08:00
Ryan VanderMeulen
e81694112a
Backed out changeset 662f6427c909 (bug 872890) for debug bustage.
2013-05-31 12:12:41 -04:00
Shawn Huang
7ffbc4ccf3
Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou
2013-05-31 11:07:21 +08:00
Gabor Krizsanits
94a2af0a2c
Bug 875405 - fixing unpushed cx usages. r=bholley
2013-05-30 16:54:46 +02:00
Ryan VanderMeulen
31c9996924
Merge m-c to inbound.
2013-05-30 07:47:14 -04:00
Eric Chou
025f71b525
Bug 877087 - Clear mDsFile after the OPP connection is dropped, r=gyeh
2013-05-30 15:00:06 +08:00
Gina Yeh
d4e76cf967
Backed out changeset 8cdcc0221c0f for build bustage DONTBUILD
2013-05-30 10:50:19 +08:00
Shawn Huang
23771d4a03
Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou
2013-05-30 09:33:48 +08:00
Ed Morley
ebb42781a7
Backed out changeset 7acdb79e4d71 (bug 876639)
2013-05-29 12:09:10 +01:00
Jon Coppeard
a5f7aee9a5
Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug
2013-05-29 09:29:39 +01:00
Eric Chou
70b3a85035
Bug 871438 - Reset value when file transfer session starts, r=gyeh
...
When the transferring session was stopped, mBodySegmentLength wouldn't reset
to 0, and that would impact the next transferring if the first packet of the
next transferring doesn't contain header Body or EndOfBody, which would invoke
ExtractPacketHeaders() and refresh mBodySegmentLength in the function.
2013-05-28 15:25:42 +08:00
Eric Chou
48159027b0
Bug 875719 - Simplify and correct the mechanism of handling call state change event, r=gyeh
...
1. Remove variable mCurrentCallIndex and replace with using function FindFirstCall(aState)
2. Remove unused variable index and callArrayLength
2013-05-28 14:58:51 +08:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Bobby Holley
a105e4d514
Bug 875251 - Push the JSContexts that get used in BluetoothAdapter, r=gabor
2013-05-23 07:10:00 -07:00