This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
EXPECTED_ARGS=1 | |
E_BADARGS=42 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage `basename $0` project_name" | |
exit $E_BADARGS | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
""":" | |
exec python $0 ${1+"$@"} | |
""" | |
# mass review all open commits for a project. | |
# you will need to specify extra arguments like --code-review, --verified, --submit | |
# | |
# The following example will +1 and verify all commits for android_frameworks_base: | |
# mass_review.py android_frameworks_base --code-review 1 --verified 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
""":" | |
exec python $0 ${1+"$@"} | |
""" | |
# Author: Clark Scheff | |
# | |
# Picks all open commits for a given project in the correct | |
# order based on their dependencies. There is plenty of | |
# room for improvments but this does work as intended. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is just a simple ContentObserver class used to listen for | |
* changes to the list of enabled notification listeners. | |
* You'll need to create an instance of this class and call observe() | |
* to listen for changes and unobserve() when you no longer need it. | |
*/ | |
class ListenerStatusObserver extends ContentObserver { | |
/** | |
* Note: Settings.Secure.ENABLED_NOTIFICATION_LISTENERS is hidden from | |
* the public API so you'll want to replace it with the actual string |
NewerOlder