Re: [b2g] Log collection needs improvement

2014-08-21 Thread Tim Chien
Thanks Al for raising the issue. To clarify, I didn't say log switch should be centralized in System app. It should be centralized in Gecko. Gaia developers are specifically told not to use |console.log/error| etc. for normal operations because it comes with performance penalty. It sounds like

Re: [b2g] Log collection needs improvement

2014-08-21 Thread Gabriele Svelto
On 21/08/2014 08:21, Tim Chien wrote: Previously we had a creative invention from Frsela that turning on/off a all-caps DUMP() function with mozSettings. I would love that being formalized in Gecko. https://github.com/mozilla-b2g/gaia/blob/master/shared/js/dump.js Standardizing all gaia

Re: [b2g] ZTE Open 1.2 Beta

2014-08-21 Thread Gabriele Svelto
On 20/08/2014 15:22, Paul Hannington wrote: Although I see that many people have raised the issue regarding ZTE Open updates in the past and it has fallen down a bottomless pit between Mozilla and ZTE, but after seeing the potential improvements which could be achieved by at least one more

Re: [b2g] Review of QA's Smoketests

2014-08-21 Thread Anthony Ricaud
For the Dialer, I'm thinking those are important for dogfooders: - Notification of missed calls (could be part of case #1306) - User can use MMI codes. And respond to MMI sessions. (This is useful to check your phone credits) PS: The link works if you're already logged into moztrap. On

Re: [b2g] Log collection needs improvement

2014-08-21 Thread Tim Chien
On Thu, Aug 21, 2014 at 4:01 PM, Gabriele Svelto gsve...@mozilla.com wrote: On 21/08/2014 08:21, Tim Chien wrote: Previously we had a creative invention from Frsela that turning on/off a all-caps DUMP() function with mozSettings. I would love that being formalized in Gecko.

Re: [b2g] Log collection needs improvement

2014-08-21 Thread Andreas Gal
console.log doesn’t have to be slow. Its only slow in Gecko. Its ridiculously fast in Chrome. We should probably simply optimize it. Andreas On Aug 21, 2014, at 8:47 AM, Tim Chien timdr...@mozilla.com wrote: On Thu, Aug 21, 2014 at 4:01 PM, Gabriele Svelto gsve...@mozilla.com wrote: On

Re: [b2g] Log collection needs improvement

2014-08-21 Thread Fabrice Desré
On 08/21/2014 07:51 AM, Andreas Gal wrote: console.log doesn’t have to be slow. Its only slow in Gecko. Its ridiculously fast in Chrome. We should probably simply optimize it. Yes, it's very ancient code. I think when I tweaked the buffering to limit memory usage some parts had not been

Re: [b2g] Log collection needs improvement

2014-08-21 Thread Dave Hylands
There is also the issue of turning the logs on/off. I've come to like the ability to use android properties, since you can manipulate them from the adb shell command line using getprop/setprop. Using preferences is nice on the desktop, because we have a UI that can be used to control them.

[b2g] API call to get phone number of device?

2014-08-21 Thread Daniel Wacker
Hi, I'm working on a very simple app that is just a login entry point for an online service. Login credentials are phone number and a password. Since we are on a phone, it would be nice to pre-fill the phone number input field, so it contains the user's own phone number which should be known

Re: [b2g] API call to get phone number of device?

2014-08-21 Thread Hubert Figuière
On 21/08/14 12:59 PM, Daniel Wacker wrote: Since we are on a phone, it would be nice to pre-fill the phone number input field, so it contains the user's own phone number which should be known to the device. It is not always known. Lot of carriers don't bother to have this implemented in

Re: [b2g] API call to get phone number of device?

2014-08-21 Thread Ian Bicking
There's a new API in 2.0, the MSISDN verification API: https://bugzilla.mozilla.org/show_bug.cgi?id=988469 (MSISDN being the hard way to say phone number ;) I don't know if it's documented anywhere yet. On Thu, Aug 21, 2014 at 11:59 AM, Daniel Wacker wac...@tuxen.de wrote: Hi, I'm working on