Skip to content

Instantly share code, notes, and snippets.

@alivedise
alivedise / parse.js
Created August 25, 2014 11:10
parse.js
var utils = require('utils');
exports.execute = function(options) {
var dir = utils.getFile(options.GAIA_DIR, 'ast');
utils.ensureFolderExists(dir);
var files = utils.ls(utils.getFile(options.GAIA_DIR, 'apps', 'system', 'js'), true);
var moduleList = [];
var output = dir.clone();
output.append('system-dep.json');
var result = 'digraph G {\n';
@alivedise
alivedise / gist:ebd87ac5635bc1f420a8
Created August 25, 2014 10:52
System app dependency rule
digraph G {
Activities -> ActionMenu;
ActivityWindow -> AppAuthenticationDialog;
ActivityWindow -> AppModalDialog;
ActivityWindow -> AppTransitionController;
ActivityWindow -> AppWindow;
ActivityWindow -> BrowserContextMenu;
ActivityWindow -> BrowserFrame;
ActivityWindow -> ChildWindowFactory;
ActivityWindow -> OrientationManager;
--------- beginning of /dev/log/main
I/TaskTracer( 108): 0 1039382086490 1397550393185070 1039382086294 0 1039382086294
I/TaskTracer( 108): 4 1039382086490 0x4230b288
I/TaskTracer( 108): 1 1039382086490 1397550393186382 23650000 1810000 108 "b2g" 108 "main"
I/TaskTracer( 108): 1 463856472102 1397550393186626 23650000 1810000 108 "b2g" 108 "main"
I/TaskTracer( 108): 0 463856472103 1397550393186871 463856471675 0 463856472102
I/TaskTracer( 108): 4 463856472103 0x4230b228
I/TaskTracer( 108): 2 463856472102 1397550393187206 23650000 1810000
I/TaskTracer( 108): 2 1039382086490 1397550393187389 23650000 1810000
I/TaskTracer( 397): 0 1928440315982 1397550393358807 463856467969 0 1705102016552
{"begin": 1397470915669041, "end": 1397470926426579, "processes": [
{
"processId": 23680000,
"mem_offset": null,
"processName": "b2g"
},
{
"processId": 0,
"mem_offset": null,
"processName": ""
@alivedise
alivedise / wm201.md
Last active August 29, 2015 13:59
FxOS Window Management 201

FirefoxOS Window Management 201

Window classes

  • AppWindow
  • HomescreenWindow
  • ActivityWindow
  • LockscreenWindow
  • SecureWindow
  • PopupWindow
  • SearchWindow
@alivedise
alivedise / gist:10015305
Created April 7, 2014 05:38
Use custom app folders in marionette client
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/test/marionette/media_playback_test.js#L8-L19
@alivedise
alivedise / gist:8917710
Last active August 29, 2015 13:56
window mgmt 101 abstract
## Window Management 101 ##
* Overview
* Birth
** webapps launch
** system message
* manifest
** Sizing
** Orientation
* Visibility
* Animations

Right top

ig? , . 3 l l You hourta Benali Alexander Slovesnik Brian Nicholson Michael Romo Abdelhak Fareh Darrin Henein T0Sh|YUk' Ok” i<athe"‘"e Ne\5°“ f _ Ton? Mechelynck Sara Hermann Wei-Ko Kao Shu-yu Guo Kacem Boukraa lgor Kushnirskiy Ruben Martin Avaeh l\gLg£;EfNl?§§;S\Sl2;1g“?al; M I . Steven MacLeod Ted Chien Frances Wong Roland Tanglao Tufael Khan Ruchi Lohani julio Gomez Sanchez jordi Serratosa ern _ Sean McArthur if-??' Morten Welinder Tan Tran jeff Hammel Nicolas Perriault Davide Pasetto Azer Koculu Adam_Muntner jerem|e_P\atoren\er Louis Stowasser A

@alivedise
alivedise / conf.json
Created December 11, 2013 02:51
conf.json
{
"tags": {
"allowUnknownTags": true
},
"source": {
"include": ["/Users/alive/Projects/gaia/apps/system/js"],
"exclude": [],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
diff --git a/apps/sms/js/activity_handler.js b/apps/sms/js/activity_handler.js
index 2b0fb26..8597b30 100644
--- a/apps/sms/js/activity_handler.js
+++ b/apps/sms/js/activity_handler.js
@@ -68,6 +68,11 @@ var ActivityHandler = {
number: number,
contact: contact || null
});
+
+ // Simulate a late successful response.