Michael Wu
bce75998cc
Bug 870198 - Support basic display functions on gonk-JB, r=vlad
2013-05-07 23:58:22 -04:00
Justin Lebar
65994031f8
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
f3ee828a67
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
d31b7f65ff
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
6af614d8d4
Bug 864527 - Convert a static nsRefPtr to static StaticRefPtr in GonkHal. r=mounir
2013-04-23 11:30:25 -04:00
Vasil Dimov
0753d90653
Bug 819016 - Create some helper functions for reading /sys files. r=bsmedberg
2013-03-27 11:19:09 -04:00
Justin Lebar
924a0396b5
Bug 842679 - Part 2: Add PROCESS_PRIORITY_UNKNOWN to hal. r=cjones
2013-02-22 23:24:28 -05:00
Justin Lebar
c24d48d121
Bug 836654 - Part 2: Add PROCESS_PRIORITY_FOREGROUND_HIGH. r=cjones
2013-02-14 15:41:30 -05:00
Alan Huang
9c9c1cdb68
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
Mats Palmgren
d5826be6d7
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
Kan-Ru Chen (陳侃如)
87e76c076e
Bug 793105 - Add a "backgroundPerceivable" class for audio-channel-content. r=jlebar,roc
2013-01-05 13:03:51 +08:00
Justin Lebar
97829d731f
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
bf3895a623
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
e0523203c9
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
8a80bd0a22
Bug 771195 - Fire memory pressure events on Gonk. r=dhylands
2012-10-31 13:29:14 -04:00
Benjamin Chen
7a6895cd0b
Bug 797817 - Update the battery indicator led when receiving battery status change. r=cjones
2012-10-22 11:10:05 +08:00
Gene Lian
49f7f7432c
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
1942917947
Bug 790393 - Add MozPower.factoryReset() for factory reset. r=cjones, r=vingtetun, sr=sicking
2012-10-04 17:28:34 +08:00
Vincent Chang
a0129fa495
Bug 793558 - Time API: changes does not persist after a restart. r=mwu
2012-09-28 14:38:50 +08:00
foudfou
62d7406c52
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
Thomas Zimmermann
318aaffea1
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
aa922bc172
Bug 794127 - hal::AdjustSystemClock should take a 64-bit value. r=cjones
2012-09-26 11:51:29 +08:00
Steven Lee
bfafbca8ed
Bug 792443 - hal::RegisterSystemTimeChangeObserver should register the observer through sandbox, r=jlebar
2012-09-23 13:00:32 -04:00
Dave Hylands
32e1c93e8f
Bug 792682 - GonkHal vibrator code incorrectly uses a weak reference. r=qDot
2012-09-19 23:34:07 -07:00
Dave Hylands
98d4ca9914
Bug 792529 - ASSERTION: VibratorRunnable not thread-safe. r=qDot
2012-09-19 13:55:10 -07:00
Thomas Zimmermann
4c6d7cd938
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
9ccf6066a4
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
1f17381b82
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
0efe0ea895
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
64595e0ccc
Bug 785171 - Whitespace cleanups. r=dhylands
2012-09-14 11:52:07 -07:00
Steven Lee
b50ad6db3a
Bug 714358 System time change implementation, r=mounir
2012-09-11 02:40:00 -04:00
Gene Lian
468c7c6ef3
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
Marshall Culpepper
3f62d234fe
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
Ehsan Akhgari
8c296bbcd4
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
2400fbd6d1
Backout 5439489dc320, 983f76488e59, 7a92558a8dec (Bug 714358) for debug build assertions and leaks
2012-08-07 22:18:27 -07:00
Steven Lee
ab3e1cc85d
Bug 714358: System time change implementation, r=mounir
2012-08-07 19:20:00 -04:00
Justin Lebar
20266d6b15
Bug 768832 - Set OOM adjust for background windows. r=bz,cjones
2012-08-05 01:09:39 -04:00
Gene Lian
cd33639a03
Bug 776785 - Alarm API - hal::SetAlarm takes |long|s, but should instead take PRInt32s. r=jlebar
2012-07-31 10:52:57 +08:00
Jeff Muizelaar
6dca3de931
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
69110ab2b1
Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0.
2012-07-20 10:10:44 +01:00
Gene Lian
6c4a2306fe
Bug 749551 - Alarm API (Hal/Gonk). r=cjones
2012-07-06 12:42:10 +02:00
Ed Morley
2a1d58cfe5
Backout 1dba66cfad9a, ed768b821da1, 23fd9a8d0c9a, 1e90805d96aa, 07425f0e921e (bug 749551) for M3 failures
2012-07-03 11:23:54 +01:00
Gene Lian
8bd1d9451c
Bug 749551 - Alarm API (Hal/Gonk). r=cjones
2012-07-03 11:24:13 +02:00
Ms2ger
cd52b67ce6
Bug 712910 - Use stdint types in HAL; r=cjones
2012-05-25 09:18:30 +02:00
Michael Wu
4d5c363c02
Bug 753521 - Use libhardware_legacy to turn off screen, r=jlebar
2012-05-09 14:30:22 -07:00
Cervantes Yu
9e34e52e44
Bug 743638: Implement orientation API backend in gonk. r=mwu
2012-04-20 19:43:25 +08:00
Chris Jones
03cf24ab29
Bug 745145, part 2: Implement the ScreenConfiguration hal for gonk. r=mounir
2012-05-08 14:36:07 -07:00
Mounir Lamouri
a51ab096d6
Bug 749645 - Use fallback files in hal/ when a backend isn't implemneted instead of having randomly defined methods. r=cjones
...
--HG--
rename : hal/fallback/ScreenOrientationFallback.cpp => hal/fallback/FallbackScreenOrientation.cpp
rename : hal/linux/Power.cpp => hal/linux/LinuxPower.cpp
2012-05-03 12:05:32 +02:00
Kan-Ru Chen
aa08af3ddb
Bug 739913 - Add cpuSleepAllowed attribute to mozPower. r=cjones
2012-04-16 18:35:33 -04:00
Cervantes Yu
3c7724646e
Bug 742226 - Refactor battery updater using uevent poller. r=cjones
2012-04-11 15:59:00 +08:00