Commit Graph

407 Commits

Author SHA1 Message Date
Gregory Szorc
c089ae373d Bug 850380 - Derecursify and optimize XPIDL processing and move into precompile tier; r=glandium 2013-08-14 08:40:25 -07:00
Ryan VanderMeulen
64b2bc7dd9 Backed out changesets 1fa1f28c6edf and e74f694f31c4 (bug 850380) for PGO bustage on a CLOSED TREE. 2013-08-14 15:12:20 -04:00
Brian O'Keefe
3a92f0ae7c Bug 896177 - Remove useless config.mk includes; r=gps 2013-07-17 16:06:53 -04:00
Gregory Szorc
9f99cee9a1 Bug 850380 - Derecursify and optimize XPIDL processing and move into precompile tier; r=glandium 2013-08-14 08:40:25 -07:00
Ted Mielczarek
470eac35cd bug 894382 - support libudev.so.1 in Linux Gamepad backend. r=karlt 2013-07-29 09:04:56 -04:00
Joshua Cranmer
bc53f5b85a Bug 884061 - Part 3j: Use NS_DECL_THREADSAFE_ISUPPORTS in hal/, r=jlebar
--HG--
extra : rebase_source : a3fa50183c82ffaa68a32ce13a314698a4bd495b
2013-07-18 21:23:31 -05: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
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
Tapas Kundu
7ad1a1e66c Bug 892037 - Update Date/Time even if hardware RTC fails to update. r=mwu 2013-07-11 14:27:12 -07:00
Patrick McManus
8c195a71c0 bug 888268 - wifi tickler for mitigating 802.11 psp mode on android r=dougt
--HG--
extra : rebase_source : a767b6c10501105b3c5d22043f11745807caf2f9
2013-07-11 11:39:36 -04:00
Justin Lebar
893f1c9c71 No bug: Fix a modeline. DONTBUILD 2013-07-11 09:32:55 -04:00
Thomas Zimmermann
0f7b37fd7f Bug 891259: Set discharging time to 'Infinity', r=mounir
If the discharging time is unknown, the W3C Battery Status API
requires its value to be 'Infinity'. The current code returns a
discharging time of 0 when discharging the battery. This patch
fixes the problem.
2013-07-10 15:47:30 +02:00
Boris Zbarsky
a6ce34f2cf Back out revisions 042d50591265:69f4af72765c (bug 909645) due to Windows bustage causing a CLOSED TREE. 2013-08-28 01:46:00 -04:00
Boris Zbarsky
d7e2aadfa7 Bug 909645 part 2. Don't include ipdl headers in Hal.h. r=ms2ger 2013-08-28 00:14:57 -04:00
Joey Armstrong
a6b9800cfb bug 870407: cleanup bug. r=mshal 2013-07-08 11:53:00 -04: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
Sankha Narayan Guria
a1a00fcbab Bug 877888 - Alarm API type checks date to prevent millisecond loss. r=nsm
--HG--
extra : rebase_source : c319da81514194bd5adef260f78e9317b1a044a8
2013-07-02 23:59:58 +05:30
Ryan VanderMeulen
17ea171b91 Merge birch to inbound. 2013-07-01 14:31:38 -04:00
Joey Armstrong
2e19c976cc bug 870407: move CMMSRCS to mozbuild (file batch #2) r=mshal 2013-07-01 12:32:40 -04:00
Alan Huang
4a685aba77 Bug 887192 - Let GonkHal write lowmemorykiller parameters in increasing order and add assertion when someone breaks the rule. r=jlebar 2013-06-29 12:14:02 +08: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
Ms2ger
5cb4550ab6 Bug 883536 - Include headers correctly in HalTypes.h; r=mounir 2013-06-23 09:14:32 +02:00
Ted Mielczarek
6fee55f7ed bug 860413 - Allow setting standard gamepad mapping. r=smaug 2013-04-09 08:43:25 -04:00
Steven Lee
2852502e28 Bug 880162 - Do not callback FM_RADIO_OPERATION_ENABLE when disabling FM radio. r=jlebar 2013-06-11 08:21:25 -04:00
Justin Lebar
76dfcb1093 Bug 879529 - Fix thread priorities in B2G child processes. r=gsvelto
Previously, suppose we were changing a process's priority from 18 to 1.
If a task had priority 19, that should have changed to 2.  But instead
we changed it to 18!  That's totally wrong.
2013-06-05 07:55:01 -04:00
Nikhil Marathe
1c58ac8302 Bug 867868 - Alarms tests. r=jlebar 2013-06-04 13:30:06 -07:00
Nikhil Marathe
446e740f2f Bug 867868 - Implement nsITimer based alarms in HAL fallback. r=jlebar 2013-06-04 13:30:03 -07:00
Phil Ringnalda
6351f68629 Merge m-c to a CLOSED TREE birch 2013-05-27 11:47:01 -07:00
Fernando Jiménez
76f3bb1222 Bug 874148 - crash in libxul.so!mozilla::hal_impl::GonkDiskSpaceWatcher::OnFileCanReadWithoutBlocking [GonkDiskSpaceWatcher.cpp : 238 + 0x4]. r=fabrice 2013-05-27 18:35:27 +02: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
David Zbarsky
8649b6e814 Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
Michael Wu
dd29609b36 Bug 870198 - Support basic display functions on gonk-JB, r=vlad 2013-05-07 23:58:22 -04:00
Justin Lebar
f0d0f1383d Bug 870480 - Follow-up: Try to fix a warning-as-error.
> error: suggest parentheses around comparison in operand of '!='
2013-05-10 11:58:09 -04:00
Justin Lebar
fd0d7ab2d4 Bug 870480 - Notify wake lock listeners when a process adds or removes a wake lock, even if the wake lock itself doesn't change state. r=kanru
This also fixes two other bugs:

1) If a process crashed while holding a wake lock, we'd send a wake lock changed notification without including the list of locking processes.  This could cause us to incorrectly believe that no processes were holding the lock.

