Commit Graph

103 Commits

Author SHA1 Message Date
Ben Tian
f5c943538a Bug 1016243 - [cleanup] Remove unused function BluetoothService::RemoveObserverFromTable, r=shuang 2014-05-27 17:02:44 +08:00
Birunthan Mohanathas
504b581650 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Thomas Zimmermann
450432213e Bug 979370: Remove |ToggleBtTask|, r=echou
|ToggleBtTask| runs on the same thread as the start and stop methods
of |BluetoothService|. This patch merges the code of |ToggleBtTask|
into the start and stop methods and removes the class.
2014-03-14 10:50:18 +01:00
Thomas Zimmermann
18247847ee Bug 979370: Split |BluetoothService::StartStopBluetooth|, r=echou
This patch splits |BluetoothService::StartStopBluetooth| into two
separate functions. Both have mostly different code paths.
2014-03-14 10:50:02 +01:00
Thomas Zimmermann
06c550c2fb Bug 979370: Move Bluetooth thread into BlueZ backend, r=echou
The Bluetooth thread is only necessary for starting and stopping
Bluetooth with the BlueZ backend. Bluedroid implements its multi-
threading internally.

This patch moves the Bluetooth thread into the BlueZ backend. Two
runnables implement the starting and stopping code. The methods
|StartInternal| and |StopInternal| of |BluetoothDBusService| each
create an instance of the respective runnable and send it to the
internal BT thread. The code in |BluetoothService| runs completely
on the main thread.

For the Bluedroid back end, the patch changes a number of thread
assertions.
2014-03-14 10:49:33 +01:00
Shawn Huang
2406f1830e Bug 951634: Add TimerCallback in Profile Controller, r=gyeh 2014-01-29 19:13:10 +08:00
Thomas Zimmermann
a8ee0089df Bug 977146: Push ToggleBtAck into implementations of {Start|Stop}Internal, r=echou
The methods {Start|Stop}Internal for BlueZ and Bluedroid now send
ToggleBtAck to signal completeness of the operation.

