{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22","id":27178212,"html_url":"https://github.com/mozilla-b2g/platform_frameworks_av/pull/22","diff_url":"https://github.com/mozilla-b2g/platform_frameworks_av/pull/22.diff","patch_url":"https://github.com/mozilla-b2g/platform_frameworks_av/pull/22.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/22","number":22,"state":"closed","locked":false,"title":"Bug 1120332 - Replace getService() with checkService().","user":{"login":"jhlin","id":4125103,"avatar_url":"https://avatars.githubusercontent.com/u/4125103?v=3","gravatar_id":"","url":"https://api.github.com/users/jhlin","html_url":"https://github.com/jhlin","followers_url":"https://api.github.com/users/jhlin/followers","following_url":"https://api.github.com/users/jhlin/following{/other_user}","gists_url":"https://api.github.com/users/jhlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jhlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhlin/subscriptions","organizations_url":"https://api.github.com/users/jhlin/orgs","repos_url":"https://api.github.com/users/jhlin/repos","events_url":"https://api.github.com/users/jhlin/events{/privacy}","received_events_url":"https://api.github.com/users/jhlin/received_events","type":"User","site_admin":false},"body":"B2G doesn't include 'batterystats' service and getService() will keep trying for 5 seconds if the service is not available [1]. Use checkService() instead to avoid this long blocking behavior.\r\n\r\n[1] https://android.googlesource.com/platform/frameworks/native/+/master/libs/binder/IServiceManager.cpp#137","created_at":"2015-01-12T07:27:41Z","updated_at":"2015-01-12T09:26:26Z","closed_at":"2015-01-12T09:26:26Z","merged_at":null,"merge_commit_sha":"3c3f332ea1e6ce113712ba7020fbce0f8bcf01c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/22/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/statuses/a9db7acc0f6de893dc8976f370b0b90eac0242ab","head":{"label":"jhlin:bug1115609","ref":"bug1115609","sha":"a9db7acc0f6de893dc8976f370b0b90eac0242ab","user":{"login":"jhlin","id":4125103,"avatar_url":"https://avatars.githubusercontent.com/u/4125103?v=3","gravatar_id":"","url":"https://api.github.com/users/jhlin","html_url":"https://github.com/jhlin","followers_url":"https://api.github.com/users/jhlin/followers","following_url":"https://api.github.com/users/jhlin/following{/other_user}","gists_url":"https://api.github.com/users/jhlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jhlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhlin/subscriptions","organizations_url":"https://api.github.com/users/jhlin/orgs","repos_url":"https://api.github.com/users/jhlin/repos","events_url":"https://api.github.com/users/jhlin/events{/privacy}","received_events_url":"https://api.github.com/users/jhlin/received_events","type":"User","site_admin":false},"repo":{"id":28799790,"name":"platform_frameworks_av","full_name":"jhlin/platform_frameworks_av","owner":{"login":"jhlin","id":4125103,"avatar_url":"https://avatars.githubusercontent.com/u/4125103?v=3","gravatar_id":"","url":"https://api.github.com/users/jhlin","html_url":"https://github.com/jhlin","followers_url":"https://api.github.com/users/jhlin/followers","following_url":"https://api.github.com/users/jhlin/following{/other_user}","gists_url":"https://api.github.com/users/jhlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jhlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhlin/subscriptions","organizations_url":"https://api.github.com/users/jhlin/orgs","repos_url":"https://api.github.com/users/jhlin/repos","events_url":"https://api.github.com/users/jhlin/events{/privacy}","received_events_url":"https://api.github.com/users/jhlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhlin/platform_frameworks_av","description":"Forked from https://android.googlesource.com/platform/frameworks/av","fork":true,"url":"https://api.github.com/repos/jhlin/platform_frameworks_av","forks_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/forks","keys_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/teams","hooks_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/hooks","issue_events_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/issues/events{/number}","events_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/events","assignees_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/assignees{/user}","branches_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/branches{/branch}","tags_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/tags","blobs_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/statuses/{sha}","languages_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/languages","stargazers_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/stargazers","contributors_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/contributors","subscribers_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/subscribers","subscription_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/subscription","commits_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/issues/comments/{number}","contents_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/contents/{+path}","compare_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/merges","archive_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/downloads","issues_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/issues{/number}","pulls_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/pulls{/number}","milestones_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/milestones{/number}","notifications_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/labels{/name}","releases_url":"https://api.github.com/repos/jhlin/platform_frameworks_av/releases{/id}","created_at":"2015-01-05T06:03:13Z","updated_at":"2015-01-05T06:03:22Z","pushed_at":"2015-01-12T09:25:30Z","git_url":"git://github.com/jhlin/platform_frameworks_av.git","ssh_url":"git@github.com:jhlin/platform_frameworks_av.git","clone_url":"https://github.com/jhlin/platform_frameworks_av.git","svn_url":"https://github.com/jhlin/platform_frameworks_av","homepage":null,"size":21159,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:b2g-5.0.0_r6","ref":"b2g-5.0.0_r6","sha":"8642b85281d90c0d804c382a884ebd1c113b9570","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":12701793,"name":"platform_frameworks_av","full_name":"mozilla-b2g/platform_frameworks_av","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/platform_frameworks_av","description":"Forked from https://android.googlesource.com/platform/frameworks/av","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av","forks_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/releases{/id}","created_at":"2013-09-09T13:13:42Z","updated_at":"2014-12-22T17:39:01Z","pushed_at":"2015-01-08T03:37:24Z","git_url":"git://github.com/mozilla-b2g/platform_frameworks_av.git","ssh_url":"git@github.com:mozilla-b2g/platform_frameworks_av.git","clone_url":"https://github.com/mozilla-b2g/platform_frameworks_av.git","svn_url":"https://github.com/mozilla-b2g/platform_frameworks_av","homepage":null,"size":21550,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":3,"forks":13,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22"},"html":{"href":"https://github.com/mozilla-b2g/platform_frameworks_av/pull/22"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/22"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/platform_frameworks_av/statuses/a9db7acc0f6de893dc8976f370b0b90eac0242ab"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}