2) If a process crashed while holding a wake lock on topic X, and if no other process held a wake lock on that topic, and there were no wake lock listeners registered, we wouldn't remove X from our hashtable of wake lock topics.  We would correctly record the fact that the lock was not held, so this bug was benign.
2013-05-10 11:20:52 -04:00
Fernando Jiménez
92d4eef8c8 Bug853350 - Followup. error: 'aService' was not declared in this scope. r=me 2013-05-10 13:57:26 +02:00
Fabrice Desré
fbe1832880 Bug 853350 - Implement a notification system to monitor disk space r=bent 2013-05-09 15:57:31 -07:00
Justin Lebar
0d703ce20a Bug 870181 - Part 1: Add an additional LowCPUPriority argument to hal::SetProcessPriority. r=bent
This patch also makes it an error to call hal::SetProcessPriority from a child process.
2013-05-09 16:27:06 -04:00
Gene Lian
190e133444 Bug 866366 - [Buri][Alarm]it will not start alarm until light up the LCD. r=jlebar a=tef+ 2013-05-02 18:33:58 +08:00
Ms2ger
6a31fab03c Bug 866600 - Avoid using nsIDOMDocument::GetHidden; r=mounir 2013-05-05 09:03:15 +02:00
Michael Wu
c2f4fca700 Bug 868150 - Add basic support for identifying and building for JB, r=glandium 2013-05-02 11:42:52 -04:00
Justin Lebar
cee25ec0d6 Bug 861441 - When changing a proces's CPU priority, call setpriority() on all threads, not just the main thread. r=gsvelto
It turns out that setpriority() on Linux sets the priority of just one
thread.  If you call setpriority() on a pid, you're setting the priority
of only the main thread in that process.
2013-04-25 20:53:27 -04:00
Justin Lebar
f88d7a33ae Bug 864527 - Convert a static nsRefPtr to static StaticRefPtr in GonkHal. r=mounir 2013-04-23 11:30:25 -04:00
Mike Shal
77cdb6567d Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Ted Mielczarek
862005e0a0 bug 690938 - Get vendor id and product id on Linux for bluetooth gamepads. r=karlt 2013-04-09 08:43:24 -04:00
Ehsan Akhgari
124e2f7dca Bug 579517 follow-up: Remove NSPR types that crept in 2013-04-02 20:59:27 -04:00
Kyle Machulis
5aa83c3e11 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Jan Beich
1a433b5d84 Bug 854152 - Make sure GLIB_CFLAGS are passed for LinuxGamepad.cpp. r=ted 2013-03-27 21:20:27 -04:00
Michael Vines
80b81fa6cb Bug 851721 - Emit system-reboot/system-power-off events for Gonk backend. r=kchen 2013-03-23 19:26:50 -07:00
Vasil Dimov
ecad0ec815 Bug 819016 - Create some helper functions for reading /sys files. r=bsmedberg 2013-03-27 11:19:09 -04:00
Ted Mielczarek
92d6c5ddef bug 604039 - Linux gamepad backend. r=karlt
--HG--
extra : rebase_source : 32d47af727b9a6209d321a8622a2f3ecb7a44d25
2011-08-03 14:12:08 -04:00
Ted Mielczarek
d5a7f7f181 bug 604039 - Windows gamepad backend using DirectInput. r=bas
--HG--
extra : rebase_source : 9a4e13dea21f6f57a8ca2bf677ff0a2f0a0dc4eb
2011-08-03 14:12:08 -04:00
Jason Orendorff
c68b7c548b Bug 604039 - Mac gamepad backend. r=smichaud
--HG--
extra : rebase_source : bd58cfd041c9d72a23798fa221bdfbdc3f33e862
2011-08-03 08:06:00 -04:00
Ted Mielczarek
bc92001c0b bug 604039 - Add DOM Gamepad APIs. r=smaug
--HG--
extra : rebase_source : ffffdc4549da1b25ea263b623c05ae1afb3d46a0
2011-08-03 14:12:08 -04:00
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Gregory Szorc
7bb3ee056b Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Gregory Szorc
58b7ec0116 Bug 818246 - Part 1: Remove unncessary definitions of XPIDL_MODULE; r=glandium
XPIDL_MODULE defaults to MODULE. These Makefile.in were setting
XPIDL_MODULE to the same value as MODULE.

