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 final class CompositeAdapter<T> extends BaseAdapter { | |
| private final List<T> fHeadings; | |
| private final List<ListAdapter> fAdapters; | |
| private int[] fLookupTable; | |
| private final DataSetObserver fChildObserver; | |
| private final Object fLock; |
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
| double cosAlpha = Math.cos( angle ); | |
| double sinAlpha = Math.sin( angle ); | |
| double dX = x - originX; | |
| double dY = y - originY; | |
| double x = originX + cosAlpha * dX - sinAlpha * dY; | |
| double y = originY + sinAlpha * dX + cosAlpha * dY; |
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
| task copyAssetsRec { | |
| description 'Temporary fix to recursively add folders and files from assets. Remove in v0.4.' | |
| ext.assetsSrcDir = file( "${projectDir}/src/main/assets" ) | |
| ext.assetsBuildDir = file( "${buildDir}/assets" ) | |
| inputs.dir assetsSrcDir | |
| outputs.dir assetsBuildDir | |
| doLast { |
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
| SUBSYSTEM=="usb", SYSFS{idVendor}=="0502", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="0B05", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="413c", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="0489", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="04c5", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="091E", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="109b", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" | |
| SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", MODE="0666" |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <uses-permission android:name="android.permission.RECEIVE_SMS" /> | |
| <application> | |
| <receiver android:name=".SmsReceivedBroadcastReceiver"> | |
| <!-- A high priority makes sure our BroadCastReceiver is called first. --> | |
| <intent-filter android:priority="999"> |
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 MyActivity extends Activity { | |
| private BroadcastReceiver myBroadcastReceiver; | |
| @Override | |
| public void onCreate( Bundle savedInstanceState ) { | |
| super.onCreate( savedInstanceState ); | |
| // Or programmatically asign a priority. | |
| myBroadcastReceiver = new MyBroadcastReceiver(); |
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 final class LruCache<K, V> extends LinkedHashMap<K, V> { | |
| private final int fSize; | |
| public LruCache( int aSize ) { | |
| super( aSize + 1, 1.0f, true ); | |
| fSize = aSize; | |
| } |
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 final class DateUtil { | |
| private DateUtil() { | |
| } | |
| public static String toIsoString( Date aDate ) { | |
| SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ssZ" ); | |
| return simpleDateFormat.format( aDate ); | |
| } |