This file has been truncated, but you can view the full file.
This file contains hidden or 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
Started by timer | |
[EnvInject] - Loading node environment variables. | |
Building in workspace /Users/oracleicom/.jenkins/jobs/(ROM) CM10 - HTC One X/workspace | |
Checkout:workspace / /Users/oracleicom/.jenkins/jobs/(ROM) CM10 - HTC One X/workspace - hudson.remoting.LocalChannel@6d78382e | |
Using strategy: Default | |
Last Built Revision: Revision 3d539a86aba4719b40a97a53c5dc26e5e00bbe63 (origin/jellybean) | |
Fetching changes from 1 remote Git repository | |
Fetching upstream changes from https://github.com/htc-msm8960/android_device_htc_evita | |
Commencing build of Revision 3d539a86aba4719b40a97a53c5dc26e5e00bbe63 (origin/jellybean) | |
Checking out Revision 3d539a86aba4719b40a97a53c5dc26e5e00bbe63 (origin/jellybean) |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
Office:cm oracleicom$ make showcommands bootimage | |
============================================ | |
PLATFORM_VERSION_CODENAME=REL | |
PLATFORM_VERSION=4.1.1 | |
TARGET_PRODUCT=full | |
TARGET_BUILD_VARIANT=eng | |
TARGET_BUILD_TYPE=release | |
TARGET_BUILD_APPS= | |
TARGET_ARCH=arm | |
TARGET_ARCH_VARIANT=armv7-a |
This file contains hidden or 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
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.support.v4.content.AsyncTaskLoader; | |
/** | |
* Generic {@link AsyncTaskLoader} which also registers and handles data changes via a {@link BroadcastReceiver}. | |
* | |
* @author jmardis |
This file contains hidden or 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
public class ZoomFragment implements OnTouchListener { | |
private static final float MIN_SCALE = 0.95f; | |
private float mLastScaleFactor = 0; | |
private float mTouchY; | |
@Override | |
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) { | |
mView = inflater.inflate(R.layout.fragment_layout, container, false); |
This file contains hidden or 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
Picasso.with(context).load(url).into(new Target() { | |
@Override | |
public void onSuccess(Bitmap bitmap) { | |
holder.image.setImageBitmap(bitmap); | |
} | |
@Override | |
public void onError() { | |
// handle |
This file contains hidden or 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
function dex-method-count() { | |
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
} | |
function dex-method-count-by-package() { | |
dir=$(mktemp -d -t dex) | |
java -jar baksmali.jar $1 -o $dir | |
for pkg in `find $dir/* -type d`; do | |
java -jar smali.jar $pkg -o $pkg/classes.dex | |
count=$(dex-method-count $pkg/classes.dex) |
This file contains hidden or 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 | |
f=$(pwd) | |
mkdir drawable-mdpi drawable-hdpi drawable-xhdpi drawable-xxhdpi | |
# fake argv and argc in bash | |
argc=$#; argv[0]=$0 # argv[0] is a prog name | |
for foo in $( seq $argc ) | |
do |
This file contains hidden or 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
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Path; | |
import android.graphics.RectF; | |
import android.util.AttributeSet; | |
import android.widget.RelativeLayout; | |
/** | |
* A {@link android.widget.RelativeLayout} that supports rounded corners. |
This file contains hidden or 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
for file in jars/*.jar; do | |
echo $file; /Applications/Android\ Studio.app/sdk/build-tools/19.0.3/dx --dex --output=temp.dex $file 2> /dev/null | |
cat temp.dex| head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
done |
This file contains hidden or 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
package com.desk.android.util; | |
import android.graphics.Color; | |
/** | |
* Lightens or darkens a color | |
*/ | |
public final class ColorUtils { | |
private ColorUtils() { |
OlderNewer