--HG--
extra : rebase_source : e96bd34d5949d0ab94cecbec35d6c9f4bffec01e
2013-03-07 05:03:51 -08:00
Gregory Szorc
f0b7e3972c Merge mozilla-central into build-system
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Gregory Szorc
9cb796d914 Bug 784841 - Part 18v: Convert misc remaining parts; f=Ms2ger rs=ted 2013-02-25 12:47:23 -08:00
Jorge Luis Mendez
246a565220 Bug 793728 - Implement OS X backend for the Ambient Light API. r=BenWa, r=dougt, r=bz 2013-02-22 00:39:42 -05:00
Justin Lebar
00814e028b Bug 842679 - Part 2: Add PROCESS_PRIORITY_UNKNOWN to hal. r=cjones 2013-02-22 23:24:28 -05:00
Justin Lebar
5a5907d4d7 Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones 2013-02-15 08:40:01 -05:00
Justin Lebar
c3306b8b0a Bug 836654 - Part 4: Add PowerManagerService::NewWakeLockOnBehalfOfProcess. r=cjones 2013-02-14 15:41:30 -05:00
Justin Lebar
1d21d1a14f Bug 836654 - Part 3: Modify hal to accept a ContentParent ID in ModifyWakeLock(). r=cjones
Also return the list of processes holding the lock in GetWakeLockInfo
and in the wake-lock changed notification.
2013-02-14 15:41:30 -05:00
Justin Lebar
005f5cb8be Bug 836654 - Part 2: Add PROCESS_PRIORITY_FOREGROUND_HIGH. r=cjones 2013-02-14 15:41:30 -05:00
Justin Lebar
bed6f4e5b4 Bug 836654 - Part 1: Don't require the "power" permission to do GetWakeLockInfo from a child process. r=cjones 2013-02-14 15:41:29 -05:00
Justin Lebar
5c2d14d8ce Bug 836654 - Part 0: Add constants CONTENT_PROCESS_{UNKNOWN_ID,MAIN_ID} to HalTypes.h and remove the equivalent constants from ContentParent.h. r=cjones 2013-02-14 15:41:29 -05:00
Justin Lebar
663ad8052f Bug 837856 - Rename hal_sandbox::IsHalChildLive() to HalChildDestroyed(). r=mounir
The return value stays the same (that is, the function was mis-named).
2013-02-11 23:09:25 -05:00
Justin Lebar
85cdeba441 Bug 838625 - Add hal::ProcessPriorityToString and use it in ProcessPriorityManager logging. r=cjones
--HG--
extra : rebase_source : 0a9ecf848a9c6c3ba37acafa24c775154ccb417f
2013-02-08 14:32:23 +00:00
Alan Huang
42a6d75810 Bug 839312 - Specify gonk low-memory-killer priorityClasses in the correct order and fix typo in b2g.js which was preventing us from giving the kernel one of the necessary priority classes. r=jlebar 2013-02-08 14:09:26 +00:00
Marco Chen
1e51341257 Bug 827707 - [GonkSensor] Sensor field in sensors_event_t doesn't mean the index of sensors list from HAL. r=mwu 2013-01-24 10:45:07 +08:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Philipp von Weitershausen
b4c929aa87 Bug 823798 - Route FM radio through analog path. r=mwu a=blocking-b2g 2013-01-14 22:06:41 -08:00
Trevor Saunders
10701d89a1 no bug - mark several classes final to avoid warnings about deleting objects of polymorphic type 2013-01-11 04:43:29 -05:00
Thinker K.F. Li
e40ab6d2f9 Bug 817939 - restart ioctl with EINTR for FMRadio. r=jlebar 2013-01-09 10:13:46 +01:00
Gene Lian
7b6d6463eb Bug 821671 - Check alarm API parameters in the parent (part 1, provide .AssertAppProcess() with different types). r=sicking 2012-12-22 19:53:38 +08:00
Kan-Ru Chen (陳侃如)
41defd0d01 Bug 793105 - Add a "backgroundPerceivable" class for audio-channel-content. r=jlebar,roc 2013-01-05 13:03:51 +08:00
Chris Jones
90fdd69121 Bug 823610: Make discarding GL contexts of foreground pages on memory pressure pref-able, and pref off for b2g. r=jgilbert,jlebar 2013-01-03 15:39:25 -08:00
Chris Jones
cafad920f2 Rollup of bug 821192: Ensure that content processes don't see an inconsistent app dir. r=bent,dhylands
Bug 821192, part 1: Fix the watchdog timeout code. r=dhylands
Bug 821192, part 2: Add an interface to join all live content processes. r=bent
Bug 821192, part 3: Join all subprocesses before restarting the main process, when we're e.g. about to apply an update. r=dhylands
2012-12-28 01:45:16 -08:00
Chris Jones
3ed2e673a5 Bug 822398: Use PL_DHASH_REMOVE to remove an entry we're enumerating. r=kanru 2012-12-27 02:43:55 -08:00
Marco Chen
f5c8c08786 Bug 823203 - HalParent::ActorDestroy() needs to handle the UnregisterSwitchObserver() when content process is killed. r=jlebar, a=blocking-basecamp 2012-12-21 16:37:58 +08:00
Justin Lebar
fcb9bb724a Bug 821440 - Allow the B2G homescreen to run in the background with a decreased oom_score_adj compared to vanilla background apps. r=cjones 2012-12-18 21:37:35 -05:00
Justin Lebar
b96798e203 Bug 819791 - Part 5: Remove an unnecessary TArray copy in hal/sandbox. r=mounir 2012-12-18 20:16:06 -05:00
Thomas Zimmermann
e93cd33a7a Bug 758103 - Return charging time of zero if no battery interface exists. r=mounir, r=dhylands
On the PandaBoard, and probably other platforms, no battery exists and
the related kernel interfaces are missing. The HAL returns 'charging' at
a battery level of 100%. The charging time is set to 'unknown'. This is
inconsistent according to the battery manager.

