Skip to content

Instantly share code, notes, and snippets.

@mateor
mateor / ivysettings.xml
Created April 10, 2015 08:21
Ivysettings with google and android m2 repos from the Android SDK.
<?xml version="1.0"?>
<!--
Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
Licensed under the Apache License, Version 2.0 (see LICENSE).
-->
<ivysettings>
<property name="root.dir" value="${ivy.settings.dir}/../.." override="false"/>
<property name="ivy.cache.dir" value="${user.home}/.ivy2/pants" override="false"/>
<properties file="${root.dir}/build.properties" override="false"/>
[ -n "${VAR##[NFnf]*}" ] && echo '$VAR must be truthy (but will be considered falsey by default, if empty)'
[ -z "${VAR##[YTyt]*}" ] && echo '$VAR must be truthy (and will be by default, if empty)'
[ -z "${VAR##[NFnf]*}" ] && echo '$VAR must be falsey (and will be by default, if empty)'
[ -n "${VAR##[YTyt]*}" ] && echo '$VAR must be falsey (but will be considered truthy by default, if empty)'
@mateor
mateor / ivysettings.xml
Created March 24, 2015 17:37
Pants ivysettings.xml that works with local Android SDK
<?xml version="1.0"?>
<!--
Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
Licensed under the Apache License, Version 2.0 (see LICENSE).
-->
<ivysettings>
<property name="root.dir" value="${ivy.settings.dir}/../.." override="false"/>
<property name="ivy.cache.dir" value="${user.home}/.ivy2/pants" override="false"/>
<properties file="${root.dir}/build.properties" override="false"/>
@mateor
mateor / ci output
Last active August 29, 2015 14:13
ci errors
~/development/pants$ ./build-support/bin/ci.sh
[== CI BEGINS ==]
[== Bootstrapping pants ==]
*** Running pants in dev mode from /Users/mateor/development/pants/src/python/pants/bin/pants_exe.py ***
Bootstrapping pants_deps with requirements:
/Users/mateor/development/pants/3rdparty/python/requirements.txt
@mateor
mateor / keybase.md
Created January 12, 2015 20:04
verify keybase

Keybase proof

I hereby claim:

  • I am mateor on github.
  • I am mateor (https://keybase.io/mateor) on keybase.
  • I have a public key whose fingerprint is B2E3 CE48 59B5 5A57 F4DC 829B 4A79 DE3C 7E00 104E

To claim this, I am signing this object:

@mateor
mateor / b_tree.py
Created November 12, 2014 23:17
A simple B-Tree in Python that supports insert, search and print.
# coding=utf-8
"""
author = Mateor
PYTHON 3.3.5
"""
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
diff --git a/services/java/com/android/server/PrivacyTelephonyRegistry.java b/services/java/com/android/server/PrivacyTelephonyRegistry.java
index 15ddea7..2a0a5df 100644
--- a/services/java/com/android/server/PrivacyTelephonyRegistry.java
+++ b/services/java/com/android/server/PrivacyTelephonyRegistry.java
@@ -57,18 +57,27 @@ public class PrivacyTelephonyRegistry extends TelephonyRegistry{
private static final int PERMISSION_CALL_STATE = 3;
private static final int PERMISSION_SERVICE_STATE = 4;
+
+ private Context _context;