author | Wes Kocher <wkocher@mozilla.com> |
Mon, 21 Jul 2014 12:58:05 -0700 | |
changeset 217226 | 4df3b2ee48173e1a12fa279218d7195067805ac6 |
parent 217193 | c9b967d0e5dad1a4d81d956fd1f3b86b005cd5e7 (current diff) |
parent 217225 | 7d48198829c99a10b11df8f6c133efb0c6adea8b (diff) |
child 217227 | dc23164ba2a289a8b22902e30990c77d9677c214 |
push id | 515 |
push user | raliiev@mozilla.com |
push date | Mon, 06 Oct 2014 12:51:51 +0000 |
treeherder | mozilla-release@267c7a481bef [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | merge |
milestone | 33.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/b2g/config/emulator-ics/sources.xml +++ b/b2g/config/emulator-ics/sources.xml @@ -14,23 +14,23 @@ <!--original fetch url was git://github.com/apitrace/--> <remote fetch="https://git.mozilla.org/external/apitrace" name="apitrace"/> <default remote="caf" revision="refs/tags/android-4.0.4_r2.1" sync-j="4"/> <!-- Gonk specific things and forks --> <project name="platform_build" path="build" remote="b2g" revision="0d616942c300d9fb142483210f1dda9096c9a9fc"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/> - <project name="gaia.git" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia.git" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/> <project name="platform_external_qemu" path="external/qemu" remote="b2g" revision="227354333a185180b85471f2cc6abfb029e44718"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <!-- Stock Android things --> <project name="platform/abi/cpp" path="abi/cpp" revision="dd924f92906085b831bf1cbbc7484d3c043d613c"/> <project name="platform/bionic" path="bionic" revision="c72b8f6359de7ed17c11ddc9dfdde3f615d188a9"/> <project name="platform/bootable/recovery" path="bootable/recovery" revision="425f8b5fadf5889834c5acd27d23c9e0b2129c28"/> <project name="device/common" path="device/common" revision="42b808b7e93d0619286ae8e59110b176b7732389"/> <project name="device/sample" path="device/sample" revision="237bd668d0f114d801a8d6455ef5e02cc3577587"/> <project name="platform_external_apriori" path="external/apriori" remote="b2g" revision="11816ad0406744f963537b23d68ed9c2afb412bd"/> <project name="platform/external/bluetooth/bluez" path="external/bluetooth/bluez" revision="52a1a862a8bac319652b8f82d9541ba40bfa45ce"/>
--- a/b2g/config/emulator-jb/sources.xml +++ b/b2g/config/emulator-jb/sources.xml @@ -12,20 +12,20 @@ <!--original fetch url was https://git.mozilla.org/releases--> <remote fetch="https://git.mozilla.org/releases" name="mozillaorg"/> <!-- B2G specific things. --> <project name="platform_build" path="build" remote="b2g" revision="cc67f31dc638c0b7edba3cf7e3d87cadf0ed52bf"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/> - <project name="gaia" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <project name="valgrind" path="external/valgrind" remote="b2g" revision="daa61633c32b9606f58799a3186395fd2bbb8d8c"/> <project name="vex" path="external/VEX" remote="b2g" revision="47f031c320888fe9f3e656602588565b52d43010"/> <!-- Stock Android things --> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.1" path="prebuilts/clang/linux-x86/3.1" revision="5c45f43419d5582949284eee9cef0c43d866e03b"/> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.2" path="prebuilts/clang/linux-x86/3.2" revision="3748b4168e7bd8d46457d4b6786003bc6a5223ce"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" revision="9025e50b9d29b3cabbbb21e1dd94d0d13121a17e"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" revision="b89fda71fcd0fa0cf969310e75be3ea33e048b44"/> <project groups="linux,arm" name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" revision="2e7d5348f35575870b3c7e567a9a9f6d66f8d6c5"/>
--- a/b2g/config/emulator-kk/sources.xml +++ b/b2g/config/emulator-kk/sources.xml @@ -10,25 +10,25 @@ <!--original fetch url was git://codeaurora.org/--> <remote fetch="https://git.mozilla.org/external/caf" name="caf"/> <!--original fetch url was https://git.mozilla.org/releases--> <remote fetch="https://git.mozilla.org/releases" name="mozillaorg"/> <!-- B2G specific things. --> <project name="platform_build" path="build" remote="b2g" revision="276ce45e78b09c4a4ee643646f691d22804754c1"> <copyfile dest="Makefile" src="core/root.mk"/> </project> - <project name="gaia" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="valgrind" path="external/valgrind" remote="b2g" revision="daa61633c32b9606f58799a3186395fd2bbb8d8c"/> <project name="vex" path="external/VEX" remote="b2g" revision="47f031c320888fe9f3e656602588565b52d43010"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <!-- Stock Android things --> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" revision="f92a936f2aa97526d4593386754bdbf02db07a12"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" revision="6e47ff2790f5656b5b074407829ceecf3e6188c4"/> <project groups="linux,arm" name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" revision="1950e4760fa14688b83cdbb5acaa1af9f82ef434"/> <project groups="linux,arm" name="platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7" path="prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7" revision="ac6eb97a37035c09fb5ede0852f0881e9aadf9ad"/> <project groups="linux,x86" name="platform/prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7" path="prebuilts/gcc/linux-x86/x86/i686-linux-android-4.7" revision="737f591c5f95477148d26602c7be56cbea0cdeb9"/> <project groups="linux,x86" name="platform/prebuilts/python/linux-x86/2.7.5" path="prebuilts/python/linux-x86/2.7.5" revision="51da9b1981be481b92a59a826d4d78dc73d0989a"/> <project name="device/common" path="device/common" revision="798a3664597e6041985feab9aef42e98d458bc3d"/>
--- a/b2g/config/emulator/sources.xml +++ b/b2g/config/emulator/sources.xml @@ -14,23 +14,23 @@ <!--original fetch url was git://github.com/apitrace/--> <remote fetch="https://git.mozilla.org/external/apitrace" name="apitrace"/> <default remote="caf" revision="refs/tags/android-4.0.4_r2.1" sync-j="4"/> <!-- Gonk specific things and forks --> <project name="platform_build" path="build" remote="b2g" revision="0d616942c300d9fb142483210f1dda9096c9a9fc"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/> - <project name="gaia.git" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia.git" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/> <project name="platform_external_qemu" path="external/qemu" remote="b2g" revision="227354333a185180b85471f2cc6abfb029e44718"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <!-- Stock Android things --> <project name="platform/abi/cpp" path="abi/cpp" revision="dd924f92906085b831bf1cbbc7484d3c043d613c"/> <project name="platform/bionic" path="bionic" revision="c72b8f6359de7ed17c11ddc9dfdde3f615d188a9"/> <project name="platform/bootable/recovery" path="bootable/recovery" revision="425f8b5fadf5889834c5acd27d23c9e0b2129c28"/> <project name="device/common" path="device/common" revision="42b808b7e93d0619286ae8e59110b176b7732389"/> <project name="device/sample" path="device/sample" revision="237bd668d0f114d801a8d6455ef5e02cc3577587"/> <project name="platform_external_apriori" path="external/apriori" remote="b2g" revision="11816ad0406744f963537b23d68ed9c2afb412bd"/> <project name="platform/external/bluetooth/bluez" path="external/bluetooth/bluez" revision="52a1a862a8bac319652b8f82d9541ba40bfa45ce"/>
--- a/b2g/config/flame/sources.xml +++ b/b2g/config/flame/sources.xml @@ -12,20 +12,20 @@ <!--original fetch url was https://git.mozilla.org/releases--> <remote fetch="https://git.mozilla.org/releases" name="mozillaorg"/> <!-- B2G specific things. --> <project name="platform_build" path="build" remote="b2g" revision="cc67f31dc638c0b7edba3cf7e3d87cadf0ed52bf"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/> <project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/> - <project name="gaia" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <project name="valgrind" path="external/valgrind" remote="b2g" revision="daa61633c32b9606f58799a3186395fd2bbb8d8c"/> <project name="vex" path="external/VEX" remote="b2g" revision="47f031c320888fe9f3e656602588565b52d43010"/> <!-- Stock Android things --> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.1" path="prebuilts/clang/linux-x86/3.1" revision="e95b4ce22c825da44d14299e1190ea39a5260bde"/> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.2" path="prebuilts/clang/linux-x86/3.2" revision="471afab478649078ad7c75ec6b252481a59e19b8"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" revision="95bb5b66b3ec5769c3de8d3f25d681787418e7d2"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" revision="ebdad82e61c16772f6cd47e9f11936bf6ebe9aa0"/> <project groups="linux,arm" name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" revision="8b880805d454664b3eed11d0f053cdeafa1ff06e"/>
--- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,9 +1,9 @@ { "git": { "git_revision": "", "remote": "", "branch": "" }, - "revision": "3112418e17e7f0b56dddb38316f6a448ec9c1e2a", + "revision": "591c866cb04a88306e472c873429669229f28540", "repo_path": "/integration/gaia-central" }
--- a/b2g/config/hamachi/sources.xml +++ b/b2g/config/hamachi/sources.xml @@ -12,22 +12,22 @@ <!--original fetch url was git://github.com/apitrace/--> <remote fetch="https://git.mozilla.org/external/apitrace" name="apitrace"/> <default remote="caf" revision="b2g/ics_strawberry" sync-j="4"/> <!-- Gonk specific things and forks --> <project name="platform_build" path="build" remote="b2g" revision="0d616942c300d9fb142483210f1dda9096c9a9fc"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/> - <project name="gaia.git" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia.git" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <!-- Stock Android things --> <project name="platform/abi/cpp" path="abi/cpp" revision="6426040f1be4a844082c9769171ce7f5341a5528"/> <project name="platform/bionic" path="bionic" revision="d2eb6c7b6e1bc7643c17df2d9d9bcb1704d0b9ab"/> <project name="platform/bootable/recovery" path="bootable/recovery" revision="746bc48f34f5060f90801925dcdd964030c1ab6d"/> <project name="platform/development" path="development" revision="2460485184bc8535440bb63876d4e63ec1b4770c"/> <project name="device/common" path="device/common" revision="0dcc1e03659db33b77392529466f9eb685cdd3c7"/> <project name="device/sample" path="device/sample" revision="68b1cb978a20806176123b959cb05d4fa8adaea4"/> <project name="platform_external_apriori" path="external/apriori" remote="b2g" revision="11816ad0406744f963537b23d68ed9c2afb412bd"/>
--- a/b2g/config/helix/sources.xml +++ b/b2g/config/helix/sources.xml @@ -10,17 +10,17 @@ <!--original fetch url was https://git.mozilla.org/releases--> <remote fetch="https://git.mozilla.org/releases" name="mozillaorg"/> <default remote="caf" revision="b2g/ics_strawberry" sync-j="4"/> <!-- Gonk specific things and forks --> <project name="platform_build" path="build" remote="b2g" revision="0d616942c300d9fb142483210f1dda9096c9a9fc"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/> - <project name="gaia.git" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia.git" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> <project name="gonk-patches" path="patches" remote="b2g" revision="223a2421006e8f5da33f516f6891c87cae86b0f6"/> <!-- Stock Android things --> <project name="platform/abi/cpp" path="abi/cpp" revision="6426040f1be4a844082c9769171ce7f5341a5528"/> <project name="platform/bionic" path="bionic" revision="d2eb6c7b6e1bc7643c17df2d9d9bcb1704d0b9ab"/>
--- a/b2g/config/nexus-4/sources.xml +++ b/b2g/config/nexus-4/sources.xml @@ -12,20 +12,20 @@ <!--original fetch url was https://git.mozilla.org/releases--> <remote fetch="https://git.mozilla.org/releases" name="mozillaorg"/> <!-- B2G specific things. --> <project name="platform_build" path="build" remote="b2g" revision="cc67f31dc638c0b7edba3cf7e3d87cadf0ed52bf"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/> - <project name="gaia" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <project name="valgrind" path="external/valgrind" remote="b2g" revision="daa61633c32b9606f58799a3186395fd2bbb8d8c"/> <project name="vex" path="external/VEX" remote="b2g" revision="47f031c320888fe9f3e656602588565b52d43010"/> <!-- Stock Android things --> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.1" path="prebuilts/clang/linux-x86/3.1" revision="5c45f43419d5582949284eee9cef0c43d866e03b"/> <project groups="linux" name="platform/prebuilts/clang/linux-x86/3.2" path="prebuilts/clang/linux-x86/3.2" revision="3748b4168e7bd8d46457d4b6786003bc6a5223ce"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" revision="9025e50b9d29b3cabbbb21e1dd94d0d13121a17e"/> <project groups="linux" name="platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" path="prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" revision="b89fda71fcd0fa0cf969310e75be3ea33e048b44"/> <project groups="linux,arm" name="platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" path="prebuilts/gcc/linux-x86/arm/arm-eabi-4.7" revision="2e7d5348f35575870b3c7e567a9a9f6d66f8d6c5"/>
--- a/b2g/config/wasabi/sources.xml +++ b/b2g/config/wasabi/sources.xml @@ -12,22 +12,22 @@ <!--original fetch url was git://github.com/apitrace/--> <remote fetch="https://git.mozilla.org/external/apitrace" name="apitrace"/> <default remote="caf" revision="ics_chocolate_rb4.2" sync-j="4"/> <!-- Gonk specific things and forks --> <project name="platform_build" path="build" remote="b2g" revision="0d616942c300d9fb142483210f1dda9096c9a9fc"> <copyfile dest="Makefile" src="core/root.mk"/> </project> <project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/> - <project name="gaia.git" path="gaia" remote="mozillaorg" revision="0114839afc44aa98ae87db91004835f16a49dcab"/> + <project name="gaia.git" path="gaia" remote="mozillaorg" revision="649245c238a043af32acb109b2613f578323f8e1"/> <project name="gonk-misc" path="gonk-misc" remote="b2g" revision="7f792d756385bb894fba7645da59c67fe2c804bf"/> <project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/> <project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/> <project name="moztt" path="external/moztt" remote="b2g" revision="dc5ca96695cab87b4c2fcd7c9f046ae3415a70a5"/> - <project name="apitrace" path="external/apitrace" remote="apitrace" revision="8b04b5aca4b0a894de40f4d53ae9750222d349a8"/> + <project name="apitrace" path="external/apitrace" remote="apitrace" revision="31215645c296ba7a62bcb3176f69e0014ab9be07"/> <project name="gonk-patches" path="patches" remote="b2g" revision="223a2421006e8f5da33f516f6891c87cae86b0f6"/> <!-- Stock Android things --> <project name="platform/abi/cpp" path="abi/cpp" revision="6426040f1be4a844082c9769171ce7f5341a5528"/> <project name="platform/bionic" path="bionic" revision="cd5dfce80bc3f0139a56b58aca633202ccaee7f8"/> <project name="platform/bootable/recovery" path="bootable/recovery" revision="e0a9ac010df3afaa47ba107192c05ac8b5516435"/> <project name="platform/development" path="development" revision="a384622f5fcb1d2bebb9102591ff7ae91fe8ed2d"/> <project name="device/common" path="device/common" revision="7c65ea240157763b8ded6154a17d3c033167afb7"/> <project name="device/sample" path="device/sample" revision="c328f3d4409db801628861baa8d279fb8855892f"/>
--- a/dom/bluetooth2/BluetoothAdapter.cpp +++ b/dom/bluetooth2/BluetoothAdapter.cpp @@ -452,17 +452,20 @@ BluetoothAdapter::StartDiscovery(ErrorRe already_AddRefed<Promise> BluetoothAdapter::StopDiscovery(ErrorResult& aRv) { nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(GetOwner()); if (!global) { aRv.Throw(NS_ERROR_FAILURE); return nullptr; } - nsRefPtr<Promise> promise = new Promise(global); + nsRefPtr<Promise> promise = Promise::Create(global, aRv); + if (aRv.Failed()) { + return nullptr; + } /** * Ensure * - adapter is discovering, * - adapter is already enabled, and * - BluetoothService is available */ BT_ENSURE_TRUE_RESOLVE(mDiscovering, JS::UndefinedHandleValue);
--- a/dom/mobileconnection/interfaces/moz.build +++ b/dom/mobileconnection/interfaces/moz.build @@ -1,15 +1,16 @@ # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. XPIDL_SOURCES += [ + 'nsICellInfo.idl', 'nsIMobileCellInfo.idl', 'nsIMobileConnectionInfo.idl', 'nsIMobileConnectionProvider.idl', 'nsIMobileNetworkInfo.idl', 'nsINeighboringCellInfo.idl', ] XPIDL_MODULE = 'dom_mobileconnection'
new file mode 100644 --- /dev/null +++ b/dom/mobileconnection/interfaces/nsICellInfo.idl @@ -0,0 +1,256 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +[scriptable, uuid(1aed4c36-979e-4d20-9fa0-55139da8301e)] +interface nsICellInfoListCallback : nsISupports +{ + /** + * result is an array of nsICellInfo. + */ + void notifyGetCellInfoList(in jsval result); + + /** + * Callback function with error message. + */ + void notifyGetCellInfoListFailed(in DOMString error); +}; + +[scriptable, uuid(86667898-c9ab-44ee-8a9a-026916b3183e)] +interface nsICellInfo : nsISupports +{ + const long CELL_INFO_TYPE_GSM = 1; + const long CELL_INFO_TYPE_CDMA = 2; + const long CELL_INFO_TYPE_LTE = 3; + const long CELL_INFO_TYPE_WCDMA = 4; + + const long TIMESTAMP_TYPE_UNKNOWN = 0; + const long TIMESTAMP_TYPE_ANTENNA = 1; + const long TIMESTAMP_TYPE_MODEM = 2; + const long TIMESTAMP_TYPE_OEM_RIL = 3; + const long TIMESTAMP_TYPE_JAVA_RIL = 4; + + /** + * Network type. One of the CELL_INFO_TYPE_* constants. + */ + readonly attribute long type; + + /* + * Registration state of this cell. + */ + readonly attribute boolean registered; + + /** + * Time stamp type. One of the TIMESTAMP_TYPE_* constants. + */ + readonly attribute long timestampType; + + /** + * Time in nanoseconds since boot. + */ + readonly attribute long long timestamp; +}; + +[scriptable, uuid(6345967c-61fc-45a1-8362-39e9261df052)] +interface nsIGsmCellInfo : nsICellInfo +{ + /** + * 3-digit Mobile Country Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mcc; + + /** + * 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mnc; + + /** + * 16-bit Location Area Code, 0..65535, INT_MAX if unknown. + */ + readonly attribute long lac; + + /** + * 16-bit GSM Cell Identity described in TS 27.007, 0..65535, INT_MAX if unknown. + */ + readonly attribute long cid; + + /** + * Valid values are 0-31 as defined in TS 27.007 8.5, 99 if unknown. + */ + readonly attribute long signalStrength; + + /** + * Bit error rate 0-7 as defined in TS 27.007 8.5, 99 if unknown. + */ + readonly attribute long bitErrorRate; +}; + +[scriptable, uuid(19693f98-943d-45e7-a3e8-25373228ce6b)] +interface nsIWcdmaCellInfo : nsICellInfo +{ + /** + * 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mcc; + + /** + * 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mnc; + + /** + * 16-bit Location Area Code, 0..65535, INT_MAX if unknown. + */ + readonly attribute long lac; + + /** + * 28-bit UMTS Cell Identity described in TS 25.331, 0..268435455, + * INT_MAX if unknown. + */ + readonly attribute long cid; + + /** + * 9-bit UMTS Primary Scrambling Code described in TS 25.331, 0..511, + * INT_MAX if unknown. + */ + readonly attribute long psc; + + /** + * Valid values are 0-31 as defined in TS 27.007 8.5, 99 if unknown. + */ + readonly attribute long signalStrength; + + /** + * Bit error rate 0-7 as defined in TS 27.007 8.5, 99 if unknown. + */ + readonly attribute long bitErrorRate; +}; + +[scriptable, uuid(76b4a35d-7e45-42bc-a2e0-bc07a6434db3)] +interface nsICdmaCellInfo : nsICellInfo +{ + /** + * Network Id, 0..65535, INT_MAX if unknown. + */ + readonly attribute long networkId; + + /** + * CDMA System Id, 0..32767, INT_MAX if unknown. + */ + readonly attribute long systemId; + + /** + * Base Station Id, 0..65535, INT_MAX if unknown. + */ + readonly attribute long baseStationId; + + /** + * Longitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. + * It is represented in units of 0.25 seconds and ranges from -2592000 to + * 2592000, INT_MAX if unknown. + */ + readonly attribute long longitude; + + /** + * Latitude is a decimal number as specified in 3GPP2 C.S0005-A v6.0. + * It is represented in units of 0.25 seconds and ranges from -1296000 to + * 1296000, INT_MAX if unknown. + */ + readonly attribute long latitude; + + /** + * Valid values are positive integers, INT_MAX if unknown. This value is the + * actual RSSI value multiplied by -1. + */ + readonly attribute long cdmaDbm; + + /** + * Valid values are positive integers, INT_MAX if unknown. This value is the + * actual Ec/Io multiplied by -10. -1 if unknown. + */ + readonly attribute long cdmaEcio; + + /** + * Valid values are positive integers, INT_MAX if unknown. This value is the + * actual Evdo RSSI value multiplied by -1. + */ + readonly attribute long evdoDbm; + + /** + * Valid values are positive integers, INT_MAX if unknown. This value is the + * actual Evdo Ec/Io multiplied by -10. + */ + readonly attribute long evdoEcio; + + /** + * Valid values are 0-8, INT_MAX if unknown. 8 is the highest signal to noise + * ratio. + */ + readonly attribute long evdoSnr; +}; + +[scriptable, uuid(122937d9-1ee5-45e0-a360-5959d578bc31)] +interface nsILteCellInfo : nsICellInfo +{ + /** + * 3-digit Mobile Country Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mcc; + + /** + * 2 or 3-digit Mobile Network Code, 0..999, INT_MAX if unknown. + */ + readonly attribute long mnc; + + /** + * 28-bit Cell Identity, 0..268435455, INT_MAX if unknown. + */ + readonly attribute long cid; + + /** + * Physical cell id, 0..503, INT_MAX if unknown. + */ + readonly attribute long pcid; + + /** + * 16-bit tracking area code, 0..65535, INT_MAX if unknown. + */ + readonly attribute long tac; + + /** + * Valid values are 0-31 as defined in TS 27.007 8.5, 99 if unknown. + */ + readonly attribute long signalStrength; + + /** + * The current Reference Signal Receive Power in dBm multipled by -1. + * Range: 44 to 140 dBm, INT_MAX if unknown. + */ + readonly attribute long rsrp; + + /** + * The current Reference Signal Receive Quality in dB multiplied by -1. + * Range: 3 to 20 dB, INT_MAX if unknown. + */ + readonly attribute long rsrq; + + /** + * The current reference signal signal-to-noise ratio in 0.1 dB units. + * Range: -200 to +300 (-200 = -20.0 dB, +300 = 30dB), INT_MAX if unknown. + */ + readonly attribute long rssnr; + + /** + * The current Channel Quality Indicator. Range: 0 to 15, INT_MAX if unknown. + */ + readonly attribute long cqi; + + /** + * Timing advance in micro seconds for a one way trip from cell to device. + * Approximate distance can be calculated using 300m/us * timingAdvance. + * Range: 0 to 0x7FFFFFFE, INT_MAX if unknown. + */ + readonly attribute long timingAdvance; +}; \ No newline at end of file
--- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -54,16 +54,24 @@ const RADIOINTERFACE_CID = const RILNETWORKINTERFACE_CID = Components.ID("{3bdd52a9-3965-4130-b569-0ac5afed045e}"); const GSMICCINFO_CID = Components.ID("{d90c4261-a99d-47bc-8b05-b057bb7e8f8a}"); const CDMAICCINFO_CID = Components.ID("{39ba3c08-aacc-46d0-8c04-9b619c387061}"); const NEIGHBORINGCELLINFO_CID = Components.ID("{f9dfe26a-851e-4a8b-a769-cbb1baae7ded}"); +const GSMCELLINFO_CID = + Components.ID("{41f6201e-7263-42e3-b31f-38a9dc8a280a}"); +const WCDMACELLINFO_CID = + Components.ID("{eeaaf307-df6e-4c98-b121-e3302b1fc468}"); +const CDMACELLINFO_CID = + Components.ID("{b497d6e4-4cb8-4d6e-b673-840c7d5ddf25}"); +const LTECELLINFO_CID = + Components.ID("{c7e0a78a-4e99-42f5-9251-e6172c5ed8d8}"); const NS_XPCOM_SHUTDOWN_OBSERVER_ID = "xpcom-shutdown"; const kNetworkInterfaceStateChangedTopic = "network-interface-state-changed"; const kNetworkConnStateChangedTopic = "network-connection-state-changed"; const kNetworkActiveChangedTopic = "network-active-changed"; const kSmsReceivedObserverTopic = "sms-received"; const kSilentSmsReceivedObserverTopic = "silent-sms-received"; const kSmsSendingObserverTopic = "sms-sending"; @@ -92,16 +100,19 @@ const DOM_MOBILE_MESSAGE_DELIVERY_RECEIV const DOM_MOBILE_MESSAGE_DELIVERY_SENDING = "sending"; const DOM_MOBILE_MESSAGE_DELIVERY_SENT = "sent"; const DOM_MOBILE_MESSAGE_DELIVERY_ERROR = "error"; const RADIO_POWER_OFF_TIMEOUT = 30000; const SMS_HANDLED_WAKELOCK_TIMEOUT = 5000; const HW_DEFAULT_CLIENT_ID = 0; +const INT32_MAX = 2147483647; +const UNKNOWN_RSSI = 99; + const RIL_IPC_MOBILECONNECTION_MSG_NAMES = [ "RIL:GetRilContext", "RIL:GetAvailableNetworks", "RIL:SelectNetwork", "RIL:SelectNetworkAuto", "RIL:SetPreferredNetworkType", "RIL:GetPreferredNetworkType", "RIL:SendMMI", @@ -1071,17 +1082,119 @@ NeighboringCellInfo.prototype = { }), // nsINeighboringCellInfo networkType: null, gsmLocationAreaCode: -1, gsmCellId: -1, wcdmaPsc: -1, - signalStrength: 99 + signalStrength: UNKNOWN_RSSI +}; + +function CellInfo() {} +CellInfo.prototype = { + type: null, + registered: false, + timestampType: Ci.nsICellInfo.TIMESTAMP_TYPE_UNKNOWN, + timestamp: 0 +}; + +function GsmCellInfo() {} +GsmCellInfo.prototype = { + __proto__: CellInfo.prototype, + QueryInterface: XPCOMUtils.generateQI([Ci.nsIGsmCellInfo]), + classID: GSMCELLINFO_CID, + classInfo: XPCOMUtils.generateCI({ + classID: GSMCELLINFO_CID, + classDescription: "GsmCellInfo", + interfaces: [Ci.nsIGsmCellInfo] + }), + + // nsIGsmCellInfo + + mcc: INT32_MAX, + mnc: INT32_MAX, + lac: INT32_MAX, + cid: INT32_MAX, + signalStrength: UNKNOWN_RSSI, + bitErrorRate: UNKNOWN_RSSI +}; + +function WcdmaCellInfo() {} +WcdmaCellInfo.prototype = { + __proto__: CellInfo.prototype, + QueryInterface: XPCOMUtils.generateQI([Ci.nsIWcdmaCellInfo]), + classID: WCDMACELLINFO_CID, + classInfo: XPCOMUtils.generateCI({ + classID: WCDMACELLINFO_CID, + classDescription: "WcdmaCellInfo", + interfaces: [Ci.nsIWcdmaCellInfo] + }), + + // nsIWcdmaCellInfo + + mcc: INT32_MAX, + mnc: INT32_MAX, + lac: INT32_MAX, + cid: INT32_MAX, + psc: INT32_MAX, + signalStrength: UNKNOWN_RSSI, + bitErrorRate: UNKNOWN_RSSI +}; + +function LteCellInfo() {} +LteCellInfo.prototype = { + __proto__: CellInfo.prototype, + QueryInterface: XPCOMUtils.generateQI([Ci.nsILteCellInfo]), + classID: LTECELLINFO_CID, + classInfo: XPCOMUtils.generateCI({ + classID: LTECELLINFO_CID, + classDescription: "LteCellInfo", + interfaces: [Ci.nsILteCellInfo] + }), + + // nsILteCellInfo + + mcc: INT32_MAX, + mnc: INT32_MAX, + cid: INT32_MAX, + pcid: INT32_MAX, + tac: INT32_MAX, + signalStrength: UNKNOWN_RSSI, + rsrp: INT32_MAX, + rsrq: INT32_MAX, + rssnr: INT32_MAX, + cqi: INT32_MAX, + timingAdvance: INT32_MAX +}; + +function CdmaCellInfo() {} +CdmaCellInfo.prototype = { + __proto__: CellInfo.prototype, + QueryInterface: XPCOMUtils.generateQI([Ci.nsICdmaCellInfo]), + classID: CDMACELLINFO_CID, + classInfo: XPCOMUtils.generateCI({ + classID: CDMACELLINFO_CID, + classDescription: "CdmaCellInfo", + interfaces: [Ci.nsICdmaCellInfo] + }), + + // nsICdmaCellInfo + + networkId: INT32_MAX, + systemId: INT32_MAX, + baseStationId: INT32_MAX, + longitude: INT32_MAX, + latitude: INT32_MAX, + cdmaDbm: INT32_MAX, + cdmaEcio: INT32_MAX, + evdoDbm: INT32_MAX, + evdoEcio: INT32_MAX, + evdoSnr: INT32_MAX }; function DataConnectionHandler(clientId, radioInterface) { // Initial owning attributes. this.clientId = clientId; this.radioInterface = radioInterface; this.dataCallSettings = { oldEnabled: false, @@ -4415,16 +4528,55 @@ RadioInterface.prototype = { this.workerMessenger.send(rilMessageType, message, function(response) { return callback.handleResponse(response); }); } else { this.workerMessenger.send(rilMessageType, message); } }, + getCellInfoList: function(callback) { + this.workerMessenger.send("getCellInfoList", + null, + function(response) { + if (response.errorMsg) { + callback.notifyGetCellInfoListFailed(response.errorMsg); + return; + } + + let cellInfoList = []; + let count = response.result.length; + for (let i = 0; i < count; i++) { + let srcCellInfo = response.result[i]; + let cellInfo; + switch (srcCellInfo.type) { + case RIL.CELL_INFO_TYPE_GSM: + cellInfo = new GsmCellInfo(); + break; + case RIL.CELL_INFO_TYPE_WCDMA: + cellInfo = new WcdmaCellInfo(); + break; + case RIL.CELL_INFO_TYPE_LTE: + cellInfo = new LteCellInfo(); + break; + case RIL.CELL_INFO_TYPE_CDMA: + cellInfo = new CdmaCellInfo(); + break; + } + + if (!cellInfo) { + continue; + } + this.updateInfo(srcCellInfo, cellInfo); + cellInfoList.push(cellInfo); + } + callback.notifyGetCellInfoList(cellInfoList); + }.bind(this)); + }, + getNeighboringCellIds: function(callback) { this.workerMessenger.send("getNeighboringCellIds", null, function(response) { if (response.errorMsg) { callback.notifyGetNeighboringCellIdsFailed(response.errorMsg); return; }
--- a/dom/system/gonk/nsIRadioInterfaceLayer.idl +++ b/dom/system/gonk/nsIRadioInterfaceLayer.idl @@ -4,16 +4,17 @@ #include "nsISupports.idl" #include "nsINetworkManager.idl" interface nsIDOMMozIccInfo; interface nsIMobileConnectionInfo; interface nsIMobileMessageCallback; interface nsINeighboringCellIdsCallback; +interface nsICellInfoListCallback; [scriptable, uuid(6e0f45b8-410e-11e3-8c8e-b715b2cd0128)] interface nsIRilNetworkInterface : nsINetworkInterface { readonly attribute unsigned long serviceId; readonly attribute DOMString iccId; /* The following attributes are for MMS proxy settings. */ @@ -51,17 +52,17 @@ interface nsIRilContext : nsISupports }; [scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)] interface nsIRilSendWorkerMessageCallback : nsISupports { boolean handleResponse(in jsval response); }; -[scriptable, uuid(31ba65b6-05c7-4bc8-abdc-f1a219811fb4)] +[scriptable, uuid(c13a8890-797b-4557-b92f-6b959f56c1d8)] interface nsIRadioInterface : nsISupports { readonly attribute nsIRilContext rilContext; /** * PDP APIs */ void setupDataCallByType(in DOMString apntype); @@ -83,19 +84,25 @@ interface nsIRadioInterface : nsISupport void sendWorkerMessage(in DOMString type, [optional] in jsval message, [optional] in nsIRilSendWorkerMessageCallback callback); void getSmscAddress(in nsIMobileMessageCallback request); /** - * Cell Info functionality. + * Request neighboring cell ids in GSM/UMTS network. */ void getNeighboringCellIds(in nsINeighboringCellIdsCallback callback); + + /** + * Request all of the current cell information known to the radio, including + * neighboring cells. + */ + void getCellInfoList(in nsICellInfoListCallback callback); }; [scriptable, uuid(78b65e8c-68e7-4510-9a05-65bba12b283e)] interface nsIRadioInterfaceLayer : nsISupports { readonly attribute unsigned long numRadioInterfaces; nsIRadioInterface getRadioInterface(in unsigned long clientId);
--- a/dom/system/gonk/ril_consts.js +++ b/dom/system/gonk/ril_consts.js @@ -124,16 +124,17 @@ this.REQUEST_GET_SMSC_ADDRESS = 100; this.REQUEST_SET_SMSC_ADDRESS = 101; this.REQUEST_REPORT_SMS_MEMORY_STATUS = 102; this.REQUEST_REPORT_STK_SERVICE_IS_RUNNING = 103; this.REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE = 104; this.REQUEST_ISIM_AUTHENTICATION = 105; this.REQUEST_ACKNOWLEDGE_INCOMING_GSM_SMS_WITH_PDU = 106; this.REQUEST_STK_SEND_ENVELOPE_WITH_STATUS = 107; this.REQUEST_VOICE_RADIO_TECH = 108; +this.REQUEST_GET_CELL_INFO_LIST = 109; // Flame specific parcel types. this.REQUEST_SET_UICC_SUBSCRIPTION = 114; this.REQUEST_SET_DATA_SUBSCRIPTION = 115; this.REQUEST_GET_UICC_SUBSCRIPTION = 116; this.REQUEST_GET_DATA_SUBSCRIPTION = 117; // UICC Secure Access. @@ -460,16 +461,21 @@ this.NETWORK_CREG_TECH_HSDPA = 9; this.NETWORK_CREG_TECH_HSUPA = 10; this.NETWORK_CREG_TECH_HSPA = 11; this.NETWORK_CREG_TECH_EVDOB = 12; this.NETWORK_CREG_TECH_EHRPD = 13; this.NETWORK_CREG_TECH_LTE = 14; this.NETWORK_CREG_TECH_HSPAP = 15; this.NETWORK_CREG_TECH_GSM = 16; +this.CELL_INFO_TYPE_GSM = 1; +this.CELL_INFO_TYPE_CDMA = 2; +this.CELL_INFO_TYPE_LTE = 3; +this.CELL_INFO_TYPE_WCDMA = 4; + this.CALL_STATE_UNKNOWN = -1; this.CALL_STATE_ACTIVE = 0; this.CALL_STATE_HOLDING = 1; this.CALL_STATE_DIALING = 2; this.CALL_STATE_ALERTING = 3; this.CALL_STATE_INCOMING = 4; this.CALL_STATE_WAITING = 5;
--- a/dom/system/gonk/ril_worker.js +++ b/dom/system/gonk/ril_worker.js @@ -1308,16 +1308,23 @@ RilObject.prototype = { /** * Request neighboring cell ids in GSM network. */ getNeighboringCellIds: function(options) { this.context.Buf.simpleRequest(REQUEST_GET_NEIGHBORING_CELL_IDS, options); }, /** + * Request all of the current cell information known to the radio. + */ + getCellInfoList: function(options) { + this.context.Buf.simpleRequest(REQUEST_GET_CELL_INFO_LIST, options); + }, + + /** * Request various states about the network. */ requestNetworkInfo: function() { if (this._processingNetworkInfo) { if (DEBUG) { this.context.debug("Network info requested, but we're already " + "requesting network info."); } @@ -6442,16 +6449,76 @@ RilObject.prototype[REQUEST_GET_NEIGHBOR } neighboringCellIds.push(cellId); } options.result = neighboringCellIds; this.sendChromeMessage(options); }; +RilObject.prototype[REQUEST_GET_CELL_INFO_LIST] = function REQUEST_GET_CELL_INFO_LIST(length, options) { + if (options.rilRequestError) { + options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; + this.sendChromeMessage(options); + return; + } + + let Buf = this.context.Buf; + let cellInfoList = []; + let num = Buf.readInt32(); + for (let i = 0; i < num; i++) { + let cellInfo = {}; + cellInfo.type = Buf.readInt32(); + cellInfo.registered = Buf.readInt32() ? true : false; + cellInfo.timestampType = Buf.readInt32(); + cellInfo.timestamp = Buf.readInt64(); + + switch(cellInfo.type) { + case CELL_INFO_TYPE_GSM: + case CELL_INFO_TYPE_WCDMA: + cellInfo.mcc = Buf.readInt32(); + cellInfo.mnc = Buf.readInt32(); + cellInfo.lac = Buf.readInt32(); + cellInfo.cid = Buf.readInt32(); + if (cellInfo.type == CELL_INFO_TYPE_WCDMA) { + cellInfo.psc = Buf.readInt32(); + } + cellInfo.signalStrength = Buf.readInt32(); + cellInfo.bitErrorRate = Buf.readInt32(); + break; + case CELL_INFO_TYPE_CDMA: + cellInfo.networkId = Buf.readInt32(); + cellInfo.systemId = Buf.readInt32(); + cellInfo.basestationId = Buf.readInt32(); + cellInfo.longitude = Buf.readInt32(); + cellInfo.latitude = Buf.readInt32(); + cellInfo.cdmaDbm = Buf.readInt32(); + cellInfo.cdmaEcio = Buf.readInt32(); + cellInfo.evdoDbm = Buf.readInt32(); + cellInfo.evdoEcio = Buf.readInt32(); + cellInfo.evdoSnr = Buf.readInt32(); + break; + case CELL_INFO_TYPE_LTE: + cellInfo.mcc = Buf.readInt32(); + cellInfo.mnc = Buf.readInt32(); + cellInfo.cid = Buf.readInt32(); + cellInfo.pcid = Buf.readInt32(); + cellInfo.tac = Buf.readInt32(); + cellInfo.signalStrength = Buf.readInt32(); + cellInfo.rsrp = Buf.readInt32(); + cellInfo.rsrq = Buf.readInt32(); + cellInfo.rssnr = Buf.readInt32(); + cellInfo.cqi = Buf.readInt32(); + break; + } + cellInfoList.push(cellInfo); + } + options.result = cellInfoList; + this.sendChromeMessage(options); +}; RilObject.prototype[REQUEST_SET_LOCATION_UPDATES] = null; RilObject.prototype[REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE] = null; RilObject.prototype[REQUEST_CDMA_SET_ROAMING_PREFERENCE] = function REQUEST_CDMA_SET_ROAMING_PREFERENCE(length, options) { if (options.rilRequestError) { options.errorMsg = RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]; } this.sendChromeMessage(options); };
--- a/dom/system/gonk/worker_buf.js +++ b/dom/system/gonk/worker_buf.js @@ -262,16 +262,29 @@ let Buf = { return this.readUint8() | this.readUint8() << 8; }, readInt32: function() { return this.readUint8() | this.readUint8() << 8 | this.readUint8() << 16 | this.readUint8() << 24; }, + readInt64: function() { + // Avoid using bitwise operators as the operands of all bitwise operators + // are converted to signed 32-bit integers. + return this.readUint8() + + this.readUint8() * Math.pow(2, 8) + + this.readUint8() * Math.pow(2, 16) + + this.readUint8() * Math.pow(2, 24) + + this.readUint8() * Math.pow(2, 32) + + this.readUint8() * Math.pow(2, 40) + + this.readUint8() * Math.pow(2, 48) + + this.readUint8() * Math.pow(2, 56); + }, + readInt32List: function() { let length = this.readInt32(); let ints = []; for (let i = 0; i < length; i++) { ints.push(this.readInt32()); } return ints; },