With this patch, the returned charging time is set to zero, which fulfills
the battery manager's requirements. The patch also cleans up and simplifies
the source code.
2012-11-29 20:18:46 +01:00
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Gregor Wagner
5c754bc6b4 Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones 2012-12-12 15:41:07 -08:00
Josh Matthews
3d1a03275e Backed out changeset ea39e0af0831 (bug 820135) 2012-12-12 02:23:10 -05:00
Gregor Wagner
f79303850c Bug 820135 - Preferences: We don't save prefs when we reboot. r=cjones 2012-12-11 22:39:25 -08:00
Steven Lee
acd3ec7128 Bug 817919 - Remove FM radio implementations in hal_sandbox. r=cjones 2012-12-04 08:57:31 -08:00
Justin Lebar
1a74683d84 No bug: Fix whitespace error. DONTBUILD 2012-12-03 16:56:54 -05:00
Steven Lee
d0463854ea Bug 809106 - RegisterSwitchObserver through hal::Sandbox. r=jlebar 2012-11-29 17:52:02 -05:00
Boris Zbarsky
2df1c922cc Bug 815671 part 5. Various miscellaneous fixups in dom/ and hal/ code to copy arrays only when we explicitly want to. r=jlebar 2012-11-29 11:14:14 -05:00
Kan-Ru Chen (陳侃如)
a72916e8c5 Bug 814822 - Notify wake lock change when content crashes. r=jlebar 2012-11-27 10:28:11 +08:00
Kan-Ru Chen (陳侃如)
5a97ac6956 Bug 806363 - Remove wake locks on content-shutdown. r=jlebar 2012-11-17 23:05:18 +08:00
Boris Zbarsky
2d87c88a68 Bug 812086 part 3. Convert internal consumers of mozHidden and mozVisibilityState to the unprefixed versions. r=smaug 2012-11-16 14:22:56 -08:00
Steven Lee
819f66d79e Bug 808983 - Don't call hal_sandbox::Vibrate when ipc is broken. r=jlebar 2012-11-08 14:35:03 -05:00
Steven Lee
6240239870 Bug 800263 - [FM Radio] Launch the FM Radio with headphone already plugged-in will cause screen freeze. r=cjones 2012-11-06 22:32:00 -05:00
Alan Huang
4b68729755 Bug 802029 - When PollSensors() found one of its event type is SENSOR_UNKNOWN, don't create a SensorRunnable. r=mwu 2012-10-31 15:03:19 +08:00
Andrea Marchesini
7bdf86cb1a Bug 703612 - Make DBUS calls asynchronous to prevent slowness because of DBus daemon being overloaded in Battery API UPower backend. r=mounir 2012-11-02 16:11:50 -04:00
Justin Lebar
e5ca33789e Bug 771195 - Fire memory pressure events on Gonk. r=dhylands 2012-10-31 13:29:14 -04:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Benjamin Chen
3d161a9f75 Bug 797817 - Update the battery indicator led when receiving battery status change. r=cjones 2012-10-22 11:10:05 +08:00
Gene Lian
7412405399 Bug 801096 - [settings] Set-Automatically for time should take effect *immediately* instead of waiting on next NITZ coming (part 1). r=jlebar 2012-10-23 15:15:43 +08:00
Shih-Chiang Chien
3a4a9e32aa Bug 790393 - Add MozPower.factoryReset() for factory reset. r=cjones, r=vingtetun, sr=sicking 2012-10-04 17:28:34 +08:00
Isaac Aggrey
c407ef6549 Bug 794510: Part 4 - Use PR_NewLogModule instead of PR_LOG_DEFINE; r=ehsan,wtc 2012-10-13 15:56:35 -05:00
Steven Lee
d8013ae196 Bug 790499 - Time API: Call JS_ClearDateCaches() to update Date object's timezone when the system timezone is reset, r=jlebar 2012-10-17 00:26:00 -04:00
Andreas Gal
db79ec3cdf Bug 800533 - Don't handle magnetic field sensor, r=mwu 2012-10-16 01:11:06 -04:00
Steven Lee
5c5f9201da Bug 793759 - Implement HalChild::ActorDestroy and prevent HalChild calls to HalParent after ActorDestroy is called. r=cjones 2012-10-06 21:53:22 -04:00
Gina Yeh
349708da74 Bug 796300 - Final version: Set audio device BLUETOOTH_SCO_HEADSET to unavailable when disconnect Sco socket, r=qdot 2012-10-03 10:55:28 +08:00
Gene Lian
597e68014f Bug 793970 - Reuse nsAppStartup's watchdog to compulsively power-off/reboot/quit Gecko if profile synchronizing hangs. r=cjones 2012-10-02 15:26:32 +08:00
Doug Turner
8b81f97143 Bug 790503 - On Mac Mini, defaultCalibration reads outside of sensors[]. r=jruderman@gmail.com,blassey 2012-10-01 20:45:32 -07:00
Chris Jones
555289cbcc Bug 794188: Check the fmradio permission at process boundaries. r=jlebar 2012-09-29 15:09:19 -07:00
Vincent Chang
d190168027 Bug 793558 - Time API: changes does not persist after a restart. r=mwu 2012-09-28 14:38:50 +08:00
Gina Yeh
88282bd920 Bug 794903 - Final version: BluetoothScoManager implementation, r=qdot 2012-09-29 17:39:05 +08:00
Gene Lian
372d6e5d0f Bug 790527 - When rebooting/powering off, go through normal gecko shutdown. r=bsmedberg,sr=cjones 2012-09-26 17:12:33 +08:00
foudfou
d72827c0aa Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).

