Граф коммитов

170 Коммитов

Автор SHA1 Сообщение Дата
Chris Jones c46ff7abe6 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 bc8aeb685f 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 fc5b5fbd17 Bug 791682: Hal's sSystemTimeObserver should be called sSystemTimeObservers, r=jlebar 2012-09-17 08:48:00 -04:00
Ms2ger 711f1fd480 Bug 787933 - Stop using stdin types in IPC code; r=bsmedberg+cjones sr=cjones 2012-09-17 10:37:20 +02:00
Thomas Zimmermann 136083f5b7 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 c0eb9590b3 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 ded08b385c 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 62596d7e57 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 04691bc21e Bug 785171 - Whitespace cleanups. r=dhylands 2012-09-14 11:52:07 -07:00
Jesse Ruderman d78cd050fb Bug 790781 - fix bustage from bug 714358. 2012-09-12 17:25:55 -07:00
Steven Lee ec4bd9ff6f Bug 714358 System time change implementation, r=mounir 2012-09-11 02:40:00 -04:00
Mounir Lamouri 41eb3be4c0 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 b720925c5c 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
Jan Beich baacf2d48f Bug 788414 - DragonFly target doesn't use BSD suffix in `uname -s`. r=landry 2012-09-06 12:01:55 +01:00
Gene Lian 80b6011c89 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 cb37d2aa26 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 ceb30b2148 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 a10a3c3145 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
Rafael Ávila de Espíndola 0b6fcd9466 Bug 786148 - s/IPC/ipc/. r=ted.
This makes our builds a bit more reproducible. Without it when processing

#include "IPC/IPCMessageUtils.h

we end up in

#include "ShadowLayers.h"

which in the final XUL translates into the symbol (run nm -a to see it):

 - 00 0000   SOL ../../../../gfx/layers/IPC/ShadowLayers.h

now when some file in gfx/layers/ipc does

#include "ShadowLayres.h"

the file found is the local one with the lowercase directory name and we end up
with

 - 00 0000   SOL ../../../../gfx/layers/ipc/ShadowLayers.h

--HG--
extra : rebase_source : 96c68f6a3448eedaa280039960df911a9c707cac
2012-08-28 08:41:04 -04:00
Chris Jones 12d54ad0df Bug 782460: Fix hal enum serializers, make wake lock permission checking match the DOM's, and log a message when an app process fails a backstop permission check. r=gal 2012-08-25 15:38:04 -07:00
Chris Jones ae8db6c1be Bug 785166: Protect against already-canceled vibrations. r=jlebar 2012-08-23 17:32:00 -07:00
Chris Jones a2fcf10a67 Backed out changeset df85150b8d2f 2012-08-23 17:33:12 -07:00
Chris Jones 8cf9f30595 Bug 785167: Protect against already-canceled vibrations. r=jlebar 2012-08-23 17:32:00 -07:00
Ehsan Akhgari e368dc9c85 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
Chris Jones 1b2d3cc211 Bug 776835: Check process capabilities in hal. r=blassey,jlebar 2012-08-16 12:34:53 -07:00
Phil Ringnalda aa790aa109 Backout 5439489dc320, 983f76488e59, 7a92558a8dec (Bug 714358) for debug build assertions and leaks 2012-08-07 22:18:27 -07:00
Steven Lee 9242ba9386 Bug 714358: System time change implementation, r=mounir 2012-08-07 19:20:00 -04:00
Justin Lebar f54d116fea Bug 768832 - Set OOM adjust for background windows. r=bz,cjones 2012-08-05 01:09:39 -04:00
Mike Hommey 70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Steven Lee 7b3b438a9d Bug 745078 Get switch device states at any time, r=dhylands 2012-08-01 07:58:58 -07:00
Gene Lian f831ee0599 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 d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Jeff Muizelaar 98dd6d3599 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
Chris Jones d810b5a722 Bug 777890: The cached value is valid after we synchronously Get() it, as far as we know. r=jlebar 2012-07-27 11:39:44 -07:00
Justin Lebar a9916a6e83 Bug 772987 - Part 2: Use Static{Auto,Ref}Ptr where appropriate. r=mounir
--HG--
extra : rebase_source : 4e3e72ba53cd0177160f80231eebeb4972119eec
2012-07-26 15:33:45 -04:00
Brian R. Bondy 21c143f097 Bug 774140 - Remove code duplication for IsVistaOrLater. r=bsmedberg 2012-07-25 10:23:26 -04:00
Joshua Cranmer d539846cab Bug 702877 - Replace NS_OVERRIDE with MOZ_OVERRIDE. r=ehsan
--HG--
extra : rebase_source : 1843575683c3897f96f3966cbce26140ff1a7d90
2012-07-06 13:15:45 -05:00
Gervase Markham 1c9fc1e594 Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0. 2012-07-20 10:10:44 +01:00
Rafael Ávila de Espíndola d6b7b96bca Bug 774015 - Fix -Wdelete-non-virtual-dtor warning. r=justin.lebar 2012-07-15 11:13:15 -04:00
Mounir Lamouri b07bb6b73a Bug 772373 - Force warnings as errors in hal/. r=jlebar 2012-07-12 21:34:18 +02:00
Reuben Morais af525c4313 Bug 772524 - Fix "data argument not used by format string" warnings in smslib.mm. r=mounir 2012-07-10 18:31:04 -04:00
Reuben Morais 0bc9bee885 Bug 772351 - Fix deprecated writable strings warnings on smslib.mm. r=mounir 2012-07-10 18:31:04 -04:00
Gene Lian 77e62ee33f Bug 749551 - Alarm API (Hal/Gonk). r=cjones 2012-07-06 12:42:10 +02:00
Kan-Ru Chen 8521c6d695 Bug 768364 - Clear sLockTable on shutdown r=jlebar 2012-07-06 10:09:46 +08:00
Ed Morley e73ef45549 Backout 1dba66cfad9a, ed768b821da1, 23fd9a8d0c9a, 1e90805d96aa, 07425f0e921e (bug 749551) for M3 failures 2012-07-03 11:23:54 +01:00
Gene Lian cad479cbe7 Bug 749551 - Alarm API (Hal/Gonk). r=cjones 2012-07-03 11:24:13 +02:00
Justin Lebar 6ff2cb6e6b Bug 769585 - Fix vim modelines. DONTBUILD rs=mrbkap 2012-06-29 12:42:59 +02:00
Cervantes Yu 90ab573ce5 Bug 764773: Fix memory leak in UeventPoller. r=cjones 2012-06-18 12:13:30 +02:00
Ryan VanderMeulen 5f2a19ee6e Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
Ryan VanderMeulen 6d6c4efbab Backout the bug 754202 backout due to orange. 2012-06-10 19:37:47 -04:00