The current patch allows for further cleanups in the BlueZ code. It
does not change the semantics or code flow.
2014-03-03 13:07:17 +01:00
Thomas Zimmermann
8ea9711415 Bug 977146: Declare ToggleBtAck in header file, r=echou
Declaring ToggleBtAck in the header file of BluetoothService makes
it available ot others classes.
2014-03-03 13:07:17 +01:00
Thomas Zimmermann
79dfb23a1e Bug 977146: Set PROP_BLUETOOTH_ENABLED in ToggleBtAck, r=echou
PROP_BLUETOOTH_ENABLED signals the Bluetooth state to other
components in the system. Setting its value in ToggleBtAck
on the main thread avoids duplicated code in the upcoming
patches.
2014-03-03 13:07:16 +01:00
Ben Tian
2a9faeacea Bug 939672 - Patch 2/2: Move NS_DECL_ISUPPORTS and NS_DECL_NSIOBSERVER into BluetoothProfileManagerBase.h 2014-02-20 18:15:47 +08:00
Sam Joch
c47f9b1be2 Bug 968215 - SettingsService needs to have a callback when transaction are completed. r=bent 2014-02-07 12:19:58 +01:00
Thomas Zimmermann
8c51180a57 Bug 969314: Merge BluetoothGonkService into BluetoothDBusService, r=echou
This patch merges the code from BluetoothGonkService into
BluetoothDBusService. The merged code is protected by ifdef
statements.
2014-02-13 16:28:07 +01:00
Jon Coppeard
cd6056507e Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Terrence Cole
3e141bbf5e Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Tom Schuster
5e3191afd2 Bug 939294 - Change xpidl jsval to handles. r=gabor,bz,khuey,bsmedberg,terrence 2014-01-09 18:39:36 +01:00
Ben Tian
51c5e6a6c8 Bug 956258 - [cleanup] Patch 1/2: rename g* variables to s* ones, r=echou 2014-01-10 09:34:43 +08:00
Ehsan Akhgari
eaa7491d77 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Birunthan Mohanathas
bd0f161288 Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Eric Chou
31b12ffadb Bug 942712 - Ensure event 'AdapterAdded' will be fired after 'Enabled' being fired, r=gyeh 2013-11-27 16:24:51 +08:00
Eric Chou
a258270b4d Bug 942712 - Set gToggleInProgress to false when bt toggling is done, r=gyeh
From 2e8e1d84251fac968caf9104536d1b794c986670 Mon Sep 17 00:00:00 2001
2013-11-26 15:13:43 +08:00
Carsten "Tomcat" Book
b6f848e4ca Backed out changeset 097a3702af4f (bug 942712) Build Bustage on a CLOSED TREE 2013-11-28 12:10:03 +01:00
Carsten "Tomcat" Book
bcf7e426ab Backed out changeset b064b9271e0e (bug 942712) Build bustage on a CLOSED TREE 2013-11-28 12:09:46 +01:00
Eric Chou
241e66d77a Bug 942712 - Ensure event 'AdapterAdded' will be fired after 'Enabled' being fired, r=gyeh 2013-11-28 17:49:04 +08:00
Eric Chou
206a864559 Bug 942712 - Set gToggleInProgress to false when bt toggling is done, r=gyeh 2013-11-28 17:48:53 +08:00
Eric Chou
3acf0d2d68 Bug 941416 - Fix regression of bug 936995, r=gyeh 2013-11-21 12:58:04 +08:00
Eric Chou
8855291faa Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh 2013-11-20 15:01:54 +08:00
Eric Chou
fc53895714 Backed out changeset 40ecdab580b3 (bug 936995) for potential JB build error 2013-11-20 15:17:00 +08:00
Eric Chou
e6daad1cd4 Bug 936995 - Fire event Disable after Bluetooth is really disabled, r=gyeh 2013-11-20 15:01:54 +08:00
Ben Tian
d29f02da1b Bug 936732 - Patch 2/3: BT file changes, r=khuey 2013-11-18 14:29:45 +08:00
Shawn Huang
d7e831b48e Bug 880610: Part3-[Bluetooth]bluedroid-Prototype: BluetootServiceBluedroid, r=echou 2013-10-23 14:12:24 +08:00
Shawn Huang
9f3225665a Bug 880610: Part1-Add build flag to support both bluez/bluedroid stacks, r=glandium 2013-10-23 14:12:24 +08:00
Eric Chou
c886826721 Backed out changeset 089f015f15bb and e907ab075ec8 (bug 880610) for hitting MOZ_ASSERT 2013-10-19 16:01:25 +08:00
Eric Chou
c3fb0aed0d Backed out changeset e09e6815a873 (bug 928214) for crashing Settings app 2013-10-19 15:52:35 +08:00
Shawn Huang
277f562884 Bug 928214 - [Bluetooth]bluedroid-Prototype: BluetootServiceBluedroid, r=echou 2013-10-19 13:04:30 +08:00
Shawn Huang
09b63ac029 Bug 880610: Part1-Add build flag to support both bluez/bluedroid stacks, r=glandium 2013-10-17 18:25:50 +08:00
Nathan Froyd
98723f4c48 Bug 914826 - part 4 - fix source files that were bootlegging XPCOM do_* functions via generated ipdl headers; r=ehsan 2013-09-10 16:56:05 -04:00
Ben Tian
50c668cd29 Bug 915628 - [Bluetooth] Define new log levels and add logs in profile controller, r=echou 2013-09-14 06:51:00 +08:00
Gina Yeh
4ac899ce79 Bug 906305 - Patch 3: Remove BluetoothReplyRunnable in SendInputMessage. Error handling for dbus error, r=echou 2013-09-06 19:20:27 +08:00
Thomas Zimmermann
26fc503b83 Bug 853550: Replace Bluetooth command thread, r=echou,gyeh
Starting and stopping Bluetooth support can block the executing thread
for an indefinite amount of time. In most cases these operations are
only performed when Gecko starts and stops, so we don't want to keep
a separate Bluetooth command thread for this.

This patch replaces the Bluetooth command thread by a LazyIdleThread,
which only consumes resources while it executes actual code. After a
timeout period, the LazyIdleThread cleans up its internal state. The
timeout is currently 3 seconds, which has been choosen arbitrarily.

Thanks to bent for helping with the details of LazyIdleThread.
2013-08-30 20:18:43 +02:00
Gina Yeh
9c16f4b490 Bug 889795 - Reply 'Authorize' signal for supported profile, r=echou, sr=mrbkap 2013-08-14 13:54:18 +08:00
Ryan VanderMeulen
13be9bc4d0 Merge inbound to m-c. 2013-08-09 19:08:45 -04:00
Nicholas Nethercote
849635b8f1 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Gina Yeh
6cc84fd8fb Bug 853221 - Patch 1: Distribute connection/pair status to BluetoothAdapter, r=echou 2013-08-02 18:32:57 +08:00
Eric Chou
6761fdbc75 Bug 892392 - Execute BluetoothService::StartInternal() at startup, r=gyeh 2013-08-02 11:58:01 +08:00
Jon Coppeard
fd4d274d46 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
ac22f0d0ad Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fed22eac4c Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Alive Kuo
bac4a808ba Bug 887650 - Append extra information about activity caller in system message. r=gene 2013-07-25 13:18:24 -04:00
Eric Chou
f6c878b853 Bug 891257 - Disconnect gracefully when the user turns off Bluetooth, r=mrbkap 2013-08-08 17:51:37 +08:00
Justin Lebar
cab87a0cce 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