--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02:00
Michael Wu
c193c5bd1b Bug 793809 - Take FM radio initialization off main thread, r=jlebar 2012-09-26 15:35:40 -04:00
Thomas Zimmermann
9f5b4e9beb Bug 794051 - Read battery status via fgets. r=dhylands
The call to fscanf for reading the battery status used an incorrect pointer in its
arguments. The code only worked because the first byte of a character array is the
first element within the array. To fix this problem, fscanf has been replaced by
fgets, which is less error prone and checks the length of the supplied array.

Additionaly, we don't want to operate on an undefined result if fgets fails. In
this case we assume that the battery is not being charged.
2012-09-26 08:45:06 -07:00
Gene Lian
ee4deb2801 Bug 794127 - hal::AdjustSystemClock should take a 64-bit value. r=cjones 2012-09-26 11:51:29 +08:00
Chris Jones
e5bd906067 Bug 793479: Update C++ permission-checking API to match that of the message-manager one. r=jlebar 2012-09-25 11:52:30 -07:00
Marco Chen
b8303ae2fa Bug 791329 - Let GonkSwitch to know the status about headset or headphone from uevent. r=dhylands 2012-09-25 19:03:13 +08:00
Reuben Morais
a81853fb68 Bug 793418 - OS X Battery Backend: Report time to charge when available. r=mounir 2012-09-25 15:32:02 +01:00
Steven Lee
a8d94e6a67 Bug 792443 - hal::RegisterSystemTimeChangeObserver should register the observer through sandbox, r=jlebar 2012-09-23 13:00:32 -04:00
Reuben Morais
14c7b302f8 Bug 696045 - Implement Mac backend for Battery API. r=BenWa,mounir 2012-09-21 23:36:14 -04:00
Steven Lee
971b4af189 Bug 749053 - FM radio support: hal implementation, r=jlebar
Hal interface by Steven Lee (slee), gonk backend by Michael Wu (mwu).
2012-09-19 11:17:13 -04:00
Ehsan Akhgari
609f916ab7 Backout changeset 9f16bba541cc (bug 790499) becasuse of build bustage 2012-09-21 15:57:42 -04:00
Steven Lee
8b5c66d713 Bug 790499 - Time API: Call JS_ClearDateCaches() to update Date object's timezone when the system timezone is reset, r=jlebar
--HG--
extra : rebase_source : ddd264047c861c3244dfdf43e695705ec675f066
2012-09-21 14:56:01 -04:00
Dave Hylands
64b2aad409 Bug 792682 - GonkHal vibrator code incorrectly uses a weak reference. r=qDot 2012-09-19 23:34:07 -07:00
Dave Hylands
56bcd082b7 Bug 792529 - ASSERTION: VibratorRunnable not thread-safe. r=qDot 2012-09-19 13:55:10 -07:00
Ehsan Akhgari
71d9f962d0 Backout bug 792109, bug 749053 and bug 779500 because of leaks in debug tests 2012-09-19 15:42:18 -04:00
Michael Wu
fedd6fd47f Fix red from broken FallbackFMRadio.cpp from bug 749053 2012-09-19 14:16:13 -04:00
Steven Lee
233c77366a Bug 749053 - FM radio support: hal implementation, r=jlebar
Hal interface by Steven Lee (slee), gonk backend by Michael Wu (mwu).
2012-09-19 11:17:13 -04:00
Mounir Lamouri
4a90f2279e Bug 787534 - Remove Portrait and Landscape special ScreenOrientation values. r=jlebar 2012-09-19 17:28:16 +01:00
Justin Lebar
230a7b66df Bug 791261 - Remove the requirement that a TabParent must be Active in order to send vibrations. Also remove TabParent::Active(). r=cjones 2012-09-19 09:48:38 -04:00
Chris Jones
71d00aab03 No bug: Update the cross-process permission checks for time permissions to match the DOM check. r=jlebar 2012-09-18 20:25:12 -07:00
Marco Chen
612819ef1f Bug 788118 - Non-continuous type of sensor blocked thread on polling so the action of switching sensor can't be done on blocked thread. r=mwu
1. Moving switching sensor from thread to main thread.
2. Moving the control of sensor hw module from SensorDevice to GonkSensor.
   Avoid the 5 seconds from Binder IPC timeout for geting Android Battery Service.
