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.cyngn.gradleplugin | |
import org.gradle.api.Task | |
public class AppExtension { | |
private String appName | |
private boolean system | |
private boolean privileged |
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
alias ls='ls -G' | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
alias ..='cd ..' | |
export ANDROID_HOME="~/android-sdk-linux" | |
export PATH="~/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$JAVA_HOME/bin:$PATH" | |
# set the number of open files to be 1024 |
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
// from <aosp_root>/tools/base/build-system/gradle/src/main/groovy/com/android/build/gradle/BasePlugin.groovy | |
// here just for context, unmodified | |
/** | |
* Creates the proguarding task for the given Variant. | |
* @param variantData the variant data. | |
* @param testedVariantData optional. variant data representing the tested variant, null if the | |
* variant is not a test variant | |
* @return outFile file outputted by proguard | |
*/ |
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
# Copyright (C) 2010 The Android Open Source Project | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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.sarbs.tinker; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; |
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
V/SetupWizard( 2835): BaseActivity.onPause() com.google.android.setupwizard.SimMissingActivity | |
V/SetupWizard( 2835): BaseActivity.onCreate(null) com.google.android.setupwizard.WifiSettingsActivity | |
D/SetupWizard( 2835): BaseActivity.onCreate() mIsFirstRun=true mIsSecondaryUser=false | |
D/AndroidRuntime( 2835): Shutting down VM | |
W/dalvikvm( 2835): threadid=1: thread exiting with uncaught exception (group=0x415e6db8) | |
E/AndroidRuntime( 2835): FATAL EXCEPTION: main | |
E/AndroidRuntime( 2835): Process: com.google.android.setupwizard, PID: 2835 | |
E/AndroidRuntime( 2835): java.lang.NoSuchMethodError: android.net.wifi.IWifiManager.setWifiEnabled | |
E/AndroidRuntime( 2835): at com.google.android.setupwizard.BaseActivity.tryEnablingWifi(BaseActivity.java:1526) | |
E/AndroidRuntime( 2835): at com.google.android.setupwizard.WifiSettingsActivity.launchWifiSettingsPanel(WifiSettingsActivity.java:103) |
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 f in $(ls); do echo $$f; done | |
98204f | |
98204f | |
98204f | |
98204f | |
98204f | |
98204f | |
98204f | |
98204f | |
98204f |
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
09-10 00:46:57.210 19553-19566/sarbs.com.tinker I/Tinker﹕ Running test... | |
09-10 00:47:25.250 19553-19566/sarbs.com.tinker I/Tinker﹕ Full loop with branching took 27535510 µs. | |
09-10 00:48:57.268 19553-19566/sarbs.com.tinker I/Tinker﹕ Full loop with virtmethod took 91837723 µs. |
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 FooFragment { | |
public interface IFooFragment { | |
void onMapReady(GoogleMap map); | |
} | |
somewhereLaterInCode() { | |
((IFooFragment)getActivity()).onMapReady(myMap); | |
} | |
} |
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 MapActivity { | |
private GoogleMap mMap; | |
private MapFragment mFragment; | |
public void onCreate(...) { | |
mFragment = MapFragment.newInstance(parameters); | |
// set other stuff up | |
} |