Birunthan Mohanathas
ff8ce9bd42
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
Kyle Huey
4b25f94dc9
Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan
...
--HG--
extra : rebase_source : 239ff77ec3765a3f190ed75b1645c6011e5d1dbd
2014-04-14 12:04:24 -07:00
Ryan VanderMeulen
601b02224e
Backed out changesets ddbac34527fe and fa82f32d0c39 (bug 991812) for B2G bustage.
...
CLOSED TREE
2014-04-14 16:16:18 -04:00
Kyle Huey
d7199fa836
Bug 991812: Remove uses of RefCounted<T> that live in Gecko. r=ehsan
2014-04-14 12:04:24 -07:00
Carsten "Tomcat" Book
8dd01a51fe
merge b2g-inbound to mozilla-central
2014-03-20 14:07:58 +01:00
Wes Kocher
af4fab6d1c
Backed out 3 changesets (bug 980027) for causing a serious race in hal with the pref service
...
Backed out changeset 5cd05df56f67 (bug 980027)
Backed out changeset 6344d6606517 (bug 980027)
Backed out changeset 098a43b537e9 (bug 980027)
2014-03-19 15:36:13 -07:00
Cervantes Yu
295a735e85
Bug 959966: prevent the preallocated process from being killed by the lowmem killer by rasing its priority. r=khuey,gsvelto
2014-03-13 15:24:42 +08:00
Dave Hylands
9768f063a8
Bug 964537 - Fix intermittent access through a null pointer. r=dmajor
2014-03-18 14:18:14 -07:00
Ben Kelly
07881c0521
Bug 980027: Part 1: Provide mechanism to set thread priority via HAL. r=gsvelto
2014-03-17 11:52:42 -04:00
Gabriele Svelto
8eb959fe27
Bug 979205 - Make LMK and low-mem trigger preferences use values in KiB instead of MiB. r=fabrice
2014-03-04 11:23:00 +01:00
Ehsan Akhgari
f1e844fd62
Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-21 09:11:33 -05:00
Birunthan Mohanathas
e81a8f702d
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Dave Hylands
b8fe0a4649
Bug 851680 - Set kernel timezone so that external sdcards get local time rather than UTC time.
...
--HG--
extra : rebase_source : 74745fda004671a7c02df132877db7b6be4c5d54
2014-01-28 13:33:15 -08:00
Marco Chen
c10030a03d
Bug 958963 - Headset status from input device didn't be recorded by GonkSwitch.r=dhylands.
2014-01-20 17:35:24 +08:00
Dave Hylands
45e753f0d5
Bug 939372 - Rewrite oom-msg-logger in C or C++ r=dhylands
2014-01-10 22:22:55 -08:00
Ehsan Akhgari
ebd358dfd7
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
Vincent Liu
fb5ee6e50e
Bug 924729 - [Flatfish] :Socket bind() fail in UeventPoller initialization. r=dhylands
2013-12-04 10:18:14 +08:00
Vasanthakumar Pandurangan
218044bba2
Bug 942732 - Check for msm iris fm driver while configuring. r=mwu
...
Also use msmFM instead of tavarua in variable names to generalize all msm fm drivers (Ex: tavarua, iris)
2013-11-27 00:31:47 +05:30
Viral Wang
8cf3f3d6e7
Bug 938035 - The definition of device orientation in firefox is not same as w3c spec. r=dougt
2013-11-26 13:58:15 -05:00
Michael Wu
29f85c1561
Bug 852497 - Add a standard V4L2 mode to GonkFMRadio.cpp, r=dhylands
2013-11-14 15:02:30 -05:00
Shao Hang Kao
92796e5d7d
Bug 926777 - B2G system time: |time.timezone| should save the UTC value with the correct sign. r=gene
2013-10-15 16:43:53 +08:00
Alan Huang
492ebafa8c
Bug 822325: Implement an LRU pool for background app processes. The LRU app will get the smallest oom_adj and get killed last. r=khuey
2013-10-01 11:54:59 +08:00
Fabrice Desré
b16364d8ec
Bug 917602 - Fix some shutdown crashes r=bent
2013-09-18 10:53:07 -07:00
Vasanthakumar (Vasanth) Pandurangan
86f71f5e75
Bug 911294 - Fix FM UI showing previously tuned frequency. r=pzhang, r=mwu
2013-09-10 01:39:38 -07:00
Alan Huang
3b6708fc4a
Bug 914728 - Make ProcessPriorities/OomScoreAdjusts and KillUnderMB two different sets and enlarge OomScoreAdjusts. r=gsvelto
2013-09-11 15:12:56 +08:00
Boris Zbarsky
03d632d917
Bug 909645 part 2. Don't include ipdl headers in Hal.h. r=ms2ger
2013-08-28 00:14:57 -04:00
Tapas Kundu
0bc582a07c
Bug 788975 - Orientation Observer uses accelerometer sensor. r=mwu
2013-08-27 20:10:57 -07:00
Birunthan Mohanathas
c3a52a8631
Bug 784739 - Switch from NULL to nullptr in hal/. r=ehsan
2013-08-23 15:51:15 -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
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
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
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
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
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
Michael Wu
dd29609b36
Bug 870198 - Support basic display functions on gonk-JB, r=vlad
2013-05-07 23:58:22 -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
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
Vasil Dimov
ecad0ec815
Bug 819016 - Create some helper functions for reading /sys files. r=bsmedberg
2013-03-27 11:19:09 -04: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
005f5cb8be
Bug 836654 - Part 2: Add PROCESS_PRIORITY_FOREGROUND_HIGH. r=cjones
2013-02-14 15:41:30 -05: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
Thinker K.F. Li
e40ab6d2f9
Bug 817939 - restart ioctl with EINTR for FMRadio. r=jlebar
2013-01-09 10:13:46 +01: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
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
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
Justin Lebar
1a74683d84
No bug: Fix whitespace error. DONTBUILD
2012-12-03 16:56:54 -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
Justin Lebar
e5ca33789e
Bug 771195 - Fire memory pressure events on Gonk. r=dhylands
2012-10-31 13:29:14 -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
Andreas Gal
db79ec3cdf
Bug 800533 - Don't handle magnetic field sensor, r=mwu
2012-10-16 01:11:06 -04: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
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
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
Steven Lee
a8d94e6a67
Bug 792443 - hal::RegisterSystemTimeChangeObserver should register the observer through sandbox, r=jlebar
2012-09-23 13:00:32 -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
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
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
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
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
Steven Lee
18e48d0ffd
Bug 714358 System time change implementation, r=mounir
2012-09-11 02:40:00 -04:00
Gene Lian
33729b0725
Bug 783021 - System time: listen to timezone settings changes and update system timezone (part 1). r=cjones
2012-08-23 17:00:00 +08:00
Marco Chen
1d67969a6c
Bug 773792: Remove unused field SensorStatus::data and make SensorStatus::count as a array of int[] for fixing an instance of creating/desctroying XPCOM objects from a static constructor/deconstructor. r=jlebar
2012-09-04 17:56:20 +08:00
Marshall Culpepper
5a279b497f
Bug 784728: Make Gonk's battery observer a RefPtr, fixing an abort on process exit in debug builds. r=jlebar
2012-08-29 12:32:56 -03:00
Chris Jones
a1068719d6
Bug 786573: The XPCOM thread manager can't shut down the sensor thread, so use one of our other various thread types for the sensor thread. r=bent
...
--HG--
extra : rebase_source : 07b0fc9ccd710601948c1cd10098fa2b8c681932
2012-08-29 12:26:18 -03:00
Ehsan Akhgari
0fd9123eac
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
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 "*.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Phil Ringnalda
cf09173698
Backout 5439489dc320, 983f76488e59, 7a92558a8dec (Bug 714358) for debug build assertions and leaks
2012-08-07 22:18:27 -07:00
Steven Lee
b7cf4d659c
Bug 714358: System time change implementation, r=mounir
2012-08-07 19:20:00 -04:00
Justin Lebar
4c0e821bfa
Bug 768832 - Set OOM adjust for background windows. r=bz,cjones
2012-08-05 01:09:39 -04:00
Steven Lee
893e256be9
Bug 745078 Get switch device states at any time, r=dhylands
2012-08-01 07:58:58 -07:00
Gene Lian
abe5408e36
Bug 776785 - Alarm API - hal::SetAlarm takes |long|s, but should instead take PRInt32s. r=jlebar
2012-07-31 10:52:57 +08:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Jeff Muizelaar
910481d249
Bug 777381. Use SIGUSR1 instead of SIGUSR2 to avoid interferring with profiling. r=cjones
...
SIGUSR2 was originally chosen to avoid interferering with dalvik. We don't need
to avoid that on B2G.
--HG--
extra : rebase_source : 99098a28daee28933f379cfa520a433c44d5465d
2012-07-26 12:15:26 -04:00
Gervase Markham
44a28dd9d7
Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0.
2012-07-20 10:10:44 +01:00
Gene Lian
618d0214e1
Bug 749551 - Alarm API (Hal/Gonk). r=cjones
2012-07-06 12:42:10 +02:00
Ed Morley
7a600d2b9c
Backout 1dba66cfad9a, ed768b821da1, 23fd9a8d0c9a, 1e90805d96aa, 07425f0e921e (bug 749551) for M3 failures
2012-07-03 11:23:54 +01:00
Gene Lian
bf26b0788c
Bug 749551 - Alarm API (Hal/Gonk). r=cjones
2012-07-03 11:24:13 +02:00
Cervantes Yu
a4fdf883d8
Bug 764773: Fix memory leak in UeventPoller. r=cjones
2012-06-18 12:13:30 +02:00