2012-09-18 10:51:35 +08:00
Steven Lee
7c5f6e7c41 Bug 791682: Hal's sSystemTimeObserver should be called sSystemTimeObservers, r=jlebar 2012-09-17 08:48:00 -04:00
Ms2ger
8976774677 Bug 787933 - Stop using stdin types in IPC code; r=bsmedberg+cjones sr=cjones 2012-09-17 10:37:20 +02:00
Thomas Zimmermann
b4126e3818 Bug 785171 - Support OOM adjustment via /proc/<pid>/oom_score_adj. r=dhylands
The interface /proc/<pid>/oom_score_adj has been added as a replacement for /proc/<pid>/oom_adj. It
is now supported and used by default within Gonk. If oom_scrore_adj is not available, the code falls
back to the old interface.
2012-09-14 11:52:07 -07:00
Thomas Zimmermann
b528bd795a Bug 785171 - Clamp OOM adjustment settings to valid range. r=dhylands
The supported OOM adjustment is between -1000 to 1000. If the user specifies a value outside
this range, we clamp it and output a warning.
2012-09-14 11:52:07 -07:00
Thomas Zimmermann
3efc48b618 Bug 785171 - Adopt semantics of /proc/<pid>/oom_score_adjust in preferences. r=dhylands
The preference settings

  hal.processPriorityManager.gonk.backgroundOomAdjust,
  hal.processPriorityManager.gonk.foregroundOomAdjust, and
  hal.processPriorityManager.gonk.masterOomAdjust

have been replaced by

  hal.processPriorityManager.gonk.backgroundOomScoreAdjust,
  hal.processPriorityManager.gonk.foregroundOomScoreAdjust, and
  hal.processPriorityManager.gonk.masterOomScoreAdjust.

The new settings adopt the semantics of /proc/<pid>/oom_score_adj and the default
values have been changed accordingly. The interface to the OOM killer interface is
still /proc/<pid>/oom_adj, and its input values are computed from the settings.
2012-09-14 11:52:07 -07:00
Thomas Zimmermann
4b7e4d7301 Bug 785171 - Return success from WriteToFile. r=dhylands
For supporting multiple files in the OOM adjustment, we need to know if a file
has been successfully written to. in this case WriteToFile now returns 'true',
otherwise it returns 'false'.
2012-09-14 11:52:07 -07:00
Thomas Zimmermann
b3aeb0dbc8 Bug 785171 - Whitespace cleanups. r=dhylands 2012-09-14 11:52:07 -07:00
Jesse Ruderman
b1bda19a4e Bug 790781 - fix bustage from bug 714358. 2012-09-12 17:25:55 -07:00
Steven Lee
18e48d0ffd Bug 714358 System time change implementation, r=mounir 2012-09-11 02:40:00 -04:00
Mounir Lamouri
42ecf3a4fd Bug 787532 - Update Android HAL backend to take into account new screen lock values. r=jlebar 2012-09-11 11:57:20 +01:00
Chris Jones
e2b60610ac Bug 789130: Unregister hal observers on HalParent::ActorDestroy(), and make Unregister*() functions resilient to unregister-of-not-registered observers. r=jlebar 2012-09-06 14:58:36 -07:00